Complex Number Calculator
Enter two complex numbers a + bi and choose an operation. Calvo gives the result with modulus, argument, conjugate and polar form.
Complex number calculator
Formulas
| Operation | Formula |
|---|---|
| Add / subtract | (a + bi) ± (c + di) = (a ± c) + (b ± d)i |
| Multiply | (a + bi)(c + di) = (ac − bd) + (ad + bc)i |
| Divide | (a + bi)/(c + di) = [(ac + bd) + (bc − ad)i] / (c² + d²) |
| Modulus | |z| = √(a² + b²) |
| Argument | θ = atan2(b, a) |
| Conjugate | z̄ = a − bi |
| Polar form | z = r(cos θ + i sin θ) |
| De Moivre | zn = rn(cos nθ + i sin nθ) |
Worked example
(3 + 4i)(1 − 2i) = (3·1 − 4·(−2)) + (3·(−2) + 4·1)i = 11 − 2i. The modulus of 3 + 4i is √(9 + 16) = 5.
What a complex number means
A complex number a + bi has a real part a and an imaginary part b, where i is defined by i² = −1. It can be drawn as a point (a, b) on a plane, called the Argand diagram, with the real axis across and the imaginary axis up. The modulus |z| is the distance from the origin, and the argument θ is the angle from the positive real axis. This picture explains most of the rules: adding complex numbers is like adding vectors, and multiplying them multiplies the moduli and adds the angles.
Worked example: division with the conjugate
Divide (3 + 4i) by (1 − 2i). Multiply top and bottom by the conjugate of the denominator, 1 + 2i.
- Numerator: (3 + 4i)(1 + 2i) = 3 + 6i + 4i + 8i² = 3 + 10i − 8 = −5 + 10i
- Denominator: (1 − 2i)(1 + 2i) = 1 + 4 = 5
- Result: (−5 + 10i) ÷ 5 = −1 + 2i
Check by multiplying back: (−1 + 2i)(1 − 2i) = −1 + 2i + 2i − 4i² = −1 + 4i + 4 = 3 + 4i. ✓
Powers and roots in polar form
For z = 1 + i, the modulus is √2 and the angle is 45°. De Moivre's theorem gives z⁸ = (√2)⁸ (cos 360° + i sin 360°) = 16 × 1 = 16. You can confirm it by squaring repeatedly: (1 + i)² = 2i, (1 + i)⁴ = (2i)² = −4, (1 + i)⁸ = 16. For square roots, √(−4) = ±2i, and √(3 + 4i) = ±(2 + i), because (2 + i)² = 4 + 4i − 1 = 3 + 4i.
Mistakes to avoid
- Forgetting i² = −1 when multiplying. The i² term turns into a real number.
- Wrong quadrant for the angle. For z = −1 − i the angle is −135° (or 225°), not 45°. A plain arctangent of b/a loses the quadrant, which is why the calculator uses atan2.
- Dividing without the conjugate. You cannot leave i in the denominator of a final answer.
Complex numbers appear in the intermediate maths course and, later, in electrical engineering, where impedance such as R + jωL is a complex quantity, and in signals and control systems.
FAQ
How do I multiply complex numbers?
Use (a + bi)(c + di) = (ac - bd) + (ad + bc)i, because i squared is -1.
How do I divide complex numbers?
Multiply the top and bottom by the conjugate of the denominator, then divide by c squared plus d squared.
What is the modulus of a complex number?
The distance from the origin: square root of a squared plus b squared.
What angle does Calvo give?
The principal argument between -180 and 180 degrees, also shown in radians.
Does the square root show both roots?
Yes. A non-zero complex number has two square roots, the principal one and its negative.
Why does the angle use atan2 instead of arctan?
arctan(b/a) cannot tell (1, 1) from (−1, −1), since both give b/a = 1. atan2(b, a) looks at the signs of both and returns the correct angle between −180° and 180°.
Is i the same as j?
Yes. Mathematics uses i and electrical engineering uses j so that i can stay free for current. The rules are identical.