Pythagorean Theorem Calculator

Find the hypotenuse or a missing side of a right triangle with a² + b² = c², plus angles, area and perimeter.

abcαβ
Hypotenuse c–

Pythagorean Theorem Calculator: Find the Missing Side

If you’ve got a right triangle and you know two of its sides, you can always work out the third.

That’s the whole point of Pythagoras’ theorem, and it’s surprisingly useful outside the classroom: checking a wall is square, working out the length of a ladder, the diagonal of a TV screen, or the length of a roof rafter.

This free Pythagorean theorem calculator finds the hypotenuse from the two shorter sides, or a missing leg from the hypotenuse and the other leg.

It also gives you both angles, the area and the perimeter, and shows the working step by step. You can add units such as cm, m, inches or feet.

How to Use the Pythagorean Theorem Calculator

  • Find c (hypotenuse): enter the two shorter sides, a and b.
  • Find a or b (leg): enter the hypotenuse c and the side you know.
  • Pick a unit if you want it shown in the answer. All sides must be in the same unit.

The Pythagorean Theorem Formula

a² + b² = c²

In a right triangle (one with a 90° corner), the square of the longest side, the hypotenuse c, equals the squares of the two other sides added together. The hypotenuse is always the side opposite the right angle.

  • Find the hypotenuse: c = √(a² + b²)
  • Find a leg: a = √(c² − b²), or b = √(c² − a²)

Worked Examples

Example 1: the classic 3-4-5 triangle

a = 3, b = 4. c² = 3² + 4² = 9 + 16 = 25, so c = √25 = 5.

Example 2: finding a missing leg

c = 13, b = 12. a² = 13² − 12² = 169 − 144 = 25, so a = 5.

Example 3: a ladder against a wall

A ladder reaches 15 ft up a wall and its foot is 8 ft from the wall. The ladder length is √(15² + 8²) = √289 = 17 ft.

Example 4: TV screen diagonal

A screen about 121.8 cm wide and 68.5 cm tall has a diagonal of √(121.8² + 68.5²) ≈ 139.7 cm, which is about 55 inches.

Common Pythagorean Triples

These are right triangles where all three sides are whole numbers. Multiply any of them by the same number (for example 6-8-10) and you get another one.

abc
345
51213
81517
72425
202129
94041

The 3-4-5 Rule for Checking a Square Corner

Builders and DIYers use this all the time. Measure 3 units along one wall and 4 units along the other, then measure the diagonal between those two marks.

If it’s exactly 5 units, the corner is a perfect 90°. For bigger spaces use 6-8-10 or 9-12-15, in feet or metres. It works for laying out patios, decking and tiles too.

Angles, Area and Perimeter of a Right Triangle

  • Angle α (opposite side a) = arctan(a ÷ b), and angle β = 90° − α.
  • Area = a × b ÷ 2
  • Perimeter = a + b + c
  • Height to the hypotenuse = a × b ÷ c

For the 3-4-5 triangle the angles are 36.87° and 53.13°, the area is 6 and the perimeter is 12.

Frequently Asked Questions

Which side is the hypotenuse?

The longest side, opposite the right angle. It’s always c in a² + b² = c².

Does the Pythagorean theorem work for any triangle?

No, only for right triangles. For other triangles you need the law of cosines.

How do I find the hypotenuse in feet and inches?

Convert both sides to inches (or to decimal feet) first, use the calculator, then convert back. 12 inches = 1 foot.

Can a leg be longer than the hypotenuse?

No. The hypotenuse is always the longest side. If c isn’t the largest number, the triangle isn’t a right triangle.

Who discovered the Pythagorean theorem?

It’s named after the Greek mathematician Pythagoras (around 570–495 BC), but the relationship was known earlier in Babylon, India and China.

More free tools from our Math Calculators collection:

Tahir Mehmood

About the author

Tahir Mehmood

Tahir Mehmood is the founder of Digital Designs SEO LTD, a UK company, with five years of hands-on experience in SEO, content writing and web development. He builds and maintains the calculators on All in Calculators and keeps them up to date. Spotted an error? Contact us and we will fix it.

Last updated: 27 November 2026