A Pythagorean triple is three positive integers (a, b, c) that satisfy a² + b² = c² — the side lengths of a right triangle that happen to be whole numbers. Most right triangles don't have integer sides, but a few special ones do, and these "clean" triangles show up everywhere in geometry tests, construction, and number theory.
The famous triples
- (3, 4, 5) — the most basic. Used to lay out 90° angles in carpentry and construction.
- (5, 12, 13)
- (8, 15, 17)
- (7, 24, 25)
- (20, 21, 29)
- (9, 40, 41)
- (11, 60, 61)
- (12, 35, 37)
- (13, 84, 85)
Memorize the first three. They and their multiples often appear in disguise in geometry problems on standardized tests.
Primitive vs scaled triples
A primitive triple has no common factor greater than 1 among the three numbers. (3, 4, 5) is primitive. (6, 8, 10) is just (3, 4, 5) doubled — not primitive but still a valid triple. Every multiple of a primitive triple is also a Pythagorean triple:
- (3, 4, 5), (6, 8, 10), (9, 12, 15), (12, 16, 20), (300, 400, 500), …
- (5, 12, 13), (10, 24, 26), (15, 36, 39), …
This is why a problem might give you a right triangle with legs 9 and 12 and an unknown hypotenuse — recognize it as a 3-4-5 multiple and the answer (15) drops out instantly. Check which side is the hypotenuse first: if 12 were the hypotenuse, the missing leg would be √63 ≈ 7.94.
Euclid's formula: generating all primitive triples
For any two coprime positive integers m > n with one of them even, Euclid's formula generates a primitive Pythagorean triple:
- a = m² − n²
- b = 2mn
- c = m² + n²
Examples:
- m = 2, n = 1: a = 3, b = 4, c = 5 ✓
- m = 3, n = 2: a = 5, b = 12, c = 13 ✓
- m = 4, n = 1: a = 15, b = 8, c = 17 ✓
- m = 4, n = 3: a = 7, b = 24, c = 25 ✓
- m = 5, n = 2: a = 21, b = 20, c = 29 ✓
This formula generates every primitive Pythagorean triple exactly once (counting (a, b, c) and (b, a, c) as the same triple). The construction itself appears in Euclid's Elements (Book X, Lemma 1 to Proposition 29), written around 300 BC.
Patterns within triples
Several arithmetic patterns make triples easier to spot:
- Sum of squares pattern: for any odd a > 1, one triple is (a, (a² − 1)/2, (a² + 1)/2). Try a = 5: (5, 12, 13). a = 7: (7, 24, 25). a = 9: (9, 40, 41).
- Even-leg pattern: for any even a > 2, one triple is (a, (a/2)² − 1, (a/2)² + 1). Try a = 6: (6, 8, 10). a = 8: (8, 15, 17).
These let you generate triples mentally without Euclid's formula. Each gives one triple for a given leg, not every triple: 15, for example, gives (15, 112, 113) from the odd pattern, but it is also a leg of (8, 15, 17), (15, 20, 25) and (15, 36, 39).
Why triples matter on tests
Standardized tests reuse triples to make geometry problems compute cleanly. If a question gives a right triangle with legs 12 and 16, recognizing 3-4-5 × 4 means the hypotenuse is 20 immediately — no Pythagorean theorem calculation needed. Saving 30 seconds per problem on a test with 50 problems means an extra 25 minutes of clear thinking time.
Memorize at minimum (3,4,5), (5,12,13), (8,15,17), and (7,24,25). All four show up enough that recognizing them earns a noticeable speed advantage.
Pythagorean triples in real life
- Carpentry / framing: the "3-4-5 method" for squaring corners. Mark 3 ft along one wall, 4 ft along the perpendicular, and check that the diagonal between marks is exactly 5 ft.
- Surveying: a rope knotted at 3:4:5 spacing lays out a right angle in the field. A popular story says Egyptian rope-stretchers used one to build the pyramids, but the story is not backed by any surviving Egyptian record.
- Tile and flooring: 3-4-5 triangle templates for cutting precise diagonals.
Number-theoretic depth
Pythagorean triples connect to deep number theory. Fermat's Last Theorem — proved by Andrew Wiles, whose corrected proof was published in 1995 — states that no positive integers satisfy an + bn = cn for any n > 2. The case n = 2 (Pythagorean triples) is special because infinitely many solutions exist.
The proof of Fermat's Last Theorem took 358 years and links that equation to elliptic curves and modular forms — entire branches of modern math.
Verify with the calculator
Our Pythagorean theorem calculator checks whether three side lengths make a right triangle. It compares whole-number sides exactly and allows a tiny rounding tolerance only when a side is a decimal. Plug in 20, 21, and leave the third blank — the calculator returns 29, confirming (20, 21, 29) is a triple. It is primitive because 20 and 21 share no common factor. Useful for verifying patterns or checking unfamiliar triples on harder geometry problems.