Pythagorean Theorem

Definitionnoun phrase

What is the Pythagorean theorem?

The Pythagorean theorem says that in a right triangle, a2 + b2 = c2. The legs are a and b, the two sides that form the right angle. The hypotenuse, c, is the longest side across from the right angle. Legs of 3 and 4 give 9 + 16 = 25, so the hypotenuse is 5.

In Spanish
teorema de Pitágoras
Also called
a squared plus b squared, Pythagoras' theorem, theorem of Pythagoras
How to say it
puh-THAG-uh-REE-un
Grade level
6-8
Grade 8Algebra 1CCSS 8.G.B.6CCSS 8.G.B.7CCSS 8.G.B.8GEDSATACT

Pythagorean Theorem in a picture

Squares on the sides of a 3-4-5 right triangleA right triangle with legs 3 and 4 and hypotenuse 5. Squares drawn on the sides contain 9, 16 and 25 unit squares, and 9 + 16 = 25.a = 3b = 4c = 5a² = 9b² = 16c² = 25a² + b² = c²9 + 16 = 25c = √25 = 5
The two squares on the legs (9 and 16 unit squares) hold exactly as much area as the square on the hypotenuse (25). That is what a2 + b2 = c2 says.

Formal definition and notation

In any right triangle with legs of lengths a and b and hypotenuse of length c, a2 + b2 = c2: the area of the square drawn on the hypotenuse equals the sum of the areas of the squares drawn on the legs. The converse is also true: if the side lengths of a triangle satisfy a2 + b2 = c2, the triangle has a right angle opposite the side c. Whole-number solutions, such as 3, 4, 5, are called Pythagorean triples.

Symbol Read it as Meaning
a, b a and b the legs: the two sides that meet at the right angle
c c the hypotenuse, opposite the right angle
c = √a2 + b2 c equals the square root of a squared plus b squared the theorem solved for the hypotenuse

Key facts

  • The hypotenuse is always the longest side and always sits across from the right angle.
  • Common Pythagorean triples: 3, 4, 5; 5, 12, 13; 8, 15, 17; 7, 24, 25. Multiples work too: 6, 8, 10 is 2 × (3, 4, 5).
  • The converse tests for a right angle: 9, 40, 41 is a right triangle because 81 + 1600 = 1681 = 412.
  • The distance between two points comes from the theorem: from (1, 2) to (4, 6) the legs are 3 and 4, so the distance is 5.
  • For a triangle that is not right, a2 + b2 ≠ c2: with c the longest side, a2 + b2 > c2 means acute and a2 + b2 < c2 means obtuse.

Pythagorean theorem

Pythagorean theorem
a2 + b2 = c2
a, b
the lengths of the legs
c
the length of the hypotenuse, the longest side

Hypotenuse missing: c = √a2 + b2. Leg missing: a = √c2 − b2. Square first, add or subtract, then take the square root last.

Try it: drag the legs

Interactive

Drag the blue or orange point, or select one and use the arrow keys, to change the legs. The readout squares them, adds, and takes the square root. Look for whole-number triples like 5, 12, 13.

This interactive needs JavaScript. The worked examples below show the same ideas step by step.

Pythagorean Theorem examples, step by step

Example 1: Find the hypotenuse

Warm-up

A right triangle has legs 5 and 12. How long is the hypotenuse?

  1. Square the legs: 52 = 25 and 122 = 144.
  2. Add: 25 + 144 = 169, so c2 = 169.
  3. Take the square root: c = √169 = 13.

Answer: The hypotenuse is 13 units long.

Example 2: Find a missing leg

Core

A right triangle has a hypotenuse of 17 and one leg of 8. Find the other leg.

  1. The hypotenuse is c = 17, so 82 + b2 = 172.
  2. 64 + b2 = 289.
  3. Subtract: b2 = 289 − 64 = 225.
  4. b = √225 = 15. Check: 8, 15, 17 is a known triple.

Answer: The other leg is 15.

Example 3: A ladder against a wall

Test-style

A 10-foot ladder leans against a wall. Its base is 4 feet from the wall. How high up the wall does the ladder reach, to the nearest tenth of a foot?

  1. The wall and the ground meet at a right angle. The ladder is the hypotenuse: c = 10.
  2. 42 + h2 = 102, so 16 + h2 = 100.
  3. h2 = 84, so h = √84 ≈ 9.17.
  4. Check: the height must be less than the ladder, 10 feet. It is.

