Complex number calculator — add, multiply, divide, powers and roots

Type two complex numbers such as 3 + 4i and 1 − 2i, choose an operation, and get the result in a + bi form and in polar form, with the modulus, argument and conjugate of each input.

Live demo · real result from this tool
Result11 − 2i
Polar form
11.18033989 ∠ -10.30484647° = 11.18033989·e^(-0.1798534998i)
Modulus |result|
11.18033989
|z₁|
5
arg z₁
0.927295218 rad (53.13010235°)
z₁ conjugate
3 − 4i
|z₂|
2.236067977
arg z₂
-1.107148718 rad (-63.43494882°)
z₂ conjugate
1 + 2i

Working

(a + bi)(c + di) = (ac − bd) + (ad + bc)i= (3·1 − 4·-2) + (3·-2 + 4·1)i = 11 − 2i

Processed on your device — nothing is uploaded.

How to use the complex number calculator

  1. Type the first number in z₁, such as 3 + 4i.
  2. Choose the Operation: z₁ + z₂, z₁ − z₂, z₁ × z₂, z₁ ÷ z₂, z₁ ^ z₂ (principal value), or √z₁ (both roots).
  3. Type the second number in z₂. This box is hidden for square roots.
  4. Read the Result, then its Polar form and Modulus.
  5. For multiplication and division, check the Working box, which shows the method with your numbers.

What it does and when to use it

Complex numbers have a real part and an imaginary part, where i² = −1. They appear in A-level and university maths, in AC circuits and signal processing, and whenever a quadratic has a negative discriminant. Division and powers are the steps students most often get wrong by hand, so this tool shows the working for those.

To find the complex roots of an equation such as x² + 2x + 5 = 0, use the quadratic solver or, for cubics, the cubic solver. The trigonometry calculator helps when converting angles between polar and rectangular form.

How it works

With z₁ = a + bi and z₂ = c + di:

  • Add and subtract: (a ± c) + (b ± d)i.
  • Multiply: (ac − bd) + (ad + bc)i.
  • Divide: multiply top and bottom by the conjugate c − di, then divide by c² + d².
  • Modulus: |z| = √(a² + b²). Argument: arg z = atan2(b, a).
  • Square root: re = √((|z| + a)/2), im = ±√((|z| − a)/2), with the sign of b.
  • Power: whole numbers up to 64 by repeated squaring; otherwise z^w = e^(w ln z).

Step by step for (3 + 4i) ÷ (1 − 2i):

  1. The conjugate of the bottom is 1 + 2i.
  2. Top: (3 + 4i)(1 + 2i) = 3 + 6i + 4i + 8i² = 3 + 10i − 8 = −5 + 10i.
  3. Bottom: (1 − 2i)(1 + 2i) = 1² + 2² = 5.
  4. Divide each part by 5: −1 + 2i.

The tool’s working line reads (3 + 4i)(1 + 2i) / |z₂|² = (-5 + 10i) / 5 = -1 + 2i.

Worked examples

Multiplication. (3 + 4i)(1 − 2i) gives Result: 11 − 2i, from (3·1 − 4·(−2)) + (3·(−2) + 4·1)i.

Division. (3 + 4i) ÷ (1 − 2i) = −1 + 2i, with modulus 2.236067977 and polar angle 116.5650512°.

Square root of a negative. √(−4) gives ±(2i), with Principal root: 2i and other root −2i.

i to the power i. i ^ i gives Result: 0.2078795764, a real number equal to e^(−π/2).

Limits and tips

  • Dividing by 0 + 0i is undefined and gives a message. 0 raised to a power whose real part is 0 or negative also gives a message, except 0⁰, which is taken as 1.
  • Very small parts, below about 10⁻¹² of the larger part, are shown as 0 to hide rounding noise.
  • All calculations stay in your browser.

Frequently asked questions

How do I type a complex number?
As a + bi, for example 3+4i, 3 - 4i, -2i, i or 5. Spaces are ignored, and j works in place of i, as engineers write it. Write the real part first or last, but use only one i.
Why does the square root give two answers?
Every non-zero complex number has two square roots, one the negative of the other. √(−4) is 2i and −2i, because both squared give −4. The principal root is the one with a positive real part, or a positive imaginary part when the real part is 0.
What is the polar form?
It writes z as a distance and an angle, r ∠ θ, or r·e^(θi). r is the modulus |z| = √(a² + b²) and θ is the argument, the angle from the positive real axis. The tool gives θ in degrees in the ∠ form and in radians in the exponential form.
What does "principal value" mean for powers?
For non-whole powers there are many possible answers. The tool uses z^w = e^(w ln z) with the argument of z between −180° and 180°, which is the standard choice. Whole-number powers up to 64 are worked out by repeated multiplication instead.
How precise are the results?
The tool uses double-precision floating point and shows 10 significant figures, so tiny rounding effects can appear in the last digit.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close