Hypotenuse Calculator
Use any units, as long as both sides use the same ones. When finding a leg, put the hypotenuse in the first box.
Hypotenuse c = 5
- Pythagorean triple: yes
- Area: 6
- Perimeter: 12
Step-by-step solution
- Use the Pythagorean theorem for a right triangle: a² + b² = c².
- Square both legs: 3² = 9 and 4² = 16.
- Add them: 9 + 16 = 25.
- Take the square root: c = √25 = 5.
Example shown: the default numbers above. Change them and press Calculate.
What you get when you use this calculator
Every result includes the answer, a picture of what the answer means and the full working, so you can check the method as well as the number.
How to use the Hypotenuse Calculator
- Type your numbers into the boxes above.
- Press Calculate (or hit Enter).
- Read the highlighted answer, check the picture, then follow the numbered steps to see how it was found.
- Use Copy answer to paste the result into your homework or notes.
Formula and method
| Hypotenuse | c = √(a² + b²) |
|---|---|
| Missing leg | a = √(c² − b²) |
Worked examples
Example 1: legs 3 and 4
Hypotenuse c = 5
- Use the Pythagorean theorem for a right triangle: a² + b² = c².
- Square both legs: 3² = 9 and 4² = 16.
- Add them: 9 + 16 = 25.
- Take the square root: c = √25 = 5.
Example 2: legs 5 and 12
Hypotenuse c = 13
- Use the Pythagorean theorem for a right triangle: a² + b² = c².
- Square both legs: 5² = 25 and 12² = 144.
- Add them: 25 + 144 = 169.
- Take the square root: c = √169 = 13.
Example 3: hypotenuse 13, leg 5
Missing leg a = 12
Show the steps
- Rearrange a² + b² = c² to find a leg: a² = c² − b².
- Square the hypotenuse and the known leg: 13² = 169 and 5² = 25.
- Subtract: 169 − 25 = 144.
- Take the square root: a = √144 = 12.
Example 4: legs 1 and 1
Hypotenuse c = 1.414214
Show the steps
- Use the Pythagorean theorem for a right triangle: a² + b² = c².
- Square both legs: 1² = 1 and 1² = 1.
- Add them: 1 + 1 = 2.
- Take the square root: c = √2 = 1.414214 (exact form √2).
Practice problems
Try each one on paper first, then open the answer.
Problem 1: legs 8 and 15
Hypotenuse c = 17
Problem 2: legs 6 and 9
Hypotenuse c = 10.816654
Problem 3: hypotenuse 25, leg 7
Missing leg a = 24
Frequently asked questions
What is the hypotenuse?
The side opposite the right angle. It is always the longest side of a right triangle.
What is a Pythagorean triple?
Three whole numbers that satisfy a² + b² = c², such as 3-4-5, 5-12-13 and 8-15-17.
Does the Pythagorean theorem work for any triangle?
Only for right triangles. For other triangles use the law of cosines.
Related calculators
Fraction Calculator
Free fraction calculator. Add, subtract, multiply and divide fractions and mixed numbers, with step-by-step working, a bar-model picture and the decimal answer.
Simplify Fractions
Reduce any fraction to its simplest form. See the GCF used, the division steps and a before-and-after picture.
Ratio Simplifier
Simplify any ratio to its lowest terms. Works for two or more numbers and shows the GCF and a ratio-block picture.
Calculators are for learning and general use. If a result matters (an exam, a build, a purchase), double-check it. Read the disclaimer.