Maths & numbers

Nth roots of a complex number

List and plot all distinct nth roots of a complex value.

Nth roots of a complex number
Esc to restore

Your inputs

Results update as you type. Larger files run when you press Update result.

Your result

Your result will appear here.

More actions

Your inputs stay in this browser. Nothing is uploaded, and nothing is saved unless you choose “Save result”.

A clear answer. Here’s how.

Writes z=r·exp(iθ), then forms r^(1/n)·exp(i(θ+2πk)/n) for k=0,…,n−1. Accepts integer n from 1–64. For nonzero z, roots are equally spaced around a circle; angles in the table follow the generated sequence rather than principal-value wrapping. Zero returns one distinct root with multiplicity n. Trigonometric rounding can leave tiny components near zero.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

Real part
1
Imaginary part
0
Root degree
4

Example result

Example result
RootReal partImaginary partArgument (degrees)
1100
20.0000000000000000612323399574190
3-10.000000000000000122464679915180
4-0.000000000000000183697019872-1270

All 4 distinct nth roots are equally spaced in angle.