Skip to content

Tangent Calculator

Type or scrub the slider to evaluate tan(θ) instantly. Exact values appear automatically for the canonical angles (0°, 30°, 45°, 60°, 90°, …); decimal values everywhere else. The unit-circle visual updates live, and the tangent curve below shows where the function blows up at θ = 90° + 180°·k.

Angle

Updates as you type
Unit
Measurement unit ?
Angle
Angle (θ) ?
°
−360°−180°180°360°
Quick angles ?

Keyboard: focus the input then / to nudge 1°, Shift+/ for 15°. D/R/G switch units.

Tangent curve

y = tan(θ) — vertical asymptotes at ±90°, ±270°
90° 180° 270° 360° 450° 540° 630° 720°

The tangent function repeats every 180° (period π) and shoots to ±∞ at every 90° + 180°·k. The grey vertical lines mark those asymptotes; near them, tiny shifts in θ cause huge jumps in tan(θ).

Show the working

    Common angles reference

    Tap a row to load it · current angle highlighted
    DegRadsincostancot

    Formula

    tan(θ) = opposite adjacent = sin(θ) cos(θ)
    Unit circle: tan(θ) is the slope of the line from the origin to the point reached by rotating an angle θ counter-clockwise from the positive x-axis on a circle of radius 1 — equivalently, the y-coordinate divided by the x-coordinate of that point.
    Range & period: tan(θ) ∈ (−∞, +∞) and tan(θ + 180°) = tan(θ). Tangent is also odd: tan(−θ) = −tan(θ).
    Undefined: tan(θ) is undefined whenever cos(θ) = 0 — that is, at θ = 90° + 180°·k (or π/2 + π·k in radians). At these angles the curve has a vertical asymptote.
    θ
    The angle. Degrees, radians, or gradians — the calculator normalises both ways so you can type either.
    Opposite
    The right-triangle side facing θ.
    Adjacent
    The right-triangle side touching θ that is not the hypotenuse.
    Reference angle
    The acute angle between the terminal side and the nearest x-axis. tan(θ) and tan(reference) share the same magnitude; the sign is set by the quadrant.
    Quadrant signs
    tan is positive in quadrants I and III, negative in II and IV.
    Worked example — your numbers
    1. Angle θ =
    2. Convert to radians =
    3. Quadrant = → sign of tan is
    4. sin(θ) = ,   cos(θ) =
    5. tan(θ) = sin / cos =
    6. tan(θ) =

    When θ is one of the canonical angles (0°, 30°, 45°, 60°, …), the calculator shows the exact value (e.g. √3, √3/3). Otherwise it falls back to a high-precision decimal.

    Examples

    How It Works

    The tangent of an angle is the ratio of the side opposite the angle to the side adjacent to it in a right triangle. Equivalently, on the unit circle, tan(θ) is the slope of the line from the origin to the point reached by rotating an angle θ counter-clockwise from the positive x-axis — that is, the y-coordinate divided by the x-coordinate of that point.

    Because cos(θ) appears in the denominator, tan(θ) is undefined whenever cos(θ) = 0 — at θ = 90°, 270°, 450°, … (or π/2 + π·k in radians). The graph of y = tan(θ) has a vertical asymptote at each of these angles: as θ approaches them, tan(θ) shoots to +∞ from one side and −∞ from the other.

    The function is periodic with period 180° (π radians), so tan(θ + 180°) = tan(θ). It is also odd, meaning tan(−θ) = −tan(θ). Combined, these properties mean that knowing tan(θ) on the interval (−90°, 90°) is enough to know it everywhere else — every other input is just a shifted or reflected copy.

    For exam and textbook problems, the canonical angles 0°, 30°, 45°, 60°, 90°, 120°, 135°, 150°, 180°, … all have exact tangent values built from √2 and √3. The calculator shows those exact forms automatically (e.g. tan(60°) = √3, tan(30°) = √3/3); for any other angle it falls back to a high-precision decimal.

    Tips & Best Practices

    Tangent has a period of 180°, not 360° like sine and cosine — adding or subtracting 180° gives the same value.
    tan is positive in quadrants I and III (where sin and cos share a sign) and negative in II and IV (where they differ).
    Near 90°, 270°, etc., tiny changes in the angle cause huge changes in tan(θ). Treat results above ~10⁶ as effectively unbounded.
    Use the reference-angle trick: tan(θ) and tan of its reference angle have the same magnitude — only the quadrant sign changes.
    In radians, the asymptotes sit at π/2, 3π/2, 5π/2, … — convenient if you are working in pure radian form.

    Frequently Asked Questions

    Why is tan(90°) undefined?

    Because tan(θ) = sin(θ) / cos(θ) and cos(90°) = 0. Division by zero has no defined value, so tan(90°) is left undefined. The same happens at every angle of the form 90° + 180°·k.

    Multiply degrees by π/180 to get radians, or radians by 180/π to get degrees. So 45° = π/4 ≈ 0.785 rad, and 1 rad ≈ 57.296°.

    tan has a period of 180° (π radians) — half the period of sine and cosine. That means tan(45°) = tan(225°) = tan(405°) = 1, and so on.

    Use degrees for geometry, surveying, navigation, and most everyday measurement. Use radians for calculus, physics, engineering, and any context where derivatives or arc lengths matter — d/dx[tan(x)] = sec²(x) only when x is in radians.

    A gradian (or gon) divides a right angle into 100 parts, so a full circle is 400 grad. It is mostly used in surveying. The calculator supports it via the GRAD toggle.

    Drawing the angle on a circle of radius 1 makes the trig values geometric: cos(θ) is the x-coordinate of the point, sin(θ) is the y-coordinate, and tan(θ) is the slope of the line from the origin to that point — which is exactly y/x = sin/cos.

    No — tan is an odd function: tan(−θ) = −tan(θ). For example, tan(−45°) = −1, while tan(45°) = 1. Sine is also odd, but cosine is even (cos(−θ) = cos(θ)).