TExcelTAD
Home › Pre-Calculus, Geometry & Trigonometry › Angles and Radians

Angles and Radians

An angle measures an amount of turning. People usually count it in degrees, but mathematics and almost every programming library count it in radians. This lesson explains both units, how to convert between them, and why radians are the natural choice.

Two ways to measure a turn

An angle is formed by two rays that share an endpoint, the vertex. In trigonometry we usually place the vertex at the origin, start the first ray (the initial side) along the positive x-axis, and rotate to the terminal side. Counter-clockwise rotation is positive, clockwise is negative.

  • Degrees split a full turn into 360 equal parts. The number 360 is historical: it has many divisors (2, 3, 4, 5, 6, 8, 9, 10, 12, ...), which made hand calculation easy.
  • Radians measure the angle by the arc it cuts out of a circle. An angle of 1 radian is the angle whose arc is exactly as long as the radius.
θ (in radians)=arc lengthradius=sr\theta\ (\text{in radians}) = \frac{\text{arc length}}{\text{radius}} = \frac{s}{r}

A full circle has circumference 2πr2\pi r, so a full turn is 2πrr=2π radians\frac{2\pi r}{r} = \boldsymbol{2\pi}\ \textbf{radians}. That gives the one fact you need for every conversion:

360∘=2π radso180∘=π raddegrees→radians: multiply by π180radians→degrees: multiply by 180π1 rad=180π≈57.2958∘\begin{aligned} 360^\circ &= 2\pi\ \text{rad} \qquad\text{so}\qquad 180^\circ = \pi\ \text{rad} \\ \text{degrees} \to \text{radians}&: \ \text{multiply by } \frac{\pi}{180} \\ \text{radians} \to \text{degrees}&: \ \text{multiply by } \frac{180}{\pi} \\ 1\ \text{rad} &= \frac{180}{\pi} \approx 57.2958^\circ \end{aligned}
Degrees 0∘0^\circ 30∘30^\circ 45∘45^\circ 60∘60^\circ 90∘90^\circ 120∘120^\circ 135∘135^\circ 180∘180^\circ 270∘270^\circ 360∘360^\circ
Radians 00 π6\frac{\pi}{6} π4\frac{\pi}{4} π3\frac{\pi}{3} π2\frac{\pi}{2} 2π3\frac{2\pi}{3} 3π4\frac{3\pi}{4} π\pi 3π2\frac{3\pi}{2} 2π2\pi

Tip: Think "π=half a turn\pi = \text{half a turn}". Then π2\frac{\pi}{2} is a quarter turn, π3\frac{\pi}{3} is a third of a half turn (60°), and 3π2\frac{3\pi}{2} is three quarter turns.

Converting in Python

The math module has math.radians and math.degrees. SymPy keeps π\pi exact, which is handy for seeing clean fractions of π\pi:

python · try it yourself
import math
import sympy as sp

for d in [30, 45, 90, 150, 270]:
    print(f"{d:>3}° = {math.radians(d):.6f} rad = {sp.Rational(d, 180) * sp.pi}")

print("1 rad =", round(math.degrees(1), 4), "degrees")
print("2.5 rad =", round(math.degrees(2.5), 2), "degrees")
 30° = 0.523599 rad = pi/6
 45° = 0.785398 rad = pi/4
 90° = 1.570796 rad = pi/2
150° = 2.617994 rad = 5*pi/6
270° = 4.712389 rad = 3*pi/2
1 rad = 57.2958 degrees
2.5 rad = 143.24 degrees

SymPy prints π\pi as pi and multiplication as *, so 5*pi/6 means 5π6\frac{5\pi}{6}.

Why radians are natural

With radians, arc length and sector area have the simplest possible formulas, with no stray conversion factors:

arc lengths=r⋅θsector areaA=12⋅r2⋅θangular speedω=θt,linear speed v=r⋅ω\begin{aligned} &\text{arc length} && s = r \cdot \theta \\ &\text{sector area} && A = \tfrac{1}{2} \cdot r^2 \cdot \theta \\ &\text{angular speed} && \omega = \frac{\theta}{t}, \qquad \text{linear speed } v = r \cdot \omega \end{aligned}

In degrees the same formulas need a factor π180\frac{\pi}{180}. Radians also make calculus clean: the fact that sin⁡x≈x\sin x \approx x for small xx (and that the derivative of sin⁡\sin is cos⁡\cos) is only true when xx is in radians. You will see this in the trig functions lesson of the calculus course.

