Hypotenuse Calculator

A hypotenuse calculator takes the guesswork out of right triangle math. Whether you know both legs and need the hypotenuse, or you know the hypotenuse and one leg and need the missing side, the tool does the arithmetic instantly. Right triangles show up everywhere: construction projects, navigation, graphic design, and even video games. Knowing how to find the hypotenuse quickly is a genuinely useful skill, and understanding the math behind it makes the result mean something. This page walks through the formulas, the Pythagorean theorem, special triangle types, and real-world uses so you can get the number you need and actually understand where it came from.

Enter Details

Result

Right triangle

Note — This result is an estimate. Talk to a healthcare provider for personalized guidance.

How to Calculate the Hypotenuse

The hypotenuse is always the longest side of a right triangle, and it always sits opposite the right angle. To find it, you need the lengths of the other two sides, which are called the legs.

The core process is straightforward. Square each leg, add those two values together, then take the square root of the sum. That result is your hypotenuse. For example, if the legs measure 3 and 4 units, you square them to get 9 and 16, add to get 25, and the square root of 25 is 5.

If you already know the hypotenuse and one leg, you work backwards: subtract the square of the known leg from the square of the hypotenuse, then take the square root. Same relationship, just solved from a different starting point.

Hypotenuse Formula

The formula comes directly from the Pythagorean theorem and is written as:

c = √(a² + b²)

Here, c is the hypotenuse and a and b are the two legs. Every right triangle, no matter the size, follows this exact relationship. Scale it up or down, the formula holds.

If you need to find a missing leg instead, rearrange the formula:

  • a = √(c² − b²)
  • b = √(c² − a²)

These variations are just algebra applied to the original equation. Once you're comfortable with the base formula, the rearrangements feel natural.

Pythagorean Theorem Calculator

A Pythagorean theorem calculator applies the formula a² + b² = c² automatically. You enter the values you know, pick which side you're solving for, and get the answer without any manual computation.

This is especially handy when the numbers aren't clean. If your legs are 7.4 and 11.9 instead of neat whole numbers, squaring and square-rooting by hand gets tedious fast. A calculator eliminates that friction entirely.

Most implementations let you solve all three variations: find c from a and b, find a from b and c, or find b from a and c. The underlying math is always the same theorem.

Find the Hypotenuse from Two Sides

This is the most common use case. You have both legs and need the hypotenuse.

  1. Square the first leg:
  2. Square the second leg:
  3. Add them: a² + b²
  4. Take the square root: c = √(a² + b²)

Say your legs are 5 and 12. Five squared is 25, twelve squared is 144, their sum is 169, and the square root of 169 is exactly 13. Clean answer. Not every problem works out to a whole number, but the process is always the same regardless.

Find a Missing Leg from the Hypotenuse

Sometimes you know the hypotenuse and one leg and need the other. Rearranging the theorem gives you what you need.

  1. Square the hypotenuse:
  2. Square the known leg:
  3. Subtract: c² − a²
  4. Take the square root: b = √(c² − a²)

For example, if the hypotenuse is 10 and one leg is 6, you get 100 minus 36 equals 64, and the square root of 64 is 8. That's your missing leg.

This version comes up a lot in construction and carpentry, where you might know the diagonal measurement but need to figure out one of the straight-line dimensions.

Right Triangle Calculator

A right triangle calculator goes a bit further than a basic Pythagorean tool. In addition to finding side lengths, it can also calculate angles, the triangle's area, and its perimeter, all from just two known values.

The required inputs depend on what you already know. Two sides are usually enough to fully define the triangle. One side plus one acute angle works too, since the right angle is already fixed at 90 degrees.

These calculators are useful any time you're working with geometry in a practical context. Architecture, engineering, surveying, and DIY home projects all lean on right triangle math constantly.

Side Length Calculations

Given any two sides of a right triangle, you can always find the third using the Pythagorean theorem. The key is knowing which sides you have.

  • Both legs known: use c = √(a² + b²) to find the hypotenuse.
  • Hypotenuse and one leg known: use b = √(c² − a²) to find the missing leg.

When the numbers aren't whole numbers, round your answer to a reasonable decimal place for the application. In woodworking, two decimal places is usually fine. In engineering, you might need more precision.

Angle and Side Relationships

In a right triangle, the sides and angles are connected through trigonometry. Once you know the side lengths, you can find the acute angles using inverse trig functions.

  • sin(θ) = opposite / hypotenuse
  • cos(θ) = adjacent / hypotenuse
  • tan(θ) = opposite / adjacent

To find an angle, apply the inverse: θ = arcsin(opposite / hypotenuse), for instance. The two acute angles in a right triangle always add up to 90 degrees, so once you find one, you get the other by subtracting from 90.

This connection between sides and angles is what makes right triangles so flexible as a calculation tool. You can start with almost any two pieces of information and work out everything else.

