Calculate tangent values for any angle in degrees or radians. Visualize tangent function and understand trigonometric properties with interactive graphs.
The tangent function (tan θ) is one of the fundamental trigonometric ratios. In a right triangle, tan θ = opposite / adjacent. On the unit circle (radius = 1), tan θ corresponds to the length of the line segment tangent to the circle at the point (1,0) — from that point to the intersection with the terminal ray extended. This geometric interpretation explains why tan θ is periodic with period π (180°) and why it becomes undefined at θ = π/2 + kπ (vertical asymptotes).
tan θ = sin θ / cos θ cot θ = 1 / tan θ sec θ = 1 / cos θ
For any real angle where cos θ ≠ 0.
The tangent function appears extensively in physics (projectile motion, inclined planes), engineering (slope, grade, phase angles), and navigation (bearing calculations). The derivative of tan x is sec² x, making it essential in calculus and differential equations.
The tangent function was developed alongside sine and cosine by Islamic mathematicians in the 9th century, notably by Al-Battani. Later, European mathematicians like Regiomontanus and Euler formalized the modern analytic definition. The word “tangent” comes from Latin tangere (to touch), reflecting its geometric origin as a line touching the circle.
In civil engineering, the grade (steepness) of a road is expressed as a percentage: grade = tan(θ) × 100%, where θ is the angle of inclination. A 10% grade corresponds to tan θ = 0.10 → θ ≈ 5.71°. Our calculator instantly provides tan θ, allowing engineers to convert between slope ratios and degrees.
Consider the unit circle centered at origin. The terminal ray of angle θ intersects the circle at point P = (cos θ, sin θ). The vertical line x = 1 is tangent to the circle at T = (1,0). Extending the terminal ray meets this line at point Q = (1, tan θ). The signed distance from T to Q equals tan θ — positive if Q is above x-axis, negative if below. This visual makes clear why tan θ = sinθ/cosθ and why tan is undefined when cosθ = 0.
| Angle θ (degrees) | tan θ | Quadrant | Sign of tan |
|---|---|---|---|
| 0° | 0 | Boundary | Zero |
| 30° | 0.5774 | QI | Positive |
| 45° | 1 | QI | Positive |
| 60° | 1.7321 | QI | Positive |
| 120° | -1.7321 | QII | Negative |
| 180° | 0 | Boundary | Zero |
| 240° | 1.7321 | QIII | Positive |
This calculator uses double-precision floating point arithmetic compliant with IEEE 754. For verification, you may compare results with:
Precision note: For angles extremely close to asymptotes (e.g., 90° ± 1e-10), tan values may exceed 1e15; the calculator will show them as finite numbers. This reflects mathematical reality.
Exact values for common angles: tan(30°)=√3/3 ≈ 0.577350, tan(45°)=1, tan(60°)=√3 ≈ 1.732051. The calculator approximates these to 6 decimal places.
Accuracy guarantee: All trigonometric computations are performed using native JavaScript Math functions, which are tested for correctness across all real numbers. The visual representation aligns with analytic geometry principles.