GEOMETRY CALCULATOR

Hypotenuse Calculator (Right Triangle)

Find a right triangle's hypotenuse from its two legs using the Pythagorean theorem, a² + b² = c².

Updated September 2026
units
units
Length of Hypotenuse
5 units

The formula

√(A² + B²)
Calculates the length of the hypotenuse using the Pythagorean theorem.

Understanding the Hypotenuse

The hypotenuse is the longest side of a right-angled triangle, opposite the right angle. It plays a crucial role in the Pythagorean theorem, which states that the square of the hypotenuse is equal to the sum of the squares of the other two sides. This theorem is foundational in geometry and has practical applications in fields like engineering, architecture, and physics.

To calculate the hypotenuse, you need the lengths of the other two sides, often referred to as the legs of the triangle. The formula for the hypotenuse (c) is:
c = ?(a² + b²)
where a and b are the lengths of the legs.

How to calculate hypotenuse

The hypotenuse is the longest side of a right triangle, always the one opposite the 90° angle. The Pythagorean theorem — the sum of the squares of the two legs equals the square of the hypotenuse — is one of the oldest proven relationships in mathematics.

Two legs of 3 and 4 units give a hypotenuse of exactly 5 (3² + 4² = 9 + 16 = 25, and √25 = 5) — the smallest whole-number right triangle, which is why it shows up so often in textbooks and on-site squaring checks. Scale both legs by the same factor and the hypotenuse scales by that factor too: legs of 6 and 8 give a hypotenuse of 10.

What to enter:

  • Length of side A (units) — one leg of the right triangle
  • Length of side B (units) — the other leg

Results appear immediately — there is nothing to submit. Changing a field rewrites the link, so you can share the exact scenario you are looking at.

The calculator recomputes the whole result from whatever is currently in the fields, not step by step, so there is nothing to reset before trying a different set of numbers — change a value, see the new answer, change it back if needed.

The Pythagorean Theorem Explained

The Pythagorean theorem is named after the ancient Greek mathematician Pythagoras. It is a fundamental principle in geometry that relates the sides of a right-angled triangle. The theorem is expressed as:
a² + b² = c²
where:
  • a and b are the lengths of the legs.
  • c is the length of the hypotenuse.
This theorem is widely used in real-world applications, such as calculating distances and designing structures.

Why hypotenuse matters

This is the kind of calculation almost everyone has done on paper at some point and almost no one enjoys redoing by hand a second time. A page like this one exists for exactly that second time — and the third, and however many more follow.

Beyond checking a single answer, changing one number and watching the result move is a fast way to build a feel for how the formula actually behaves — often faster than working through several versions of the same problem by hand.

Getting comfortable with a calculation like this by hand is still worth doing even with a page like this one available, since the method shown above is the same one that gets used mentally, on paper, and in far more complicated problems that build on it later — a calculator speeds up the arithmetic, not the understanding.

It is worth keeping the original numbers next to the result when the working needs to be shown, since a bare final answer without the steps that produced it is usually not enough on its own for homework or an exam that asks for method as well as the figure.

Hypotenuse Calculation Example

Let’s calculate the hypotenuse for a triangle with legs of 3 units and 4 units:
c = ?(3² + 4²) = ?(9 + 16) = ?25 = 5 units
The hypotenuse is 5 units. Always ensure the units are consistent and the triangle is right-angled.

Worked example

Take the figures the calculator starts with:

  • Length of side A: 3 units
  • Length of side B: 4 units

That gives:

  • Length of Hypotenuse: 5 units

Those starting numbers are just the calculator's own defaults, used so the working is visible rather than hidden — swap in the numbers from your own problem above and the identical steps run again on them.

Applications of the Hypotenuse

The hypotenuse is not just a theoretical concept; it has practical uses:
  • Construction: Ensuring corners are square.
  • Navigation: Calculating shortest paths.
  • Physics: Resolving vector components.
Understanding how to calculate the hypotenuse is essential for accuracy in these fields.

Reading the result

The hypotenuse is always longer than either individual leg, and always shorter than the sum of the two legs added together — if your result fails either check, one of the inputs is likely wrong.

Where this goes wrong. This formula only applies to right triangles. Plugging in two sides of a triangle that isn't right-angled and expecting a valid third side will give a wrong answer — for any other angle, you need the Law of Cosines instead.

A quick mental estimate first — rounding the inputs to convenient numbers — is a fast way to catch a mistyped figure: if the calculator's exact answer and that rough estimate are wildly different, one of the fields is worth rechecking before trusting the result.

The hypotenuse is the side opposite the right angle and is the longest side of the triangle. It is calculated using the Pythagorean theorem.

Use the formula c = ?(a² + b²), where a and b are the lengths of the other two sides.

Rearrange the theorem instead: leg = √(hypotenuse² − known leg²). This calculator solves for the hypotenuse from the two legs, so for the reverse case you'd subtract rather than add before taking the square root.

No, the hypotenuse is always the longest side in a right-angled triangle.

Because it's the smallest right triangle with whole-number sides. Measuring 3 units along one wall, 4 along the other, and checking the diagonal comes out to exactly 5 is a fast way to confirm a 90° angle without a protractor — a trick used in construction for centuries.

It is key to solving problems involving right-angled triangles and has applications in various fields like engineering and physics.

The answer it gives you is length of Hypotenuse. With 3 units length of side A and 4 units length of side B, that comes to 5 units. Change any field and the figure moves with it.

Another Hypotenuse Example

For a triangle with legs of 6 units and 8 units:
c = ?(6² + 8²) = ?(36 + 64) = ?100 = 10 units
The hypotenuse is 10 units. Verify the calculations to avoid errors.

Yes — it applies the standard method shown in the formula section above and returns an exact result for whatever numbers are entered, which makes it a reliable way to check a final answer. It will not show every intermediate step of a written-out solution, so it checks the answer rather than replacing the working.

Common Mistakes in Hypotenuse Calculations

Avoid these pitfalls:
  • Using non-right-angled triangles.
  • Incorrectly squaring the sides.
  • Forgetting to take the square root.
Double-check your work for accuracy.

Work through the formula shown above one step at a time against your own working — the most common causes are a sign error, a step done in the wrong order, or a number copied incorrectly from the original problem into the calculation.

Visualizing the Hypotenuse

Drawing the triangle can help. Label the sides clearly and ensure the right angle is correctly marked. Visualization aids understanding and reduces errors.

No — the calculator recomputes the full result from whatever is currently in every field each time, not step by step in the order they were filled in, so the order makes no difference to the answer.

Advanced Hypotenuse Calculations

For more complex problems, such as those involving algebraic expressions, the same principles apply. Substitute the given values into the formula and solve step-by-step.

Hypotenuse with Variables

If the legs are x and y, the hypotenuse is:
c = ?(x² + y²)
For x = 5 and y = 12:
c = ?(25 + 144) = ?169 = 13 units

Hypotenuse in 3D Geometry

In three-dimensional space, the Pythagorean theorem extends to calculate distances between points. The formula becomes:
d = ?(x² + y² + z²)
where x, y, and z are the differences in coordinates.

Conclusion: Mastering the Hypotenuse

Understanding and calculating the hypotenuse is a fundamental skill in geometry. Whether for academic purposes or real-world applications, mastering this concept opens doors to solving a wide range of problems. Practice with different examples to build confidence and accuracy.

Was this calculator helpful?

Tap a star to rate it. Your feedback helps us improve the tools people rely on most.