The Tangent Function
Tangent is the ratio of sine to cosine: tan(θ) = sin(θ)/cos(θ). It equals opposite/adjacent in a right triangle and represents the slope of a line at angle θ.
Did our AI summary help? Let us know.
Tangent is positive in Q1 and Q3 (sin and cos same sign), negative in Q2 and Q4. tan(30°)=1/√3, tan(45°)=1, tan(60°)=√3 — the slope of a line at that angle. The inverse arctan returns angles in (-π/2, π/2); atan2 handles all quadrants.
Ready to run the numbers?
Why: Tangent models slopes, elevation angles, and growth rates. Surveyors use it for distances; calculus uses it for derivatives: d/dx[tan(x)] = sec²(x).
How: tan(θ) = sin(θ)/cos(θ) = opposite/adjacent. When cos(θ)=0 (at 90°, 270°), tangent is undefined. The function has period π because both sin and cos flip sign.
Run the calculator when you are ready.
Examples — Click to Load
Trig Value Breakdown
All 6 Trig Functions
tan² vs 1 (tan²+1=sec²)
Calculation Breakdown
For educational and informational purposes only. Verify with a qualified professional.
🧮 Fascinating Math Facts
Tangent literally means 'touching' — the tangent line to the unit circle at (1,0) extends to meet the terminal side.
— Wolfram MathWorld
Unlike sine and cosine, tangent has no maximum — it approaches ±∞ at vertical asymptotes.
— Paul's Online Notes
Key Takeaways
- • tan(θ) = opposite / adjacent in a right triangle; equivalently tan(θ) = sin(θ)/cos(θ)
- • Tangent has vertical asymptotes at 90°, 270°, etc. (where cos = 0). Range: all real numbers
- • Tangent is an odd function: tan(-θ) = -tan(θ) with period π (180°) — half of sine and cosine
- • The identity tan²(θ) + 1 = sec²(θ) relates tangent to secant
- • Tangent is positive in Q1 and Q3 (where sin and cos have same sign), negative in Q2 and Q4
Did You Know?
How the Tangent Function Works
Tangent is the ratio of sine to cosine: tan(θ) = sin(θ)/cos(θ). On the unit circle, it represents the length of the tangent line segment from (1,0) to the extended terminal side of angle θ.
Asymptotes and Undefined Values
When cos(θ) = 0 (at θ = 90°, 270°, etc.), the ratio sin/cos is undefined — division by zero. The tangent graph has vertical asymptotes at these angles. As θ approaches 90° from the left, tan(θ) → +∞; from the right, tan(θ) → -∞.
Period π (180°)
Tangent repeats every π radians because tan(θ+π) = sin(θ+π)/cos(θ+π) = (-sin θ)/(-cos θ) = tan θ. Both numerator and denominator flip sign, so the ratio stays the same. This is why the tangent graph has a shorter period than sine and cosine.
Slope Interpretation
If a line makes angle θ with the positive x-axis, its slope is tan(θ). A 45° line has slope 1; a 60° line has slope √3 ≈ 1.732. This geometric interpretation connects trigonometry to coordinate geometry.
Expert Tips
Memorize the Special Angles
tan(30°)=1/√3, tan(45°)=1, tan(60°)=√3. The pattern: 1/√3, 1, √3 for 30°, 45°, 60°. Use the Unit Circle Calculator to see the geometry.
Q1 and Q3 Are Positive
Tangent = sin/cos. Positive when sin and cos have the same sign (Q1 and Q3), negative when they differ (Q2 and Q4). Try the Sum & Difference Calculator.
Watch for Asymptotes
At 90°, 270°, and θ = π/2 + nπ, tangent is undefined. This calculator detects these and shows an error. In calculus, limits at these points are ±∞ depending on direction.
The tan²+1=sec² Identity
tan²θ + 1 = sec²θ. Divide sin²+cos²=1 by cos² to get it. Use this to find secant from tangent, or to integrate sec². See the Trig Identities Calculator.
Why Use This Calculator vs. Other Tools?
| Feature | This Calculator | Scientific Calculator | Manual Computation |
|---|---|---|---|
| All 6 trig functions at once | ✅ | ❌ One at a time | ❌ |
| Asymptote detection | ✅ | ❌ Shows error | ⚠️ Manual |
| Quadrant & reference angle | ✅ | ❌ | ✅ Slow |
| Visual charts & breakdown | ✅ | ❌ | ❌ |
| Step-by-step explanation | ✅ | ❌ | ✅ |
| tan²+1=sec² verification | ✅ | ❌ | ⚠️ Manual |
| Copy & share results | ✅ | ❌ | ❌ |
| Preset examples | ✅ | ❌ | ❌ |
Frequently Asked Questions
When is tangent undefined?
Tangent is undefined at 90°, 270°, and all angles where cos(θ) = 0 — that is, θ = π/2 + nπ (or 90° + n×180°). At these angles, the terminal side is vertical, and tan = sin/cos involves division by zero. The graph has vertical asymptotes at these points.
What is the period of tangent?
The period of tan(θ) is π radians (180°), half that of sine and cosine. So tan(θ + π) = tan(θ). This is because both sin and cos change sign when adding π, so their ratio stays the same.
Why is tangent positive in Q1 and Q3?
Tangent = sin/cos. In Q1, both sin and cos are positive. In Q3, both are negative. A negative divided by a negative is positive. In Q2 and Q4, one is positive and one negative, so the ratio is negative.
What is tan²(θ) + 1?
tan²(θ) + 1 = sec²(θ). This identity comes from dividing sin²+cos²=1 by cos². It is essential for calculus (integrating sec²) and for finding secant from tangent.
How does tangent relate to slope?
If a line makes angle θ with the positive x-axis, its slope is tan(θ). So a 45° line has slope 1, a 60° line has slope √3. This is because slope = rise/run = opposite/adjacent in the right triangle formed.
What is the range of tangent?
Tangent can take any real value: (-∞, +∞). Unlike sine and cosine, it is unbounded. As θ approaches 90° from the left, tan(θ) → +∞; from the right, tan(θ) → -∞.
Why is tangent called an odd function?
tan(-θ) = -tan(θ). A function is odd when f(-x) = -f(x). Graphically, the tangent curve has rotational symmetry about the origin — rotating 180° gives the same graph.
Where is tangent used in real life?
Tangent appears in surveying (elevation angles, distances), navigation (bearing calculations), physics (inclined planes, friction), engineering (slope stability, ramp design), and computer graphics (perspective, 3D rotations).
Tangent Function by the Numbers
Official & Educational Sources
Disclaimer: This calculator provides results based on standard IEEE 754 floating-point arithmetic. Results are accurate to approximately 15 significant digits. Tangent is undefined at 90°, 270°, etc. — the calculator will display an error at these angles. Not a substitute for professional engineering analysis.
Related Calculators
Cosine Calculator
Calculate the cosine of any angle in degrees or radians. Get cos(θ), related sin and tan values, quadrant info, step-by-step solutions, and interactive...
MathematicsSine Calculator
Calculate the sine of any angle in degrees or radians. Get sin(θ), related cos and tan values, quadrant info, step-by-step solutions, and interactive charts....
MathematicsCosecant Calculator
Calculate the cosecant of any angle in degrees or radians. Get csc(θ) = 1/sin(θ), undefined detection at 0°/180°, step-by-step solutions, and interactive...
MathematicsCotangent Calculator
Calculate the cotangent of any angle in degrees or radians. Get cot(θ) = cos(θ)/sin(θ), undefined detection at 0° and 180°, step-by-step solutions, and...
MathematicsSecant Calculator
Calculate the secant of any angle in degrees or radians. Get sec(θ) = 1/cos(θ), undefined detection at 90° and 270°, step-by-step solutions, and interactive...
MathematicsUnit Circle Calculator
Find x (cos), y (sin), reference angle, quadrant for any angle. Step-by-step, charts.
Mathematics