How it works
In a right-angled triangle, tan θ = opposite ÷ adjacent. For any angle, tan θ = sin θ ÷ cos θ, which is the slope of the line at angle θ. Where cos θ = 0 (90°, 270°, …) the tangent has no value.
tan θ = opposite / adjacent = sin θ / cos θ
Tangent repeats every 180° (π radians), so tan 225° = tan 45° = 1.
| θ | 0° | 30° | 45° | 60° | 90° |
|---|---|---|---|---|---|
| tan θ | 0 | √3/3 | 1 | √3 | undefined |
Worked example
From 40 m away, the angle of elevation to the top of a tower is 30°. How tall is it? Height = 40 × tan 30° = 40 × √3/3 = 40√3/3 ≈ 23.09 m.
Exact value of tan 75°
75° is not in the basic table, but it is 45° + 30°. The addition formula tan(u + v) = (tan u + tan v) ÷ (1 − tan u tan v) gives an exact answer:
tan 75° = (1 + √3/3) ÷ (1 − √3/3) = 2 + √3 ≈ 3.732050808
The same steps with 45° − 30° give tan 15° = 2 − √3 ≈ 0.2679491924. The calculator above shows these two angles as decimals, so the exact forms are useful when a question asks for one.
Height from a shadow
A flagpole casts a shadow 12 m long when the sun is 52° above the horizon. The shadow is the adjacent side and the pole is the opposite side. tan 52° ≈ 1.279941632, so
height = 12 × tan 52° ≈ 15.35929959 m
The pole is about 15.36 m tall.
Why does tan get so big near 90°?
As θ gets close to 90°, cos θ gets close to 0, and dividing sin θ by a tiny number gives a huge result. tan 89° ≈ 57.28996163, tan 89.9° ≈ 572.9572134 and tan 89.99° ≈ 5729.577893. The values grow without limit, so at exactly 90° there is no number to give.
Common mistakes
- Using the wrong angle unit. tan 45° = 1, but with the angle unit set to Radians, tan(45) ≈ 1.619775191, because 45 radians is a different angle.
- Using the hypotenuse. Tangent is opposite over adjacent. If you know the hypotenuse, sine or cosine is the right choice.
- Expecting the signs to follow cosine. Tangent is negative between 90° and 180°, so tan 135° = −1, the same as tan(−45°).
- Rounding too early. Keep the full value of tan θ until the last step, then round the final length.
Tangent of larger angles
| θ | tan θ (exact) | tan θ (decimal) |
|---|---|---|
| 15° | 2 − √3 | 0.2679491924 |
| 75° | 2 + √3 | 3.732050808 |
| 120° | −√3 | −1.732050808 |
| 135° | −1 | −1 |
| 150° | −√3/3 | −0.5773502692 |
| 180° | 0 | 0 |
| 270° | undefined | undefined |
Tips
- Angle-of-elevation questions use tan, because you know the horizontal distance (adjacent) and want the height (opposite).
- tan 90° is undefined; the calculator says so instead of showing a huge number.
- √3/3 is the same as 1/√3, written with a whole-number denominator.
Questions
What is tan 90°?
Undefined, because cos 90° = 0 and tan θ = sin θ ÷ cos θ.
Is tan 30° equal to 1/√3?
Yes. 1/√3 = √3/3 ≈ 0.5773502692; the calculator writes it as √3/3.
How do I find an angle from a tangent?
Use tan⁻¹ (arctan): tan⁻¹(1) = 45°. See the arctan calculator.
What is the tangent of 45 degrees?
Exactly 1. In a right triangle with a 45° angle, the opposite and adjacent sides are the same length, so their ratio is 1.
Why is tan 0 equal to 0?
tan 0° = sin 0° ÷ cos 0° = 0 ÷ 1 = 0. A line at 0° is flat, so its slope is 0.
How do you put tan in a calculator?
Check the angle mode first, degrees or radians, then take tan of the angle. The same number gives a different answer in each mode. On this page, choose the unit in the Angle unit list.
Sources
- NIST Digital Library of Mathematical Functions, Chapter 4: Elementary Functions. Table 4.17.1: exact values at multiples of π/12, including tan(π/12) = 2 − √3 and tan(5π/12) = 2 + √3. Checked 22 November 2026.
- NIST Digital Library of Mathematical Functions, Chapter 4: Elementary Functions. Equation 4.21.4: tan(u ± v) = (tan u ± tan v)/(1 ∓ tan u tan v). Checked 22 November 2026.
- NIST Digital Library of Mathematical Functions, Chapter 4: Elementary Functions. Equation 4.14.4: tan z = sin z / cos z; Equation 4.14.10: tan(z + kπ) = tan z. Checked 22 November 2026.