Right Triangle Calculator
Test cases replayed : 4 of 4 match · Methodology · No outside source listed
Pick what you know (two sides, or a side and an angle) to solve the whole right triangle.
Result
Hypotenuse c
Leg a
- Leg b
- Angle A (degrees)
- Angle B (degrees)
- Area (square units)
- Perimeter (length units)
- Height to the hypotenuse (length units)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- What you know: choose Legs a and b, Leg a and hypotenuse c, Leg a and angle A (opposite a) or Hypotenuse c and angle A.
- Leg a (length units; modes 1, 2, 3): enter 0 or more.
- Leg b (length units; mode 1): enter 0 or more.
- Hypotenuse c (length units; modes 2, 4): enter 0 or more.
- Angle A opposite leg a (modes 3, 4), in °: enter a number from 0 to 90.
- Read the result: Hypotenuse c; the panel also shows Leg a, Leg b, Angle A (degrees), Angle B (degrees), Area (square units), Perimeter (length units) and Height to the hypotenuse (length units).
Diagram
Not drawn to scale. The labels show the values used in the calculation.
How this calculator works
Sides come from the Pythagorean theorem, a² + b² = c², and from the right-triangle trigonometric ratios: sin A = a ÷ c, cos A = b ÷ c, tan A = a ÷ b.
With a leg and the opposite angle, b = a ÷ tan A; with the hypotenuse and an angle, a = c × sin A and b = c × cos A. The two acute angles always add up to 90°.
Area = a × b ÷ 2, perimeter = a + b + c, and the height to the hypotenuse is a × b ÷ c.
Worked example
| What you know | Legs a and b |
|---|---|
| Leg a (length units; modes 1, 2, 3) | 3 |
| Leg b (length units; mode 1) | 4 |
| Hypotenuse c (length units; modes 2, 4) | 10 |
| Angle A opposite leg a (modes 3, 4) | 30 ° |
| Hypotenuse c | 5 |
|---|---|
| Angle A (degrees) | 36.8699 |
| Angle B (degrees) | 53.1301 |
| Area (square units) | 6 |
| Perimeter (length units) | 12 |
| Height to the hypotenuse (length units) | 2.4 |
Frequently asked questions
How do I find the hypotenuse with legs 3 and 4?
c = √(3² + 4²) = √25 = 5. The angles are about 36.87° and 53.13°, and the area is 6.
Can I solve a right triangle from one side and one angle?
Yes. With leg a = 5 opposite a 30° angle, leg b = 5 ÷ tan 30° ≈ 8.6603 and the hypotenuse is 10.
Why do I get a dash?
The values cannot form a right triangle, for example a leg longer than the hypotenuse.