Hypotenuse Calculator
This calculation is no longer available
This saved calculation is unavailable or damaged. Start again with the original lengths.
Enter the lengths againEnter the first leg
Use positive lengths in the same unit. Local digits and your locale decimal mark are accepted; thousands separators are not.
Enter the two legs of a right triangle and this calculator returns the hypotenuse using c = sqrt(a^2 + b^2). It also gives you the triangle’s area, perimeter and both acute angles in degrees, so a single calculation answers more than just the long side. Everything runs in your browser as you type, and displayed results are rounded to a useful precision.
How the calculation works
-
1
Enter leg a
The first side at the right angle. Enter 0.000001 to 1,000,000,000 in your chosen length unit.
-
2
Enter leg b
The length of the second side at the right angle. Use the same unit as leg a.
-
3
Read the results
The hypotenuse appears alongside the area, perimeter and both acute angles, recalculated as you type.
The formula
The hypotenuse is the side opposite the right angle, always the longest side of a right triangle. The Pythagorean theorem relates it to the two legs:
c = sqrt(a^2 + b^2)
where a and b are the legs (the two sides that form the 90° angle) and c is the hypotenuse. The same two legs also give you the rest of the triangle:
- Area = (a × b) / 2
- Perimeter = a + b + c
- Angle A = atan2(a, b) in degrees (the angle opposite leg a)
- Angle B = 90° − Angle A
A worked example
Take legs of a = 6 and b = 8.
c = sqrt(6^2 + 8^2) = sqrt(36 + 64) = sqrt(100) = 10
The hypotenuse is exactly 10, this is the 3-4-5 triple scaled by 2. The area is (6 × 8) / 2 = 24, the perimeter is 6 + 8 + 10 = 24, and the acute angles are roughly 36.87° and 53.13°.
Common right triangles
| Leg a | Leg b | Hypotenuse | Angle A | Angle B |
|---|---|---|---|---|
| 3 | 4 | 5 | 36.87° | 53.13° |
| 5 | 12 | 13 | 22.62° | 67.38° |
| 8 | 15 | 17 | 28.07° | 61.93° |
| 1 | 1 | 1.4142… | 45° | 45° |
Pitfalls to avoid
- Mixed units. Both legs must use the same unit. Mixing inches and centimetres gives a meaningless answer.
- Using it on a non-right triangle. The formula assumes a 90° angle between the legs. For any other triangle, use the law of cosines instead.
- Confusing a leg with the hypotenuse. If you already know the hypotenuse and one leg, you are solving for a leg: a = sqrt(c^2 − b^2), not this calculator’s direction.
- Zero or negative inputs. A side length must be positive. The calculator rejects zero and negative values so you can correct the measurement rather than silently changing it.
Frequently Asked Questions
The hypotenuse is the side of a right triangle opposite the 90° angle. It is always the longest of the three sides.
It uses the Pythagorean theorem, c = sqrt(a^2 + b^2), where a and b are the two legs that meet at the right angle.
Yes. Enter a positive decimal from 0.000001 to 1,000,000,000 using your locale decimal mark and no thousands separators. Results are formatted to useful precision.
No. The calculation runs in your browser and the lengths are not sent through Livewire. Funnel mode keeps them only in this browser tab for up to 30 minutes so the steps work, then the saved calculation expires.
Related Tools
BMI Calculator
Calculate body mass index from height and weight. Shows WHO category, healthy-weight range and limitations of BMI.
Age Calculator
Calculate exact age in years, months and days from a birth date, plus total days, hours and the next birthday countdown.
One Rep Max Calculator
Estimate your one-rep max (1RM) from weight lifted and reps completed using Epley, Brzycki and Lander formulas.
Scientific Calculator
Evaluate supported real-number expressions with trig, logs, powers and parentheses locally in your browser.
Amp-Hour Calculator
Work out battery runtime and stored energy from amp-hours, voltage and load current. Get runtime in hours and minutes plus energy in watt-hours and kilowatt-hours.
GPA Calculator
Calculate grade point average from letter grades and credit hours. Supports US 4.0 and 5.0 honors scales with the standard A/B/C/D letter table.