Key Points
- In a right triangle with legs and and hypotenuse : .
- To find the hypotenuse, add the squares and take the square root; to find a leg, subtract.
- The rule is about areas: the squares on the legs exactly fill the square on the hypotenuse.
- It works only at exactly ; the converse uses this to test for right angles.
- Babylonian scribes used the relationship more than a thousand years before Pythagoras.
Why Three Squares Tell the Whole Story
Square each side of a 3-4-5 right triangle and something odd happens: 9 plus 16 is 25.
- Build a square on each side. The square on the 3-side holds 9 unit cells, the 4-side 16, and the long side 25.
- That is no accident of these numbers. It happens in every right triangle ever drawn.
- This fact, the Pythagoras theorem, finds ladders, TV sizes, map distances and the diagonal of a box.

What Is the Pythagoras Theorem?
In a right-angled triangle, the square of the hypotenuse equals the sum of the squares of the other two sides. Every figure and example here uses the same labels:
- the right angle is at corner C;
- the two sides that form it are the legs, and ;
- the side opposite it is the hypotenuse, , always the longest side.
is the area of a square with side . The theorem says the two smaller squares, cut up and rearranged, cover the big square exactly.
The three forms of the formula
| You know | You want | Formula |
|---|---|---|
| both legs , | the hypotenuse | |
| hypotenuse and leg | the leg | |
| hypotenuse and leg | the leg |
- Finding the hypotenuse means adding squares; finding a leg means subtracting from the hypotenuse's square.
- Square roots stay exact (such as ) and are rounded to two places only at the end.
Pythagorean triples and the converse
- Three whole numbers that fit, such as (3, 4, 5), (5, 12, 13), (8, 15, 17) and (7, 24, 25), are Pythagorean triples. Any multiple, like (6, 8, 10), is one too.
- The theorem also runs backwards: if , the angle opposite is . Builders use this 3-4-5 check to set square corners.
Try It Yourself
Drag the two handles to change the legs and watch the three squares resize. Try 3-4-5, then legs 2 and 3, which give , as most right triangles do.
Four Ways to Prove the Pythagoras Theorem
It may be the most-proved result in mathematics: Elisha Loomis's 1940 book The Pythagorean Proposition collects 370 proofs. Here are four very different reasons it is true.
Proof 1: move four triangles around
Take a square with side and place four copies of the right triangle inside it, in two ways.
- First way: triangles in the corners, hypotenuses facing in. The gap in the middle is a tilted square of area .
- Second way: the triangles pair into two rectangles. The gaps are two squares, and .
- Same big square, same four triangles, so the gaps match: .

Proof 2: the same picture in algebra
- The big square's area is .
- It is also four triangles plus the middle square: .
- Set them equal and the cancels: .
Proof 3: the triangle contains two smaller copies of itself
Drop a perpendicular from C to the hypotenuse, meeting it at H. It splits into (next to ) and (next to ).
- Each small triangle shares an angle with the big one and has a right angle, so each is similar to it (same shape, different size).
- Matching sides gives , so . In the same way, .
- Add them: .

For 3-4-5: and , and , . More on this in similar triangles.
Proof 4: Garfield's trapezium
In 1876 James A. Garfield, then a US congressman and later President, published a proof in the New England Journal of Education.
- Two copies of the triangle and one right triangle with legs make a trapezium.
- Its area is by the trapezium formula, and by adding the three triangles.
- Set them equal and simplify: .
What Happens When the Angle Is Not 90°?
The theorem holds for right triangles only. Keep the legs at 3 and 4 and change the angle at C:
| Angle at C | Third side | Compared with 25 | |
|---|---|---|---|
| smaller | |||
| equal | |||
| larger |

- A sharper angle pulls the ends together and shrinks; a wider angle pushes them apart.
- Only lands exactly on , which is why the converse of the Pythagoras theorem works.
- For any angle, the Law of Cosines, , applies (see how to find side c of a triangle). At , .
- The surface must be flat. On a globe, a triangle from the North Pole to two points on the equator can have three right angles.
Pythagoras Beyond the Triangle
The theorem keeps turning up in topics that do not look like triangles.
- Distance between two points. The horizontal and vertical gaps are legs, giving the distance formula: .
- Three dimensions. Used twice, it gives the diagonal of a cuboid: .
- Trigonometry. On the unit circle it becomes , the first of the Pythagorean identities.
Worked Examples of the Pythagoras Theorem
Six examples, from a ladder to a TV screen.
Example 1
A ladder's foot is 5 m from a wall and its top reaches 12 m up. How long is the ladder?
- Wall and ground meet at a right angle, so the ladder is the hypotenuse.
- .
- .

Final answer: the ladder is 13 m long.
Example 2
A right triangle has hypotenuse 25 and one leg 7. Find the other leg.
- The habit is to add: , so .
- But that leg is longer than the hypotenuse, which is impossible.
- The hypotenuse stays alone: , so .
- .
Final answer: the other leg is 24.
Example 3
A triangle has sides 9, 40 and 41. Is it right-angled?
- Test the converse with the longest side as : .
- . The two match.
Final answer: yes, it is right-angled at the corner opposite the side of 41.
Example 4
A square has sides of 1 m. How long is its diagonal?
- The diagonal makes a right triangle with legs 1 and 1.
- , so .
Final answer: exactly m, about 1.41 m. It cannot be written as a fraction, so it stays exact.
Example 5
Find the distance between P(1, 2) and Q(7, 10).
- Across: . Up: .
- , so .

