The Tangent Formula

In a right-angled triangle, the tangent of an angle is defined as the ratio of the side opposite the angle to the side adjacent to it. This fundamental relationship is expressed mathematically as:

tan(θ) = opposite ÷ adjacent

  • θ — The angle measured in degrees, radians, or multiples of pi
  • opposite — The side of the triangle opposite to angle θ
  • adjacent — The side of the triangle adjacent to angle θ (not the hypotenuse)

Understanding the Tangent Function

The tangent is one of the six primary trigonometric functions and can be understood in multiple ways. Beyond the right-triangle definition, tangent also equals the ratio of sine to cosine: tan(θ) = sin(θ) ÷ cos(θ).

A distinctive feature of the tangent function is its periodic nature with period π radians (180°). This means the tangent values repeat every π radians. Additionally, the tangent function is undefined at certain angles where cosine equals zero: at ±π/2, ±3π/2, ±5π/2, and so on (or ±90°, ±270°, ±450°, etc.). At these points, the tangent function approaches positive or negative infinity, creating vertical asymptotes on its graph.

Unlike sine and cosine, which oscillate between −1 and 1, tangent can take any real value from negative to positive infinity, making it particularly useful for calculating slopes and angles of inclination.

Calculating Tangent Step by Step

To find the tangent of an angle in a right triangle, follow this straightforward process:

  • Identify the sides: Locate the side opposite your angle and the side adjacent to it (excluding the hypotenuse).
  • Measure or obtain values: Determine the lengths of these two sides. For example, if the opposite side is 21 units and the adjacent side is 8 units.
  • Divide opposite by adjacent: Calculate 21 ÷ 8 = 2.625. This quotient is your tangent value.
  • Interpret the result: A tangent of 2.625 indicates the opposite side is roughly 2.6 times longer than the adjacent side.

When working with angles directly, simply enter the angle value into the calculator in your preferred unit (degrees, radians, or pi radians) to obtain the tangent instantly.

Common Pitfalls and Important Notes

Avoid these frequent mistakes when working with tangent calculations:

  1. Confusing opposite and adjacent sides — The tangent ratio depends critically on correctly identifying which side is opposite and which is adjacent to your angle. Reversing these gives you the reciprocal (cotangent). Remember: tangent is opposite ÷ adjacent, never the other way around.
  2. Undefined values at 90° intervals — Tangent is undefined at 90°, 270°, and other odd multiples of π/2. Attempting to calculate tan(90°) will yield an error or infinity. These angles correspond to vertical lines where adjacent length becomes zero.
  3. Mixing angle units in calculations — Ensure consistency when entering angles. Mixing degrees with radians in a single calculation produces incorrect results. The calculator can handle degrees, radians, and multiples of pi, but select the correct unit for your input.
  4. Assuming tangent is always positive — Tangent is negative in the second and fourth quadrants (90°–180° and 270°–360°). For angles beyond the first quadrant, the sign of your result matters for determining direction and orientation in applied problems.

Practical Applications of Tangent

The tangent function appears throughout engineering, surveying, and physics. Surveyors use tangent to calculate heights of buildings or trees when they know the distance from the object and the angle of elevation. In navigation, tangent determines course corrections and bearing angles. Architects rely on tangent ratios to establish roof pitch and ramp gradients. Even in computer graphics and game development, tangent calculations are essential for camera angles and object rotations.

For example, if you're standing 50 metres from a building and measure an angle of elevation of 35°, the height is 50 × tan(35°) ≈ 35 metres. This simple application demonstrates why tangent is indispensable in real-world scenarios.

Frequently Asked Questions

What is the tangent of 45 degrees?

The tangent of 45° (or π/4 radians) equals exactly 1. At this angle, the opposite and adjacent sides of a right triangle are equal in length. This is one of the special angles in trigonometry and serves as a useful reference point. Because 45° falls in the first quadrant, the tangent value is positive.

Why is tangent undefined at 90 degrees?

At 90°, the angle forms a vertical line, meaning the adjacent side has zero length. Since tangent is defined as opposite ÷ adjacent, dividing by zero is mathematically undefined. Geometrically, as an angle approaches 90°, the tangent value grows infinitely large. The tangent function has a vertical asymptote at this point.

Is the tangent ratio the same as y divided by x?

Not exactly. While in some coordinate systems tangent can be expressed as y/x, the standard definition uses the sides of a right triangle: opposite ÷ adjacent. In a unit circle or coordinate plane where r is the hypotenuse, x is adjacent, and y is opposite, then tangent does equal y/x. The terminology varies depending on context, but the underlying ratio remains consistent.

How does tangent differ from sine and cosine?

Sine is opposite ÷ hypotenuse, cosine is adjacent ÷ hypotenuse, and tangent is opposite ÷ adjacent. Notably, tangent is also the ratio of sine to cosine. Unlike sine and cosine, which range from −1 to 1, tangent can be any real number. Additionally, tangent has a period of π radians (180°), whereas sine and cosine repeat every 2π radians (360°).

Can tangent values be negative?

Yes. Tangent is negative in the second quadrant (90°–180°) and fourth quadrant (270°–360°). In the first and third quadrants, tangent is positive. The sign depends on the signs of sine and cosine at that angle. This directional information is crucial in navigation, physics, and engineering applications where angle orientation matters.

What does a large tangent value mean?

A large tangent value indicates the angle is steep—the opposite side is much longer than the adjacent side. As the angle approaches 90°, tangent grows towards infinity. For instance, tan(80°) ≈ 5.67, meaning the rise is nearly 6 times the run. This is why tangent is useful for measuring slopes and angles of inclination.

More math calculators (see all)