Tangent — The Slope of a Circle

How dividing sine by cosine creates the most dramatic trig function

Mathematics Trigonometry beginner 5 min

This concept builds on Sine on the Unit Circle and in a Right Triangle, Cosine — The Other Side. Consider exploring them first for the best experience.

Step 1 of 6

Same Triangle, New Ratio

Start with the familiar unit circle: radius 1, a red point on the edge, the green opposite leg sin(θ) and the blue adjacent leg cos(θ). Tangent compares those two legs: tan(θ) = opposite / adjacent = sin(θ) / cos(θ). The "tan(θ)" card and the formula box under the canvas show that division live.

The Tangent Line

Look at the faint vertical line touching the right edge of the circle. The radius through the red point is extended until it meets that line, and the bold amber segment from the horizontal axis to the meeting point has length tan(θ). That is where the name comes from: the value lives on a line tangent to the circle.

Drag Toward 90°

Drag the red point up the circle, or slide the "Angle θ" slider, toward 90°. As the point climbs, cos(θ) shrinks toward 0 and the extended radius turns almost vertical, so it meets the tangent line higher and higher: the amber segment and the "tan(θ)" card shoot toward infinity. At exactly 90° the card shows ∞ because dividing by 0 has no answer.

Worked Example: tan 45° and tan 60°

Set the "Angle θ" slider to 45°. Both legs are equal, sin(45°) = cos(45°) ≈ 0.707, so tan(45°) = 0.707 / 0.707 = 1 and the amber segment is exactly one radius tall. Now go to 60°: sin(60°) ≈ 0.866 and cos(60°) = 0.5, so tan(60°) = 0.866 / 0.5 ≈ 1.73. A ramp rising at 60° climbs 1.73 m for every 1 m forward.

The Asymptotes

Press Play and follow the amber trace on the right. tan(θ) rises from 0, rockets upward as θ nears 90°, then reappears from far below just after it. The dashed red lines at 90° and 270° are the vertical asymptotes, where cos(θ) = 0 and tangent is undefined, so the curve breaks twice in every full turn.

Overlay and the 180° Period

Tick the overlay checkbox to draw the green sin θ and blue cos θ curves under the tangent curve. Wherever the blue curve crosses zero the amber curve breaks; wherever the green curve crosses zero tangent is 0 as well. The shape between two asymptotes repeats every 180°, half the period of sine and cosine, and covers every real number.

How It Works — Step by Step

Step 1 of 6
  1. 1

    Same Triangle, New Ratio

    Start with the familiar unit circle: radius 1, a red point on the edge, the green opposite leg sin(θ) and the blue adjacent leg cos(θ). Tangent compares those two legs: tan(θ) = opposite / adjacent = sin(θ) / cos(θ). The "tan(θ)" card and the formula box under the canvas show that division live.

  2. 2

    The Tangent Line

    Look at the faint vertical line touching the right edge of the circle. The radius through the red point is extended until it meets that line, and the bold amber segment from the horizontal axis to the meeting point has length tan(θ). That is where the name comes from: the value lives on a line tangent to the circle.

  3. 3

    Drag Toward 90°

    Drag the red point up the circle, or slide the "Angle θ" slider, toward 90°. As the point climbs, cos(θ) shrinks toward 0 and the extended radius turns almost vertical, so it meets the tangent line higher and higher: the amber segment and the "tan(θ)" card shoot toward infinity. At exactly 90° the card shows ∞ because dividing by 0 has no answer.

  4. 4

    Worked Example: tan 45° and tan 60°

    Set the "Angle θ" slider to 45°. Both legs are equal, sin(45°) = cos(45°) ≈ 0.707, so tan(45°) = 0.707 / 0.707 = 1 and the amber segment is exactly one radius tall. Now go to 60°: sin(60°) ≈ 0.866 and cos(60°) = 0.5, so tan(60°) = 0.866 / 0.5 ≈ 1.73. A ramp rising at 60° climbs 1.73 m for every 1 m forward.

  5. 5

    The Asymptotes

    Press Play and follow the amber trace on the right. tan(θ) rises from 0, rockets upward as θ nears 90°, then reappears from far below just after it. The dashed red lines at 90° and 270° are the vertical asymptotes, where cos(θ) = 0 and tangent is undefined, so the curve breaks twice in every full turn.

  6. 6

    Overlay and the 180° Period

    Tick the overlay checkbox to draw the green sin θ and blue cos θ curves under the tangent curve. Wherever the blue curve crosses zero the amber curve breaks; wherever the green curve crosses zero tangent is 0 as well. The shape between two asymptotes repeats every 180°, half the period of sine and cosine, and covers every real number.

Key Takeaways

Slope of the Radius

tan(θ) = sin(θ)/cos(θ) = y/x — it is literally the slope of the line from the origin to the point on the circle.

Undefined at 90°

At 90° and 270°, cos(θ) = 0, so tangent is undefined. These are the vertical asymptotes of the tangent curve.

Repeats Every 180°

Unlike sine and cosine (period 360°), tangent has a period of 180° — it completes one full cycle in half a rotation.

Range is All Reals

Sine and cosine stay in [-1, 1]. Tangent covers all real numbers — it goes from -∞ to +∞ in each half-cycle.

Added
Updated
  • — Rebuilt steps around the tangent line and the Angle θ slider, with a tan 45° and tan 60° worked example and quiz.