dash–calculator

04 Numbers and Counting

Roots of a Complex Number: Formula & Examples

Readout 04-0290 · Updated · Standard formula, shown below

Root magnitude 1.259921
Root angle (degrees)
15.000000 °
Result, rounded to 6 decimal places
Root angle 2 (degrees)
135.000000 °
Result, rounded to 6 decimal places
Root angle 3 (degrees)
255.000000 °
Result, rounded to 6 decimal places
You enter
Magnitude r, Angle θ (degrees) (°), Root degree n
You get
Root magnitude, Root angle (degrees) (°), Root angle 2 (degrees) (°), Root angle 3 (degrees) (°)
Rounding
6 dp

The roots of a complex number are the solutions to zn = w, where w is a given complex number and n is a positive integer. For any nonzero complex number w, there are exactly n distinct n-th roots, found using De Moivre’s Theorem. This calculator computes all n roots of a complex number in polar form, returning both the magnitude and angle of each root.

Formula

Given a complex number in polar form: w = r(cos θ + i sin θ), its n-th roots are:

zk = r1/n [ cos((θ + 360°k)/n) + i sin((θ + 360°k)/n) ] for k = 0, 1, 2, …, n−1.

Here:

  • r = magnitude (modulus) of w, a nonnegative real number
  • θ = argument (angle) of w, in degrees (or radians if you use 2π instead of 360°)
  • n = the root degree (e.g., n=2 for square roots, n=3 for cube roots)
  • k = an integer from 0 to n−1, giving each distinct root

The magnitude of every root is the same: r1/n (the positive real n-th root of r). The angles are equally spaced around the circle, separated by 360°/n. This is why there are exactly n distinct roots.

Worked Example

Let’s find the cube roots of w = 2(cos 45° + i sin 45°). Here r = 2, θ = 45°, n = 3.

Step 1: Compute the root magnitude: r1/n = 21/3 ≈ 1.259921.

Step 2: Compute the three angles:

  • k=0: (45° + 360°×0)/3 = 15°
  • k=1: (45° + 360°×1)/3 = 405°/3 = 135°
  • k=2: (45° + 360°×2)/3 = 765°/3 = 255°

Step 3: Write the roots:

  • z0 = 1.259921 (cos 15° + i sin 15°)
  • z1 = 1.259921 (cos 135° + i sin 135°)
  • z2 = 1.259921 (cos 255° + i sin 255°)

These three points lie on a circle of radius 1.259921, separated by 120° each. The calculator above gives the same magnitudes and angles (rounded to 6 decimals).

Why Are There Exactly n Roots?

This is a consequence of the Fundamental Theorem of Algebra: a polynomial of degree n has exactly n complex roots (counting multiplicities). The equation zn = w can be rewritten as zn − w = 0, a degree-n polynomial in z. So it must have n complex solutions. Because the complex plane is two-dimensional, these roots are not all real; they form a regular n-gon centered at the origin.

For example, the square roots of 1 are 1 and −1 (two points). The cube roots of 1 are 1, −1/2 + i√3/2, and −1/2 − i√3/2 (three points forming an equilateral triangle). The fourth roots of 1 are 1, i, −1, −i (four points on the unit circle).

How to Choose the Correct Angle

The argument θ is not unique: adding any multiple of 360° (or 2π radians) gives the same complex number because cosine and sine are periodic. When finding roots, you must add 360°k for k = 0, 1, …, n−1 to θ before dividing by n. This ensures you get all n distinct angles. If you only used θ/n, you would get just one root.

Most calculators and software return the principal argument in the range (−180°, 180°] or [0°, 360°). For root finding, any valid θ works, but the resulting root angles will differ by multiples of 360°/n. The set of roots is the same regardless of which θ you start with.

