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
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.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Real part a: enter a number.
- Imaginary part b: enter a number.
- Root degree n (2 = square root, 3 = cube root…): enter 2 or more.
- Root index k (0 to n − 1): enter 0 or more.
- 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
| Symbol | Meaning |
|---|---|
| Real part a | |
| Imaginary part b | |
| Root degree n (2 = square root, 3 = cube root…) | |
| Root index k (0 to n − 1) | |
| Root 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 a | 8 |
|---|---|
| Imaginary part b | 0 |
| Root degree n (2 = square root, 3 = cube root…) | 3 |
| Root index k (0 to n − 1) | 1 |
| Root k: imaginary part | 1.7321 |
|---|---|
| Modulus of every root, r^(1/n) | 2 |
| Argument of root k (degrees) | 120 |
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.