Complex Number Calculator
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free complex number calculator. Add, subtract, multiply and divide a + bi numbers, raise to powers, take roots, and see the modulus and polar form.
- Modulus |z|
- 0
- Argument
- 0
- Polar form
- 0
- Conjugate
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the complex number calculator
- Enter z₁ in the form a + bi, for example 3+4i, 2-5i, -i or 7.
- Choose an operation: addition, subtraction, multiplication, division, a power, or the square root.
- Enter z₂ for the four arithmetic operations, or n for a power.
The complex number calculator shows the result in rectangular form (a + bi), with its modulus, argument in degrees, polar form and complex conjugate.
What is a complex number?
A complex number has a real part and an imaginary part, written a + bi, where i is the imaginary unit, defined by i² = −1. In 3 + 4i, the real part is 3 and the imaginary part is 4. Real numbers are complex numbers with an imaginary part of zero.
Complex numbers began as a way to solve equations like x² + 1 = 0, which have no real solutions. They turned out to be essential throughout mathematics, physics and engineering. Electrical engineers use them to analyse alternating current circuits, where j is often used instead of i. They appear in signal processing, control systems, quantum mechanics and fluid dynamics, and in the fast Fourier transform that underpins audio and image compression.
Adding and subtracting
Add or subtract the real and imaginary parts separately:
(a + bi) + (c + di) = (a + c) + (b + d)i
(a + bi) − (c + di) = (a − c) + (b − d)i
For example, (3 + 4i) + (1 − 2i) = 4 + 2i.
Multiplying
Multiply out the brackets and use i² = −1:
(a + bi)(c + di) = (ac − bd) + (ad + bc)i
For the default numbers, (3 + 4i)(1 − 2i) = 3 − 6i + 4i − 8i² = 3 − 2i + 8 = 11 − 2i.
Dividing
To divide, multiply the top and bottom by the complex conjugate of the divisor, which turns the bottom into a real number:
(a + bi) ÷ (c + di) = ((ac + bd) + (bc − ad)i) ÷ (c² + d²)
For (3 + 4i) ÷ (1 − 2i), multiply top and bottom by (1 + 2i). The bottom becomes 1 + 4 = 5. The top becomes (3 + 4i)(1 + 2i) = 3 + 6i + 4i + 8i² = −5 + 10i. So the result is (−5 + 10i) ÷ 5 = −1 + 2i.
Modulus and argument
Every complex number can be drawn as a point on the complex plane, also called an Argand diagram, with the real part along the horizontal axis and the imaginary part along the vertical axis.
- The modulus |z| is the distance from the origin: |a + bi| = √(a² + b²). For 3 + 4i, it's 5.
- The argument arg z is the angle from the positive real axis, measured anticlockwise. The complex number calculator uses atan2(b, a), which puts the angle in the correct quadrant, and reports it between −180° and 180°. For 3 + 4i, it's about 53.13°.
Polar form
Using the modulus r and argument θ, a complex number can be written in polar form:
z = r(cos θ + i sin θ)
Euler's formula shows this equals r e^(iθ). Polar form makes multiplication and division easy: multiply the moduli and add the arguments, or divide the moduli and subtract the arguments. The polar to rectangular converter converts between the two forms.
Powers and De Moivre's theorem
To raise a complex number to a power, use De Moivre's theorem:
zⁿ = rⁿ(cos nθ + i sin nθ)
For example, 1 + i has a modulus of √2 and an argument of 45°. Its 8th power has a modulus of (√2)⁸ = 16 and an argument of 8 × 45° = 360°, which is the same as 0°. So (1 + i)⁸ = 16. The complex number calculator accepts any real power n.
Square roots
Every non-zero complex number has two square roots, which are negatives of each other. The complex number calculator gives the principal root:
√z = √r × (cos θ/2 + i sin θ/2)
For example, the square roots of −4 are 2i and −2i, and the principal root is 2i. The principal square root of 3 + 4i is 2 + i, because (2 + i)² = 4 + 4i + i² = 3 + 4i.
The complex conjugate
The conjugate of a + bi is a − bi: the same real part with the sign of the imaginary part flipped. On the complex plane, it's the reflection across the real axis. Multiplying a number by its conjugate gives a real number equal to the modulus squared: (a + bi)(a − bi) = a² + b². That's why conjugates are used for division.
A worked example
Simplify (2 + 3i)(4 − i) ÷ (1 + i).
- Multiply: (2 + 3i)(4 − i) = 8 − 2i + 12i − 3i² = 8 + 10i + 3 = 11 + 10i.
- Divide by 1 + i: multiply top and bottom by 1 − i. The bottom becomes 2. The top becomes (11 + 10i)(1 − i) = 11 − 11i + 10i − 10i² = 21 − i.
- Result: (21 − i) ÷ 2 = 10.5 − 0.5i.
Use the complex number calculator twice, first for the multiplication and then for the division, to check each step.
Who uses a complex number calculator
Students of algebra, calculus and engineering use it to check homework. Electrical engineers use it for impedance and phasor calculations in AC circuits. Signal processing and control engineers use complex numbers for frequency analysis and stability. Physicists use them in wave mechanics and quantum theory.
Need more customers from Google?
This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.
Complex numbers in AC circuits
In alternating current circuits, resistors, inductors and capacitors are described by their impedance, a complex number. A resistor has an impedance of R, an inductor jωL and a capacitor 1 ÷ (jωC), where ω is the angular frequency. Impedances in series add, just as complex numbers do. The modulus of the total impedance gives the ratio of voltage to current, and the argument gives the phase angle between them. For example, a 30-ohm resistor in series with an inductor of 40 ohms reactance has an impedance of 30 + 40j ohms, with a modulus of 50 ohms and a phase angle of about 53.13°.
Roots of polynomials
Complex numbers make every polynomial equation solvable. The fundamental theorem of algebra says a polynomial of degree n has exactly n roots, counting repeats, when complex roots are included. For a quadratic with real coefficients and a negative discriminant, the two roots are complex conjugates. The quadratic formula calculator finds them.
Common mistakes
- Forgetting that i² = −1 when multiplying.
- Using arctan(b ÷ a) instead of atan2, which gives the wrong angle in the second and third quadrants.
- Forgetting the second square root. Every non-zero number has two.
- Dividing by multiplying by the original divisor instead of its conjugate.
Entering numbers
The complex number calculator accepts several forms. You can type 3+4i, 3 + 4i or 3+4j, since engineers often write j for the imaginary unit. Purely real numbers such as 7, and purely imaginary numbers such as -i or 2.5i, work too. Decimal parts are fine, for example 0.5-1.25i. If you get an error, check that there's only one real part and one imaginary part, and that the i or j comes after the imaginary number.
Negative and fractional powers
Powers don't have to be whole numbers. A power of −1 gives the reciprocal: (1 + i)⁻¹ = 0.5 − 0.5i, because dividing 1 by 1 + i and multiplying top and bottom by the conjugate gives (1 − i) ÷ 2. A power of 0.5 gives the principal square root, the same as the square root option. Other fractional powers give the principal value, found with De Moivre's theorem using the argument between −180° and 180°. Like square roots, fractional powers have other values too: z^(1/n) has n different roots, evenly spaced around a circle on the complex plane, and the calculator shows the one with the smallest angle.
Visualising operations
Thinking of complex numbers as points or arrows on the complex plane makes the operations easier to picture. Adding two numbers places their arrows head to tail, just like adding vectors. Multiplying by a number with modulus r and argument θ stretches the arrow by r and rotates it by θ. Multiplying by i, for instance, rotates any number by exactly 90° anticlockwise without changing its length: i × (3 + 4i) = −4 + 3i. Taking the conjugate reflects the arrow across the real axis.
Sources and further reading
- Complex number on Wikipedia: definitions, operations and history.
- De Moivre's formula on Wikipedia: powers and roots of complex numbers.
- Euler's formula on Wikipedia: the link between exponentials and trigonometry.
Frequently asked questions
How do I multiply complex numbers?
Multiply out the brackets and replace i² with −1: (a + bi)(c + di) = (ac − bd) + (ad + bc)i.
How do I divide complex numbers?
Multiply the top and bottom by the conjugate of the divisor, then simplify.
What is the modulus of a complex number?
Its distance from the origin: √(a² + b²).
What is the argument?
The angle from the positive real axis, found with atan2(b, a).
Can I enter numbers like 5 or -2i?
Yes. Real numbers and purely imaginary numbers are both accepted.
Is the complex number calculator free?
Yes. It's free, needs no sign-up, and works in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.