Categories
Pages
π

Tangent Calculator

Calculate tangent of any angle in degrees or radians. Returns the value and the slope

LIVE
249
Uses
1
Select typeChoose conversion direction
2
Enter amountType the value to convert
3
Get resultsSee live conversion rates
ANGLE
:
UNIT
:

Copy the code below to embed this calculator on your website:

<iframe src="https://calculatorcafe.com/widget/tangent-calculator/" width="100%" height="500" frameborder="0" style="border:1px solid #e2e8f0;border-radius:12px"></iframe>

Free to use · Links back to CalculatorCafe

What Is Tangent?

Tangent is the third primary trigonometric function. In a right triangle, the tangent of an angle equals the opposite side divided by the adjacent side: tan(angle) = opposite / adjacent. Equivalently, tangent equals sine divided by cosine: tan(x) = sin(x) / cos(x). Unlike sine and cosine which range from -1 to 1, tangent has no bounds and can produce any value from negative infinity to positive infinity. Enter any angle in the calculator above to find its tangent value.

Common Tangent Values

Key tangent values to know: tan(0) = 0. tan(30) = 0.5774 (1 divided by square root of 3). tan(45) = 1 (because opposite and adjacent sides are equal). tan(60) = 1.7321 (square root of 3). tan(90) is undefined (division by zero, since cos(90) = 0). tan(180) = 0. tan(270) is undefined. tan(360) = 0. The fact that tan(45) = 1 has a simple geometric meaning: in a 45-degree right triangle, the two legs are equal length, so their ratio is 1.

Why Is Tangent Undefined at 90 Degrees?

At 90 degrees, the cosine equals zero. Since tangent = sine / cosine, dividing by zero produces an undefined result. Geometrically, as an angle approaches 90 degrees, the opposite side grows infinitely long compared to the adjacent side. The tangent function approaches positive infinity from the left of 90 degrees and negative infinity from the right. These points where tangent is undefined (90, 270, -90, etc.) create vertical asymptotes on the tangent graph, dividing it into repeating sections every 180 degrees.

The Tangent Function Graph

Unlike the smooth waves of sine and cosine, the tangent graph consists of repeating S-shaped curves separated by vertical asymptotes every 180 degrees. The function repeats with a period of 180 degrees (pi radians), half the period of sine and cosine. Between asymptotes, the curve rises smoothly from negative infinity through zero to positive infinity. This shape appears in optics (angle of refraction), road engineering (slope calculations), and electrical engineering (phase relationships in circuits).

Tangent and Slope

The tangent of an angle equals the slope of a line making that angle with the horizontal. A road with a 10-degree incline has a slope of tan(10) = 0.176, or 17.6% grade. A 45-degree angle has slope tan(45) = 1, meaning the rise equals the run (a 100% grade). Architects use tangent to calculate roof pitch: a roof that rises 6 inches per 12 inches of horizontal run has an angle of arctan(6/12) = 26.6 degrees. Tangent directly connects angles to the slopes that engineers, builders, and road designers work with daily.

Inverse Tangent (Arctan)

Inverse tangent, written arctan or tan⁻¹, returns the angle whose tangent is a given value. arctan(1) = 45 degrees because tan(45) = 1. arctan(0) = 0 degrees. The principal range is -90 to 90 degrees. In programming, the atan2(y, x) function is preferred because it correctly handles all four quadrants and avoids the ambiguity of standard arctan, which cannot distinguish between opposite quadrants. Navigation systems, game engines, and robotics all use atan2 extensively for calculating angles from coordinate differences.

Tangent in Navigation and Surveying

Surveyors use tangent to calculate heights of buildings, trees, and terrain features without climbing them. Standing a known distance from a building and measuring the angle to the top, the height equals distance times tan(angle) plus the surveyor's eye height. If you stand 50 meters from a tower and measure a 35-degree angle to the top, the tower height above eye level is 50 times tan(35) = 35 meters. This technique dates back to ancient Egyptian and Greek surveying and remains standard practice in modern land surveying and civil engineering.

Tangent in Road and Railway Design

Road gradient (slope) is expressed as a percentage that corresponds directly to the tangent of the incline angle. A 6% grade means the road rises 6 meters for every 100 meters of horizontal distance, which is tan(angle) = 0.06, giving an angle of about 3.4 degrees. Maximum highway grades in the US typically range from 4% to 7% depending on terrain and speed. Railway grades are much gentler, usually below 2%, because trains have less traction than rubber tires on pavement. Mountain passes and parking ramp designs are calculated using tangent to ensure vehicles can climb safely and maintain control while descending. The superelevation (banking) of curves also uses trigonometric relationships to counteract centrifugal force at design speeds.

Frequently asked questions

What is tan(45)?
tan(45 degrees) = 1. In a 45-degree right triangle, the opposite and adjacent sides are equal, so their ratio is exactly 1.
Why is tan(90) undefined?
Because cos(90) = 0 and tangent = sin/cos. Division by zero is undefined. The tangent approaches infinity as the angle approaches 90 degrees.
How is tangent related to slope?
The tangent of an angle equals the slope of a line at that angle. A 45-degree line has slope 1. A 10-degree incline has slope 0.176.
What is inverse tangent (arctan)?
Given a tangent value, arctan returns the angle. arctan(1) = 45 degrees. Returns angles between -90 and 90 degrees.
What is the period of the tangent function?
180 degrees (pi radians). Tangent repeats twice as often as sine and cosine, which have 360-degree periods.
How do surveyors use tangent?
Height = distance x tan(angle). Measure the angle to a building top from a known distance to calculate its height without climbing.
USER RATINGS

Rate This Calculator

Your feedback helps us improve our tools