How Tangent Calculator Works?
The Tangent Calculator works by dividing sin(θ) by cos(θ) for the entered angle and reporting “Undefined” where cos(θ) = 0, such as at 90° and 270°.
- Input the angle. Enter a value such as 45, 1.2, or −30.
- Choose degrees, radians, gradians, or turns. The value converts to radians before evaluation.
- Read tan(θ). The result can be any real number. Values grow very large near 90° (π/2) and 270° (3π/2).
- Watch the asymptotes. An input of exactly 90° returns “Undefined”, since the cosine in the denominator equals 0.
Tangent Calculator Formula
Tangent equals the opposite side divided by the adjacent side, which is the same as sin(θ) divided by cos(θ).
- Opposite
- = side across from θ
- Adjacent
- = leg next to θ
- x, y
- = coordinates of the terminal point
- m
- = slope of a line making angle θ with the x-axis
Worked Example
Find tan(45°). sin(45°) = cos(45°) = √2/2, so tan(45°) = 1.
A tree casts a shadow 20 m (65.6 ft) long when the sun is 35° above the horizon. The tree height is 20 × tan(35°) ≈ 14.0 m (45.9 ft).
Tangent Calculator Conversion Table
The tangent conversion table shows tan(θ) for 17 standard angles. “Undefined” marks the 2 vertical asymptotes inside one full turn.
| Degrees | Radians | Exact tan(θ) | Decimal tan(θ) |
|---|---|---|---|
| 0° | 0 | 0 | 0 |
| 30° | π/6 | √3/3 | 0.5774 |
| 45° | π/4 | 1 | 1 |
| 60° | π/3 | √3 | 1.7321 |
| 90° | π/2 | Undefined | Undefined |
| 120° | 2π/3 | −√3 | −1.7321 |
| 135° | 3π/4 | −1 | −1 |
| 150° | 5π/6 | −√3/3 | −0.5774 |
| 180° | π | 0 | 0 |
| 210° | 7π/6 | √3/3 | 0.5774 |
| 225° | 5π/4 | 1 | 1 |
| 240° | 4π/3 | √3 | 1.7321 |
| 270° | 3π/2 | Undefined | Undefined |
| 300° | 5π/3 | −√3 | −1.7321 |
| 315° | 7π/4 | −1 | −1 |
| 330° | 11π/6 | −√3/3 | −0.5774 |
| 360° | 2π | 0 | 0 |
Tangent repeats every 180° (π rad), so tan(225°) equals tan(45°).
What is Tangent Calculator?
A Tangent Calculator is a tool that returns tan(θ), the ratio of sine to cosine, for any angle in degrees, radians, gradians, or turns. Tangent (tan) is the third primary trigonometric function.
Tangent differs from sine and cosine in 3 ways: the range is all real numbers, the period is 180° (π) instead of 360° (2π), and the graph has vertical asymptotes at 90° + k·180°.
Tangent is an odd function, so tan(−θ) = −tan(θ). Tangent of an angle equals the slope of the line through the origin at that angle.
What are the uses of Tangent Calculator?
There are 6 practical uses of a Tangent Calculator, including height measurement and slope design.
- Height measurement: Find building or tree height from the horizontal distance and the angle of elevation.
- Slope and grade: Convert an incline angle into a percent grade; a 5.71° road slope equals a 10% grade.
- Roof pitch: Relate rise over run, where a 6/12 pitch matches tan(θ) = 0.5, or θ ≈ 26.57°.
- Camera optics: Compute field of view from sensor width and focal length.
- Line geometry: Get the slope of a line from its angle with the x-axis.
- Ballistics: Find launch angles and trajectories in projectile problems.