Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Euler's Formula Explorer


e = cos θ + i sin θ
ReIm-2-2i-1-1i11i22iθcos θsin θr = 1e
45.0° = π/4
1
Live Values
e=0.707 + 0.707i
θπ/4 = 45.0°cos θ0.707sin θ0.707Re(z)0.707Im(z)0.707|z|1
e^(iπ/4)
45° — cos = sin = √2/2 ≈ 0.707
Formula Breakdown
1Start with Euler's formula: e = cos θ + i sin θ
2Substitute θ = π/4:
eπ/4 = cos(π/4) + i sin(π/4)
3Evaluate:
= 0.707 + i · 0.707 = 0.707 + 0.707i
Key Ideas
e traces the unit circle. As θ goes from 0 to 2π, the point completes one full revolution. The real part is cos θ, the imaginary part is sin θ.
θ is the angle from the positive real axis, measured counterclockwise in radians. One full turn = 2π radians = 360°.
The right triangle connects trig to complex numbers. The hypotenuse is r (the modulus), the horizontal leg is r cos θ (real part), and the vertical leg is r sin θ (imaginary part).
Why use e instead of cos θ + i sin θ? Because multiplication becomes simple: e · e = ei(α+β). Multiplying complex numbers = adding angles. The exponential form makes rotation algebra trivial.
r · e is the polar form of any complex number. r is the distance from the origin (modulus), θ is the angle (argument). Every complex number can be written this way.
Perfect balance: both legs √2/2, the point riding the diagonal. Learn more about the 45° landmark · All landmarks





Getting Started — Drag the Point

The blue draggable point on the complex plane represents the value of reiθre^{i\theta}. Grab it and move it anywhere within the plane to explore how Euler's formula connects angles, trigonometry, and complex numbers in real time.

As you drag, the right panel updates instantly. You will see the current angle θ\theta in both degrees and radians, the cosine and sine values, and the resulting complex number in rectangular form. A colored right triangle appears connecting the origin to your point, with the horizontal leg showing the real part and the vertical leg showing the imaginary part.

Start by dragging the point slowly around the unit circle. Watch how the triangle changes shape, how the projections on both axes shift, and how the formula breakdown at the right walks through each substitution step. Every position you place the point produces a unique geometric snapshot of Euler's formula in action.

Landmark Angle Presets

Seven preset buttons below the sliders snap the explorer to important angles on the unit circle: 00, π6\frac{\pi}{6}, π4\frac{\pi}{4}, π3\frac{\pi}{3}, π2\frac{\pi}{2}, π\pi, and 3π2\frac{3\pi}{2}. Each button also resets the radius to r=1r = 1, placing the point exactly on the unit circle. Every landmark has a dedicated section below with the tool frozen on it.

Click π6\frac{\pi}{6} (30°) to see the classic 30-60-90 triangle with cosπ6=320.866\cos\frac{\pi}{6} = \frac{\sqrt{3}}{2} \approx 0.866 and sinπ6=12=0.5\sin\frac{\pi}{6} = \frac{1}{2} = 0.5. The horizontal leg is noticeably longer than the vertical one.

Click π4\frac{\pi}{4} (45°) and the triangle becomes isosceles — both legs have equal length since cosπ4=sinπ4=220.707\cos\frac{\pi}{4} = \sin\frac{\pi}{4} = \frac{\sqrt{2}}{2} \approx 0.707. The point sits exactly on the diagonal.

Click π3\frac{\pi}{3} (60°) and the triangle mirrors the 30° case: now the vertical leg is longer. Together, these three angles illustrate how the balance between real and imaginary parts shifts as θ\theta increases through the first quadrant.

Click π\pi to see Euler's identity in action — the point lands at 1-1 on the real axis, confirming that eiπ=1e^{i\pi} = -1.

The 30 Degree Landmark

The landmark θ=π6\theta = \frac{\pi}{6} freezes the most familiar triangle in trigonometry — the 30-60-90 — inside Euler's formula.
ReIm-2-2i-1-1i11i22iθcos θsin θr = 1e
θ = π/6, frozen

The 30-60-90 triangle inside the unit circle: base √3/2 ≈ 0.866, height exactly 1/2 — wide and flat, the real part firmly in charge.

The exact values are the ones every trig course memorizes: cosπ6=320.866\cos\frac{\pi}{6} = \frac{\sqrt{3}}{2} \approx 0.866 and sinπ6=12\sin\frac{\pi}{6} = \frac{1}{2} exactly. The frozen frame shows their geometric meaning — a wide, flat triangle whose base is 3\sqrt{3} times its height.