python · try it yourself
import math

r = 10           # radius in cm
theta = 1.2      # radians
print("arc length :", r * theta, "cm")
print("sector area:", 0.5 * r**2 * theta, "cm²")

# small-angle check: sin x ≈ x only in radians
for x in [0.1, 0.01]:
    print(f"sin({x}) = {math.sin(x):.8f}")
print(f"sin of 0.1 'degrees' read as radians would be wrong: sin(0.1°) = {math.sin(math.radians(0.1)):.8f}")
arc length : 12.0 cm
sector area: 60.0 cm²
sin(0.1) = 0.09983342
sin(0.01) = 0.00999983
sin of 0.1 'degrees' read as radians would be wrong: sin(0.1°) = 0.00174533

Coterminal angles and reference angles

Angles that differ by a whole number of turns end at the same terminal side; they are coterminal. 30°, 390° and −330° all point the same way. To bring any angle into the range [0,2π)[0, 2\pi), take it modulo 2π2\pi. Python's % already returns a non-negative result for a positive divisor, which is exactly what you want:

θ mod 2π(or θ mod 360 in degrees)\theta \bmod 2\pi \qquad (\text{or } \theta \bmod 360 \text{ in degrees})

The reference angle is the acute angle between the terminal side and the x-axis. For 150° it is 30°, for 225° it is 45°. Reference angles let you reduce every angle to the first quadrant, which the unit circle lesson uses heavily.

In software

  • Every math library uses radians. math.sin, numpy.sin, JavaScript's Math.sin, C's sin, GLSL's sin all expect radians. Passing degrees is one of the most common bugs in game and graphics code: math.sin(90) is about 0.894, not 1.
  • Engines often show degrees. Unity's inspector, CSS rotate(45deg) and most UI angle fields use degrees for humans, and convert internally. Keep one unit in your code (radians) and convert only at the edges: input fields and display. Naming helps: angle_rad, heading_deg.
  • Wrapping headings. A spinning object accumulates a huge angle; wrap it with % (2 * math.pi) so values stay small and comparisons work. The game math radians lesson covers more patterns.
python · try it yourself
import math

print("math.sin(90)               =", round(math.sin(90), 6), " # bug: 90 radians")
print("math.sin(math.radians(90)) =", math.sin(math.radians(90)))

heading = 0.0
for _ in range(25):            # spin by 100° per frame for 25 frames
    heading += math.radians(100)
print("raw heading :", round(heading, 4), "rad")
print("wrapped     :", round(heading % (2 * math.pi), 4), "rad =",
      round(math.degrees(heading % (2 * math.pi)), 2), "°")
math.sin(90)               = 0.893997  # bug: 90 radians
math.sin(math.radians(90)) = 1.0
raw heading : 43.6332 rad
wrapped     : 5.9341 rad = 340.0 °

25×100∘=2500∘=6 full turns (2160∘) plus 340∘25 \times 100^\circ = 2500^\circ = 6 \text{ full turns } (2160^\circ) \text{ plus } 340^\circ, so the wrapped heading is right.

Exercises

Exercise 1: Convert

Convert 210° and −45° to radians (exact, in terms of π\pi), and 5π4\frac{5\pi}{4} and 3 rad to degrees.

Answer

210∘=7π6210^\circ = \frac{7\pi}{6}, −45∘=−π4-45^\circ = -\frac{\pi}{4}, 5π4=225∘\frac{5\pi}{4} = 225^\circ, 3 rad≈171.89∘3\ \text{rad} \approx 171.89^\circ.

Solution
210×π180=210π180=7π6−45×π180=−π45π4×180π=5×45=225∘3×180π=540π≈171.887∘\begin{aligned} 210 \times \frac{\pi}{180} &= \frac{210\pi}{180} = \frac{7\pi}{6} \\ -45 \times \frac{\pi}{180} &= -\frac{\pi}{4} \\ \frac{5\pi}{4} \times \frac{180}{\pi} &= 5 \times 45 = 225^\circ \\ 3 \times \frac{180}{\pi} &= \frac{540}{\pi} \approx 171.887^\circ \end{aligned}

Exercise 2: Arc and sector

A pizza has radius 18 cm. A slice has a central angle of 40°. Find the length of its crust edge and its area.

Answer

