Complex Number Calculator
A complex number has the form a + bi, where i² = −1. For z₁ = 3 + 4i and z₂ = 1 − 2i, the sum is 4 + 2i, the product is 11 − 2i, the quotient is −1 + 2i, and |z₁| = 5 with an argument of 53.13°.
Last updated · By S. Dilshan · Runs in your browser, nothing is uploaded
Step-by-Step Solution
What Are Complex Numbers?
Complex numbers extend the real numbers by adding a new number, i, defined by i² = −1. A complex number is written a + bi, where a is the real part and b is the imaginary part. They were invented so that every polynomial equation has a solution: x² + 1 = 0 has none among the reals but has the two solutions x = ±i among the complex numbers.
Despite the name, complex numbers are far from imaginary in practice. They are essential for electrical engineering, signal processing, quantum mechanics and fluid dynamics. Geometrically, you can picture a + bi as the point (a, b) on a plane, the complex plane, where distance from the origin is the modulus and the angle from the positive real axis is the argument.
Powers of i
| i⁰ | i¹ | i² | i³ | i⁴ | i⁵ |
|---|---|---|---|---|---|
| 1 | i | −1 | −i | 1 | i |
The pattern repeats every four powers.
Complex Number Operations
- Add and subtract the real and imaginary parts separately.
- Multiply as with brackets and replace i² by −1.
- To divide, multiply the top and bottom by the conjugate of the denominator, which makes the denominator real.
- The product z · z̄ = a² + b² = |z|² is always a non-negative real number.
- In polar form, z = |z|(cos θ + i sin θ), and Euler’s formula writes it as |z|e^(iθ).
Complex numbers appear as the roots of quadratics with a negative discriminant. See the quadratic equation solver.
Worked Examples: z₁ = 3 + 4i and z₂ = 1 − 2i
- Sum: (3 + 1) + (4 − 2)i = 4 + 2i.
- Difference: (3 − 1) + (4 + 2)i = 2 + 6i.
- Product: (3 + 4i)(1 − 2i) = 3 − 6i + 4i − 8i² = 3 − 2i + 8 = 11 − 2i.
- Quotient: multiply top and bottom by the conjugate 1 + 2i: (3 + 4i)(1 + 2i) ÷ (1 + 4) = (3 + 6i + 4i − 8) ÷ 5 = (−5 + 10i) ÷ 5 = −1 + 2i.
Modulus, Argument and Polar Form of z₁
- Modulus: |z₁| = √(9 + 16) = 5.
- Argument: atan2(4, 3) = 53.13°.
- Conjugate: 3 − 4i, and z₁ · z̄₁ = 25 = |z₁|².
- Polar form: 5(cos 53.13° + i sin 53.13°).
- |z₂| = √5 = 2.236.
The Geometry
Multiplying complex numbers multiplies their moduli and adds their arguments. |z₁ z₂| = 5 × 2.236 = 11.18, which equals |11 − 2i| = √(121 + 4) = 11.18 ✓. Multiplying by i rotates a number by 90° counter-clockwise.
How to Use This Complex Number Calculator
- Enter the real part a and the imaginary part b of the first number z₁ = a + bi.
- Enter the real part c and the imaginary part d of the second number z₂ = c + di.
- Read the sum, difference, product and quotient, then the modulus, argument, conjugate and polar form of z₁, and |z₂|.
Division by z₂ = 0 is undefined, so at least one of c and d must be non-zero.
Where Complex Numbers Are Used
- Electrical engineering: AC circuits use complex impedance, where the imaginary part represents capacitors and inductors.
- Signal processing: the Fourier transform turns signals into complex numbers describing frequency content.
- Physics: wave functions in quantum mechanics are complex-valued.
- Mathematics: solving polynomial equations and describing fractals such as the Mandelbrot set.
- Computer graphics and control: rotations in the plane and system stability analysis.
What Are the Most Common Mistakes With the Complex Number Calculator?
- Treating i² as +1. It is −1, which is why 4i · (−2i) = −8i² = +8.
- Dividing without the conjugate. The denominator must be made real first.
- Adding real and imaginary parts together. 3 + 4i is not 7.
- Using atan(b/a) for the argument. Use atan2 so the quadrant is correct, because atan alone gives the wrong angle when a is negative.
- Taking |z| as a + b. It is √(a² + b²).
- Ordering complex numbers. Complex numbers cannot be ranked as greater or less.
Where Can You Verify These Formulas?
The definitions and formulas on this page follow standard references. Check them against these sources:
- OpenStax: algebra and calculus textbooks
- NIST Digital Library of Mathematical Functions
- Wolfram MathWorld
Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.
Frequently Asked Questions
What is a complex number?
A number of the form a + bi, where a and b are real numbers and i² = −1. a is the real part and b is the imaginary part.
How do you multiply complex numbers?
Expand like brackets and use i² = −1. (3 + 4i)(1 − 2i) = 3 − 6i + 4i − 8i² = 11 − 2i.
How do you divide complex numbers?
Multiply the numerator and denominator by the conjugate of the denominator, then simplify. (3 + 4i) ÷ (1 − 2i) = −1 + 2i.
What is the modulus of a complex number?
Its distance from the origin on the complex plane, √(a² + b²). For 3 + 4i it is 5.
What is the conjugate of a complex number?
The same number with the sign of the imaginary part reversed. The conjugate of 3 + 4i is 3 − 4i.
What is polar form?
Writing z = r(cos θ + i sin θ), where r is the modulus and θ is the argument. It makes multiplication and powers simple.