Tangent Angle Calculator

Enter the opposite and adjacent side lengths of a right triangle to find the angle θ = arctan(opposite / adjacent), along with the hypotenuse and tan(θ).

Quick Facts

Tangent formula
tan(θ) = opposite / adjacent
The ratio of the side opposite the angle to the side adjacent to it.
Angle formula
θ = arctan(opposite / adjacent)
The inverse tangent recovers the angle from the ratio of the two legs.
Hypotenuse
h = √(opposite² + adjacent²)
From the Pythagorean theorem, using the same two legs.
Degree-radian conversion
radians = degrees × π / 180
Used to convert θ between degrees and radians.

Your Results

Calculated
Angle θ (degrees)
-
θ = arctan(opposite / adjacent)
Angle θ (radians)
-
θ in radians (degrees × π/180)
Hypotenuse
-
h = √(opposite² + adjacent²)
tan(θ)
-
opposite / adjacent

Ready

Enter the opposite and adjacent side lengths, then press Calculate.

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.

Frequently Asked Questions

What is the formula for finding an angle from its tangent?
For a right triangle, θ = arctan(opposite / adjacent), where opposite and adjacent are the two legs of the triangle. The result of the arctangent function is in radians; multiply by 180/π to convert to degrees.
What is the difference between tangent and arctangent?
Tangent, tan(θ), takes an angle and returns the ratio opposite/adjacent. Arctangent (inverse tangent, arctan or tan⁻¹) does the reverse: it takes the ratio opposite/adjacent and returns the angle. This calculator uses arctangent because you supply the two side lengths and want the angle.
How do I convert the angle between degrees and radians?
Multiply degrees by π/180 to get radians, or multiply radians by 180/π to get degrees. For example, 45° = 45 × π/180 ≈ 0.7854 radians.
What happens if the adjacent side is zero?
Tangent is undefined when the adjacent side is zero, since tan(θ) = opposite/adjacent would require dividing by zero. In that case the angle approaches 90°; enter a positive adjacent side length to get a defined result.