Euler's formula turns the memorized pair into a single statement: eiπ/6=32+12ie^{i\pi/6} = \frac{\sqrt{3}}{2} + \frac{1}{2}i. The complex exponential is the value table of trigonometry, one angle at a time.

Its mirror twin is the 60° landmark, where base and height trade lengths; between them sits the balanced 45° case.

The 45 Degree Landmark

The landmark θ=π4\theta = \frac{\pi}{4} — the tool's opening state — is the perfectly balanced case: cosine and sine agree.
ReIm-2-2i-1-1i11i22iθcos θsin θr = 1e
θ = π/4, frozen

The balanced case and the tool’s opening state: both legs equal √2/2 ≈ 0.707, the isosceles right triangle riding the diagonal.

Both legs measure 220.707\frac{\sqrt{2}}{2} \approx 0.707, the isosceles right triangle wedged into the unit circle, and the point rides the 45° diagonal exactly. That shared value is forced by Pythagoras: with equal legs, 2x2=12x^2 = 1 gives x=12x = \frac{1}{\sqrt{2}}.

This is the crossover point of the whole first quadrant: below it (toward 30°) the real part dominates; above it (toward 60°) the imaginary part takes over. Drag slowly through π4\frac{\pi}{4} and watch the teal and red readouts in the live values panel swap the lead.

The 60 Degree Landmark

The landmark θ=π3\theta = \frac{\pi}{3} is the 30° triangle stood on end: the values swap places.
ReIm-2-2i-1-1i11i22iθcos θsin θr = 1e
θ = π/3, frozen

The 30° triangle stood on end: base 1/2, height √3/2 — the same two exact values with their jobs exchanged.

Now cosπ3=12\cos\frac{\pi}{3} = \frac{1}{2} and sinπ3=32\sin\frac{\pi}{3} = \frac{\sqrt{3}}{2} — exactly the pair from the 30° landmark, exchanged. The frozen triangle is tall and narrow where the 30° one was wide and flat; the two are reflections across the 45° diagonal.

The swap is the cofunction identity made visible: cosθ=sin(π2θ)\cos\theta = \sin(\frac{\pi}{2} - \theta), and π6\frac{\pi}{6} and π3\frac{\pi}{3} are precisely such a complementary pair. On the unit circle, complementary angles are mirror images — which is all the identity says.

The scaled variant of this exact frame, with r=2r = 2, opens the radius section.

Degenerate States — When the Triangle Collapses

At certain angles the right triangle collapses into a line segment because one of the two trigonometric components equals zero. These degenerate configurations are important special cases of Euler's formula.

At θ=0\theta = 0: the point sits at (r,0)(r, 0) on the positive real axis. Since sin0=0\sin 0 = 0, the vertical leg vanishes entirely and the triangle reduces to a horizontal line. The formula reads ei0=1e^{i \cdot 0} = 1 — see the zero angle.

At θ=π2\theta = \frac{\pi}{2}: the point lands at (0,r)(0, r) on the positive imaginary axis. Now cosπ2=0\cos\frac{\pi}{2} = 0, so the horizontal leg disappears. Only the vertical red segment remains. This gives eiπ/2=ie^{i\pi/2} = i, a purely imaginary result — see the quarter turn.

At θ=π\theta = \pi: the point reaches (r,0)(-r, 0) on the negative real axis — another horizontal-only state. The formula yields the famous eiπ=1e^{i\pi} = -1, treated in full in Euler's identity.

At θ=3π2\theta = \frac{3\pi}{2}: the point drops to (0,r)(0, -r) on the negative imaginary axis, producing a downward vertical segment. Here ei3π/2=ie^{i3\pi/2} = -i — see the three-quarter turn.

These four states correspond to the axis crossings of the unit circle. Each one produces a clean, degenerate illustration with no triangle — just a single colored line along one axis.

The Zero Angle

The landmark θ=0\theta = 0 is where every trip around the circle begins: ei0=e0=1e^{i \cdot 0} = e^0 = 1, the ordinary exponential fact wearing complex clothing.
ReIm-2-2i-1-1i11i22icos θr = 1e
θ = 0, frozen

All base, no height: e⁰ = 1 sits on the positive real axis with no arc to draw and no red leg — the starting point of every trip around the circle.

With sin0=0\sin 0 = 0 the triangle is all base and no height — the teal segment runs from the origin to 11 and the red leg does not exist. No arc is drawn either, because there is no angle yet to measure.

This landmark anchors the whole page: every other preset is this point rotated by some arc, and after a full revolution the point returns here — e2πi=1e^{2\pi i} = 1, periodicity built into the exponential. The first stop counterclockwise is the 30° landmark.

