DEV Community

Calcrio
Calcrio

Posted on Originally published at calcrio.com

The 3-4-5 Triangle: Why These Three Numbers Always Make a Perfect Right Angle

Three, four, five. Three numbers that every builder, teacher, and geometry student ends up memorizing — because they always work. 3² + 4² = 9 + 16 = 25, and 25 is 5². That is the Pythagorean theorem in its purest form: in a right triangle, the squares of the two shorter sides add up to the square of the longest side, a² + b² = c². And 3-4-5 is the smallest whole-number example of it — a Pythagorean triple. Once you know the triples, you can spot right angles and solve triangles in your head, no calculator required. A free pythagorean theorem calculator checks the same working instantly, but the triples are worth knowing by heart.

What a Pythagorean Triple Actually Is

A Pythagorean triple is any set of three whole numbers (a, b, c) that satisfies a² + b² = c² exactly — no decimals, no rounding. 3-4-5 is the famous one, but it has a whole family: 5-12-13 (25 + 144 = 169 = 13²), 6-8-10 (36 + 64 = 100 = 10²), 8-15-17 (64 + 225 = 289 = 17²), 7-24-25 (49 + 576 = 625 = 25²), 9-12-15 (81 + 144 = 225 = 15²), and 20-21-29 (400 + 441 = 841 = 29²). Notice the pattern: 6-8-10 is just 3-4-5 doubled, and 9-12-15 is 3-4-5 tripled. Any multiple of a triple is a triple, because scaling every side by the same factor scales the squares by the square of that factor. The ones that cannot be scaled down — 3-4-5, 5-12-13, 8-15-17, 7-24-25, 20-21-29 — are called primitive triples, and there are exactly 16 of them with all sides under 100.

How Builders Use 3-4-5 Every Day

The oldest practical use of 3-4-5 is squaring a corner. A builder marking out a foundation measures 3 feet along one edge, 4 feet along the other, and checks that the diagonal between the marks is exactly 5 feet. If it is 5, the corner is a perfect right angle; if it is not, the corner is off and the walls will be too. The Egyptians used the same trick with a knotted rope thousands of years ago, and carpenters still use it today because it needs no protractor — just a tape measure and three numbers. Scale it up for big jobs: 6-8-10 for a room, 9-12-15 for a deck, 30-40-50 for a whole building footprint. Our guide to pythagorean theorem examples works through more of these, step by step.

The Ladder Check: 5-12-13 in Real Life

Triples also solve the everyday triangle problems. A 13-foot ladder stands with its base 5 feet from a wall — how high does it reach? The ladder is the hypotenuse (13), the base is one leg (5), so the height is √(13² − 5²) = √(169 − 25) = √144 = 12 feet. Recognizing 5-12-13 gives the answer without touching a calculator: 12. The same triple hides in a TV screen: a screen 20 inches wide and 15 inches tall has a diagonal of √(20² + 15²) = √(400 + 225) = √625 = 25 inches — the 15-20-25 triple, which is 3-4-5 scaled by 5. And a ramp that rises 3 feet over a 4-foot run is exactly 5 feet long. Once you start looking, the triples are everywhere.

Generating Triples Yourself: Euclid's Formula

You do not have to memorize the list — there is a formula that generates every primitive triple. Pick two whole numbers m and n, with m bigger than n, and set a = m² − n², b = 2mn, c = m² + n². With m = 2 and n = 1 you get a = 3, b = 4, c = 5. With m = 3 and n = 2 you get 5-12-13. With m = 4 and n = 1 you get 15-8-17, and with m = 4 and n = 3 you get 7-24-25. Check one: for m = 3, n = 2, a² + b² = 25 + 144 = 169 = 13². It works every time, for any m and n — which is why mathematicians say there are infinitely many Pythagorean triples. The formula is also a lovely piece of pattern-spotting to show a class: two inputs, three outputs, and a right triangle every time.

The Mistake That Breaks the Triple

The most common error is using the theorem on a triangle that is not a right triangle. a² + b² = c² is true only when the angle between a and b is exactly 90 degrees — apply it to any other triangle and the numbers will lie to you. The second mistake is mixing up the hypotenuse: the hypotenuse is always the longest side and always the c, the number on its own after the equals sign. Add the legs, never the hypotenuse: to find a missing leg you subtract (c² − a²), to find the hypotenuse you add (a² + b²). And the third mistake is forgetting the final square root — 3² + 4² = 25 is not the answer, √25 = 5 is. Our step-by-step guide on how to find the hypotenuse works through the full method with worked numbers, including the non-triple cases where the answer is not a whole number.

The Bottom Line

Pythagorean triples are the Pythagorean theorem in pocket form: 3-4-5, 5-12-13, 8-15-17, 7-24-25, 20-21-29 — whole numbers that satisfy a² + b² = c² exactly, every time. They square corners, size ladders and TV screens, and generate endlessly from Euclid's formula with just two inputs. Memorize the small ones, generate the rest, and always check that the triangle is a right triangle first. For anything that is not a neat triple, a free pythagorean theorem calculator finds any missing side — hypotenuse, leg a, or leg b — with the working shown step by step.

Top comments (0)