Algebra & Equations

Complex Number Calculator

Add, subtract, multiply, divide and raise complex numbers to powers, or find the conjugate, modulus, angle and square roots, with every step shown.

Try

Type a + bi, such as 3+4i, -2i or 5, or polar form r<θ in degrees, such as 5<53.13.

For powers, z₂ is the exponent: a whole number uses De Moivre’s theorem; any other value gives the principal power.

Result

(3 + 4i) × (1 − 2i): 11 − 2i

(3 + 4i) × (1 − 2i)

11−2i11 - 2i

Polar form 5√5∠−10.30484647°

Rectangular form
11−2i11 - 2i
Polar form (degrees)
55∠−10.30484647∘5\sqrt{5}\angle -10.30484647^\circ
Polar form (radians)
5√5∠−0.1798534998 rad
Exponential form
55e−0.1798534998i5\sqrt{5}\,e^{{-0.1798534998}i}
Modulus
555\sqrt{5}
Argument
−10.30484647° = −0.1798534998 rad
Real and imaginary parts
Re = 11, Im = −2

(3 + 4i) × (1 − 2i) = 11 − 2i. This point is 11.18033989 units from the origin at an angle of −10.30484647°.

Argand diagram
z₁z₂z₁z₂
Step-by-step working (3 steps)
  1. Multiply out the brackets

    Multiply every term of the first number by every term of the second (FOIL).

    (3+4i)(1−2i)=3⋅1+3⋅(−2)i+4⋅1i+4⋅(−2)i2\left(3 + 4i\right)\left(1 - 2i\right) = 3\cdot1 + 3\cdot\left(-2\right)i + 4\cdot1i + 4\cdot\left(-2\right)i^2
  2. Use i² = −1 and collect terms

    =(ac−bd)+(ad+bc)i=(3−(−8))+(−6+4)i=11−2i= (ac - bd) + (ad + bc)i = \left(3 - \left(-8\right)\right) + \left(-6 + 4\right)i = 11 - 2i
  3. Check in polar form

    Moduli multiply and arguments add: 5 × 2.236067977 = 11.18033989, and 53.13010235° + (−63.43494882)° gives −10.30484647° (up to a multiple of 360°).

Type each number as a+bia + bi; pure imaginary numbers such as 5i5i work too. The answer comes in rectangular form, polar form r∠θr\angle\theta and exponential form reiθre^{i\theta}, where r=a2+b2r = \sqrt{a^2 + b^2}, and is plotted on an Argand diagram.

By Hira Noor, mathematicianLast reviewed Free, no sign-up, runs in your browserReport a problem

How to use this calculator

  1. Type z₁ as a + bi, for example 3+4i, -2i, 5 or 0.5-1.5i, or in polar form as r∠θ with the angle in degrees, such as 5<53.13 (type < for ∠, and add rad for radians). Write j instead of i, as in 3+4j, and the answer uses j too.
  2. Choose the operation. Add, subtract, multiply, divide and power use a second number z₂; conjugate, modulus, argument (the angle) and square roots only use z₁.
  3. For a power, z₂ is the exponent. A whole number such as 8 uses De Moivre’s theorem; a complex exponent such as i gives the principal value. Powers of i itself repeat every four steps, as the imaginary numbers guide shows.
  4. Read the answer in rectangular form at the top, then the polar and exponential forms, the modulus and the angle underneath.
  5. Open the step-by-step working to check each line of the arithmetic, or pick one of the examples above the form to see a full solution.

Formulas

Addition and subtraction

(a+bi)±(c+di)=(a±c)+(b±d)i(a + bi) \pm (c + di) = (a \pm c) + (b \pm d)i

Plain-text formula: (a + bi) ± (c + di) = (a ± c) + (b ± d)i

Combine the real parts and the imaginary parts separately, the same way you collect like terms in algebra.

Multiplication and division

(a+bi)(c+di)=(ac−bd)+(ad+bc)i,a+bic+di=(a+bi)(c−di)c2+d2(a + bi)(c + di) = (ac - bd) + (ad + bc)i, \qquad \frac{a + bi}{c + di} = \frac{(a + bi)(c - di)}{c^2 + d^2}

Plain-text formula: (a + bi)(c + di) = (ac − bd) + (ad + bc)i, (a + bi)/(c + di) = ((a + bi)(c − di))/(c^2 + d^2)

Multiply out the brackets and use i2=−1i^2 = -1. To divide, multiply the top and bottom by the conjugate of the denominator, which turns the denominator into the real number c2+d2c^2 + d^2.

Polar and exponential form

a+bi=r(cos⁡θ+isin⁡θ)=reiθ,r=a2+b2,θ=atan2(b,a)a + bi = r(\cos\theta + i\sin\theta) = re^{i\theta}, \quad r = \sqrt{a^2 + b^2}, \quad \theta = \operatorname{atan2}(b, a)