Answer: The ladder reaches about 9.2 feet up the wall.

Common mistakes

✗ MistakeA triangle has sides 4 and 6 with a 70° angle between them, so the third side is √16 + 36.
✓ InsteadThe angle is not 90°, so a2 + b2 = c2 does not apply; this needs other tools, such as the law of cosines.

The formula works for right triangles only.

✗ MistakeHypotenuse 13 and leg 5: 52 + 132 = c2, so the missing side is about 13.9.
✓ Instead13 is c: 52 + b2 = 132, so b2 = 144 and b = 12.

The hypotenuse goes alone on one side of the equation. A leg can never be longer than the hypotenuse.

✗ Mistakec2 = 25, so c = 25.
✓ Insteadc = √25 = 5.

The theorem gives c2. Take the square root as the last step.

✗ MistakeLegs 3 and 4 give a hypotenuse of 3 + 4 = 7.
✓ Instead√9 + 16 = 5.

The squares of the sides add up, not the sides. The hypotenuse is always shorter than the two legs put together.

Not to be confused with

Pythagorean Theoremvs.Hypotenuse

The hypotenuse is one side of a right triangle, c. The Pythagorean theorem is the equation that links it to the legs.

Pythagorean Theoremvs.Distance formula

The distance formula, d = √(x2 − x1)2 + (y2 − y1)2, is the Pythagorean theorem used on a coordinate plane, with the legs as the horizontal and vertical changes.

Pythagorean Theoremvs.Pythagorean triple

A Pythagorean triple is a set of three whole numbers that fit the theorem, like 5, 12, 13. The theorem itself works for any right triangle, including sides like 1, 1 and √2.

Quick check: 3 questions

Question 1 of 3

A right triangle has legs 9 and 12. How long is the hypotenuse?

Show answer and explanation

Answer: B. 81 + 144 = 225 and √225 = 15. Choice A adds the legs, C forgets the square root, and D subtracts the squares as if 12 were the hypotenuse.

Question 2 of 3

Which set of side lengths makes a right triangle?

Show answer and explanation

Answer: D. 72 + 242 = 49 + 576 = 625 = 252. For the others, the squares of the two shorter sides do not add up to the square of the longest: 16 + 25 ≠ 36, 25 + 100 ≠ 144, 4 + 9 ≠ 16.

Question 3 of 3

What is the distance between the points (1, 2) and (7, 10)?

Show answer and explanation

Answer: A. The legs are 7 − 1 = 6 and 10 − 2 = 8, so the distance is √36 + 64 = 10. Choice B adds the legs, C forgets the square root, and D is only the vertical leg.

Pythagorean Theorem: frequently asked questions

Does the Pythagorean theorem work for all triangles?

No. It works only for right triangles, those with a 90° angle. For other triangles, a2 + b2 is bigger or smaller than c2. You can use that as a test: if the side lengths satisfy a2 + b2 = c2, the triangle must be a right triangle. That is the converse of the theorem.

How do I know which side is c?

c is the hypotenuse: the side across from the right angle, which is also the longest side. The two sides that touch the right-angle mark are the legs, a and b, and it does not matter which leg you call a. If a problem gives you three lengths, the largest one is c.

What is a Pythagorean triple?

A set of three whole numbers that fit a2 + b2 = c2, such as 3, 4, 5 or 5, 12, 13. Multiplying a triple by any whole number gives another one: 3, 4, 5 times 3 is 9, 12, 15. Recognizing triples saves time on tests, because you can skip the square root.

Practice and tools

Sources

  1. Common Core State Standards, Grade 8 Geometry (8.G.B.6, 8.G.B.7, 8.G.B.8)
  2. OpenStax, Prealgebra 2e, 9.3 Use Properties of Angles, Triangles, and the Pythagorean Theorem

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS 8.G.B.6, CCSS 8.G.B.7, CCSS 8.G.B.8

Cite this entry

Effortless Math Team. “Pythagorean Theorem.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/pythagorean-theorem/

Flashcard

TermPythagorean Theorema2 + b2 = c2
DefinitionIn a right triangle, the squares of the legs add up to the square of the hypotenuse: 32 + 42 = 52.
Study the full deck

Browse all terms in the Math Dictionary · More geometry terms · Random term