Complex Number Calculator

A free complex number calculator that does arithmetic with a+bi numbers and shows every result in rectangular, polar and exponential form.

Type a+bi (i or j) or polar form r∠θ. Examples: 3+4i · −2.5i · 5 · 3−4j · 5∠53.13

Result

(3 + 4i) × (1 − 2i) =

11 − 2i
Polar form r∠θ
11.1803398875 ∠ −10.3048464688°
Exponential form r·e^(iθ)
11.1803398875 · e^(−i·10.3048464688°)
Modulus |z|
11.1803398875
Argument arg z
−10.3048464688°

Field guide

FieldWhat it doesExample
Input
Number Z₁, Number Z₂Type the number as a+bi. The imaginary unit can be i or j, in upper or lower case.3+4i, −2.5i, 5, 3−4j
r∠θPolar form. The angle is read in the selected angle unit, or in the unit you add after it (° or rad).2∠90 = 2i
Exponent nShown only for Z₁ⁿ (power). A non-integer exponent gives the principal value.(−4)^0.5 = 2i
Angle unitApplies to the argument, to θ in the polar and exponential forms, and to angles typed as r∠θ.arg(i) = 90° = 1.57079632679 rad
Operation
Z₁ × Z₂ (multiply)(a + bi)(c + di) = (ac − bd) + (ad + bc)i(3 + 4i) × (1 − 2i) = 11 − 2i
Z₁ ÷ Z₂ (divide)Multiplies top and bottom by the conjugate of Z₂: (a + bi) ÷ (c + di) = [(ac + bd) + (bc − ad)i] ÷ (c² + d²)(3 + 4i) ÷ (1 − 2i) = −1 + 2i
Z₁ⁿ (power)De Moivre’s formula zⁿ = rⁿ(cos nθ + i sin nθ)(1 + i)^8 = 16
Convert Z₁ (rectangular ↔ polar)Shows Z₁ itself as a+bi, polar and exponential form. A number typed as r∠θ comes out as a+bi.3 + 4i → 5∠53.1301023542°
Conjugate of Z₁Flips the sign of the imaginary part: a + bi → a − bi3 + 4i → 3 − 4i
|Z₁| (modulus)|z| = √(a² + b²)|3 + 4i| = 5
arg Z₁ (argument)θ = atan2(b, a), which takes the quadrant into account, shown in the range −180° < θ ≤ 180°.arg(−3 − 4i) = −126.869897646°
√Z₁ (square root)The principal root, the one whose real part is 0 or more.√(3 + 4i) = 2 + i, √(−4) = 2i
1/Z₁ (reciprocal)1 ÷ (a + bi) = (a − bi) ÷ (a² + b²)1 ÷ (3 + 4i) = 0.12 − 0.16i
e^Z₁ (exponential)e^(a + bi) = e^a(cos b + i sin b). b is always in radians, whatever the angle unit.e^(3.14159265359i) = −1
ln Z₁ (natural log)ln z = ln|z| + i·arg z. The imaginary part is always in radians, whatever the angle unit.ln(−1) = 3.14159265359i
Result
Polar form r∠θ, Exponential form r·e^(iθ)The result written with its modulus r and argument θ, with θ in the selected angle unit.11 − 2i = 11.1803398875∠−10.3048464688°
Modulus |z|, Argument arg zThe result’s r and θ on their own.−1 + 2i → 2.2360679775, 116.565051177°

Input rules

  • Write each part only once: 3+4i, 4i+3, 3+j4 and 2*i work, but 3+4i+2 is an error.
  • π and fractions can’t be typed, so use decimals such as 3.14159265359 or 0.5. A comma is read as a decimal point, so don’t use thousands separators (1,000 is read as 1).

Frequently asked questions

The argument or polar conversion isn’t what I expected.

Check the angle unit first. In radians, 2∠30 means 30 radians and gives 0.308502899775 − 1.97606324819i. If you type the unit, as in 2∠30°, the angle is read the same whatever the setting.

Why doesn’t 5∠53.13 give exactly 3 + 4i?

53.13° is a rounded angle, so the result is rounded too: 3.00000714566 + 3.99999464074i. Multiples of 90° are converted exactly (2∠90 = 2i).

Why is the argument of −3 − 4i −126.87° and not 53.13°?

The argument is found with atan2(b, a), which takes the quadrant into account. −3 − 4i lies in the third quadrant, so its argument is about −126.869897646°; arguments are always shown greater than −180° and at most 180°.

Why do square roots and logarithms show only one value?

Only the principal value is shown, the one whose argument is greater than −180° and at most 180°. The other square root of −4 is −2i, and the other values of ln z differ from the principal one by whole multiples of 2πi.

What do the error messages mean?

Dividing by Z₂ = 0, raising 0 to a negative power, ln 0 and the argument of 0 are undefined, so they give an error. If the result is too large, as with e^1000, the calculator says it cannot calculate it.