Plain-text formula: a + bi = r(cos θ + i sin θ) = re^(iθ), r = √(a^2 + b^2), θ = atan2(b, a)

The modulus r is the distance from 0, and the argument θ is the angle from the positive real axis, taken in (−180°, 180°]. Euler’s formula eiθ=cos⁡θ+isin⁡θe^{i\theta} = \cos\theta + i\sin\theta links the two forms.

De Moivre’s theorem

[r(cos⁡θ+isin⁡θ)]n=rn(cos⁡nθ+isin⁡nθ)\left[r(\cos\theta + i\sin\theta)\right]^n = r^n(\cos n\theta + i\sin n\theta)

Plain-text formula: [r(cos θ + i sin θ)]^n = r^n(cos nθ + i sin nθ)

A whole-number power raises the modulus to the power n and multiplies the angle by n. Square roots run the other way: take the square root of the modulus and halve the angle.

Reading the result

The rectangular form a + bi is the easiest to add and subtract. The polar form r∠θ and the exponential form reiθre^{i\theta} make multiplication, division and powers easier, because moduli multiply and angles add.

The argument, or angle, is the principal value between −180° and 180°, shown in degrees and radians. Angles that differ by a multiple of 360° point the same way, so 270° and −90° describe the same direction.

Decimals are rounded to 10 significant digits. When both inputs have short decimal or whole-number parts, an exact fractional form such as 15+35i\frac{1}{5} + \frac{3}{5}i is listed too. On the Argand diagram the real part runs along the horizontal axis and the imaginary part up the vertical axis.

How to divide complex numbers

To divide a+bic+di\frac{a + bi}{c + di}, multiply the top and the bottom by the conjugate of the denominator, c−dic - di. The bottom becomes c2+d2c^2 + d^2, a real number, so you can divide the real and imaginary parts of the top by it.

For example, 2+3i1+i\frac{2 + 3i}{1 + i}: the conjugate of 1+i1 + i is 1−i1 - i. The top is (2+3i)(1−i)=2−2i+3i−3i2=5+i(2 + 3i)(1 - i) = 2 - 2i + 3i - 3i^2 = 5 + i, and the bottom is 12+12=21^2 + 1^2 = 2. So the answer is 5+i2=2.5+0.5i\frac{5 + i}{2} = 2.5 + 0.5i.

In polar form, divide the moduli and subtract the angles. Here |2+3i|=13|2 + 3i| = \sqrt{13} and |1+i|=2|1 + i| = \sqrt{2}, so the quotient has modulus 6.5≈2.549509757\sqrt{6.5} \approx 2.549509757, and its angle is 56.30993247°−45°=11.30993247°56.30993247° - 45° = 11.30993247°. Both routes give the same point. For special cases and practice, see the step-by-step guide how to divide complex numbers.

Complex number operations at a glance

Each row uses z1=3+4iz_1 = 3 + 4i and z2=1−2iz_2 = 1 - 2i, so you can type the same numbers into the complex numbers calculator above and compare.

Rules for each operation, with z₁ = 3 + 4i and z₂ = 1 − 2i
OperationRule for a + bi and c + diExample
Add(a + c) + (b + d)iz₁ + z₂ = 4 + 2i
Subtract(a − c) + (b − d)iz₁ − z₂ = 2 + 6i
Multiply(ac − bd) + (ad + bc)iz₁ × z₂ = 11 − 2i
DivideMultiply top and bottom by c − diz₁ ÷ z₂ = −1 + 2i
Conjugatea − biz̄₁ = 3 − 4i
Modulus√(a² + b²)|z₁| = 5
Argument (angle)atan2(b, a)arg z₁ ≈ 53.13010235°
Whole-number powerDe Moivre: rⁿ∠nθz₁² = −7 + 24i
Square roots√r∠(θ/2) and its negative±(2 + i)

Common mistakes

Forgetting that i² = −1. In (3+4i)(1−2i)(3 + 4i)(1 - 2i) the last term is −8i2=+8-8i^2 = +8, not −8-8. Getting the sign wrong gives −5−2i-5 - 2i instead of the correct 11−2i11 - 2i.

Dividing the parts separately. 3+4i1−2i\frac{3 + 4i}{1 - 2i} is not 31+4−2i=3−2i\frac{3}{1} + \frac{4}{-2}i = 3 - 2i. Multiply by the conjugate instead; the correct answer is −1+2i-1 + 2i.

Using arctan(b/a) without checking the quadrant. For −1−i-1 - i, arctan(1)=45°\arctan(1) = 45°, but the point is in quadrant III and its argument is −135°-135°. The atan2 function, which this calculator uses, takes the signs of both parts into account.

