Key Points
- Test: square the two smaller numbers, add, and compare with the square of the largest.
- A triple is primitive if the three numbers share no common factor; (3, 4, 5) is primitive, (6, 8, 10) is not.
- Euclid's formula, , , with , gives a triple every time.
- There are 16 primitive triples with hypotenuse up to 100, and infinitely many in all.
The Oldest Right-Angle Trick in the World
A tape measure and the numbers 3, 4 and 5 can mark a perfect square corner on any site.
- Measure 3 units along one edge and 4 along the other. If the gap between the ends is exactly 5, the corner is square.
- Those three numbers are the most famous Pythagorean triple: three whole numbers that fit a right triangle exactly.
- Such triangles are rare. Of the 210 pairs of legs from 1 to 20, only 7 give a whole-number hypotenuse. Legs 1 and 1 give ; legs 2 and 3 give .

The rare cases follow a formula Euclid wrote down, hide inside the unit circle, and obey patterns with no exceptions.
What Are Pythagorean Triples?
A Pythagorean triple is a set of three positive integers that satisfy .
- The two smaller numbers are the legs of a right-angled triangle; the largest, , is the hypotenuse.
- The rule is the Pythagoras theorem. A triple is the special case where all three sides are whole.
- The smallest is : .
What makes three numbers a Pythagorean triple?
The test is one equation. Square the two smaller numbers, add them, and compare with the square of the largest.
- For (8, 15, 17): , so it is a triple.
- By the converse of the Pythagoras theorem, any three numbers that pass really do make a right triangle. That is why the tape-measure trick works.
Primitive and Non-Primitive Triples
Triples come in two kinds, and telling them apart matters.
- A primitive triple has no common factor bigger than 1, like .
- A non-primitive triple is a multiple of a primitive one, like , where 2 divides all three.
- Multiplying works because .
- So (3, 4, 5) seeds (6, 8, 10), (9, 12, 15), (12, 16, 20) and so on forever: the same triangle at different sizes.

Try It Yourself
Load 3-4-5, 6-8-10 and 5-12-13: the readout announces a triple whenever comes out whole. Then drag the handles to other legs and see how rarely that happens.
The Pythagorean Triples Formula
The most reliable way to make triples is Euclid's formula. Pick whole numbers :
- , gives (3, 4, 5). , gives (5, 12, 13).
- It appears in Euclid's Elements, Book X, as a way of "finding two square numbers whose sum is also a square".
Why it works. Expand both sides:

- Primitive when: and share no factor and one of them is even. Both odd (, ) gives (8, 6, 10), which is (3, 4, 5) doubled.
- Every triple? Every primitive triple comes from one pair . For the rest, add a multiplier . Without it, (9, 12, 15) is missed, since 15 is not .
A second way to see it: points on the unit circle
Divide by to get , the unit circle.
- So every triple is a point on the circle with fraction coordinates: (3, 4, 5) is .
- A line from with fraction slope meets the circle at .
- Slope lands on . Write , clear denominators, and Euclid's formula drops out.

Shortcuts from a single number
- Odd leg : . For : (9, 40, 41).
- Even leg : . For : (8, 15, 17). For it gives (6, 8, 10), not primitive.
- Together they show every whole number from 3 up is a leg of some triple. 1 and 2 never are.
The List of Common Pythagorean Triples
There are exactly 16 primitive triples with a hypotenuse of 100 or less:
| (3, 4, 5) | (5, 12, 13) | (8, 15, 17) | (7, 24, 25) |
| (20, 21, 29) | (12, 35, 37) | (9, 40, 41) | (28, 45, 53) |
| (11, 60, 61) | (16, 63, 65) | (33, 56, 65) | (48, 55, 73) |
| (13, 84, 85) | (36, 77, 85) | (39, 80, 89) | (65, 72, 97) |
- The first four are worth knowing on sight: they turn up again and again.
- With multiples included there are 52 triples with .
- 65 and 85 are each the hypotenuse of two primitives, and every hypotenuse is odd. The next section explains why.

Patterns Every Primitive Triple Obeys
These hold for every primitive triple, each for a short reason.
- One leg is even, and the hypotenuse is odd. Squares leave remainder 0 or 1 on division by 4. Two odd legs would give remainder 2, which no square has.
- The even leg is a multiple of 4. In Euclid's formula it is , and one of , is even.
- One leg is a multiple of 3. Squares leave 0 or 1 on division by 3, so two legs that are not multiples of 3 would sum to remainder 2.
- One number is a multiple of 5, by the same remainder argument.
- So is always a multiple of 60. For (3, 4, 5) it is exactly 60.
Examples of Pythagorean Triples
Six examples, from a quick check up to finding every triple for a given leg.
Example 1
Is (20, 21, 29) a Pythagorean triple? Is it primitive?
- , and .
- No number above 1 divides 20, 21 and 29.
Final answer: yes, and it is primitive. Its legs differ by just 1.
Example 2
Is (6, 8, 11) a Pythagorean triple?
- The tempting path: 6 and 8 look like the start of (6, 8, 10), so 11 seems "close enough".
- Run the check: , but .
- , so the guess fails. Legs 6 and 8 need .
Final answer: no, (6, 8, 11) is not a triple.
Example 3
Make a non-primitive triple from (3, 4, 5) using a factor of 4.
- .
- Check: .
Final answer: (12, 16, 20), a non-primitive triple.
Example 4
Use Euclid's formula with and .
- , , .
- Check: .
- 4 and 1 share no factor and 4 is even, so it is primitive.

