Pythagorean Theorem Calculator

Side c
5
Working
c² = a² + b² = 3² + 4² = 9 + 16 = 25
c = √25 = 5

3, 4, 5 is a Pythagorean triple: all three sides are whole numbers.

Area
6
Perimeter
12

What is the Pythagorean theorem?

In a right-angled triangle, the square of the hypotenuse (the side opposite the right angle, and the longest side) equals the sum of the squares of the other two sides. If you know any two sides, you can find the third. It's used in geometry exams, construction, navigation, and anywhere you need a straight-line distance.

Pythagorean theorem

a² + b² = c² · c = √(a² + b²) · a = √(c² − b²)

a and b are the two shorter sides that meet at the right angle and c is the hypotenuse. To find the hypotenuse, add the squares; to find a shorter side, subtract the square of the known shorter side from the square of the hypotenuse.

Good to know

  • The theorem only works for right-angled triangles. For other triangles, use the triangle solver, which applies the cosine rule.
  • The converse is also true: if a² + b² = c², the triangle has a right angle. Builders use a 3-4-5 rope to mark a square corner.
  • Multiplying a Pythagorean triple by any number gives another one: 3, 4, 5 becomes 6, 8, 10 and 9, 12, 15.
  • The distance between two points (x₁, y₁) and (x₂, y₂) is √((x₂ − x₁)² + (y₂ − y₁)²), the theorem applied on a graph.
  • A square's diagonal is its side × √2, about 1.414 times the side.

Worked example: how high does a ladder reach?

  1. A 13 m ladder leans against a wall, with its foot 5 m from the wall
  2. The ladder is the hypotenuse: c = 13, and one side is b = 5
  3. a² = c² − b² = 13² − 5² = 169 − 25 = 144
  4. a = √144 = 12, so the ladder reaches 12 m up the wall
  5. Check: 5² + 12² = 25 + 144 = 169 = 13²

Common Pythagorean triples

Whole-number right triangles that come up often in exam questions.

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

Multiples of these, such as 6, 8, 10, are triples too.

Frequently Asked Questions

Square the two shorter sides, add them and take the square root. For sides 3 and 4: 9 + 16 = 25, and √25 = 5.
Subtract the square of the known shorter side from the square of the hypotenuse, then take the square root. With hypotenuse 13 and side 5: 169 − 25 = 144, and √144 = 12.
The side opposite the right angle. It's always the longest side, so if a 'hypotenuse' is shorter than another side, the numbers can't form a right triangle.
Three whole numbers that fit a² + b² = c², such as 3, 4, 5 or 5, 12, 13. Learning a few saves time in exams.
No, only for right-angled triangles. For others, the cosine rule c² = a² + b² − 2ab cos C applies; when C is 90°, it becomes the Pythagorean theorem.