MATH

Pythagorean Theorem Calculator: Hypotenuse or Missing Side

In a right triangle, a² + b² = c², where c is the hypotenuse, the side across from the right angle. Legs of 3 and 4 give c² = 9 + 16 = 25, so c = 5.

  • Hypotenuse or a leg
  • Exact roots like √74
  • Right-triangle check
Find a side
Example · legs 5 and 7
  • a²25
  • b²49
  • c² = a² + b²74
  • Decimal8.6023
cHypotenuse√74

To find the hypotenuse, square both legs, add them and take the square root: c = √(a² + b²). With legs 5 and 7, c = √(25 + 49) = √74 ≈ 8.6023. To find a missing leg, subtract instead: a = √(c² − b²), so a hypotenuse of 13 with a leg of 5 leaves √(169 − 25) = √144 = 12. This Pythagorean theorem calculator works either way, shows the answer as a simplified root and a decimal with every step, and checks whether three sides make a right triangle.

Last updated November 13, 2026  How we calculate

Enter any two sides and leave the one you want blank. Enter all three to check for a right triangle. Decimals (2.5) and fractions (3/4) work; use the same unit for every side.

Result

Missing side: hypotenuse c

√74

Hypotenuse c ≈ 8.6023

  1. c² = a² + b² = 5² + 7² = 25 + 49 = 74
  2. c = √74 ≈ 8.602325
Triangle results
Leg a5
Leg b7
Hypotenuse c√74 ≈ 8.6023
Angle A (opposite a)35.54°
Angle B (opposite b)54.46°
Area (½ab)35/2 (17.5)
Perimeter20.6023
Height to the hypotenuse (ab ÷ c)4.0687

How to Find the Hypotenuse

The Pythagorean theorem says that in any right triangle, a² + b² = c², where a and b are the legs and c is the hypotenuse, the side opposite the 90° angle (OpenStax Prealgebra 2e, 9.3). It only works for right triangles.

  1. Square each leg: 5² = 25 and 7² = 49.
  2. Add the squares: 25 + 49 = 74. That's c².
  3. Take the square root: c = √74 ≈ 8.6023.

Most answers aren't whole numbers. √74 can't be simplified, because 74 = 2 × 37 has no perfect-square factor. When it does, the calculator pulls the square out: legs of 10 and 10 give c = √200 = √(100 × 2) = 10√2 (OpenStax Elementary Algebra 2e, 9.2).

How to Find a Missing Leg

Rearrange the formula: a² = c² − b². With a hypotenuse of 6 and a leg of 3, a² = 36 − 9 = 27, so a = √27 = 3√3 ≈ 5.196. The hypotenuse is always the longest side, so if the number you call c isn't the largest, you've labeled the sides wrong.

Pythagorean Triples

Some right triangles have whole-number sides, called Pythagorean triples. Any multiple of one is a triple too: 3-4-5 doubled is 6-8-10.

Common Pythagorean triples, with a² + b² = c²
abcCheck
3459 + 16 = 25
681036 + 64 = 100
5121325 + 144 = 169
8151764 + 225 = 289
7242549 + 576 = 625
202129400 + 441 = 841
123537144 + 1225 = 1369
9404181 + 1600 = 1681

Is It a Right Triangle?

The theorem works in reverse too: if the squares of the two shorter sides add up to the square of the longest side, the triangle has a right angle (the converse of the Pythagorean theorem, part of the Common Core standard 8.G.B.6). Sides of 5, 12 and 13 pass: 25 + 144 = 169 = 13². Sides of 6, 7 and 9 don't: 36 + 49 = 85, not 81. Enter all three sides in the calculator to check.

Everyday Uses

Frequently Asked Questions

What is the Pythagorean theorem formula?

a² + b² = c², where a and b are the legs of a right triangle and c is the hypotenuse. Solved for the hypotenuse, c = √(a² + b²); for a leg, a = √(c² − b²).

What is the hypotenuse of a triangle with legs 6 and 8?

10, because 6² + 8² = 36 + 64 = 100 and √100 = 10.

Does the Pythagorean theorem work for every triangle?

No, only right triangles; OpenStax calls it "a special property of right triangles". For the area of any triangle from its three sides, use the area calculator (Heron's formula).

What is the hypotenuse of a right triangle with two equal legs?

The leg times √2: legs of 1 give √2 ≈ 1.414, and legs of 10 give 10√2 ≈ 14.142.

More tools are on the math calculators page.

Sources