Toolvito

Works on this device

Complex Number Calculator

Type complex numbers in the form a + bi and work with them: the four operations, the conjugate, the modulus and argument, the polar and exponential forms, powers and roots. Results are exact fractions where the parts allow it, with the working shown.

Enter your values

Works out z₁ + z₂, z₁ − z₂, z₁ × z₂ or z₁ ÷ z₂ exactly, with the working.

Your values

Type a + bi, such as 3 - 4i, -2.5 + i, 1/2 - 3/4i, 5 or 2i. You can write j in place of i.

Type a + bi, such as 3 - 4i, -2.5 + i, 1/2 - 3/4i, 5 or 2i. You can write j in place of i.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose what you want to work out, for example Add, subtract, multiply or divide.
  2. Type each number as a + bi: 3 - 4i, -2.5 + i, 1/2 - 3/4i, 5 or 2i. You can write j in place of i, as engineers do.
  3. Choose Calculate. The answer comes as an exact a + bi and in decimals, with the working where it helps.

How the page reads a complex number

  • A number has at most one real part and one imaginary part, in either order: 4i + 3 is the same as 3 + 4i.
  • The parts may be whole numbers, decimals or fractions. A fraction before i belongs to i: 3/4i means (3/4)i. The page writes it back as 3/4 i.
  • i, -i, i4 and 4*i are read. Spaces do not matter, but two numbers next to each other (such as 1 1/2) are refused: write 3/2.
  • Square roots, π, e and powers inside the number are not read. For the square root of a negative number, such as √−16 = 4i, use the Root Calculator or the square-root option here with -16.

The formulas

  • Sum and difference: add or subtract the real parts and the imaginary parts.
  • Product: (a + bi)(c + di) = (ac − bd) + (ad + bc)i, because i² = −1.
  • Quotient: multiply the top and the bottom by the conjugate c − di. The bottom becomes c² + d².
  • Conjugate of z = a + bi is z̄ = a − bi. Modulus |z| = √(a² + b²). z × z̄ = |z|².
  • Argument θ: the angle from the positive real axis, worked out with atan2(b, a). The page gives the principal value from −180° to 180° (−π to π), or from 0° to 360° if you choose it.
  • Polar form z = r(cos θ + i sin θ), also written r∠θ. Exponential form z = r e^(iθ), by Euler's formula.
  • De Moivre's theorem: z^n = r^n (cos nθ + i sin nθ).
  • n-th roots: r^(1/n) (cos((θ + 360°k) ÷ n) + i sin((θ + 360°k) ÷ n)) for k = 0, 1, ..., n − 1. They lie on a circle, 360° ÷ n apart.
  • e^z = e^a (cos b + i sin b). Ln z = ln|z| + i Arg z (the principal value).

Worked examples

(3 + 4i)(1 − 2i) = (3 × 1 − 4 × (−2)) + (3 × (−2) + 4 × 1)i = 11 − 2i. The quotient (3 + 4i) ÷ (1 − 2i) is (3 + 4i)(1 + 2i) ÷ 5 = (−5 + 10i) ÷ 5 = −1 + 2i.

z = 1 + i has the modulus √2 and the argument 45° (π/4), so it is √2 (cos(π/4) + i sin(π/4)) = √2 e^(iπ/4). Its 8th power is (√2)^8 = 16 at the angle 8 × 45° = 360°, so (1 + i)^8 = 16.

The square roots of 3 + 4i are ±(2 + i), because (2 + i)² = 4 + 4i + i² = 3 + 4i.

r = 2 at θ = 60° is 2 cos 60° + 2i sin 60° = 1 + √3 i.

Limits you should know

  • Sums, products, quotients, conjugates, reciprocals and whole-number powers are exact when the parts are whole numbers, decimals or fractions. An exact power may have up to 4,000 digits.
  • Arguments, roots, e^z and Ln z are decimals with 10 significant digits. Arguments that are multiples of 45° are also written exactly with π, and the square roots are written exactly when |z| is a whole number or a fraction.
  • The page works with one or two numbers at a time. It does not solve equations, find the complex zeros of a polynomial, work with matrices of complex numbers or draw the complex plane.
  • For exponents and scientific notation with real numbers, use the Exponent Calculator or the Scientific Notation Converter.

Related tools