Common Mistakes and Pitfalls

  • Forgetting the +360°k term: This is the most common error. Without it, you get only one root instead of n.
  • Using degrees vs radians inconsistently: If you use radians, the formula becomes (θ + 2πk)/n. Mixing units leads to wrong angles.
  • Taking the negative real root: r1/n is always the positive real root. For example, the square root of 4 is 2, not −2, even though both 2² and (−2)² equal 4. The negative square root is obtained by adding 180° to the angle, not by taking a negative magnitude.
  • Rounding too early: When computing angles, keep full precision until the final step. Rounding intermediate angles can shift the roots noticeably.
  • Assuming all roots are real: Only if w is a positive real number and n is even will some roots be real. Generally, roots are complex.

Applications and Context

Finding roots of complex numbers is essential in many fields:

  • Electrical engineering: Solving AC circuit equations involves roots of complex impedances.
  • Signal processing: The discrete Fourier transform uses roots of unity (n-th roots of 1).
  • Control theory: Stability analysis of systems uses roots of characteristic polynomials, which are often complex.
  • Fractals: The Mandelbrot set and Julia sets are defined by iterating complex functions, and roots appear in their analysis.
  • Physics: Quantum mechanics uses complex wavefunctions, and normal modes of vibration involve complex roots.

The roots of unity (w = 1) are particularly important. They form a regular n-gon on the unit circle and have algebraic properties used in number theory and cryptography.

Limitations of the Calculator

This calculator assumes the input is already in polar form (magnitude and angle). If you have a complex number in rectangular form a + bi, you must first convert to polar using r = √(a² + b²) and θ = atan2(b, a). The calculator also uses degrees for angles; if you prefer radians, multiply the degree angle by π/180 before using the formula. The output angles are given in degrees, but you can convert to radians by multiplying by π/180.

For very large n (e.g., n > 1000), the calculator may show many roots, but the pattern is always the same: equally spaced angles on a circle. The magnitude computation r1/n is always well-defined for r ≥ 0.

Frequently Asked Questions

What is the principal root of a complex number?

The principal n-th root is the one obtained by taking the principal argument θ in the range (−180°, 180°] and using k=0 in the formula. It is the root with the smallest nonnegative angle (or the one closest to the positive real axis, depending on convention). For example, the principal square root of −1 is i (angle 90°), not −i.

How do I find roots of a complex number in rectangular form?

First convert a + bi to polar form: r = √(a² + b²) and θ = atan2(b, a) (in degrees or radians). Then apply the formula above. After finding the polar roots, you can convert each back to rectangular form using a = r cos θ and b = r sin θ.

Why do the roots always form a regular polygon?

Because all roots have the same magnitude r1/n and their angles differ by exactly 360°/n. Points with equal distance from the origin and equal angular spacing form a regular n-gon centered at the origin. This geometric property is a direct consequence of the formula.

Can n be a fraction or a negative number?

The formula for n-th roots assumes n is a positive integer. For fractional exponents, the situation is more complex because there are infinitely many possible values (due to the multi-valued nature of the complex logarithm). Negative exponents give reciprocals of roots, but again the definition becomes multi-valued. In standard practice, roots are defined for positive integers n.

What if r = 0?

If r = 0, then w = 0, and the only n-th root is 0 itself (with multiplicity n). The formula r1/n = 0, and the angle is undefined. In this case, there is only one distinct root, not n. The calculator handles this by showing 0 magnitude and an angle of 0° for all roots, but mathematically the roots coincide.

How do I convert the root angles to radians?

Multiply the angle in degrees by π/180. For example, 15° × π/180 = π/12 radians. The formula in radians is (θ + 2πk)/n, where θ is in radians.

Related

Formula used
in r | Magnitude r | - | 2 | 0 | 100000
in deg | Angle θ (degrees) | ° | 45 | -720 | 720
in n | Root degree n | - | 3 | 1 | 100
out root_r | Root magnitude | - | r^(1/n) | 6
out root_deg | Root angle (degrees) | ° | (deg + 360 * 0) / n | 6
out root_deg2 | Root angle 2 (degrees) | ° | (deg + 360 * 1) / n | 6
out root_deg3 | Root angle 3 (degrees) | ° | (deg + 360 * 2) / n | 6

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More on this panel

The whole Numbers and Counting panel →