Final answer: (8, 15, 17), primitive.
Example 5
Use Euclid's formula with and . Is the result primitive?
- , , .
- Both and are odd, so every output is even.
Final answer: (16, 30, 34), which is (8, 15, 17) doubled, so not primitive.
Example 6
Find every Pythagorean triple that has 9 as a leg.
- If 9 is a leg, , so .
- The factor pairs are and ( would make ).
- , give , .
- , give , .
Final answer: (9, 40, 41) and (9, 12, 15). This factor trick finds every triple for any leg.
Why Pythagorean Triples Matter
Triples exist in practice because builders needed right angles they could trust without a protractor.
- Setting out right angles. Carpenters square up walls with 3-4-5 or a multiple like 6-8-10. The converse guarantees the corner.
- Surveying. Right-angle layouts on land rely on the same whole-number check.
- Grids. On squared paper or a screen, a straight line between grid points has whole length only when its steps form a triple: 3 across and 4 up is exactly 5.
- Clean problems. Textbook writers pick triples so answers come out whole.
- Number theory. Triples led to Fermat's Last Theorem, below.
A 3,800-Year-Old List: Plimpton 322
A Babylonian clay tablet, Plimpton 322, dated between 1800 and 1650 BCE and held at Columbia University, lists 15 rows of right-triangle sides.
- In every row the sides form a whole-number triple. Row 4 is (12,709, 13,500, 18,541).
- Nobody finds a triple that size by trial and error, so the scribe had a method. Historians still debate which.

- Around 1637 Pierre de Fermat wrote that has no whole-number solutions for any power above 2.
- Andrew Wiles completed the proof in 1994, published in 1995. Squares have infinitely many solutions; cubes and higher powers have none.
The Mistakes Students Make Most Often
Most errors come from rushing the check or mishandling Euclid's formula.
Mistake 1: Adding the numbers instead of squaring them
Where it slips in: The quick check, when a student wants a fast answer.
Don't do this: Test whether .
The correct way: The test is . In a real triangle is always more than , so the sum test can never pass.
Mistake 2: Putting the largest number in the wrong place
Where it slips in: Numbers listed out of order, such as (13, 5, 12).
Don't do this: Compute and compare it with .
The correct way: Sort first. The largest number is and sits alone on the right.
Mistake 3: Handing in a multiple when a primitive triple is asked for
Where it slips in: "Give a primitive triple with an even leg of 8."
Don't do this: Answer (6, 8, 10).
The correct way: Check for a common factor and divide it out, or use the even-leg rule: (8, 15, 17).
Mistake 4: Assuming Euclid's formula without gives everything
Where it slips in: "Find a triple with hypotenuse 15."
Don't do this: Search for , find nothing and say there is none.
The correct way: Allow a multiplier: and , so (9, 12, 15). The student who knows why the formula works catches this.
Conclusion
- A Pythagorean triple is three positive integers with ; the largest is always the hypotenuse.
- Primitive triples share no factor; every other triple is a scaled copy of one.
- Euclid's formula makes them on demand, and the unit circle shows where it comes from.
- Know (3, 4, 5), (5, 12, 13), (8, 15, 17) and (7, 24, 25) on sight.
Read More
- Hypotenuse Leg Theorem
- Isosceles Right Triangle
- Triangle Sum Theorem
- Types of Triangle
- Right Triangle Formulas
- How to Find Side c of a Triangle
Research Behind This Article
- Euclid, Elements, Book X, Proposition 29, Lemma 1 ("to find two square numbers such that their sum is also square"), with commentary by D. E. Joyce, Clark University. mathcs.clarku.edu
- J. J. O'Connor and E. F. Robertson, "Pythagoras's theorem in Babylonian mathematics" (including Plimpton 322), MacTutor History of Mathematics, University of St Andrews. mathshistory.st-andrews.ac.uk
- J. J. O'Connor and E. F. Robertson, "Fermat's last theorem", MacTutor History of Mathematics, University of St Andrews. mathshistory.st-andrews.ac.uk
- A. Wiles, "Modular elliptic curves and Fermat's Last Theorem", Annals of Mathematics 141 (1995), Princeton University. annals.math.princeton.edu
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 are the most common Pythagorean triples?
How many Pythagorean triples are there?
Can Pythagorean triples include a fraction or decimal?
Can all three numbers be odd?
Does every odd number belong to a Pythagorean triple?
