Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Complex number calculator

Type complex numbers like 3 + 4i. Get the answer with every step, in rectangular, polar and exponential form, plotted on an Argand diagram.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Need the angle of a point or a ratio? The inverse trig calculator has atan2. Solving a quadratic with complex roots? Try the equation solver.

Complex numbers in a nutshell

A complex number z = a + bi has a real part a and an imaginary part b, where i² = −1. You can picture it as the point (a, b) on an Argand diagram: real numbers run across, imaginary numbers run up. The same point can be described by its distance from 0, the modulus r = |z|, and its angle from the positive real axis, the argument θ. Complex numbers turn up in AC circuits, signal processing, quantum mechanics and in solving polynomial equations.

How each operation works

(a + bi) + (c + di) = (a + c) + (b + d)i
(a + bi)(c + di) = (ac − bd) + (ad + bc)i
(a + bi) ÷ (c + di) = [(ac + bd) + (bc − ad)i] ÷ (c² + d²)
|z| = √(a² + b²), θ = atan2(b, a), z = r(cos θ + i sin θ) = re^(iθ)
De Moivre: zⁿ = rⁿ(cos nθ + i sin nθ)
nth roots: r^(1/n)[cos((θ + 2πk) ÷ n) + i sin((θ + 2πk) ÷ n)], k = 0, 1, …, n − 1

To divide, multiply the top and bottom by the conjugate of the bottom, c − di. That turns the bottom into the real number c² + d². The argument used here is the principal value, between −180° and 180°, so a number on the negative real axis has argument 180°.

Worked example

Take z₁ = 3 + 4i and z₂ = 1 − 2i.

  • Multiply: (3 + 4i)(1 − 2i) = 3 − 6i + 4i − 8i² = 3 − 2i + 8 = 11 − 2i.
  • Divide: multiply top and bottom by 1 + 2i. The top is (3 + 4i)(1 + 2i) = −5 + 10i, and the bottom is 1² + 2² = 5, so the answer is -1 + 2i.
  • Modulus and argument: |3 + 4i| = √(9 + 16) = 5, and θ = atan2(4, 3) ≈ 53.1301°, so 3 + 4i = 5(cos 53.13° + i sin 53.13°).
  • Power: 1 + i has r = √2 and θ = 45°, so (1 + i)⁸ = (√2)⁸(cos 360° + i sin 360°) = 16.
  • Roots: −8 has r = 8 and θ = 180°, so its cube roots have modulus 2 and angles 60°, 180° and 300°: 1 + √3 i, −2 and 1 − √3 i.

Powers of i

i¹i²i³i⁴i⁵
i−1−i1i

The pattern repeats every 4, so iⁿ depends only on the remainder of n ÷ 4.

Limitations

  • Answers are decimals rounded to 10 significant figures. Exact surds like √3 are shown as 1.732050808.
  • Powers must be whole numbers. A non-integer power of a complex number has many values, and this page doesn't pick one for you.
  • Angles follow the principal value convention. Some textbooks use 0° to 360° instead, which just adds 360° to negative angles.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • (3 + 4i)(1 − 2i) = 11 − 2i ✓
  • (3 + 4i) ÷ (1 − 2i) = −1 + 2i ✓
  • |3 + 4i| = 5, argument ≈ 53.13010235° ✓
  • (1 + i)⁸ = 16 ✓
  • (1 + 2i)³ = −11 − 2i ✓
  • Cube roots of −8 include 1 + √3 i ✓
  • Polar to rectangular: 2∠30° = √3 + i ✓
  • Dividing by 0 is refused ✓
  • A malformed number is rejected ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

How do you multiply complex numbers?

Multiply out like brackets and replace i² with −1: (a + bi)(c + di) = (ac − bd) + (ad + bc)i. In polar form, multiply the moduli and add the angles.

How do you divide complex numbers?

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

What is an Argand diagram?

A graph of complex numbers, with the real part on the horizontal axis and the imaginary part on the vertical axis. The point's distance from the origin is the modulus and its angle is the argument.

What is the square root of −1?

i, and −i is the other square root. Choose the nth roots operation with z₁ = −1 and n = 2 to see both.

How do I convert a complex number to polar form?

Find r = √(a² + b²) and θ = atan2(b, a). Then z = r(cos θ + i sin θ). For 3 + 4i that's 5(cos 53.13° + i sin 53.13°).

Related calculators