Hypotenuse Calculation Examples

Working through a few concrete examples helps cement the process.

Leg aLeg bHypotenuse c
345
51213
81517
6810
94041

The examples above are all Pythagorean triples, meaning all three sides are whole numbers. They're great for checking your work because there's no rounding involved.

For a non-integer example: legs of 4 and 7 give you √(16 + 49) = √65, which is approximately 8.06. Real-world measurements rarely land on perfect triples, so getting comfortable with decimal results matters.

Pythagorean Theorem Explained

The Pythagorean theorem states that in any right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides. Written out: a² + b² = c².

The theorem is attributed to the ancient Greek mathematician Pythagoras, though evidence suggests it was known to Babylonian and Indian mathematicians even earlier. It's one of the oldest and most widely used results in all of mathematics.

What makes it remarkable is how universal it is. It doesn't matter how big or small the triangle is, whether the legs are equal or wildly different, or what units you use. As long as there's a right angle, the relationship holds without exception.

Geometrically, you can think of it visually: if you draw a square on each side of a right triangle, the area of the square on the hypotenuse exactly equals the combined area of the squares on the two legs. That's the theorem in picture form, and it's a useful way to remember why the formula works.

Special Right Triangles

Most right triangles require a calculator to get exact side lengths. But two specific triangle types have fixed angle-to-side ratios that make the math much cleaner. These are the 45-45-90 and 30-60-90 triangles, and they come up constantly in geometry, trigonometry, and practical applications.

Memorizing their ratios saves real time. You won't need to plug numbers into the Pythagorean theorem every time one of these triangles appears.

45-45-90 Triangle

A 45-45-90 triangle is an isosceles right triangle, meaning the two legs are always equal in length. The angles are exactly 45°, 45°, and 90°.

The side ratio is: 1 : 1 : √2. So if each leg has length a, the hypotenuse is a√2.

  • Legs of 1: hypotenuse = √2 ≈ 1.414
  • Legs of 5: hypotenuse = 5√2 ≈ 7.071
  • Legs of 10: hypotenuse = 10√2 ≈ 14.142

This triangle shows up naturally when you cut a square diagonally. The diagonal of any square with side length s is always s√2, which follows directly from this ratio.

30-60-90 Triangle

A 30-60-90 triangle has angles of 30°, 60°, and 90°. The sides follow a fixed ratio of 1 : √3 : 2, where the shortest side is opposite the 30° angle and the hypotenuse is opposite the 90° angle.

If the shortest leg is a:

  • The longer leg = a√3
  • The hypotenuse = 2a

For example, with a shortest leg of 4: the longer leg is 4√3 (about 6.93) and the hypotenuse is 8.

This triangle comes up when you cut an equilateral triangle in half. Each half has angles of 30°, 60°, and 90°, which is where the ratio originates. It's also heavily used in physics and engineering problems involving forces and angles.

Distance Formula and the Hypotenuse

The distance formula used in coordinate geometry is essentially the Pythagorean theorem in disguise. To find the distance between two points on a grid, you calculate:

d = √((x₂ − x₁)² + (y₂ − y₁)²)

The horizontal difference (x₂ − x₁) acts as one leg, the vertical difference (y₂ − y₁) acts as the other, and the distance between the points is the hypotenuse of the right triangle they form.

Plot any two points. Draw a horizontal line from one and a vertical line from the other. Where those lines meet creates a right angle, and the straight-line distance between your two original points is the hypotenuse of that right triangle. Same theorem, just applied to a coordinate plane.

This connection makes the distance formula easier to remember. If you know the Pythagorean theorem, you already know the logic behind measuring distance in 2D space.

Applications of Hypotenuse Calculations

Hypotenuse calculations aren't just classroom exercises. They show up in a wide range of practical situations.

  • Construction and carpentry: Builders use the 3-4-5 triangle (a Pythagorean triple) to check that corners are square. If the diagonal of a 3-by-4-foot corner measures exactly 5 feet, the angle is a perfect 90°.
  • Navigation: Pilots and sailors calculate straight-line distances between two points using coordinate-based hypotenuse math, especially when factoring in crosswinds or currents.
  • Screen and display sizing: TV and monitor sizes are measured diagonally, which is the hypotenuse of the rectangle formed by the screen's width and height.
  • Surveying: Land surveyors use right triangle geometry constantly to determine property boundaries, slopes, and elevations.
  • Physics: Calculating the resultant of two perpendicular forces or velocities uses the same formula. Two forces at right angles produce a combined force equal to the hypotenuse of the triangle they form.
  • Computer graphics: Distance calculations between pixels or objects in 2D and 3D space rely on the Pythagorean theorem for collision detection, rendering, and animation.

The math is simple, but its reach is surprisingly broad. Once you recognize the pattern, you start seeing right triangles everywhere.

Other Maths Calculators

Explore all