Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


De Moivre Law Visual Calculator


De Moivre's Theorem

(r · e)n = rn · einθ
ReIm-10−10i-8−8i-6−6i-4−4i-2−2i22i44i66i88i1010iθz¹z²z³z
3
Try these
Input
z1 + i
|z|1.41
θ45° = π/4 rad
n3
z³ — Result
-2 + 2i
|z³| = 2.83, θ = 135° = 3π/4 rad
Step-by-Step (De Moivre's Theorem)
1Convert to polar form:
z = 1.41 · eπ/4
2Apply De Moivre's Theorem: (r · e)n = rn · einθ
3Raise the modulus to the n-th power:
|z|³ = 1.41³ = 2.83
4Multiply the angle by n:
nθ = 3 × 45° = 135°
5Convert back to rectangular:
z³ = 2.83(cos(135°) + i sin(135°))
= 2.83(-0.71 + 0.71i)
= -2 + 2i
Key Ideas
De Moivre's Theorem says (cos θ + i sin θ)n = cos(nθ) + i sin(nθ). In exponential form: (r·e)n = rn·einθ. Raising to a power means raising the modulus and multiplying the angle.
The purple trail shows intermediate powers z¹, z², z³, … Each step multiplies the modulus by |z| and adds θ to the angle. If |z| > 1 the points spiral outward; if |z| < 1 they spiral inward toward zero.
Negative exponents give reciprocals: z⁻ⁿ = 1/zⁿ. The modulus shrinks (r⁻ⁿ) and the angle reverses (−nθ). Try "(3+4i)⁻¹" to see how the result is a tiny vector in the opposite angular direction.
On the unit circle (|z|=1), powers only rotate — the point stays on the circle. This is why powers of i cycle: i¹, i², i³, i⁴ = i, −1, −i, 1 are four 90° rotations.





Getting Started — Set z and Choose n

Drag the navy point zz anywhere on the complex plane, or type values into the Re and Im input fields (range ±10\pm 10). Then set the exponent nn using the slider (10-10 to 1010), the input field (20-20 to 2020), or one of seven presets: (1+i)2(1+i)^2, (1+i)4(1+i)^4, i3i^3, (1+i)8(1+i)^8, (3+4i)1(3+4i)^{-1}, 2102^{10}, and (0.5+0.5i)6(0.5+0.5i)^6. Each preset has a dedicated section below with the tool frozen on it: the squaring baseline, the outward spiral, escaping the window, the inward spiral, unit circle rotation, negative exponents, and the pure real base.

The green result vector znz^n updates instantly along with the step-by-step panel, polar values, and the purple intermediate power trail. Click Random to generate a random base and exponent.

The input summary on the right shows zz in rectangular form, its modulus z|z|, its argument θ\theta in both degrees and radians, and the current exponent nn. All values update in real time as you drag or type.

The Squaring Baseline

The preset (1+i)2(1+i)^2 is the smallest possible use of the theorem — one multiplication — and the cleanest place to check the machinery against plain algebra.
ReIm-10−10i-8−8i-6−6i-4−4i-2−2i22i44i66i88i1010iθz
(1+i)², frozen

The smallest use of the theorem: the 45° base arc doubles to 90° and the result lands on 2i — one multiplication, checked against FOIL.

FOIL gives the answer in one line: (1+i)2=1+2i+i2=2i(1+i)^2 = 1 + 2i + i^2 = 2i. De Moivre's route agrees from the other direction: modulus (2)2=2(\sqrt{2})^2 = 2, angle 2×45°=90°2 \times 45° = 90°, which is 2i2i exactly. Two completely different computations, one point on the imaginary axis.

The frozen frame is deliberately spare — a single trail dot sitting under zz itself, the base's 45°45° arc doubled to the result's 90°90° — because at n=2n = 2 the theorem barely differs from one complex multiplication. Every larger exponent on this page is this step iterated: the same base squared again gives the fourth power, and twice more, the eighth.

The Outward Spiral — When |z| > 1

Click (1+i)4(1+i)^4 to see the classic outward spiral. Since 1+i=21.414>1|1+i| = \sqrt{2} \approx 1.414 > 1, each successive power has a larger modulus: zk=zk|z^k| = |z|^k grows with kk. The purple trail dots z1,z2,z3z^1, z^2, z^3 fan outward from the origin, connected by a dashed polyline.

At each step the angle also increases by θ=45°\theta = 45°, so the trail rotates 45°45° per step while expanding. The result (1+i)4=4(1+i)^4 = -4 lands on the negative real axis at angle 4×45°=180°4 \times 45° = 180° with modulus (2)4=4(\sqrt{2})^4 = 4.

Now click (1+i)8(1+i)^8. The spiral extends further — the modulus reaches (2)8=16(\sqrt{2})^8 = 16 — but the angle wraps back to 8×45°=360°=0°8 \times 45° = 360° = 0°, placing the result at +16+16 on the positive real axis. The trail makes two full revolutions.

Try increasing nn with the slider while watching the spiral grow. Each click of nn adds one more purple dot and pushes the green result further outward.
ReIm-10−10i-8−8i-6−6i-4−4i-2−2i22i44i66i88i1010iθz⁴z
(1+i)⁴, frozen

Three purple dots fan outward — 1+i, 2i, −2+2i — each 45° further around and √2 longer, before the teal vector lands on −4: a negative real reached with no negative signs.

The frozen frame catches the fourth power mid-flight: three purple dots at 1+i1+i, 2i2i, and 2+2i-2+2i, each 45°45° further around and 2\sqrt{2} times further out, before the teal vector lands on 4-4. Both dashed circles are visible — the small navy one at z=2|z| = \sqrt{2} and the teal one at z4=4|z^4| = 4 — with the whole trail strung between them.

The landing point deserves a second look: (1+i)4(1+i)^4 is a negative real number, reached without a single negative sign in the base. Angle accumulation did it — four lots of 45°45° make the half-turn. Push on to the eighth power and the spiral escapes the window entirely.

Escaping the Window

The preset (1+i)8(1+i)^8 pushes the outward spiral past the edge of the visible plane: the result, +16+16, is real, positive — and outside the ±10\pm 10 window.
ReIm-10−10i-8−8i-6−6i-4−4i-2−2i22i44i66i88i1010iθz⁴z⁵z⁶z⁷z⁸ →z
(1+i)⁸, frozen

The spiral escapes: seven dots trace two full revolutions, the last at 8 − 8i, and a dashed ray aims at the off-screen +16 on the positive real axis.

The tool answers with its off-screen convention: a dashed teal ray aimed along the positive real axis, arrowhead at the boundary, label pointing at the unreachable z8z^8. The direction is exact even though the endpoint is not drawn — and the seven trail dots, the last of them at 88i8 - 8i, still trace the two full revolutions that got there.

The arithmetic behind the direction: 8×45°=360°8 \times 45° = 360°, a whole number of turns, so the eighth power comes home to the positive real axis with modulus (2)8=16(\sqrt{2})^8 = 16. Squaring the fourth power's 4-4 confirms it: (4)2=16(-4)^2 = 16.

No teal nθn\theta arc appears in this frame — the normalized result angle is 0°, so there is no angle left to draw. Growth without net rotation: the opposite corner of the theorem from the unit-circle state.

The Inward Spiral — When |z| < 1

Click (0.5+0.5i)6(0.5 + 0.5i)^6 to see the inward spiral. Since 0.5+0.5i=220.707<1|0.5 + 0.5i| = \frac{\sqrt{2}}{2} \approx 0.707 < 1, each power has a smaller modulus: zk=zk|z^k| = |z|^k shrinks toward zero. The purple trail dots spiral inward, converging on the origin.

The result modulus is (0.707)60.125(0.707)^6 \approx 0.125 — very small. The zoom inset appears in the upper-right corner of the plane, magnifying the area near the origin so the green result point is visible and labeled.

This behavior is the opposite of the outward spiral: if z<1|z| < 1, repeated multiplication pulls the point closer to zero. The angle still accumulates (6×45°=270°6 \times 45° = 270°), but the distance from the origin shrinks exponentially.

Drag zz to any point inside the unit circle and increase nn to see the inward spiral get tighter. The higher the exponent, the closer the result is to zero.
ReIm-10−10i-8−8i-6−6i-4−4i-2−2i22i44i66i88i1010iθz⁴z⁵z⁶zZoomz⁶−0.13i
(0.5+0.5i)⁶, frozen

Five dots coil into the origin as the modulus decays by √2/2 per step; the zoom inset magnifies the final −0.125i that full scale cannot show.

The frozen frame shows both of the tool's smallness devices at once: five purple dots coiling into the origin, and the zoom inset in the corner magnifying the final 0.125i-0.125i that would otherwise be invisible at full scale.

Note the symmetry with the outward spiral: this base is exactly half of 1+i1+i, same 45°45° angle, and the two spirals are mirror processes — one compounds, one decays. The boundary between them is the unit circle, explored in the rotation state, where powers neither grow nor shrink.

Unit Circle Rotation — When |z| = 1

Set z=iz = i (type Re = 0, Im = 1) so that z=1|z| = 1. Now slide nn from 11 to 44. Because z=1|z| = 1, the modulus never changes: zn=1n=1|z^n| = 1^n = 1. Every power stays on the unit circle — the trail dots form a perfect arc with no spiraling.

At n=1n = 1: i1=ii^1 = i (angle 90°90°). At n=2n = 2: i2=1i^2 = -1 (angle 180°180°). At n=3n = 3: i3=ii^3 = -i (angle 270°270°). At n=4n = 4: i4=1i^4 = 1 (angle 360°=0°360° = 0°). The dashed modulus circles for zz and the result overlap because both have radius 11.

Click the i3i^3 preset to see three purple trail dots evenly spaced 90°90° apart on the unit circle, ending at i-i.

This is why powers of i cycle every four steps. On the unit circle, De Moivre's theorem is pure rotation: the modulus is fixed and only the angle changes. Any point on the unit circle produces this behavior — try z=cos(60°)+isin(60°)z = \cos(60°) + i\sin(60°) and watch the dots walk around the circle in 60°60° steps.
ReIm-10−10i-8−8i-6−6i-4−4i-2−2i22i44i66i88i1010iθz
i³, frozen

Pure rotation: the navy and teal dashed circles coincide at radius 1, two trail dots wait at i and −1, and the result is −i — a quarter-turn walk with no growth.

The frozen i3i^3 frame is the smallest complete example: two trail dots at ii and 1-1, the result at i-i, and the navy and teal dashed circles perfectly superimposed at radius 11 — the visual signature of a modulus that refuses to change.

The teal nθn\theta arc sweeps clockwise to 90°-90° rather than counterclockwise to 270°270°: the tool normalizes result angles into (180°,180°](-180°, 180°], and the two descriptions name the same point. This unit-circle behavior is also where roots of unity live — points whose powers walk in place around the circle and come home.

Negative Exponents — Reciprocals and Reversal

Click (3+4i)1(3+4i)^{-1} to see a negative exponent. De Moivre's theorem handles negative powers naturally: zn=rneinθz^{-n} = r^{-n} \cdot e^{-in\theta}. The modulus shrinks (reciprocal) and the angle reverses (negative direction).

Here 3+4i=5|3+4i| = 5, so z1=1/5=0.2|z^{-1}| = 1/5 = 0.2. The angle is θ53.1°\theta \approx 53.1°, so the result angle is 53.1°-53.1°. The green vector is short and points below the real axis — the reciprocal is a tiny vector in the opposite angular direction.

Try sliding nn into negative values with any base. The trail reverses: instead of spiraling outward (for z>1|z| > 1), it spirals inward. Instead of accumulating angle, it subtracts angle.

At n=0n = 0, the result is always z0=1z^0 = 1 regardless of zz — the green point sits at (1,0)(1, 0) on the positive real axis. This is the boundary between positive and negative exponents.
ReIm-10−10i-8−8i-6−6i-4−4i-2−2i22i44i66i88i1010iθz⁻¹zZoomz⁻¹0.12 − 0.16i
(3+4i)⁻¹, frozen

The reciprocal caught in the zoom inset: modulus 5 inverts to 0.2, the angle mirrors to −53.1°, and the moduli multiply back to exactly 1.

The frozen frame pairs the extremes: the navy z=3+4iz = 3+4i reaching out to modulus 55, and its reciprocal caught in the zoom inset at modulus 0.20.2 — the two moduli multiplying to exactly 11, as reciprocals must. The teal nθn\theta arc dips below the axis to 53.1°-53.1°, the mirror of the base's angle above it.

Reciprocal-taking is the one power that ties directly back to division: z1=zˉ/z2z^{-1} = \bar{z}/|z|^2, so this preset's answer 0.120.16i0.12 - 0.16i is just 34i25\frac{3-4i}{25} — the conjugate shrunk by the squared modulus. The five-step panel reaches the same place through polar arithmetic alone.

Pure Real Base — No Spiral, Just Scaling

Click 2102^{10} to see a purely real base. Since z=2z = 2 has angle θ=0°\theta = 0°, every power also has angle 0°: the result sits on the positive real axis. The modulus is 210=10242^{10} = 1024 — far off-screen — so the green result appears as a dashed ray pointing right with an arrow.

The purple trail dots z1,z2,,z9z^1, z^2, \dots, z^9 march along the positive real axis, each one doubling the previous — though only 22, 44, and 88 remain inside the visible window. There is no rotation because n×0°=0°n \times 0° = 0° for any nn.

Now try changing zz to 2-2 (angle 180°180°). The powers alternate between the positive and negative real axes: (2)1=2(-2)^1 = -2, (2)2=4(-2)^2 = 4, (2)3=8(-2)^3 = -8, and so on. The trail zigzags left and right along the real axis, growing in magnitude. The angle alternates between 0° and 180°180° because n×180°n \times 180° is 0° for even nn and 180°180° for odd nn.
ReIm-10−10i-8−8i-6−6i-4−4i-2−2i22i44i66i88i1010iz¹⁰ →z
2¹⁰, frozen

De Moivre with the rotation switched off: no arcs, three doubling dots at 2, 4 and 8, and a dashed ray carrying the invisible 1024 off to the right.

The frozen frame is De Moivre's theorem with the rotation half switched off: no arcs anywhere, three doubling dots on the axis, and the dashed ray carrying the invisible 10241024 off to the right. Ordinary real exponentiation is the θ=0\theta = 0 slice of the complex theory.

That reading runs both ways: real powers were never a different subject, just the special case where angle multiplication has nothing to multiply. Compare the fully angular opposite — the unit-circle state, where only the angle moves — and the general spirals are every mixture in between.

Reading the Purple Trail and Modulus Circles

The purple trail shows every intermediate power from z1z^1 up to zn1z^{n-1} (for positive nn) or from z1z^{-1} down to z(n1)z^{-(|n|-1)} (for negative nn). Each dot is labeled with its power. A dashed polyline connects them in order, tracing the spiral path from zz to the final result.

Two dashed modulus circles appear when relevant. The inner navy circle has radius z|z| — the modulus of the base. The outer green circle has radius zn|z^n| — the modulus of the result. When z>1|z| > 1, the result circle is larger; when z<1|z| < 1, it is smaller. When z=1|z| = 1, both circles coincide.

Two angle arcs appear near the origin. The navy arc labeled θ\theta shows the argument of zz. The green arc labeled nθn\theta shows the argument of znz^n. The green arc is always nn times as wide as the navy arc — this is the "multiply the angle" rule of De Moivre's theorem made visible.

The Five-Step Calculation

The Step-by-Step panel on the right walks through De Moivre's theorem in five numbered stages.

Step 1 — convert zz to polar form: z=reiθz = r \cdot e^{i\theta}, showing the computed modulus and argument.

Step 2 — state the theorem: (reiθ)n=rneinθ(r \cdot e^{i\theta})^n = r^n \cdot e^{in\theta}.

Step 3 — raise the modulus to the nn-th power: zn=rn|z|^n = r^n.

Step 4 — multiply the angle by nn: nθn\theta. If the result exceeds ±180°\pm 180°, a normalized angle also appears.

Step 5 — convert back to rectangular form using cos(nθ)\cos(n\theta) and sin(nθ)\sin(n\theta), showing the evaluation and the final complex number.

Every value in every step updates dynamically with each drag, keystroke, or slider change. This makes the panel a live worked example for any base-exponent combination you choose.

What is De Moivre's Theorem?

De Moivre's theorem states that for any integer nn:

(cosθ+isinθ)n=cos(nθ)+isin(nθ)(\cos\theta + i\sin\theta)^n = \cos(n\theta) + i\sin(n\theta)


In exponential notation using Euler's formula:

(reiθ)n=rneinθ(re^{i\theta})^n = r^n \cdot e^{in\theta}


Raising a complex number to a power means raising the modulus to that power and multiplying the angle by nn. This converts exponentiation — normally a difficult operation in rectangular form — into a simple combination of real exponentiation and angle multiplication.

The theorem is a direct consequence of Euler's formula and the laws of exponents. Since eiθe^{i\theta} is a complex exponential, (eiθ)n=einθ(e^{i\theta})^n = e^{in\theta} follows from the rule amn=(am)na^{mn} = (a^m)^n.

De Moivre's theorem works for all integers nn — positive, negative, and zero. It is also the foundation for finding roots of unity and deriving trigonometric identities for cos(nθ)\cos(n\theta) and sin(nθ)\sin(n\theta) in terms of powers of cosθ\cos\theta and sinθ\sin\theta.

Connection to Roots of Unity

De Moivre's theorem in reverse gives the nn-th roots of any complex number. The nn-th roots of unity — the solutions to zn=1z^n = 1 — are:

zk=ei2πk/n=cos2πkn+isin2πkn,k=0,1,,n1z_k = e^{i \cdot 2\pi k / n} = \cos\frac{2\pi k}{n} + i\sin\frac{2\pi k}{n}, \quad k = 0, 1, \dots, n-1


These nn points are equally spaced around the unit circle, separated by angles of 360°n\frac{360°}{n}.

In the visualizer, set zz to any nn-th root of unity and raise it to the nn-th power — the result will always be 11. For example, set z=cos(72°)+isin(72°)0.31+0.95iz = \cos(72°) + i\sin(72°) \approx 0.31 + 0.95i and n=5n = 5. The trail traces five equally spaced dots around the unit circle, and the result lands at 11.

Roots of unity appear throughout mathematics: in Fourier transforms, polynomial factoring, and group theory. De Moivre's theorem is the computational tool that makes finding and verifying these roots straightforward.