The Quarter Turn to i

The landmark θ=π2\theta = \frac{\pi}{2} lands the exponential exactly on the imaginary unit: eiπ/2=ie^{i\pi/2} = i.
ReIm-2-2i-1-1i11i22iθsin θr = 1e
θ = π/2, frozen

All height, no base: cos(π/2) = 0 pins the point to i on the imaginary axis, and the quarter-turn arc explains why multiplying by i rotates 90°.

The triangle has collapsed the other way from the zero angle: all height, no base. cosπ2=0\cos\frac{\pi}{2} = 0 pins the point to the imaginary axis, and the red segment from the origin to ii is the entire picture.

This landmark is why "multiply by ii" means "rotate a quarter turn": multiplying by eiπ/2e^{i\pi/2} adds π2\frac{\pi}{2} to any number's angle. Two quarter turns make the half turn to −1 — which is i2=1i^2 = -1 restated — and four return home, the cycle the powers of ii run on.

The Three-Quarter Turn to −i

The landmark θ=3π2\theta = \frac{3\pi}{2} is the last cardinal stop before the circle closes: ei3π/2=ie^{i3\pi/2} = -i, straight down.
ReIm-2-2i-1-1i11i22iθsin θr = 1e
θ = 3π/2, frozen

The longest arc the tool draws — three quarters of the circle — before the point drops straight down to −i at the bottom of the unit circle.

The frozen frame shows the longest arc the tool draws — three quarters of the way around before the point drops to the bottom of the unit circle. The triangle is again a single vertical segment, this time pointing down.

The same point has a second name: eiπ/2e^{-i\pi/2}, a quarter turn backwards. Angles that differ by a full 2π2\pi describe the same complex number, so "three quarters forward" and "one quarter back" are indistinguishable once you arrive — a first taste of the periodicity that makes complex exponentials cyclic rather than ever-growing.

Note also that i-i is the conjugate of ii from the quarter turn: reflection across the real axis flips the sign of the angle.

Adjusting the Radius

The rr slider controls the modulus (distance from the origin) and ranges from 0.10.1 to 2.42.4. When r=1r = 1, the point lies on the solid unit circle. When r1r \neq 1, a dashed circle appears at radius rr, and the triangle labels switch from "cosθ\cos\theta" / "sinθ\sin\theta" to "rcosθr\cos\theta" / "rsinθr\sin\theta".

Try setting θ=π4\theta = \frac{\pi}{4} and then slowly increasing rr from 11 to 22. The triangle grows proportionally — its shape stays the same because the angle has not changed, but every side length doubles. The live values panel reflects the scaled components: at r=2r = 2, the real and imaginary parts are both 2×0.7071.4142 \times 0.707 \approx 1.414.

Setting rr below 11 shrinks the triangle inside the unit circle. At r=0.5r = 0.5, the point sits halfway to the unit circle and all component values are halved.

This demonstrates the general polar form z=reiθz = re^{i\theta}, where rr scales the unit-circle point outward or inward. The angle determines direction; the radius determines magnitude.
ReIm-2-2i-1-1i11i22iθr cos θr sin θr = 2e
r = 2, θ = π/3, frozen

The 60° frame at double radius: labels switch to r cos θ and r sin θ, a dashed circle appears at r = 2, and the solid unit circle stays put underneath.

The frozen frame doubles the 60° landmark: same angle, twice the radius. Every label switches to its scaled reading — rcosθr\cos\theta and rsinθr\sin\theta — and the dashed circle at r=2r = 2 appears outside the solid unit circle, which never moves.

The unchanged unit circle is the point of the picture: eiθe^{i\theta} itself always lives on it, and every other complex number is just that unit-circle point stretched by rr. Direction and magnitude are fully independent — the same separation of jobs the right triangle section formalizes.

Reading the Live Values and Formula Breakdown

The right panel provides two complementary readouts that update with every change to θ\theta or rr.

The Live Values section displays six quantities: the current angle θ\theta in radians and degrees, cosθ\cos\theta (green, matching the horizontal leg), sinθ\sin\theta (red, matching the vertical leg), Re(z)\text{Re}(z) and Im(z)\text{Im}(z) as the rectangular coordinates, and z|z| as the modulus. When r=1r = 1, the real and imaginary parts equal cosθ\cos\theta and sinθ\sin\theta directly.

The Formula Breakdown walks through the substitution step by step. Step 1 states Euler's formula. Step 2 plugs in the current θ\theta value. Step 3 evaluates cosine and sine numerically and displays the final complex number. When r1r \neq 1, an additional multiplication step appears showing reiθ=rcosθ+irsinθr \cdot e^{i\theta} = r\cos\theta + ir\sin\theta.

