Free Online Geometry Calculator

Hypotenuse Calculator

Find the hypotenuse of a right triangle using the Pythagorean theorem. Enter the lengths of the two legs to calculate the longest side, or switch modes to find a missing leg.

Calculate a Triangle Side

Choose what you want to calculate and enter the known measurements. Use the same unit for every side.

Enter the two perpendicular sides of the right triangle.

Reset

What Is the Hypotenuse?

The hypotenuse is the longest side of a right triangle. It is located directly opposite the 90-degree angle. The other two sides are called the legs, and they meet at the right angle.

Right triangle showing the hypotenuse A right triangle with perpendicular legs a and b, hypotenuse c, and a marked 90 degree angle. b a c 90°

In the diagram, sides a and b are perpendicular to each other, while side c is the hypotenuse. The Pythagorean theorem provides the relationship between these three sides.

Hypotenuse Formula

The hypotenuse formula comes from the Pythagorean theorem, which states that the sum of the squares of the two legs equals the square of the hypotenuse.

c² = a² + b²
Pythagorean theorem
c = √(a² + b²)
Formula for calculating the hypotenuse

Where:

  • a = first perpendicular leg.
  • b = second perpendicular leg.
  • c = hypotenuse, opposite the right angle.

Formula for a Missing Leg

If you know the hypotenuse and one leg, you can calculate the other leg by rearranging the Pythagorean theorem:

a = √(c² − b²)
Formula for finding a missing leg

The hypotenuse must always be longer than either leg. All side measurements must use the same unit.

Example: Calculate a 3-4-5 Triangle

Suppose a right triangle has two perpendicular sides measuring 3 cm and 4 cm. To find its hypotenuse:

c = √(3² + 4²)
  1. Square the first side: 3² = 9.
  2. Square the second side: 4² = 16.
  3. Add the squares: 9 + 16 = 25.
  4. Calculate the square root: √25 = 5.

Answer: The hypotenuse is 5 cm.

Common Pythagorean Triples

Pythagorean triples are sets of three positive integers that satisfy the Pythagorean theorem. They are useful when solving right-triangle problems without needing to calculate square roots.

First leg (a) Second leg (b) Hypotenuse (c)
345
51213
81517
72425
94041
202129

Practical Applications of Hypotenuse Calculations

Construction and Architecture

Builders use hypotenuse calculations to determine diagonal measurements, check right angles, and measure roof structures, ramps, and staircases.

Engineering and Design

Engineers use the Pythagorean theorem to calculate diagonal distances, component lengths, and geometric dimensions in technical designs.

Navigation and Distance Measurement

When two perpendicular distances are known, the straight-line distance between their endpoints can be calculated using the same mathematical principle.

Education and Mathematics

Students use hypotenuse calculations when studying right triangles, coordinate geometry, trigonometry, and the Pythagorean theorem.

Frequently Asked Questions

What is the hypotenuse of a right triangle?

The hypotenuse is the longest side of a right triangle. It is always opposite the 90-degree angle and connects the two endpoints of the triangle’s perpendicular legs.

How do you calculate the hypotenuse?

Use the Pythagorean theorem. Square the lengths of the two shorter sides, add the squares, and take the square root of the sum. The formula is c = √(a² + b²).

Can I calculate a missing side instead of the hypotenuse?

Yes. If you know the hypotenuse and one leg, subtract the square of the known leg from the square of the hypotenuse, then take the square root: a = √(c² − b²).

Is the hypotenuse always the longest side?

Yes. In every non-degenerate right triangle, the hypotenuse is longer than either of the two legs because it is opposite the right angle.

Does the calculator work with different measurement units?

Yes. You can use millimeters, centimeters, meters, kilometers, inches, feet, yards, miles, or generic units. Both input lengths must use the same unit.

What is the hypotenuse of a 3-4-5 triangle?

The hypotenuse is 5 units. This is a classic Pythagorean triple because 3² + 4² = 5², or 9 + 16 = 25.