Overview
A right triangle has one 90° angle. If you know the two legs you can find everything else.
Enter leg a and leg b to get the hypotenuse, the angles, area, perimeter and altitude.
Worked examples
| Inputs | Result |
|---|---|
| Leg a3Leg b4 | Hypotenuse c: 5Angle A: 36.8699°Angle B: 53.1301°Area: 6Perimeter: 12Altitude to hypotenuse: 2.4 |
Show 3 more examples
| Leg a5Leg b12 | Hypotenuse c: 13Angle A: 22.6199°Angle B: 67.3801°Area: 30Perimeter: 30Altitude to hypotenuse: 4.61538 |
| Leg a1Leg b1 | Hypotenuse c: 1.41421Angle A: 45°Angle B: 45°Area: 0.5Perimeter: 3.41421Altitude to hypotenuse: 0.707107 |
| Leg a7Leg b24 | Hypotenuse c: 25Angle A: 16.2602°Angle B: 73.7398°Area: 84Perimeter: 56Altitude to hypotenuse: 6.72 |
Hypotenuse c by leg b
With the calculator's starting values, the hypotenuse c is 5. The table shows how it changes with the leg b.
| Leg b | Hypotenuse c |
|---|---|
| 2 | 3.60555 |
| 2.5 | 3.90512 |
| 3 | 4.24264 |
| 3.5 | 4.60977 |
| 4starting value | 5 |
| 4.5 | 5.40833 |
| 5 | 5.83095 |
| 5.5 | 6.26498 |
| 6 | 6.7082 |
Other inputs: Leg a: 3. Change them in the calculator above for your own numbers.
How it works
The hypotenuse comes from the Pythagorean theorem. The acute angles come from arctan of the legs, and the two angles always add to 90°.
The formula
| a, b | The two legs |
| c | The hypotenuse |
Practical tips
- Common Pythagorean triples: 3-4-5, 5-12-13, 8-15-17.
- The altitude to the hypotenuse equals ab ÷ c.
Frequently asked questions
What is the hypotenuse for legs 5 and 12?
13.
How do I find a missing leg?
Use the Pythagorean theorem: a = √(c² − b²).