Tangent Calculator
Calculate tangent instantly with our math tool. Shows detailed work, formulas used, and multiple solution methods. Get results you can export or share.
Reviewed for accuracy by Manoj Kumar, Mathematics Educator
Tangent Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: tan(theta) = opposite / adjacent = sin(theta) / cos(theta)
Worked example — The building is approximately 31.24 meters tall
Formula
tan(theta) = opposite / adjacent = sin(theta) / cos(theta)
Where theta is the angle in question, opposite is the side across from the angle, adjacent is the side next to the angle (not the hypotenuse). Tangent can also be computed as the ratio of sine to cosine of the same angle.
Worked Examples
Example 1: Finding the Height of a Building
Problem:You stand 50 meters from a building and measure the angle of elevation to the top as 32 degrees. What is the height of the building?
Solution:Using tan(angle) = opposite / adjacent: tan(32) = height / 50 height = 50 x tan(32) tan(32) = 0.6249 height = 50 x 0.6249 = 31.24 meters
Result:The building is approximately 31.24 meters tall
Example 2: Calculating a Roof Slope Angle
Problem:A roof rises 4 feet over a horizontal run of 12 feet. What is the angle of the roof slope?
Solution:Using arctan(opposite / adjacent): tan(angle) = 4 / 12 = 0.3333 angle = arctan(0.3333) angle = 18.43 degrees
Result:The roof slope angle is approximately 18.43 degrees (a 4:12 pitch)
Frequently Asked Questions
What is the tangent function in trigonometry?
The tangent function is one of the six fundamental trigonometric functions. In a right triangle, tangent of an angle equals the ratio of the length of the opposite side to the length of the adjacent side. Mathematically it is expressed as tan(theta) = opposite / adjacent. The tangent function can also be defined as the ratio of sine to cosine: tan(theta) = sin(theta) / cos(theta). Unlike sine and cosine which are bounded between -1 and 1, the tangent function has no bounds and ranges from negative infinity to positive infinity. It is periodic with a period of 180 degrees or pi radians.
When is the tangent function undefined?
The tangent function is undefined at angles where the cosine equals zero, because tangent is calculated as sine divided by cosine. This occurs at 90 degrees (pi/2 radians), 270 degrees (3pi/2 radians), and all odd multiples of 90 degrees. At these points, the tangent function approaches positive or negative infinity, creating vertical asymptotes on the graph. In practical terms, a 90-degree angle in a right triangle would mean the adjacent side has zero length, making the ratio opposite/adjacent undefined. Understanding these discontinuities is crucial for graphing tangent and solving trigonometric equations correctly.
How do I convert between degrees and radians for tangent calculations?
To convert degrees to radians, multiply the degree value by pi/180. To convert radians to degrees, multiply the radian value by 180/pi. For example, 45 degrees equals pi/4 radians (45 times pi/180 = pi/4), and pi/3 radians equals 60 degrees (pi/3 times 180/pi = 60). Common reference angles include 30 degrees (pi/6), 45 degrees (pi/4), 60 degrees (pi/3), and 90 degrees (pi/2). Most scientific calculators and programming languages require the angle in radians, so this conversion is essential when computing tangent values programmatically.
What are the common tangent values I should memorize?
Several tangent values appear frequently in mathematics and should be memorized. Tan(0) = 0, tan(30) = 1/sqrt(3) which is approximately 0.5774, tan(45) = 1, tan(60) = sqrt(3) which is approximately 1.7321, and tan(90) is undefined. For angles in the second quadrant, tan(120) = -sqrt(3), tan(135) = -1, and tan(150) = -1/sqrt(3). In the third quadrant tangent values become positive again: tan(180) = 0, tan(210) = 1/sqrt(3), tan(225) = 1, tan(240) = sqrt(3). These reference values help you quickly verify calculator results and solve problems mentally.
How is tangent used in real-world applications?
Tangent has numerous practical applications across engineering, physics, and everyday life. Surveyors use tangent to calculate the height of buildings and mountains by measuring the angle of elevation and the horizontal distance. In navigation, tangent helps determine slopes and gradients of roads and railways. Civil engineers use it to design ramps, roofs, and inclined surfaces. In physics, tangent appears in projectile motion calculations and in determining the angle of friction on inclined planes. Architects use tangent relationships when designing staircases, calculating rise over run. Even smartphone apps use tangent-based calculations for augmented reality features and altitude measurements.
What is the inverse tangent or arctangent function?
The inverse tangent function, written as arctan or tan^(-1), reverses the tangent operation. Given a tangent value, arctangent returns the angle that produces that value. For example, arctan(1) = 45 degrees because tan(45) = 1. The arctangent function has a restricted range of -90 to 90 degrees (-pi/2 to pi/2 radians) to ensure it returns a single unique value. This is important in programming and engineering when you need to find an angle from a known ratio of sides. The two-argument form atan2(y, x) is preferred in many applications because it correctly handles all four quadrants and avoids division by zero issues.
How does the tangent function behave in different quadrants?
The tangent function follows a specific sign pattern across the four quadrants of the coordinate plane. In Quadrant I (0 to 90 degrees), tangent is positive because both sine and cosine are positive. In Quadrant II (90 to 180 degrees), tangent is negative because sine is positive but cosine is negative. In Quadrant III (180 to 270 degrees), tangent is positive again because both sine and cosine are negative, and a negative divided by a negative yields a positive. In Quadrant IV (270 to 360 degrees), tangent is negative because sine is negative while cosine is positive. The mnemonic All Students Take Calculus helps remember which functions are positive in each quadrant.
What is the relationship between tangent and the unit circle?
On the unit circle, the tangent of an angle can be visualized as the length of a line segment drawn from the point on the circle tangent to the x-axis at (1, 0) up to where it intersects the extended radius line. This geometric interpretation is where the name tangent originates, from the Latin tangere meaning to touch. For any angle theta, if we draw a radius from the origin to the point (cos theta, sin theta) on the unit circle, the tangent value equals the y-coordinate divided by the x-coordinate. The tangent line at x = 1 has a length equal to tan(theta), which explains why the function grows without bound as the angle approaches 90 degrees.
How do tangent graphs differ from sine and cosine graphs?
The tangent graph has several distinctive features that set it apart from sine and cosine graphs. While sine and cosine are continuous smooth waves bounded between -1 and 1, the tangent graph has vertical asymptotes at every odd multiple of 90 degrees (pi/2 radians). The period of tangent is 180 degrees (pi radians), which is half the period of sine and cosine. The tangent graph passes through the origin and has a characteristic S-shaped curve between each pair of asymptotes. There is no amplitude for tangent since it extends to infinity in both directions. The midline crossings occur at every multiple of 180 degrees, where the tangent value equals zero.
What are tangent identities and how are they used?
Tangent identities are mathematical relationships that simplify complex trigonometric expressions. The fundamental identity is tan(theta) = sin(theta)/cos(theta). The Pythagorean identity involving tangent states that 1 + tan^2(theta) = sec^2(theta). The double angle formula gives tan(2theta) = 2tan(theta)/(1 - tan^2(theta)). The addition formula states tan(A + B) = (tan(A) + tan(B))/(1 - tan(A)tan(B)). The half angle formula is tan(theta/2) = sin(theta)/(1 + cos(theta)). These identities are essential tools for solving trigonometric equations, simplifying expressions in calculus, and proving other mathematical theorems. Engineers and physicists use them regularly when analyzing wave interference and signal processing.
References
Reviewed for accuracy by Manoj Kumar, Mathematics Educator · Editorial policy
Related Calculators
🧮Tangent of a Circle Calculator
Calculate tangent of acircle with inputs, formulas, and instant results.
🧮Annulus Area Calculator
Calculate annulus area with inputs, formulas, and instant results.
🧮Area Calculator
Calculate area with inputs, formulas, and instant results.
🧮Area of a Rectangle Calculator
Calculate the area, perimeter, and diagonal of a rectangle. Find missing sides from known area. Convert between metric and imperial area units.
🧮Area of Crescent Calculator
Calculate area of crescent with inputs, formulas, and instant results.
🧮Center of Mass Calculator
Calculate center of mass with inputs, formulas, and instant results.
🧮Centroid Calculator
Calculate centroid with inputs, formulas, and instant results.
🧮Chord Length Calculator
Calculate chord length with inputs, formulas, and instant results.