De Moivre’s Theorem Calculator (Powers & Roots)

Raise a complex number to a power or find all its nth roots with De Moivre’s theorem, in polar and a + bi form, from a + bi or r and θ.

z = a + bi
For a power: any whole number from −1000 to 1000. For roots: 2 to 60.

Results

z⁵
−4 − 4i
Exact value (whole-number parts)
−4 − 4i
z in polar form
√2 ≈ 1.414213562 × (cos 45° + i sin 45°)
zⁿ = rⁿ(cos nθ + i sin nθ)
5.656854249(cos 225° + i sin 225°)
Modulus rⁿ
5.656854249
Argument nθ, reduced to −180° … 180°
225° → −135°

How it’s calculated

Write z in polar form, z = r(cos θ + i sin θ), where r = √(a² + b²) is the modulus and θ the argument. Then powers and roots only need the modulus and the angle:

zⁿ = rⁿ [cos(nθ) + i sin(nθ)] (De Moivre’s theorem) nth roots: ⁿ√r [cos((θ + 2πk) ÷ n) + i sin((θ + 2πk) ÷ n)], k = 0, 1, …, n − 1

Every non-zero complex number has exactly n different nth roots. They all have the same modulus and are spaced evenly, 360° ÷ n apart, around a circle.

Example (OpenStax Precalculus 2e, §8.5 Example 10): (1 + i)⁵. Here r = √2 and θ = 45°, so (1 + i)⁵ = (√2)⁵ (cos 225° + i sin 225°) = 4√2 (−√2/2 − i√2/2) = −4 − 4i.

Roots (Example 11): the cube roots of 8(cos 120° + i sin 120°) have modulus ∛8 = 2 and angles 120° ÷ 3 = 40°, 40° + 120° = 160° and 280°: 2(cos 40° + i sin 40°) ≈ 1.532 + 1.286i, and so on.

Frequently asked questions

What does De Moivre’s theorem say?

For a complex number in polar form, raising it to the power n raises the modulus to the power n and multiplies the angle by n: [r(cos θ + i sin θ)]ⁿ = rⁿ(cos nθ + i sin nθ).

How many nth roots does a complex number have?

Exactly n (for any non-zero number). For example, 1 has three cube roots: 1 and −1/2 ± (√3/2)i. Zero is the exception: its only root is 0.

Which root is the principal root?

The one with k = 0, whose angle is θ ÷ n, using the argument θ between −180° and 180°. Calculators and most software report this one.

Can n be negative?

Yes, for powers: z⁻ⁿ = 1 ÷ zⁿ, so the modulus becomes r⁻ⁿ and the angle −nθ. Zero cannot be raised to a negative power.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator