There are 52 Pythagorean triples with hypotenuse 100 or less, and 16 of them are primitive, meaning their three numbers share no common factor. Allowing hypotenuses up to 300 gives 47 primitive triples. The tables below list them all, sorted by hypotenuse, with Euclid's parameters m and n, the perimeter and the area of each right triangle.
New to triples? Start with what a Pythagorean triple is, then come back here to look things up. Every row was produced by a program and then checked against a2 + b2 = c2; nothing was typed by hand.
How to read the tables
- a, b, c are the side lengths: a is the shorter leg, b the longer leg and c the hypotenuse. Each triangle appears once, so 3-4-5 is listed but 4-3-5 is not.
- Primitive? says whether a, b and c have no common factor. See primitive Pythagorean triples for the test.
- m, n are the two numbers that produce a primitive triple in Euclid's formula: the odd leg is m2 − n2, the even leg is 2mn, and c = m2 + n2. The even leg can be either a or b: in 8-15-17 (m = 4, n = 1) the even leg 8 is the shorter one, while in 5-12-13 (m = 3, n = 2) the even leg 12 is the longer one.
- k × primitive appears instead for non-primitive rows, naming the primitive triple it is a multiple of. For example, 9-12-15 is 3 × (3, 4, 5).
- Perimeter is a + b + c. Area is 1 over 2ab, because the two legs are the base and height of a right triangle.
Why not give m and n for every row?Euclid's formula on its own skips many non-primitive triples. No whole numbers m and n give 9-12-15, for example: you would need 2mn = 12, and neither (m, n) = (6, 1) nor (3, 2) works. Of the 36 non-primitive triples with c ≤ 100, 21 are missed this way, but writing a triple as k times a primitive one always works.
All Pythagorean triples with hypotenuse up to 100
The full list of 52 triples, sorted by hypotenuse and then by the shorter leg. The 16 primitive triples are marked yes; every other row is a whole-number multiple of one of them.
| # | a | b | c | Primitive? | m, n or k × primitive | Perimeter | Area |
|---|---|---|---|---|---|---|---|
| 1 | 3 | 4 | 5 | yes | m = 2, n = 1 | 12 | 6 |
| 2 | 6 | 8 | 10 | no | 2 × (3, 4, 5) | 24 | 24 |
| 3 | 5 | 12 | 13 | yes | m = 3, n = 2 | 30 | 30 |
| 4 | 9 | 12 | 15 | no | 3 × (3, 4, 5) | 36 | 54 |
| 5 | 8 | 15 | 17 | yes | m = 4, n = 1 | 40 | 60 |
| 6 | 12 | 16 | 20 | no | 4 × (3, 4, 5) | 48 | 96 |
| 7 | 7 | 24 | 25 | yes | m = 4, n = 3 | 56 | 84 |
| 8 | 15 | 20 | 25 | no | 5 × (3, 4, 5) | 60 | 150 |
| 9 | 10 | 24 | 26 | no | 2 × (5, 12, 13) | 60 | 120 |
| 10 | 20 | 21 | 29 | yes | m = 5, n = 2 | 70 | 210 |
| 11 | 18 | 24 | 30 | no | 6 × (3, 4, 5) | 72 | 216 |
| 12 | 16 | 30 | 34 | no | 2 × (8, 15, 17) | 80 | 240 |
| 13 | 21 | 28 | 35 | no | 7 × (3, 4, 5) | 84 | 294 |
| 14 | 12 | 35 | 37 | yes | m = 6, n = 1 | 84 | 210 |
| 15 | 15 | 36 | 39 | no | 3 × (5, 12, 13) | 90 | 270 |
| 16 | 24 | 32 | 40 | no | 8 × (3, 4, 5) | 96 | 384 |
| 17 | 9 | 40 | 41 | yes | m = 5, n = 4 | 90 | 180 |
| 18 | 27 | 36 | 45 | no | 9 × (3, 4, 5) | 108 | 486 |
| 19 | 14 | 48 | 50 | no | 2 × (7, 24, 25) | 112 | 336 |
| 20 | 30 | 40 | 50 | no | 10 × (3, 4, 5) | 120 | 600 |
| 21 | 24 | 45 | 51 | no | 3 × (8, 15, 17) | 120 | 540 |
| 22 | 20 | 48 | 52 | no | 4 × (5, 12, 13) | 120 | 480 |
| 23 | 28 | 45 | 53 | yes | m = 7, n = 2 | 126 | 630 |
| 24 | 33 | 44 | 55 | no | 11 × (3, 4, 5) | 132 | 726 |
| 25 | 40 | 42 | 58 | no | 2 × (20, 21, 29) | 140 | 840 |
| 26 | 36 | 48 | 60 | no | 12 × (3, 4, 5) | 144 | 864 |
| 27 | 11 | 60 | 61 | yes | m = 6, n = 5 | 132 | 330 |
| 28 | 16 | 63 | 65 | yes | m = 8, n = 1 | 144 | 504 |
| 29 | 25 | 60 | 65 | no | 5 × (5, 12, 13) | 150 | 750 |
| 30 | 33 | 56 | 65 | yes | m = 7, n = 4 | 154 | 924 |
| 31 | 39 | 52 | 65 | no | 13 × (3, 4, 5) | 156 | 1,014 |
| 32 | 32 | 60 | 68 | no | 4 × (8, 15, 17) | 160 | 960 |
| 33 | 42 | 56 | 70 | no | 14 × (3, 4, 5) | 168 | 1,176 |
| 34 | 48 | 55 | 73 | yes | m = 8, n = 3 | 176 | 1,320 |
| 35 | 24 | 70 | 74 | no | 2 × (12, 35, 37) | 168 | 840 |
| 36 | 21 | 72 | 75 | no | 3 × (7, 24, 25) | 168 | 756 |
| 37 | 45 | 60 | 75 | no | 15 × (3, 4, 5) | 180 | 1,350 |
| 38 | 30 | 72 | 78 | no | 6 × (5, 12, 13) | 180 | 1,080 |
| 39 | 48 | 64 | 80 | no | 16 × (3, 4, 5) | 192 | 1,536 |
| 40 | 18 | 80 | 82 | no | 2 × (9, 40, 41) | 180 | 720 |
| 41 | 13 | 84 | 85 | yes | m = 7, n = 6 | 182 | 546 |
| 42 | 36 | 77 | 85 | yes | m = 9, n = 2 | 198 | 1,386 |
| 43 | 40 | 75 | 85 | no | 5 × (8, 15, 17) | 200 | 1,500 |
| 44 | 51 | 68 | 85 | no | 17 × (3, 4, 5) | 204 | 1,734 |
| 45 | 60 | 63 | 87 | no | 3 × (20, 21, 29) | 210 | 1,890 |
| 46 | 39 | 80 | 89 | yes | m = 8, n = 5 | 208 | 1,560 |
| 47 | 54 | 72 | 90 | no | 18 × (3, 4, 5) | 216 | 1,944 |
| 48 | 35 | 84 | 91 | no | 7 × (5, 12, 13) | 210 | 1,470 |
| 49 | 57 | 76 | 95 | no | 19 × (3, 4, 5) | 228 | 2,166 |
| 50 | 65 | 72 | 97 | yes | m = 9, n = 4 | 234 | 2,340 |
| 51 | 28 | 96 | 100 | no | 4 × (7, 24, 25) | 224 | 1,344 |
| 52 | 60 | 80 | 100 | no | 20 × (3, 4, 5) | 240 | 2,400 |
All primitive Pythagorean triples with hypotenuse up to 300
These 47 triples are the building blocks: multiply any row by k = 2, 3, 4, … to get the non-primitive triples above it. For each one, m and n have no common factor and one of them is even, as the theory predicts.
| # | a | b | c | m | n | Perimeter | Area |
|---|---|---|---|---|---|---|---|
| 1 | 3 | 4 | 5 | 2 | 1 | 12 | 6 |
| 2 | 5 | 12 | 13 | 3 | 2 | 30 | 30 |
| 3 | 8 | 15 | 17 | 4 | 1 | 40 | 60 |
| 4 | 7 | 24 | 25 | 4 | 3 | 56 | 84 |
| 5 | 20 | 21 | 29 | 5 | 2 | 70 | 210 |
| 6 | 12 | 35 | 37 | 6 | 1 | 84 | 210 |
| 7 | 9 | 40 | 41 | 5 | 4 | 90 | 180 |
| 8 | 28 | 45 | 53 | 7 | 2 | 126 | 630 |
| 9 | 11 | 60 | 61 | 6 | 5 | 132 | 330 |
| 10 | 16 | 63 | 65 | 8 | 1 | 144 | 504 |
| 11 | 33 | 56 | 65 | 7 | 4 | 154 | 924 |
| 12 | 48 | 55 | 73 | 8 | 3 | 176 | 1,320 |
| 13 | 13 | 84 | 85 | 7 | 6 | 182 | 546 |
| 14 | 36 | 77 | 85 | 9 | 2 | 198 | 1,386 |
| 15 | 39 | 80 | 89 | 8 | 5 | 208 | 1,560 |
| 16 | 65 | 72 | 97 | 9 | 4 | 234 | 2,340 |
| 17 | 20 | 99 | 101 | 10 | 1 | 220 | 990 |
| 18 | 60 | 91 | 109 | 10 | 3 | 260 | 2,730 |
| 19 | 15 | 112 | 113 | 8 | 7 | 240 | 840 |
| 20 | 44 | 117 | 125 | 11 | 2 | 286 | 2,574 |
| 21 | 88 | 105 | 137 | 11 | 4 | 330 | 4,620 |
| 22 | 17 | 144 | 145 | 9 | 8 | 306 | 1,224 |
| 23 | 24 | 143 | 145 | 12 | 1 | 312 | 1,716 |
| 24 | 51 | 140 | 149 | 10 | 7 | 340 | 3,570 |
| 25 | 85 | 132 | 157 | 11 | 6 | 374 | 5,610 |
| 26 | 119 | 120 | 169 | 12 | 5 | 408 | 7,140 |
| 27 | 52 | 165 | 173 | 13 | 2 | 390 | 4,290 |
| 28 | 19 | 180 | 181 | 10 | 9 | 380 | 1,710 |
| 29 | 57 | 176 | 185 | 11 | 8 | 418 | 5,016 |
| 30 | 104 | 153 | 185 | 13 | 4 | 442 | 7,956 |
| 31 | 95 | 168 | 193 | 12 | 7 | 456 | 7,980 |
| 32 | 28 | 195 | 197 | 14 | 1 | 420 | 2,730 |
| 33 | 84 | 187 | 205 | 14 | 3 | 476 | 7,854 |
| 34 | 133 | 156 | 205 | 13 | 6 | 494 | 10,374 |
| 35 | 21 | 220 | 221 | 11 | 10 | 462 | 2,310 |
| 36 | 140 | 171 | 221 | 14 | 5 | 532 | 11,970 |
| 37 | 60 | 221 | 229 | 15 | 2 | 510 | 6,630 |
| 38 | 105 | 208 | 233 | 13 | 8 | 546 | 10,920 |
| 39 | 120 | 209 | 241 | 15 | 4 | 570 | 12,540 |
| 40 | 32 | 255 | 257 | 16 | 1 | 544 | 4,080 |
| 41 | 23 | 264 | 265 | 12 | 11 | 552 | 3,036 |
| 42 | 96 | 247 | 265 | 16 | 3 | 608 | 11,856 |
| 43 | 69 | 260 | 269 | 13 | 10 | 598 | 8,970 |
| 44 | 115 | 252 | 277 | 14 | 9 | 644 | 14,490 |
| 45 | 160 | 231 | 281 | 16 | 5 | 672 | 18,480 |
| 46 | 161 | 240 | 289 | 15 | 8 | 690 | 19,320 |
| 47 | 68 | 285 | 293 | 17 | 2 | 646 | 9,690 |
Need a bigger list, or every triple containing a particular number? The Pythagorean triples generator builds custom lists in your browser.
Patterns to look for in the tables
Which numbers can be a hypotenuse
Only 42 different numbers appear in the c column of the first table. The hypotenuses of primitive triples up to 100 are 5, 13, 17, 25, 29, 37, 41, 53, 61, 65, 73, 85, 89 and 97, and every one of them leaves remainder 1 when you divide it by 4. Primes such as 7, 11, 19 and 23, which leave remainder 3, never appear as a hypotenuse at all. The rule is that a number is the hypotenuse of some triple exactly when it has at least one prime factor of the form 4k + 1, such as 5, 13, 17 or 29.
Hypotenuses that repeat
The busiest hypotenuses up to 100 are 65 and 85, with four triples each. For 65 they are 16-63-65, 25-60-65, 33-56-65 and 39-52-65: two primitive triples plus two multiples (5 × 5-12-13 and 13 × 3-4-5). Both 65 = 5 × 13 and 85 = 5 × 17 are products of two different primes of the form 4k + 1, and each extra prime of that kind doubles the number of primitive triples with that hypotenuse.
Families hiding in the rows
- Hypotenuse one more than the longer leg: 3-4-5, 5-12-13, 7-24-25, 9-40-41, 11-60-61, 13-84-85. The shorter leg runs through the odd numbers.
- Hypotenuse two more than the odd leg: 8-15-17, 12-35-37, 16-63-65. Here the even leg goes up in steps of 4.
- Legs that differ by one: 3-4-5, 20-21-29 and 119-120-169. The next is 696-697-985, so these are rare.
Rules every row obeys
- The perimeter is always even. For a primitive triple it equals 2m(m + n): for 20-21-29, 2 × 5 × 7 = 70.
- The area is always a multiple of 6, and the product abc is always a multiple of 60.
- In every primitive row exactly one leg is even, that leg is a multiple of 4, and c is odd.
- Every whole number from 3 upward is a leg of at least one triple; the numbers 1 and 2 never are.
The parabola pattern
Plot each primitive triple as a point, with the odd leg across and the even leg up, and something unexpected appears. The dots are not scattered at random; they line up along smooth curved rows.
Each row is a parabola, and Euclid's formula explains why. Write the point as x = m2 − n2, y = 2mn. If you keep m fixed and let n change, then n = y over 2m, and substituting gives one parabola; if you keep n fixed and let m change, you get another:
m fixed: x = m2 − y2 over 4m2n fixed: x = y2 over 4n2 − n2The rows with fixed m bend back toward the even-leg axis and cross it at y = 2m2; the rows with fixed n sweep out to the right. Where several families cross, the dots look like a woven pattern. The empty region outside the dashed quarter circle is no accident either: every point satisfies x2 + y2 = c2, so a triple with c ≤ 5,000 must sit inside the circle of radius 5,000.
How these tables were made
The first table comes from a brute-force search: for every c from 1 to 100 and every a < c, check whether c2 − a2 is a perfect square. The core of the program is just this:
for (let c = 1; c <= 100; c++)
for (let a = 1; a < c; a++) {
const b = Math.sqrt(c * c - a * a);
if (Number.isInteger(b) && a < b) console.log(a, b, c);
}
A second, independent method, Euclid's formula with every multiplier k, produced exactly the same 52 triples. Each row's primitivity, m, n, perimeter and area were then computed from the triple and re-checked. Because the search tries every possibility, nothing can be missing from the list.
Want to practise using the tables? The cheat sheet lists the triples most worth memorizing, and the tree of primitive triples shows a completely different way to generate the second table.
Frequently asked questions
How many Pythagorean triples are there up to 100?
There are 52 triples whose hypotenuse is at most 100, counting each triangle once (3-4-5 and 4-3-5 are the same). Of these, 16 are primitive. If you only require the legs to be at most 100, the count is different, so check which rule a list uses.
What comes after 3-4-5 in the list of triples?
Sorted by hypotenuse, the next triple is 6-8-10 (hypotenuse 10), then 5-12-13, 9-12-15, 8-15-17 and 12-16-20. Among primitive triples only, 5-12-13 comes next, then 8-15-17 and 7-24-25.
Which numbers can never be the hypotenuse?
A number can be a hypotenuse only if it has a prime factor that leaves remainder 1 when divided by 4, such as 5, 13 or 17. So 7, 11, 19, 21 and 49 never are, while 15 = 3 × 5 is (in 9-12-15).
Is every number a leg of some Pythagorean triple?
Every whole number from 3 upward is. An odd number n is a leg of (n, n2 − 1 over 2, n2 + 1 over 2), and an even number 2k of (2k, k2 − 1, k2 + 1). Only 1 and 2 are left out.
How many primitive triples are there in total?
Infinitely many. The number with hypotenuse up to N grows like N ÷ 2π: for N = 300 that predicts about 47.7, and the true count is 47. The primitive triples page has the counts up to a million.
Keep exploring
- TriplesPythagorean TriplesWhat Pythagorean triples are, the common ones to know (3-4-5, 5-12-13, 8-15-17…), how to generate and recognize them, and the patterns every triple shares.
- TriplesPrimitive Pythagorean TriplesWhat makes a Pythagorean triple primitive, the quick gcd test, why exactly one leg is even, and a full proof that Euclid's formula gives every primitive triple.
- TriplesEuclid's Formula for Pythagorean TriplesEuclid's formula a = m² − n², b = 2mn, c = m² + n² explained: two derivations, a table for m ≤ 8, when the triple is primitive, and four other classic generators.
- CalculatorsPythagorean Triples GeneratorGenerate every Pythagorean triple up to any hypotenuse, use Euclid's formula, check whether three numbers form a triple, or find all triples with a number.
- TriplesThe Tree of Primitive Pythagorean TriplesThe Berggren tree builds every primitive Pythagorean triple exactly once from 3-4-5 using three matrices. See the tree to depth 3, worked examples and the proof.
- PracticePythagorean Theorem Cheat SheetPrintable Pythagorean theorem cheat sheet: the formula and its rearrangements, the converse, special right triangles, triples, distance formulas and squares.