Skip to main content

Interactive Math Workbooks

Practice, learn and master mathematics with interactive exercises and instant feedback.

Tangent Calculator

Mathematics - Tangent function on unit circle and graph

Tangent Calculator — Calculate tan(x) in Degrees or Radians

Compute the tangent of any angle in degrees or radians with step-by-step explanation. Learn the unit circle definition, right-triangle tangent formula, graph of the tangent function, and common values with comprehensive FAQs. For related trigonometry tools, see our Pythagorean theorem calculator or the triangle area calculator.

Calculate Tangent of an Angle

Enter an angle and select the unit (degrees or radians). The calculator will compute tan(x) and show the steps.

tan(x) will appear here.
Note: Tangent is the ratio of the opposite side to the adjacent side in a right triangle. For any angle θ, tan(θ) = opposite / adjacent = sin(θ) / cos(θ).

Tangent Function – Complete Explanation

The tangent function (tan) is one of the fundamental trigonometric functions. It relates an angle of a right triangle to the ratio of the opposite side to the adjacent side. It also equals the ratio of sine to cosine and has a unique periodic graph with asymptotes.

Tangent Definition

tan(θ) = opposite / adjacent = sin(θ) / cos(θ)

On the unit circle: tan(θ) = y/x (slope of the terminal side).

1. What Is Tangent?

Tangent answers the question: "In a right triangle, what is the ratio of the side opposite the angle to the side next to the angle?" It's one of the three primary trigonometric ratios.

Key characteristics:

  • Range: tan(x) can be any real number (−∞, ∞).
  • Period: tan(x) repeats every π radians (180°).
  • Odd function: tan(−x) = −tan(x).
  • Undefined at: x = 90° + 180°n (where cos = 0).

2. Tangent in Right Triangles

In any right triangle, for an acute angle θ (other than the 90° angle):

tan(θ) = opposite side / adjacent side

The opposite side is across from θ. The adjacent side is next to θ (not the hypotenuse).

Example: 3-4-5 Triangle

For angle opposite the side of length 4:
Opposite = 4, Adjacent = 3
tan(θ) = 4/3 ≈ 1.333

3. Unit Circle Definition

On a unit circle, tan(θ) is the slope of the line from the origin to the point (x, y). It equals y/x.

At θ = 45° (π/4): point is (√2/2, √2/2) → tan(45°) = 1

At θ = 60° (π/3): point is (1/2, √3/2) → tan(60°) = √3 ≈ 1.732

At θ = 90° (π/2): point is (0, 1) → tan(90°) is undefined (division by zero)

4. Common Tangent Values

tan(0°) = 0

tan(30°) = √3/3 ≈ 0.577

tan(45°) = 1

tan(60°) = √3 ≈ 1.732

tan(90°) = undefined

tan(180°) = 0

5. Graph of the Tangent Function

The tangent graph has vertical asymptotes at x = 90°, 270°, etc., where the function is undefined. It increases from −∞ to +∞ between each pair of asymptotes.

Key features: Period = π, Range = all real numbers, Vertical asymptotes at x = (2n+1)π/2, Passes through origin.

6. Properties of Tangent

  • Odd function: tan(−x) = −tan(x)
  • Period: tan(x + π) = tan(x)
  • Quotient identity: tan(x) = sin(x) / cos(x)
  • Pythagorean identity: 1 + tan²(x) = sec²(x)
  • Double angle: tan(2x) = 2tan(x) / (1 − tan²(x))

7. Degrees vs. Radians

Radians are the natural unit for trigonometric functions in mathematics. To convert:

Degrees → Radians: multiply by π/180

Radians → Degrees: multiply by 180/π

180° = π radians, 90° = π/2, 60° = π/3, 45° = π/4, 30° = π/6

8. Step-by-Step Examples

Example 1: tan(120°)

Step 1: Convert to radians: 120° = 2π/3
Step 2: tan(120°) = sin(120°) / cos(120°)
Step 3: sin(120°) = √3/2, cos(120°) = −1/2
Step 4: tan(120°) = (√3/2) / (−1/2) = −√3

Answer: tan(120°) = −√3 ≈ −1.732

Example 2: tan(5π/4)

Step 1: 5π/4 = 225°, Quadrant III.
Step 2: tan(225°) = sin(225°) / cos(225°)
Step 3: sin(225°) = −√2/2, cos(225°) = −√2/2
Step 4: tan(225°) = (−√2/2) / (−√2/2) = 1

Answer: tan(5π/4) = 1

9. Inverse Tangent (arctan)

The inverse tangent, written arctan or tan⁻¹, finds the angle when the tangent value is known.

tan⁻¹(1) = 45° or π/4

tan⁻¹(√3) = 60° or π/3

tan⁻¹(0) = 0° or 0

Range: (−π/2, π/2) (−90° to 90°)

10. Common Mistakes

  • Using degrees in radian mode: Always check your calculator's mode.
  • Forgetting tangent is undefined at 90°: tan(90°) does not exist.
  • Confusing the ratio: tan = opposite/adjacent, not opposite/hypotenuse.
  • Ignoring the period: tan(x + 180°) = tan(x), not tan(x + 360°).
  • Forgetting the sign: In Quadrants II and IV, tangent is negative.

11. Real-World Applications

  • Navigation: Calculating slopes and gradients.
  • Physics: Resolving force components (F·tan(θ)).
  • Engineering: Calculating angles in structures and ramps.
  • Surveying: Measuring heights and distances using elevation angles.
  • Computer graphics: Projection and perspective calculations.
  • Road design: Calculating gradient percentages (rise over run).

12. Practice Problems

Problem 1: Find tan(45°). → 1

Problem 2: Find tan(135°). → −1

Problem 3: In a right triangle, the opposite side is 8 and the adjacent side is 6. Find tan(θ). → 8/6 = 4/3 ≈ 1.333

Problem 4: Find tan(7π/6). → √3/3 ≈ 0.577

13. Tips for Mastery

  • Memorize the common values (0°, 30°, 45°, 60°).
  • Remember tangent = sine / cosine.
  • Know where tangent is undefined (90°, 270°, etc.).
  • Use the unit circle as a visual reference.
  • Remember the period of π (not 2π like sine and cosine).

14. Final Thoughts

The tangent function is essential in trigonometry and geometry. Understanding its definition, graph, and properties opens the door to advanced mathematics, physics, and engineering. Use the calculator above to check your work and practice until tangent becomes second nature.

15. Frequently Asked Questions

tan(0°) = 0. On the unit circle, at 0° the point is (1, 0), so y/x = 0/1 = 0.

Because cos(90°) = 0, and tan(x) = sin(x)/cos(x). Division by zero is undefined.

The period is π radians (180°), unlike sine and cosine which have period 2π.

The range is all real numbers (−∞, ∞).

Tangent is an odd function: tan(−x) = −tan(x).

tan(x) = sin(x) / cos(x). This is called the quotient identity.

tan takes an angle and returns a ratio. arctan (tan⁻¹) takes a ratio and returns an angle.

Explore Math Topics

Continue your learning journey with our other math guides

Related Calculators

Explore these other trigonometry and geometry tools:

Conclusion

The tangent function is a cornerstone of trigonometry and mathematics. Master its definition, values, and applications, and you'll be well-equipped for advanced studies.

Readers who wish to continue practicing can explore the companion learning resource for guided exercises.