CalcMathic

Geometry

The Pythagorean theorem explained with examples

Illustration for pythagorean theorem explained

The Pythagorean theorem links the three sides of a right triangle, one with a 90 degree corner. It says that if the two shorter sides, called the legs, have lengths a and b, and the longest side opposite the right angle, the hypotenuse, has length c, then:

a² + b² = c²

In words, the area of the square on the hypotenuse equals the sum of the areas of the squares on the other two sides. It only works for right triangles, and the hypotenuse is always the longest side.

Finding the hypotenuse

Square the legs, add, then take the square root.

Legs 3 and 4. 3² + 4² = 9 + 16 = 25, and √25 = 5. The hypotenuse is 5.

Legs 4 and 7. 4² + 7² = 16 + 49 = 65, and √65 is about 8.062. Not every answer is a whole number, and that is fine. Leave it as √65 if you need an exact answer, or round if the question asks for it.

On the CalcMathic calculator, type 4 × 4 + 7 × 7, press =, then press the √ key.

Finding a missing leg

When you know the hypotenuse, rearrange the formula and subtract: a² = c² - b².

Hypotenuse 13, one leg 5. 13² - 5² = 169 - 25 = 144, and √144 = 12.

Hypotenuse 10, one leg 6. 100 - 36 = 64, and √64 = 8.

The classic slip is adding when you should subtract. A quick test: the hypotenuse must be longer than either leg, so if your missing leg comes out longer than the hypotenuse, you added by mistake.

Pythagorean triples

Sets of whole numbers that satisfy the theorem are called triples. A handful turn up constantly in tests, so they are worth recognizing.

TripleCheckDoubled
3, 4, 59 + 16 = 256, 8, 10
5, 12, 1325 + 144 = 16910, 24, 26
8, 15, 1764 + 225 = 28916, 30, 34
7, 24, 2549 + 576 = 62514, 48, 50

Multiplying every side of a triple by the same number gives another triple, which is why 9, 12, 15 works: it is 3, 4, 5 tripled.

Is it a right triangle?

The theorem also works in reverse. If the sides of a triangle satisfy a² + b² = c², it has a right angle.

  • 9, 12, 15. 81 + 144 = 225 and 15² = 225. It is a right triangle.
  • 6, 8, 11. 36 + 64 = 100, but 11² = 121. Since 100 is less than 121, the angle opposite the longest side is larger than 90 degrees.
  • 6, 8, 9. 100 is greater than 81, so the angle opposite the longest side is smaller than 90 degrees.

Builders use the 3-4-5 version of this to check corners are square: measure 3 feet along one wall, 4 feet along the other, and the diagonal between those marks should be exactly 5 feet.

Real-world examples

The ladder. A 10 foot ladder leans on a wall with its foot 6 feet from the base. How high does it reach? The ladder is the hypotenuse, so height² = 10² - 6² = 100 - 36 = 64, and the height is 8 feet.

The screen. A rectangular screen measures 24 inches wide and 18 inches tall. Its diagonal is √(24² + 18²) = √(576 + 324) = √900 = 30 inches.

The square. The diagonal of a square with side s is s√2. For a side of 5, it is 5 × 1.41421... which is about 7.071. You can check with the theorem: 5² + 5² = 50 and √50 is about 7.071.

Distance between two points

On a coordinate grid, the horizontal and vertical gaps between two points form the legs of a right triangle. For (1, 2) and (7, 10), the gaps are 7 - 1 = 6 and 10 - 2 = 8. The distance is √(6² + 8²) = √100 = 10. This is the distance formula, and it is the theorem in disguise.

Into three dimensions

The diagonal through a box with sides 3, 4 and 12 is found by applying the theorem twice, or in one go: √(3² + 4² + 12²) = √(9 + 16 + 144) = √169 = 13. The floor diagonal 3, 4 gives 5, then 5 and 12 give 13.

Units and rounding

All three sides must use the same unit before you square anything. If one leg is in feet and the other in inches, convert first. Keep extra decimals through the working and round only the final answer, because rounding √65 to 8 too early would shift every later step.

Why it works

One picture proof places four identical right triangles inside a square of side a + b. The leftover space in the middle is a tilted square with side c, so its area is c². Rearranging the same four triangles leaves two squares with areas a² and b². The leftover space is the same either way, so c² must equal a² + b². Seeing this once makes the formula far easier to remember than a rule on a page.

A step-by-step routine

  • Draw the triangle and mark the right angle.
  • Label the side opposite the right angle c. The other two are a and b.
  • Write a² + b² = c² with your numbers in place and a question mark for the unknown.
  • Square, then add if c is unknown, or subtract if a leg is unknown.
  • Take the square root and include the units.
  • Check that the hypotenuse is the longest side.

Common mistakes

  • Forgetting the final square root and giving c² as the answer.
  • Squaring incorrectly as (a + b)². The correct form is a² + b² and it is not the same thing.
  • Using the theorem on a triangle with no right angle.
  • Putting a leg in the position of c.

The Pythagorean theorem calculator accepts any two sides and shows each step. Once you have the sides, the area and perimeter guide explains how to find the area of the triangle.

Read next