At landmark angles, an orange callout box appears with the symbolic result — for example, "eiπ=1e^{i\pi} = -1" and a note explaining its significance. This callout only activates when r=1r = 1 and the angle is within a small tolerance of a preset value.

What is Euler's Formula?

Euler's formula states that for any real number θ\theta:

eiθ=cosθ+isinθe^{i\theta} = \cos\theta + i\sin\theta


This equation bridges three seemingly unrelated mathematical objects: the exponential function, trigonometric functions, and the imaginary unit ii. It reveals that raising ee to an imaginary power produces a point on the unit circle in the complex plane, with the angle θ\theta measured in radians from the positive real axis.

The formula can be derived from the Taylor series expansions of exe^x, cosx\cos x, and sinx\sin x. When x=iθx = i\theta is substituted into the exponential series, the real terms collect into the cosine series and the imaginary terms collect into the sine series.

This is one of the most important results in mathematics because it unifies algebra, geometry, and analysis. It converts between rectangular form a+bia + bi and polar form reiθre^{i\theta}, making operations like multiplication, division, and exponentiation of complex numbers far simpler.

Euler's Identity — The Special Case at θ = π

Setting θ=π\theta = \pi in Euler's formula gives:

eiπ=cosπ+isinπ=1+0i=1e^{i\pi} = \cos\pi + i\sin\pi = -1 + 0i = -1


Rearranging: eiπ+1=0e^{i\pi} + 1 = 0. This is Euler's identity, often called the most beautiful equation in mathematics because it links five fundamental constants — ee, ii, π\pi, 11, and 00 — in a single compact relation.

In the explorer, click the π\pi button to see this visually. The point lands at (1,0)(-1, 0) on the negative real axis. The triangle collapses to a horizontal line pointing left, and the orange landmark callout confirms the identity.

Similarly, setting θ=π2\theta = \frac{\pi}{2} gives eiπ/2=ie^{i\pi/2} = i, meaning that multiplying by eiπ/2e^{i\pi/2} rotates any complex number by 90° counterclockwise. And θ=2π\theta = 2\pi returns to ei2π=1e^{i \cdot 2\pi} = 1, completing a full revolution. These special cases demonstrate that the exponential function naturally encodes rotation in the complex plane.
ReIm-2-2i-1-1i11i22iθcos θr = 1e
θ = π, frozen

Euler’s identity as a picture: a half-turn arc, a flat segment to −1, and the active landmark dot — e, i, π, 1 and 0 in one frame.

The frozen frame is the identity as geometry: the orange arc sweeps a perfect half-turn, the triangle has flattened into the teal segment pointing at 1-1, and the active landmark dot glows under the point. Five constants, one picture — ee and ii in the exponent, π\pi in the arc, 11 in the radius, 00 in the vanished imaginary part.

What makes the identity feel inevitable rather than miraculous is the walk there: it is the zero angle rotated through the quarter turn and onward, half the journey around the circle. Continue the same half-turn again and you land back at 11 — which is just eiπeiπ=e2πi=1e^{i\pi} \cdot e^{i\pi} = e^{2\pi i} = 1, the exponential law doing rotation arithmetic.

The Right Triangle, Trigonometry, and Polar Form

The colored right triangle displayed in the explorer is the geometric heart of Euler's formula. Its three sides directly represent the three parts of the equation reiθ=rcosθ+irsinθre^{i\theta} = r\cos\theta + ir\sin\theta.

The navy hypotenuse from the origin to the point zz has length r=zr = |z|, the modulus. The green horizontal leg from the origin to the projection on the real axis has length rcosθ|r\cos\theta|, the real part. The red vertical leg from the real-axis projection up to zz has length rsinθ|r\sin\theta|, the imaginary part.

This is identical to the standard trigonometric relationship in a right triangle where the adjacent side is rcosθr\cos\theta and the opposite side is rsinθr\sin\theta. The formula eiθe^{i\theta} simply packages this triangle into exponential notation.

The polar form z=reiθz = re^{i\theta} is useful because multiplication of complex numbers becomes:

z1z2=r1r2ei(θ1+θ2)z_1 \cdot z_2 = r_1 r_2 \cdot e^{i(\theta_1 + \theta_2)}


Moduli multiply, angles add. This is far simpler than expanding (a+bi)(c+di)(a + bi)(c + di) in rectangular form. The explorer makes this visible: the angle θ\theta controls rotation while rr controls scaling.