Complex numbers calculator

Enter two complex numbers as a + bi, pick an operation, and see the result in both rectangular and polar form. The Argand plane on the right shows z₁, z₂, and the result as vectors.

Inputs

z₁ = a + bi

z₂ = c + di

Result
Rectangular
4 + 6i
Magnitude |z|
7.211
Argument θ
0.983 rad (56.31°)
Polar
7.211·e^(0.983i)
Argand plane

Operations

(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²), arg(z) = atan2(b, a)

Worked example

Multiply z₁ = 3 + 4i by z₂ = 1 + 2i:

  • Real part: 3·1 − 4·2 = 3 − 8 = −5
  • Imag part: 3·2 + 4·1 = 6 + 4 = 10
  • Result: −5 + 10i, with |z| = √125 ≈ 11.180 and θ ≈ 2.034 rad (116.57°).

In polar terms |z₁| = 5, |z₂| = √5, so |z₁·z₂| = 5√5 ≈ 11.180 ✓.

FAQ

Why use atan2 instead of atan(b/a)?

atan(b/a) collapses the four quadrants into two. atan2(b, a) preserves the quadrant correctly, returning a value in (−π, π].

What does division by 0 + 0i return?

"—" — there is no complex division by zero. Multiplication and addition handle any input.

Related calculators