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

InputsResult
Leg a3Leg b4Hypotenuse c: 5Angle A: 36.8699°Angle B: 53.1301°Area: 6Perimeter: 12Altitude to hypotenuse: 2.4
Show 3 more examples
Leg a5Leg b12Hypotenuse c: 13Angle A: 22.6199°Angle B: 67.3801°Area: 30Perimeter: 30Altitude to hypotenuse: 4.61538
Leg a1Leg b1Hypotenuse c: 1.41421Angle A: 45°Angle B: 45°Area: 0.5Perimeter: 3.41421Altitude to hypotenuse: 0.707107
Leg a7Leg b24Hypotenuse 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 bHypotenuse c
23.60555
2.53.90512
34.24264
3.54.60977
4starting value5
4.55.40833
55.83095
5.56.26498
66.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

c = √(a² + b²) · A = arctan(a ÷ b) · Area = ab ÷ 2
a, bThe two legs
cThe 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²).