How to use the hypotenuse calculator
- Pick what you know: both legs, the hypotenuse and one leg, or one leg and an angle.
- Enter the values and optionally pick a unit so results are labeled.
- Read the answer and steps. You also get both acute angles, the area, the perimeter and the altitude to the hypotenuse.
The Pythagorean theorem
In a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs:
missing leg: a = √(c² − b²)
with an angle: c = opposite ÷ sin θ or c = adjacent ÷ cos θ
The hypotenuse (c) is always opposite the 90° angle and is always the longest side. If a calculation gives a leg longer than the hypotenuse, a value was entered in the wrong box.
Worked examples
Legs 6 and 8
6² + 8² = 36 + 64 = 100, and √100 = 10. Area = 6 × 8 ÷ 2 = 24, perimeter = 24, and the angles are about 36.87° and 53.13°.
Missing leg: hypotenuse 13, leg 5
13² − 5² = 169 − 25 = 144, and √144 = 12.
A ladder against a wall
A ladder's foot is 4 ft from the wall and its top touches the wall 15 ft up. The ladder length is √(4² + 15²) = √241 ≈ 15.52 ft.
TV screen size
Screen sizes are measured on the diagonal. A screen 48 in wide and 27 in tall has a diagonal of √(48² + 27²) = √3033 ≈ 55.07 in, sold as a 55" TV. Its sides are in a 16:9 ratio. Check any aspect ratio with the ratio calculator.
Special right triangles
| Triangle | Side ratio | Example |
|---|---|---|
| 45-45-90 | 1 : 1 : √2 | legs 10 → hypotenuse ≈ 14.142 |
| 30-60-90 | 1 : √3 : 2 | short leg 5 → long leg ≈ 8.660, hypotenuse 10 |
Common Pythagorean triples
Whole-number right triangles, handy for checking homework or squaring a corner. Multiply any triple by the same number to get another (3-4-5 → 6-8-10 → 9-12-15).
| a | b | c |
|---|---|---|
| 3 | 4 | 5 |
| 5 | 12 | 13 |
| 8 | 15 | 17 |
| 7 | 24 | 25 |
| 20 | 21 | 29 |
| 9 | 40 | 41 |
Builder's 3-4-5 rule: mark 3 ft along one wall and 4 ft along the other. If the diagonal between the marks is exactly 5 ft, the corner is square. For larger spaces use 6-8-10 or 9-12-15.
Common mistakes
- Adding before squaring: c ≠ a + b. Square first, add, then take the square root.
- Using it on a non-right triangle: without a 90° angle, use the law of cosines instead.
- Mixing units: convert both legs to the same unit first (for example, 2 ft 6 in = 2.5 ft).
- Degrees vs radians: this calculator uses degrees. Scientific calculators set to radians give different trig results.
Similar right triangles scale proportionally. To scale a triangle's sides, use the proportion calculator. Browse more math calculators.
Sources
Frequently asked questions
How do you find the hypotenuse of a right triangle?
Square both legs, add them, and take the square root: c = √(a² + b²). For legs 3 and 4: 9 + 16 = 25, and √25 = 5. The hypotenuse is always the side opposite the right angle and the longest side.
How do I find a missing leg if I know the hypotenuse?
Rearrange the Pythagorean theorem: a = √(c² − b²). With a hypotenuse of 13 and a leg of 5: 169 − 25 = 144, and √144 = 12. The hypotenuse must be longer than the known leg.
Can I find the hypotenuse with one side and an angle?
Yes, using trigonometry. If you know a leg and the angle opposite it, c = leg ÷ sin(angle). If the angle is next to the leg, c = leg ÷ cos(angle). Choose the 'Leg + angle' mode above.
Does the Pythagorean theorem work for any triangle?
No, only for right triangles (one 90° angle). For other triangles use the law of cosines, c² = a² + b² − 2ab·cos(C), which reduces to the Pythagorean theorem when C is 90°.
What is a Pythagorean triple?
A set of three whole numbers that fit a² + b² = c², such as 3-4-5, 5-12-13, 8-15-17 and 7-24-25. Multiples work too, so 6-8-10 is also a right triangle. Builders use 3-4-5 to check corners are square.
What is the hypotenuse of a 45-45-90 triangle?
The two legs are equal, so the hypotenuse is a leg times √2 (about 1.414). A 45-45-90 triangle with legs of 10 has a hypotenuse of about 14.142.