Pythagorean Triples
A Pythagorean triple is three whole numbers that fit a² + b² = c², the sides of a right triangle with no square roots in sight. Here is the list up to 100, and a formula that makes as many as you like.
Last updated
A Pythagorean triple is three whole numbers a, b and c that fit Pythagoras:
a^2 + b^2 = c^2
That makes them the sides of a right triangle where every side is a whole number. The smallest is 3, 4 and 5:
3^2 + 4^2 = 9 + 16 = 25 = 5^2
Set the base and the height below, each from 1 to 8. The hypotenuse is shown exactly: a whole number when the two legs belong to a triple, a square root when they do not. On these sliders only two pairs give a whole hypotenuse: 3 and 4, and 6 and 8. Every other pair gives a square root, which shows how rare triples are.
Switch the marked angle. The triangle does not move, but opposite and adjacent trade places - which is why those two words always need an angle attached.
The angle switch and the sin, cos and tan readouts are the trigonometry of the same triangle, explained on SOHCAHTOA.
The Pythagorean triples up to 100
These are the primitive triples with a hypotenuse up to 100: the three numbers share no common factor.
| a | b | c |
|---|---|---|
| 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 |
In every one of them c is odd, and exactly one of a and b is even.
Multiples are triples too
Multiply all three numbers of a triple by the same whole number and you get another triple. 3, 4, 5 doubled is 6, 8, 10:
6^2 + 8^2 = 36 + 64 = 100 = 10^2
It works because every square gets multiplied by the same amount, 4 in this case, so the two sides of the equation stay equal.
| from | times 2 | times 3 | times 4 | times 5 |
|---|---|---|---|---|
| 3, 4, 5 | 6, 8, 10 | 9, 12, 15 | 12, 16, 20 | 15, 20, 25 |
| 5, 12, 13 | 10, 24, 26 | 15, 36, 39 | 20, 48, 52 | 25, 60, 65 |
Set the widget to 6 and 8 and you see the 6, 8, 10 triangle: the same shape as 3, 4, 5, twice the size.
How to make as many as you like
Euclid's formula turns any two whole numbers m and n, with m bigger than n, into a triple:
a = m^2 - n^2, b = 2*m*n, c = m^2 + n^2
| m | n | a | b | c |
|---|---|---|---|---|
| 2 | 1 | 3 | 4 | 5 |
| 3 | 2 | 5 | 12 | 13 |
| 4 | 1 | 15 | 8 | 17 |
| 4 | 3 | 7 | 24 | 25 |
| 5 | 2 | 21 | 20 | 29 |
| 3 | 1 | 8 | 6 | 10 |
The result is always a triple. It is primitive when m and n share no factor and one of them is even. The last row breaks that rule, since 3 and 1 are both odd, and it gives 6, 8, 10 again.
There is also a shortcut for an odd first number a: square it, subtract 1 and halve to get b, then add 1 to get c. From 5, (5^2 - 1)/2 = 12, so the triple is 5, 12, 13. From 7 it gives 7, 24, 25, and from 9 it gives 9, 40, 41.
How to spot a triple
Square the two smaller numbers, add them, and compare with the square of the largest.
- 8, 15, 17: 64 + 225 = 289, and 17² = 289. A triple.
- 6, 9, 11: 36 + 81 = 117, but 11² = 121. Not a triple.
A match also tells you the triangle has a right angle. That is why builders mark out 3, 4 and 5 lengths to check that a corner is square.
Try one
The legs of a right triangle are 9 and 12. How long is the hypotenuse?
The hypotenuse is 15, because 81 + 144 = 225. Spotting that 9, 12 is 3, 4 times 3 gives the answer with no squaring at all. The Pythagorean theorem calculator works out any missing side, triple or not.
Common mistakes
- Adding the sides instead of their squares. 3 + 4 is 7, not 5. The rule is about squares: 9 + 16 = 25.
- Putting the largest number in the wrong place. c is always the hypotenuse, the largest of the three.
- Missing a multiple. 15, 20, 25 does not look like 3, 4, 5, but it is 3, 4, 5 times 5. Divide by a common factor first.
- Expecting every right triangle to be a triple. Legs of 1 and 1 give a hypotenuse of √2. Most right triangles have at least one side that is not a whole number.
Common questions
What is a Pythagorean triple?
Three whole numbers a, b and c with a² + b² = c². They are the side lengths of a right triangle in which every side is a whole number. The smallest is 3, 4, 5, because 9 + 16 = 25.
What are the most common Pythagorean triples?
3, 4, 5 and 5, 12, 13 come up most, then 8, 15, 17 and 7, 24, 25. Their multiples are triples too, so 6, 8, 10 and 9, 12, 15 (from 3, 4, 5) and 10, 24, 26 (from 5, 12, 13) are just as common in questions.
How do you find Pythagorean triples?
Use Euclid's formula. Pick two whole numbers m and n with m bigger than n, then a = m² - n², b = 2mn and c = m² + n². With m = 3 and n = 2 that gives 5, 12, 13. Multiplying any triple by a whole number also gives a triple.
How do I check whether three numbers are a Pythagorean triple?
Square the two smaller numbers and add them, then square the largest. If the two results are equal, it is a triple. For 8, 15 and 17: 64 + 225 = 289, and 17² = 289, so it is. For 6, 9 and 11: 36 + 81 = 117, but 11² = 121, so it is not.
What is a primitive Pythagorean triple?
A triple whose three numbers share no common factor, such as 3, 4, 5 or 5, 12, 13. 6, 8, 10 is a triple but not a primitive one, because all three numbers are even: it is 3, 4, 5 doubled. Every triple is a primitive one multiplied by some whole number.
Want to run this on your own numbers?
Pythagorean Theorem Calculator Open the calculatorThis and every related formula, on one printable sheet:
Geometry Formulas