Skip to content
FiftyCalc Free calculators for all 50 states

Complex Root Calculator

Test cases replayed : 6 of 6 match · Methodology · No outside source listed

Enter a + bi, the root degree n and the root index k (0 to n − 1); each k gives one of the n roots.

Result

Sample figures

Root k: real part—

Root k: imaginary part —

  • Modulus of every root, r^(1/n)—
  • Argument of root k (degrees)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Complex Root Calculator

Real part a: enter a number. Prefilled example: 8.

Imaginary part b: enter a number. Prefilled example: 0.

Root degree n (2 = square root, 3 = cube root…): enter 2 or more. Prefilled example: 3.

Root index k (0 to n − 1): enter 0 or more. Prefilled example: 1.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Real part a: enter a number.
  2. Imaginary part b: enter a number.
  3. Root degree n (2 = square root, 3 = cube root…): enter 2 or more.
  4. Root index k (0 to n − 1): enter 0 or more.
  5. Read the result: Root k: real part; the panel also shows Root k: imaginary part, Modulus of every root, r^(1/n) and Argument of root k (degrees).

How this calculator works

De Moivre's theorem: write z = a + bi as r(cos φ + i sin φ) with r = √(a² + b²) and φ = atan2(b, a). Its n nth roots are r^(1/n)·[cos((φ + 2πk) ÷ n) + i sin((φ + 2πk) ÷ n)] for k = 0, 1, …, n − 1.

All n roots have the same modulus r^(1/n) and are spaced 360° ÷ n apart on a circle; k = 0 gives the principal root. Parts are rounded to 10 decimal places.

The formula

  1. Re=round⁡(a2+b21÷n×cos⁡(atan2⁡(b,a)+2×π×kn),10)+0
Symbols used in the formula
SymbolMeaning
aReal part a
bImaginary part b
nRoot degree n (2 = square root, 3 = cube root…)
kRoot index k (0 to n − 1)
ReRoot k: real part
round(x, d)x rounded to d decimal places, or to a whole number without d.
atan2(y, x)the angle, in radians, of the point (x, y) measured from the positive x-axis.

Worked example

Real part a8
Imaginary part b0
Root degree n (2 = square root, 3 = cube root…)3
Root index k (0 to n − 1)1
Root k: imaginary part1.7321
Modulus of every root, r^(1/n)2
Argument of root k (degrees)120
  1. Re=round⁡(82+021÷3×cos⁡(atan2⁡(0,8)+2×3.14159×13),10)+0=−1

Root k: real part -1

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What are the cube roots of 8?

2, −1 + 1.7321i and −1 − 1.7321i (k = 0, 1, 2): all have modulus 2 and are 120° apart.

What is the square root of −4?

With k = 0 it is 2i (argument 90°); the other root, k = 1, is −2i.

Related calculators