Mixing degrees and radians. cos⁡45\cos 45 in radian mode is not cos⁡45°\cos 45°. The calculator lists the angle in both units so you can match your textbook or your calculator’s mode.

Worked example

Raise (1 + i) to the 8th power

Find (1 + i)⁸ using De Moivre’s theorem, without multiplying out eight brackets.

  1. Write 1 + i in polar form. The modulus is r=12+12=2r = \sqrt{1^2 + 1^2} = \sqrt{2}, and the point is in quadrant I with equal parts, so θ=45°\theta = 45°.
  2. Apply De Moivre’s theorem: raise the modulus to the 8th power and multiply the angle by 8. (2)8=24=16(\sqrt{2})^8 = 2^4 = 16 and 8×45°=360°8 \times 45° = 360°.
  3. Convert back: 16(cos⁡360°+isin⁡360°)=16(1+0i)=1616(\cos 360° + i\sin 360°) = 16(1 + 0i) = 16.
  4. Check with a smaller power: (1+i)2=1+2i+i2=2i(1 + i)^2 = 1 + 2i + i^2 = 2i, so (1+i)8=(2i)4=16i4=16(1 + i)^8 = (2i)^4 = 16i^4 = 16.

Answer: (1+i)8=16(1 + i)^8 = 16, a real number, because the angle turns a full 360°.

Frequently asked questions

How do I divide complex numbers?

Multiply the numerator and the denominator by the conjugate of the denominator. The denominator becomes c2+d2c^2 + d^2, a real number, so you can divide the real and imaginary parts separately. For example, (3+4i)÷(1−2i)=−1+2i(3 + 4i) \div (1 - 2i) = -1 + 2i.

How do I multiply complex numbers?

Multiply every term of the first number by every term of the second, then replace i2i^2 with −1-1 and collect terms: (a+bi)(c+di)=(ac−bd)+(ad+bc)i(a + bi)(c + di) = (ac - bd) + (ad + bc)i. For example, (3+4i)(1−2i)=11−2i(3 + 4i)(1 - 2i) = 11 - 2i.

What is i in math?

i is the imaginary unit, the number whose square is −1. A complex number a + bi has a real part a and an imaginary part b, and numbers with a = 0, such as 5i, are called pure imaginary numbers.

Is 0 a complex number?

Yes. 0 = 0 + 0i, and every real number is a complex number whose imaginary part is 0. The modulus of 0 is 0, and its angle is undefined, which the calculator reports.

How do I find the angle of a complex number?

Use θ=atan2(b,a)\theta = \operatorname{atan2}(b, a), which places the point in the right quadrant. For 3+4i3 + 4i the angle is about 53.13010235°, and for −1−i-1 - i it is −135°. Choose "Argument of z₁" to see the quadrant reasoning step by step.

Can I enter a number in polar form?

Yes. Type r∠θ with the angle in degrees, using < for the angle sign, so 2<30 means 2∠30°, which is about 1.732050808 + i. Add rad for radians, as in 2<0.5rad. To convert without doing arithmetic, use the polar form converter; for expressions such as √2 + i, use the scientific calculator in complex mode.

What is i to the power i?

Its principal value is a real number: ii=eiLogi=ei⋅iπ/2=e−π/2≈0.2078795764i^i = e^{i \operatorname{Log} i} = e^{i \cdot i\pi/2} = e^{-\pi/2} \approx 0.2078795764.

Polar to Rectangular Calculator

Polar ↔ rectangular (Cartesian) conversion with steps, quadrant reasoning, exact values and exponential form.

Algebra & Equations

Quadratic Formula Calculator

Solve ax² + bx + c = 0 with the quadratic formula: exact roots, discriminant, vertex, graph and steps.

Algebra & Equations

Cubic Equation Solver

Exact and complex roots of ax³ + bx² + cx + d = 0 with the discriminant, steps and a root check.

Algebra & Equations

Polynomial Root Finder

All real and complex roots of a polynomial up to degree 10, with multiplicities, exact forms and steps.

Algebra & Equations

Equation Solver

Solve any equation in x: exact steps for linear and quadratic equations, numerical roots for the rest.

Algebra & Equations

Scientific Calculator

Type or tap expressions with exact fractions, memory, variables, constants and complex mode.

Tools

Sources and further reading

  1. Complex Numbers (Section 2.4) and Polar Form of Complex Numbers (Section 8.5), Algebra and Trigonometry 2e (opens in a new tab), OpenStax, Rice University
  2. NIST Digital Library of Mathematical Functions, §1.9 Calculus of a Complex Variable (opens in a new tab), National Institute of Standards and Technology

Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?