← Back to tools

Pythagorean Theorem

Calculate the hypotenuse

Enter the two legs of a right triangle.

Hypotenuse—

Pythagorean theorem formula and example

In a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: c² = a² + b². Therefore c = √(a² + b²).

If the legs are 3 cm and 4 cm, the hypotenuse is √(9 + 16) = 5 cm. Enter both lengths in the same unit and as positive numbers.

This relationship applies only to right triangles. The hypotenuse is the side opposite the right angle and is the longest side.