The Pythagorean Theorem
The most famous equation in geometry: how the two legs and the hypotenuse of a right triangle are bound together, how to find any missing side, the shortcut of Pythagorean triples, and how the converse classifies a triangle as right, acute, or obtuse.
§1 Why This Theorem Matters
Over 2,500 years ago, Greek mathematicians described a relationship so reliable that it became a cornerstone of geometry, engineering, surveying, and navigation: the Pythagorean Theorem. Whenever you need an unknown distance you cannot measure directly — the diagonal of a screen, the height of a ramp, the straight-line path across a city block — this single equation does the work. It applies to every right triangle, no matter its size or orientation.
In any right triangle there is a precise algebraic link between the two shorter sides (the legs) and the longest side (the hypotenuse). Master that one link and almost every right-triangle problem becomes a substitution exercise: $a^2 + b^2 = c^2$.
§2 Naming the Sides
Before using the theorem, label the triangle correctly.
- The legs are the two shorter sides that meet at the right angle. We call them $a$ and $b$.
- The hypotenuse is the longest side, the one opposite the right angle. We call it $c$.
- The right angle is marked with a small square in the corner.
The hypotenuse is always opposite the right angle and is always the longest side. If your computed $c$ is not the largest of the three lengths, you have labeled the sides wrong — relabel before going further.
§3 The Theorem and Its Rearrangements
The theorem can be solved for any one of the three sides. Memorize the three forms below — every basic problem is one of them.
| You know | You want | Formula |
|---|---|---|
| Both legs $a$, $b$ | Hypotenuse $c$ | $c=\sqrt{a^2+b^2}$ |
| Hypotenuse $c$, leg $b$ | Other leg $a$ | $a=\sqrt{c^2-b^2}$ |
| Hypotenuse $c$, leg $a$ | Other leg $b$ | $b=\sqrt{c^2-a^2}$ |
Find a hypotenuse: legs $a=6$, $b=8$ give $c=\sqrt{6^2+8^2}=\sqrt{36+64}=\sqrt{100}=10$. Find a leg: hypotenuse $c=15$, leg $a=9$ give $b=\sqrt{15^2-9^2}=\sqrt{225-81}=\sqrt{144}=12$.
You must square first, then add. $\sqrt{a^2+b^2}\neq a+b$. For instance $\sqrt{9+16}=\sqrt{25}=5$, not $3+4=7$. And don't stop at $c^2$: if $c^2=25$ then $c=5$, not $25$.
§4 Pythagorean Triples
A Pythagorean triple is a set of three positive integers $(a,b,c)$ that satisfy $a^2+b^2=c^2$ exactly — no decimals, no leftover radicals. Recognizing them lets you skip the arithmetic entirely.
| Triple | Check |
|---|---|
| $(3,4,5)$ | $9+16=25$ ✓ |
| $(5,12,13)$ | $25+144=169$ ✓ |
| $(8,15,17)$ | $64+225=289$ ✓ |
| $(7,24,25)$ | $49+576=625$ ✓ |
Any whole-number multiple of a triple is also a triple. So $2\times(3,4,5)=(6,8,10)$ and $5\times(3,4,5)=(15,20,25)$ both work. If you spot legs $9$ and $12$, recognize $3\times(3,4,5)$ and read off the hypotenuse $15$ with no calculation.
§5 The Converse — Classifying Triangles
The converse runs the theorem backwards: start with three side lengths and decide what kind of triangle they form. Let $c$ be the longest side, with $a\le b\le c$.
| Comparison | Triangle type |
|---|---|
| $a^2+b^2=c^2$ | Right |
| $a^2+b^2>c^2$ | Acute |
| $a^2+b^2 | Obtuse |
Think of it physically: if the two legs together "overpower" the square on the longest side, the angle opposite $c$ closes below $90^\circ$ (acute). If they fall short, that angle opens past $90^\circ$ (obtuse). Equality lands it exactly on the right angle.
Worked classifications. Sides $6,8,10$: $6^2+8^2=100=10^2$ → right (a scaled $3$–$4$–$5$). Sides $5,7,9$: $5^2+7^2=74<81=9^2$ → obtuse. Sides $4,6,7$: $4^2+6^2=52>49=7^2$ → acute.
§6 Two Big Applications
The Pythagorean Theorem hides inside two formulas you will use constantly.
The horizontal run $(x_2-x_1)$ and vertical rise $(y_2-y_1)$ between two points are the legs of a right triangle; the distance $d$ is the hypotenuse: $d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$. For $A(1,2)$ and $B(7,10)$: $d=\sqrt{6^2+8^2}=\sqrt{100}=10$.
The longest rod that fits in a box of dimensions $a\times b\times c$ runs corner-to-opposite-corner: $d=\sqrt{a^2+b^2+c^2}$ — the theorem applied twice. A $3\times4\times12$ box gives $d=\sqrt{9+16+144}=\sqrt{169}=13$.
§7 Don't Confuse These
| Idea | Correct meaning | Common trap |
|---|---|---|
| Leg vs hypotenuse | Legs meet at the right angle; the hypotenuse is opposite it and longest. | Plugging a leg in for $c$. Always check $c$ is the largest value. |
| $a^2+b^2$ vs $(a+b)^2$ | Square each side first, then add. | Writing $\sqrt{a^2+b^2}=a+b$. It is not. |
| $c^2$ vs $c$ | Take the square root at the end. | Reporting $25$ when $c^2=25$ and $c=5$. |
| Theorem vs converse | Theorem assumes a right triangle; the converse tests for one. | Using equality to classify but forgetting $>$ (acute) and $<$ (obtuse). |
| Which side is $c$ | In the converse, $c$ is the longest side. | Comparing $a^2+b^2$ against the square of some other side. |
| Triple shapes | $(5,12,13)$ and $(8,15,17)$ are triples too. | Assuming every clean triangle is a $(3,4,5)$. |
§8 Worked Examples
Identify what is known, choose the right form of the equation, and keep $c$ as the longest side.
Find the hypotenuse
Legs $9$ and $12$.
Answer: $c=\sqrt{9^2+12^2}=\sqrt{81+144}=\sqrt{225}=15$. (It's $3\times(3,4,5)$.)
Find a leg
Hypotenuse $26$, one leg $10$.
Answer: $b=\sqrt{26^2-10^2}=\sqrt{676-100}=\sqrt{576}=24$. ($(10,24,26)=2\times(5,12,13)$.)
Use a triple
A right triangle has legs $7$ and $24$.
Answer: Recognize $(7,24,25)$ — the hypotenuse is $25$, no arithmetic needed.
Classify a triangle
Sides $7,10,13$: acute, right, or obtuse?
Answer: $7^2+10^2=149$ and $13^2=169$. Since $149<169$, it is obtuse.
Distance on a grid
Distance between $(2,3)$ and $(10,9)$.
Answer: $d=\sqrt{8^2+6^2}=\sqrt{64+36}=\sqrt{100}=10$.
Space diagonal
A box is $2\times3\times6$. Longest interior rod?
Answer: $d=\sqrt{4+9+36}=\sqrt{49}=7$.
§9 Self-Check
Work each one out before opening the answers. Watch your labeling and remember to take the final square root.
- A right triangle has legs $20$ and $21$. Find the hypotenuse.
- A right triangle has hypotenuse $17$ and one leg $8$. Find the other leg.
- Are the side lengths $9,40,41$ a Pythagorean triple? Show the check.
- Classify the triangle with sides $6,7,8$ as acute, right, or obtuse.
- Find the distance between $A(-1,2)$ and $B(3,5)$.
- Find the space diagonal of a $4\times4\times7$ box. Leave it in simplest radical form if it is not a whole number.
Show Answers
- $c=\sqrt{20^2+21^2}=\sqrt{400+441}=\sqrt{841}=29$.
- $b=\sqrt{17^2-8^2}=\sqrt{289-64}=\sqrt{225}=15$. ($(8,15,17)$ triple.)
- Yes: $9^2+40^2=81+1600=1681=41^2$. ✓
- $6^2+7^2=85$ and $8^2=64$. Since $85>64$, the triangle is acute.
- $d=\sqrt{(3-(-1))^2+(5-2)^2}=\sqrt{4^2+3^2}=\sqrt{25}=5$.
- $d=\sqrt{4^2+4^2+7^2}=\sqrt{16+16+49}=\sqrt{81}=9$.