Calculate the hypotenuse
c = √(a² + b²)Geometry formulas
Calculate the hypotenuse or a missing leg of a right triangle from the lengths of the other two sides.
Formula
c² = a² + b² In a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs.
| Symbol | Quantity | SI | Supported units |
|---|---|---|---|
| a | first legLength of one side adjacent to the right angle. | m | m, cm, mm, km |
| b | second legLength of the other side adjacent to the right angle. | m | m, cm, mm, km |
| c | hypotenuseThe side opposite the right angle and the longest side of the triangle. | m | m, cm, mm, km |
Calculate the hypotenuse
c = √(a² + b²)Calculate the first leg
a = √(c² - b²)Calculate the second leg
b = √(c² - a²)The legs of a right triangle are 3 m and 4 m long. Calculate the hypotenuse.
Result: 5 m
The hypotenuse is 13 cm and one leg is 5 cm. Calculate the other leg.
Result: 12 cm
Central Examination Board (CKE) · Reviewed 28 August 2026
Official Polish examination reference containing the theorem and its converse.
OpenStax · Reviewed 28 August 2026
Educational derivation and worked examples using the Pythagorean theorem.