Complex Number Calculator
Add, subtract, multiply and divide complex numbers with every step shown. Type them any way you like (3 + 4i, 2∠30° or 2e^(iπ/6)) and get the answer as a + bi, in polar form and in exponential form.
A whole number from 1 to 60.
Type a + bi (3 + 4i, −2i, 5), polar r∠θ (2∠30°, 2∠π/6) or exponential re^(iθ). j works for i, and brackets, powers and √ are fine.
How your answer is worked out
Your numbers, step by step: split each number into its real and imaginary parts, work on each part, then write the answer in every form.
- 1
Read both numbers
z₁ = 3 + 4iz₂ = 1 − 2iuse i² = −1
- 2
Real part
ac − bd3·1 − 4·(−2)= 11
- 3
Imaginary part
ad + bc3·(−2) + 4·1= −2
- 4
Your answer
11 − 2i5√5∠−10.3048°5√5∠−0.1799 rad
Read more: the formulas, a worked example, polar form, roots and the Argand diagram
A complex number has a real part and an imaginary part: z = a + bi, where i is the number whose square is −1. You can picture it as the point (a, b) on the Argand diagram, with real numbers along the horizontal axis and imaginary numbers up the vertical one. The same point can be described by its distance from 0 (the modulus r) and its angle from the positive real axis (the argument θ). That is polar form, r∠θ, and exponential form, re^(iθ).
The formula
add: (a + bi) + (c + di) = (a + c) + (b + d)i
multiply: (a + bi)(c + di) = (ac − bd) + (ad + bc)i
divide: (a + bi) ÷ (c + di) = [(ac + bd) + (bc − ad)i] ÷ (c² + d²)
modulus r = √(a² + b²), argument θ = atan2(b, a)
polar: a + bi = r(cos θ + i sin θ) = re^(iθ)
De Moivre: (r∠θ)ⁿ = rⁿ∠nθ; nth roots = r^(1/n)∠(θ + 360°k) ÷ n
Worked example
Multiply z₁ = 3 + 4i by z₂ = 1 − 2i. Here a = 3, b = 4, c = 1 and d = −2. The real part is ac − bd = 3 × 1 − 4 × (−2) = 3 + 8 = 11. The imaginary part is ad + bc = 3 × (−2) + 4 × 1 = −6 + 4 = −2. So (3 + 4i)(1 − 2i) = 11 − 2i. Its modulus is √(11² + 2²) = √125 = 5√5 ≈ 11.1803, and its argument is atan2(−2, 11) ≈ −10.3048° (−0.1799 rad), so in polar form it is 5√5∠−10.3048°.
Check in polar form: |z₁| = √(9 + 16) = 5 and |z₂| = √(1 + 4) = √5, and 5 × √5 = 5√5. The angles are 53.1301° and −63.4349°, which add to −10.3048°. Multiplying complex numbers multiplies their sizes and adds their angles.
Dividing, step by step
To work out (3 + 4i) ÷ (1 − 2i), multiply the top and bottom by the conjugate of the bottom, 1 + 2i. The bottom becomes 1² + 2² = 5. The top becomes (3 + 4i)(1 + 2i) = 3 + 6i + 4i + 8i² = 3 + 10i − 8 = −5 + 10i. Divide each part by 5: −1 + 2i. Check: (−1 + 2i)(1 − 2i) = −1 + 2i + 2i − 4i² = −1 + 4i + 4 = 3 + 4i.
Polar form and the quadrant rule
θ = tan⁻¹(b ÷ a) only works on the right half of the diagram. When a is negative, add 180° if b is positive (quadrant 2) or take away 180° if b is negative (quadrant 3). atan2(b, a) does this for you. The main (principal) argument is kept between −180° and 180° (−π to π).
| z | Where | r | θ |
|---|---|---|---|
| 3 + 4i | Top right | 5 | 53.13° (0.9273 rad) |
| −1 + i | Top left | √2 | 135° (3π/4) |
| −1 − i | Bottom left | √2 | −135° (−3π/4) |
| 1 − √3i | Bottom right | 2 | −60° (−π/3) |
| −5 | Negative real axis | 5 | 180° (π) |
| 2i | Up the imaginary axis | 2 | 90° (π/2) |
Roots and powers (De Moivre)
To raise r∠θ to the power n, raise r to the power n and multiply the angle by n: (1 + i)⁸ = (√2)⁸∠(8 × 45°) = 16∠360° = 16. Every non-zero number has exactly n nth roots, spaced 360° ÷ n apart on a circle. The cube roots of 8 are 2∠0°, 2∠120° and 2∠240°, which are 2, −1 + √3i and −1 − √3i. For a power that is not a whole number, such as z^0.5, the calculator gives the principal value, which uses the main argument.
e^z and ln z
Euler’s formula says e^(iθ) = cos θ + i sin θ, so e^(a + bi) = eᵃ(cos b + i sin b), and e^(iπ) = −1. The natural log goes the other way: ln z = ln r + iθ. Adding any multiple of 2πi gives another log, so the calculator shows the principal one, with θ between −π and π. Complex powers use z₁^z₂ = e^(z₂ ln z₁): for example i^i = e^(−π/2) ≈ 0.2079, a real number.
Powers of i
| i¹ | i² | i³ | i⁴ | i⁵ |
|---|---|---|---|---|
| i | −1 | −i | 1 | i (and so on, every 4) |
Typing numbers
- Rectangular: 3 + 4i, 3 − 4i, −2i, i, 5, 1/2 + 3/4i, 4j − 1.
- Polar: 2∠30° or 2<30 (degrees), 2∠π/6 or 2∠0.5rad (radians), 2 cis 45°. Angles with no unit use the setting under the boxes.
- Exponential: 2e^(iπ/6) or e^(0.5i).
- Sums and functions: (1 + i)^3, √(−4), conj(2 + i), abs(3 + 4i), ln(i), sin, cos and tan.
- 1/2i means (1/2) × i. Write 1/(2i) if you mean one over 2i.
The answers are worked out with ordinary computer decimals (about 15 digits). When an answer is very close to a simple fraction, a square root like √3/2 or a fraction of π, it is shown in that exact form. Decimals are rounded to the places you choose.
Common questions
How do you multiply complex numbers?
Multiply out the brackets like (a + b)(c + d), then replace i² with −1. For (3 + 4i)(1 − 2i): 3 − 6i + 4i − 8i² = 3 − 2i + 8 = 11 − 2i. The quick rule is (a + bi)(c + di) = (ac − bd) + (ad + bc)i.
How do you divide complex numbers?
Multiply the top and bottom by the conjugate of the bottom (flip the sign of its i part). The bottom becomes a real number, c² + d². For (3 + 4i) ÷ (1 − 2i): multiply by (1 + 2i) to get (−5 + 10i) ÷ 5 = −1 + 2i.
What is the modulus and argument of a complex number?
The modulus |z| = √(a² + b²) is its distance from 0 on the Argand diagram. The argument θ is the angle from the positive real axis, between −180° and 180°. For 3 + 4i, |z| = √(9 + 16) = 5 and θ = tan⁻¹(4/3) = 53.13°.
How do I convert to polar form?
Find r = √(a² + b²) and θ = atan2(b, a), then write z = r∠θ = r(cos θ + i sin θ) = re^(iθ). Take care with the quadrant: −1 − i is at −135°, not 45°. To go back, a = r cos θ and b = r sin θ.
How do you find the cube roots of a complex number?
Write it in polar form r∠θ. The n roots are r^(1/n) ∠ (θ + 360°k) ÷ n for k = 0, 1, … n − 1 (De Moivre’s theorem). For 8 = 8∠0°: 2∠0°, 2∠120° and 2∠240°, which are 2, −1 + √3i and −1 − √3i. They sit evenly on a circle.
What is i?
i is the imaginary unit, the number whose square is −1. It lets you take square roots of negative numbers: √−16 = 4i. Its powers repeat every four: i, −1, −i, 1. Engineers often write j instead, which this calculator also accepts.
Related calculators
Made by Zulu Calculator, part of AlphaZulu LLC. Formulas are shown in full and rule figures are checked against official sources; see how we build calculators.