Formula and Method for the Tangent Angle
In a right triangle, the tangent of one of the acute angles is defined as the ratio of the side opposite that angle to the side adjacent to it: tan(θ) = opposite / adjacent. This calculator works in reverse: given the lengths of the opposite and adjacent sides, it finds the angle itself using the inverse tangent function, θ = arctan(opposite / adjacent), also written tan⁻¹(opposite / adjacent). It also reports the hypotenuse (from the Pythagorean theorem) and the raw tan(θ) ratio.
How the calculation works
Enter the length of the side opposite the angle you want to find and the length of the side adjacent to it, in the same unit. The calculator divides opposite by adjacent to get tan(θ), then applies the arctangent function to recover θ in radians. Multiplying that result by 180/π converts it to degrees. The hypotenuse is found separately with h = √(opposite² + adjacent²), independent of the angle calculation, and is shown for reference in the same length unit you selected.
Common mistakes
- Swapping opposite and adjacent: tan(θ) = opposite/adjacent, not adjacent/opposite — reversing the two legs gives the complementary angle (90° − θ) instead of θ.
- Mixing degrees and radians: arctan naturally returns radians; always confirm which unit a downstream calculation or tool expects before plugging the angle in.
- Assuming a right triangle: this formula only applies to the acute angles of a right triangle (one 90° angle); for oblique triangles use the law of sines or law of cosines instead.
Real-world applications
- Roof pitch and ramp grade: converting a rise/run ratio into a slope angle for construction and accessibility standards.
- Surveying and navigation: finding bearing or elevation angles from measured horizontal and vertical distances.
- Engineering and physics: resolving vector components, incline angles, and line-of-sight angles from perpendicular measurements.
- Computer graphics and robotics: computing rotation or heading angles from x/y coordinate differences.