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
Check these values
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.
Your result
How it was worked out
How to use this calculator
- Choose what you want to work out, for example Add, subtract, multiply or divide.
- Type each number as a + bi:
3 - 4i,-2.5 + i,1/2 - 3/4i,5or2i. You can writejin place ofi, as engineers do. - 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 + 3is the same as3 + 4i. - The parts may be whole numbers, decimals or fractions. A fraction before i belongs to i:
3/4imeans (3/4)i. The page writes it back as3/4 i. i,-i,i4and4*iare read. Spaces do not matter, but two numbers next to each other (such as1 1/2) are refused: write3/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.