Right Triangle Calculator: Sides, Angles, Area
By FindMySum · Last reviewed
A right triangle calculator solves any triangle with a 90° angle once you know two of its sides. The Pythagorean theorem gives the third side, simple trigonometry gives the two acute angles, and half the product of the legs gives the area. Right triangles are behind roof pitches, ramps and stairs, the diagonal of a screen or a room, and distances on a map.
Worked example
A right triangle has legs a = 5 and b = 12.
- Hypotenuse: c = √(5² + 12²) = √169 = 13.
- Angle A, opposite the 5: arctan(5 ÷ 12) ≈ 22.62°.
- Angle B, opposite the 12: 90° − 22.62° = 67.38°.
- Area: 5 × 12 ÷ 2 = 30 square units.
- Perimeter: 5 + 12 + 13 = 30 units.
A neat coincidence: this triangle's area and perimeter are both 30. It is one of only two right triangles with whole-number sides where that happens; the other is 6-8-10.
Choosing the unknown side
If you know the hypotenuse and one leg, solve for a leg instead: with c = 13 and a = 5, b = √(13² − 5²) = √144 = 12. The hypotenuse must be the longest side, so a "hypotenuse" shorter than a leg means the numbers are mixed up.
For 30-60-90 and 45-45-90 triangles, the special right triangles calculator gives exact ratios; for triangles without a right angle, use the triangle calculator, which also has the law of sines and law of cosines.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.