Math · free · step by step

Complex Number Calculator

Add, subtract, multiply, divide and raise complex numbers to powers, find square roots and all n-th roots, and convert between a + bi, polar and exponential form, with every step and an Argand diagram.

Answer

Step by step

Argand diagram

All roots

Worked examples

Complex number examples with answers

TypeExpressionAnswer
Multiply(3 + 4i)(1 − 2i)11 − 2i
Divide(2 + 3i) / (1 − i)−1/2 + 5/2·i
Add(5 − 2i) + (−1 + 6i)4 + 4i
Modulus|3 + 4i|5
Square root of a negativesqrt(−16)4i
Square root of a complex numbersqrt(3 + 4i)2 + i
Power (De Moivre)(1 + i)^1032i
Polar to rectangular2∠45°√2 + √2·i
Euler’s identitye^(iπ)−1
Powers of ii^23−i
Reciprocal1 / (2 − i)2/5 + 1/5·i

Formulas

Rectangular, polar and exponential form

z=a+bi=r(cosθ+isinθ)=reiθr=a2+b2,θ=atan2(b,a)(r∠θ)n=rn∠nθ

Adding and subtracting is easiest in a + bi form; multiplying, dividing, powers and roots are easiest in polar form, where moduli multiply and angles add. Euler’s formula e^(iθ) = cos θ + i sin θ links the two, and with θ = π gives e^(iπ) + 1 = 0.

More math

Other math tools

Questions

Complex Number Calculator FAQ

Free, private and works offline: everything is worked out in your browser.

How do you multiply complex numbers?

Multiply out the brackets like (a + b)(c + d) and replace i² with −1: (3 + 4i)(1 − 2i) = 3 − 6i + 4i − 8i² = 3 − 2i + 8 = 11 − 2i.

How do you divide complex numbers?

Multiply the top and bottom by the conjugate of the bottom, which makes the bottom a real number: (2 + 3i)/(1 − i) = (2 + 3i)(1 + i)/2 = (−1 + 5i)/2 = −1/2 + 5/2·i.

What are the modulus and argument?

The modulus |z| = √(a² + b²) is the distance from 0 on the Argand diagram; the argument θ is the angle from the positive real axis, found with atan2(b, a) so the quadrant is right. For 3 + 4i, |z| = 5 and θ ≈ 53.13°.

How do you convert to polar form?

Write z = r∠θ = r(cos θ + i sin θ) = re^(iθ) with r = |z| and θ = arg z. 1 + i = √2∠45° = √2·e^(iπ/4). To go back, a = r cos θ and b = r sin θ: 2∠45° = √2 + √2·i.

How do you raise a complex number to a power?

Use De Moivre’s theorem: (r∠θ)ⁿ = rⁿ∠nθ. 1 + i = √2∠45°, so (1 + i)¹⁰ = 32∠450° = 32∠90° = 32i.

How do you find the roots of a complex number?

A number has n different n-th roots, all with modulus r^(1/n), spaced 360°/n apart around a circle. The cube roots of 8 are 2, −1 + √3·i, −1 − √3·i. The calculator lists all of them and draws them on the Argand diagram.

What is i to a power, like i²³?

The powers of i repeat every four: i, −1, −i, 1. Divide the power by 4 and use the remainder: 23 = 4 × 5 + 3, so i²³ = i³ = −i.

How do I type complex numbers?

Use i (or j) for √−1: 3+4i, (1+i)(2−i), 5/(1−2i). Polar numbers: 2∠45° or 2cis(45). Functions: sqrt, abs or |z|, arg, conj, re, im, exp, ln, sin, cos and tan, plus π and e. Choose DEG or RAD for angles.

Is the complex number calculator free and private?

Yes. Everything is worked out in your browser, nothing you type is sent anywhere, and there is no sign-up. The link updates as you type so you can share a calculation.

Built and maintained by Zubaer Ahammed · Updated · Runs on your device; nothing you add is uploaded