Final answer: 10 units.
Example 6
A "55-inch" TV has a 55-inch diagonal and a 16 : 9 screen. Find its width and height.
- Call the width and the height .
- , so .
- .
- Width ; height .

Final answer: about 47.94 inches wide and 26.96 inches tall.
Where the Pythagoras Theorem Does Real Work
- Squaring a corner. Builders measure 3 m and 4 m along two walls and check the diagonal is 5 m.
- Screens and paper. Screen sizes are diagonals, as Example 6 shows.
- Maps. "As the crow flies" is a hypotenuse, shorter than walking the streets.
- Ramps, roofs and stairs. A rafter's sloping length comes from its rise and run.
- Games and graphics. Checking how far apart two objects are runs the distance formula.
The Mathematicians Who Shaped the Pythagoras Theorem
The story starts long before Pythagoras (around 570 to 495 BCE).
- Babylonian scribes. The clay tablet YBC 7289 (about 1800 to 1600 BCE, Yale Babylonian Collection) shows a square of side 30 with its diagonals.
- Along the diagonal is in base 60, which is : within one millionth of . The scribe knew a diagonal is the side times .

- Baudhāyana (India, around 800 BCE) stated the rule in words for laying out fire altars. Chinese mathematics knows it as the gougu rule.
- Pythagoras of Samos led a school credited with proving it. The Pythagoreans also found that is not a ratio of whole numbers, which clashed with their belief that "all things are numbers".
- Euclid (around 300 BCE) gave the proof that survived, in Elements Book I, Proposition 47.
- Bhāskara II (12th century, India) is said to have drawn the rearrangement picture with one word: "Behold!"
Common Mistakes
Mistake 1: Adding the legs instead of their squares
Where it slips in: The first time a problem gives two legs.
Don't do this: Write .
The correct way: . The hypotenuse is always shorter than the two legs together, since a straight line is the shortest path.
Mistake 2: Treating the longest given side as a leg
Where it slips in: Problems that give the hypotenuse and one leg, listed out of order.
Don't do this: Write and get a leg of 25.96.
The correct way: Find the side opposite the right angle first. It alone is . A "leg" longer than the hypotenuse means you swapped them.
Mistake 3: Stopping at
Where it slips in: Long problems where squaring and adding take all the attention.
Don't do this: Find and write "the ladder is 169 m".
The correct way: The last step is always the square root. Then ask if the length makes sense.
Mistake 4: Using the theorem on a triangle that is not right-angled
Where it slips in: A triangle that looks nearly right-angled, with no square mark.
Don't do this: Assume for any three sides.
The correct way: Confirm the right angle first, by the mark, the wording or the converse. The student who knows the formula by heart is the one most tempted to use it everywhere. Otherwise use the Law of Cosines.
Key Takeaways
- In a right triangle, , with the hypotenuse opposite the right angle.
- Add squares for the hypotenuse, subtract for a leg, and always finish with the square root.
- It is an area fact, proved by rearranging triangles, by algebra, by similar triangles and by Garfield's trapezium.
- At any other angle is smaller or larger, which is how the converse tests for right angles.
Try These Next
Now try these, then check your answers.
- A right triangle has legs 9 and 12. Find the hypotenuse. How is it linked to the 3-4-5 triangle?
- The hypotenuse is 17 and one leg is 8. Find the other leg.
- Find the distance between (−2, 1) and (4, 9).
Answer to Question 1: 15; it is the 3-4-5 triangle tripled. Answer to Question 2: 15. Answer to Question 3: 10. If Question 2 gave more than 17, go back to Example 2.
The natural next steps are the distance formula and then trigonometric ratios, which carry the theorem into angles. To work through them with a teacher, explore Bhanzu's geometry tutor or math classes online.
Want a live Bhanzu trainer to walk your child through right triangles? Book a free demo class.
Read More
- Right-Angled Triangle
- Hypotenuse Leg Theorem
- Squares and Square Roots
- Trigonometric Ratios
- Right Triangle Formulas
Research Behind This Article
- Euclid, Elements, Book I, Proposition 47, with commentary by D. E. Joyce, Clark University. mathcs.clarku.edu
- OpenStax, Prealgebra 2e, Section 9.3: Use Properties of Angles, Triangles, and the Pythagorean Theorem. openstax.org
- E. S. Loomis, The Pythagorean Proposition (2nd edition, 1940; reissued by NCTM), via ERIC, US Department of Education. files.eric.ed.gov
- J. J. O'Connor and E. F. Robertson, "Pythagoras's theorem in Babylonian mathematics", MacTutor History of Mathematics, University of St Andrews. mathshistory.st-andrews.ac.uk
- J. J. O'Connor and E. F. Robertson, "Baudhayana", MacTutor History of Mathematics, University of St Andrews. mathshistory.st-andrews.ac.uk
- J. J. O'Connor and E. F. Robertson, "Pythagoras of Samos", MacTutor History of Mathematics, University of St Andrews. mathshistory.st-andrews.ac.uk
Quick Quiz: Check Yourself
Three levels, questions with figures, instant feedback with the reason.
Was this article helpful?
Your feedback helps us write better content
Frequently Asked Questions
What is the formula of the Pythagoras theorem?
Did Pythagoras discover the Pythagoras theorem?
Can the hypotenuse be a decimal or a square root?
Does it work in 3D?
When does the Pythagoras theorem fail?

