Formula and method for the angle of a right triangle
A right triangle has one 90° angle (at vertex C) and two acute angles (A and B) that always add up to the remaining 90°. If you know the lengths of the two legs — the two sides that form the right angle — you can find both acute angles with the tangent ratio, plus the hypotenuse with the Pythagorean theorem. No protractor is required.
How the calculation works
Label the leg opposite angle A as a and the leg opposite angle B as b. Because the two legs are perpendicular, the tangent of each acute angle is simply the ratio of the opposite leg to the adjacent leg: tan(A) = a / b and tan(B) = b / a. Taking the inverse tangent (arctan) of each ratio gives the angle itself: A = arctan(a/b), B = arctan(b/a). The hypotenuse follows from the Pythagorean theorem, c = √(a² + b²), and the area of any right triangle is half the product of its legs, Area = ½ × a × b, since one leg can serve as the base and the other as the height.
Common mistakes
- Mixing units: enter both legs in the same unit (both in centimeters, or both in inches). Mixing units before calculating gives a meaningless ratio and a wrong angle.
- Entering the hypotenuse as a leg: this calculator expects the two legs that meet at the right angle, not the hypotenuse. The hypotenuse is always the longest side and is opposite the 90° angle — never enter it into either leg field.
- Mixing up degrees and radians: arctan in most programming languages and calculators returns radians by default. Multiply by 180/π to convert to degrees, or use the angle unit selector here to switch automatically.
Real-world applications
- Carpentry and roofing use leg ratios to set rafter pitch and cut angles for framing.
- Surveying and navigation use right-triangle angles to convert horizontal and vertical distances into a bearing or elevation angle.
- Physics and engineering resolve vectors into perpendicular components, then use this same relationship in reverse to find a resultant angle.
- Trigonometry students use it to check arctan, sine, and cosine calculations by hand against a known triangle.