Arc≈12.57 cm\text{Arc} \approx 12.57\ \text{cm} (exactly 4π cm4\pi\ \text{cm}), area≈113.10 cm2\text{area} \approx 113.10\ \text{cm}^2 (exactly 36π cm236\pi\ \text{cm}^2).

Solution
θ=40×π180=2π9 rads=r⋅θ=18×2π9=4π≈12.566 cmA=12r2θ=12×324×2π9=36π≈113.097 cm2\begin{aligned} \theta &= 40 \times \frac{\pi}{180} = \frac{2\pi}{9}\ \text{rad} \\ s &= r \cdot \theta = 18 \times \frac{2\pi}{9} = 4\pi \approx 12.566\ \text{cm} \\ A &= \tfrac{1}{2} r^2 \theta = \tfrac{1}{2} \times 324 \times \frac{2\pi}{9} = 36\pi \approx 113.097\ \text{cm}^2 \end{aligned}
python · try it yourself
import math
theta = math.radians(40)
print(round(18 * theta, 3), round(0.5 * 18**2 * theta, 3))
12.566 113.097

Exercise 3: Coterminal and reference angles

Find the angle in [0∘,360∘)[0^\circ, 360^\circ) coterminal with 1000°, and with −250°. Give the reference angle of each.

Answer

1000∘→280∘1000^\circ \to 280^\circ, reference angle 80°. −250∘→110∘-250^\circ \to 110^\circ, reference angle 70°.

Solution
1000−2⋅360=280∘(quadrant IV), reference=360−280=80∘−250+360=110∘(quadrant II), reference=180−110=70∘\begin{aligned} 1000 - 2 \cdot 360 &= 280^\circ && (\text{quadrant IV}),\ \text{reference} = 360 - 280 = 80^\circ \\ -250 + 360 &= 110^\circ && (\text{quadrant II}),\ \text{reference} = 180 - 110 = 70^\circ \end{aligned}
python · try it yourself
print(1000 % 360, -250 % 360)
280 110

Exercise 4: A wheel's speed

A bike wheel of radius 0.35 m turns at 4 revolutions per second. Find its angular speed in rad/s and the bike's speed in m/s and km/h.

Answer

ω=8π≈25.13 rad/s\omega = 8\pi \approx 25.13\ \text{rad/s}, v≈8.80 m/s≈31.67 km/hv \approx 8.80\ \text{m/s} \approx 31.67\ \text{km/h}.

Solution
ω=4 rev/s×2π rad/rev=8π rad/s≈25.133 rad/sv=r⋅ω=0.35×8π≈8.796 m/skm/h: 8.796×3.6≈31.67\begin{aligned} \omega &= 4\ \text{rev/s} \times 2\pi\ \text{rad/rev} = 8\pi\ \text{rad/s} \approx 25.133\ \text{rad/s} \\ v &= r \cdot \omega = 0.35 \times 8\pi \approx 8.796\ \text{m/s} \\ \text{km/h}&: \ 8.796 \times 3.6 \approx 31.67 \end{aligned}
python · try it yourself
import math
w = 4 * 2 * math.pi
v = 0.35 * w
print(round(w, 3), round(v, 3), round(v * 3.6, 2))
25.133 8.796 31.67

Exercise 5: Shortest turn

A turret faces 350° and must turn to face 20°. Write shortest_turn(a, b) (degrees) that returns the signed turn in (−180,180](-180, 180] that gets from aa to bb, and test it on (350, 20) and (20, 350).

Answer

shortest_turn(350, 20) = 30 and shortest_turn(20, 350) = −30.

Solution

Take the difference modulo 360 to get a value in [0,360)[0, 360), then subtract 360 if it is above 180.

python · try it yourself
def shortest_turn(a, b):
    d = (b - a) % 360
    return d - 360 if d > 180 else d

print(shortest_turn(350, 20), shortest_turn(20, 350), shortest_turn(0, 180))
30 -30 180

Test yourself

How many radians is 120°?

  1. π3\frac{\pi}{3}
  2. 2π3\frac{2\pi}{3}
  3. 3π4\frac{3\pi}{4}
  4. 4π3\frac{4\pi}{3}

What does math.sin(30) compute in Python?

  1. sin⁡30∘=0.5\sin 30^\circ = 0.5
  2. The sine of 30 radians
  3. An error, because 30 is not in radians
  4. sin⁡(π/6)\sin(\pi/6)

A circle has radius 5. What is the arc length cut out by an angle of 2 radians?

  1. 2.5
  2. 7
  3. 10
  4. 10π10\pi