ℂ

Complex Number Calculator

Add, subtract, multiply and divide complex numbers, convert between rectangular a + bi and polar r∠θ form, and find the modulus, argument, conjugate, powers by De Moivre's theorem and every n-th root, with the working shown.

Math & AlgebraRuns in your browser

Result…

Rectangular like 3 + 4i, 2 - i or -5i (j works too), or polar like 2∠45° or 2∠0.785rad.

Angles in

How answers are shown, and how a polar angle you type without ° or rad is read.

 

…

How it's calculated

z = a + bi = r∠θ, r = |z| = √(a² + b²), θ = atan2(b, a)
(a + bi)(c + di) = (ac − bd) + (ad + bc)i
(a + bi) ÷ (c + di) = ((ac + bd) + (bc − ad)i) ÷ (c² + d²)
De Moivre: zⁿ = rⁿ∠nθ; n-th roots: r^(1/n)∠(θ + 360°k) ÷ n, k = 0 … n − 1

A complex number a + bi has a real part a and an imaginary part b, where i² = −1 (engineers often write j). The same number in polar form is r∠θ: its distance r from 0 (the modulus) and its angle θ from the positive real axis (the argument), given here from −180° to 180° (−π to π). Adding and subtracting work part by part; multiplying multiplies the moduli and adds the angles, and dividing uses the conjugate a − bi to clear i from the bottom. Powers follow De Moivre's theorem, and a non-zero number has exactly n different n-th roots, spaced evenly round a circle; the principal root is the one with k = 0. Answers are rounded to 7 significant figures, and parts smaller than a trillionth of the modulus are shown as 0.

Your numbers, step by step

    About the Complex Number calculator

    This complex number calculator adds, subtracts, multiplies and divides numbers of the form a + bi. It converts between rectangular form and polar form r∠θ, and finds the modulus, argument and conjugate. It also raises a number to a power with De Moivre's theorem and lists every n-th root. You can type numbers the way they appear in textbooks and engineering notes: 3 + 4i, 2 − i, -5j, or 2∠45° in polar form, with angles in degrees or radians. Algebra and calculus students use it to check homework. Electrical engineers use it for phasors and impedances in AC circuits, where j is the usual symbol. Each operation shows its working: the i² = −1 step in multiplication, the conjugate trick in division, and the evenly spaced angles of the roots. For solving polynomial equations with complex roots, see the equation solver.

    How to use it

    1. Choose the operation under “Calculate”, such as “Multiply z₁ × z₂”, “Convert z₁ (rectangular ↔ polar)” or “All n-th roots of z₁”.
    2. Type “z₁” (and “z₂” for arithmetic) as a + bi, like 3 + 4i, or in polar form, like 2∠45°.
    3. For powers and roots, enter the whole number “n”.
    4. Set “Angles in” to degrees or radians. This sets how the arguments are shown and how a polar angle without ° or rad is read.

    Worked example

    Multiply (2 + 3i) by (4 − i): (2 × 4 − 3 × (−1)) + (2 × (−1) + 3 × 4)i = 11 + 10i. In polar form that is 14.86607∠42.27369°, with conjugate 11 − 10i. For the cube roots of 8i, the modulus 8 gives roots of modulus 2. The angle 90° gives root angles 30°, 150° and 270°, so the three roots are 1.732051 + i, −1.732051 + i and −2i, spaced 120° apart.

    Updated

    Questions people ask

    How do you multiply two complex numbers?

    Expand the brackets and replace i² with −1: (a + bi)(c + di) = (ac − bd) + (ad + bc)i. In polar form it is simpler: multiply the moduli and add the angles.

    How do I convert a complex number to polar form?

    The modulus is r = √(a² + b²) and the argument is θ = atan2(b, a), the angle from the positive real axis. 3 + 4i becomes 5∠53.13°. To go back, a = r cos θ and b = r sin θ.

    How do you divide complex numbers?

    Multiply the top and the bottom by the conjugate of the bottom, c − di. The bottom becomes the real number c² + d², and you divide each part of the top by it.

    How many n-th roots does a complex number have?

    Every non-zero complex number has exactly n different n-th roots. They share the modulus r^(1/n) and sit evenly round a circle, 360° ÷ n apart. The one with k = 0 is called the principal root.

    Why is my argument different from my textbook's answer?

    The calculator gives the argument between −180° and 180° (−π to π). Some books use 0° to 360°, so −90° and 270° are the same direction. Check also that the angle unit setting matches yours.

    More in Math & Algebra