List of Pythagorean Triples

Every Pythagorean triple with hypotenuse up to 100, and every primitive triple with hypotenuse up to 300, generated and double-checked by computer, with Euclid's m and n, the perimeter and the area of each triangle.

By the PythagoreanTheorem.net teamUpdated 11 min read

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.
a = 20= 2mn b = 21 = m² − n² c = 29 = m² + n² m = 5, n = 2 2 × 5 × 2 = 2025 − 4 = 2125 + 4 = 29 Perimeter 70Area ½ × 20 × 21 = 210
Reading one row of the table: 20-21-29 has m = 5 and n = 2. Here the even leg 2mn happens to be the smaller leg, so it is listed as a.

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.

All 52 Pythagorean triples with hypotenuse c ≤ 100, sorted by c, then by a. Generated and checked by computer.
#abcPrimitive?m, n or k × primitivePerimeterArea
1345yesm = 2, n = 1126
26810no2 × (3, 4, 5)2424
351213yesm = 3, n = 23030
491215no3 × (3, 4, 5)3654
581517yesm = 4, n = 14060
6121620no4 × (3, 4, 5)4896
772425yesm = 4, n = 35684
8152025no5 × (3, 4, 5)60150
9102426no2 × (5, 12, 13)60120
10202129yesm = 5, n = 270210
11182430no6 × (3, 4, 5)72216
12163034no2 × (8, 15, 17)80240
13212835no7 × (3, 4, 5)84294
14123537yesm = 6, n = 184210
15153639no3 × (5, 12, 13)90270
16243240no8 × (3, 4, 5)96384
1794041yesm = 5, n = 490180
18273645no9 × (3, 4, 5)108486
19144850no2 × (7, 24, 25)112336
20304050no10 × (3, 4, 5)120600
21244551no3 × (8, 15, 17)120540
22204852no4 × (5, 12, 13)120480
23284553yesm = 7, n = 2126630
24334455no11 × (3, 4, 5)132726
25404258no2 × (20, 21, 29)140840
26364860no12 × (3, 4, 5)144864
27116061yesm = 6, n = 5132330
28166365yesm = 8, n = 1144504
29256065no5 × (5, 12, 13)150750
30335665yesm = 7, n = 4154924
31395265no13 × (3, 4, 5)1561,014
32326068no4 × (8, 15, 17)160960
33425670no14 × (3, 4, 5)1681,176
34485573yesm = 8, n = 31761,320
35247074no2 × (12, 35, 37)168840
36217275no3 × (7, 24, 25)168756
37456075no15 × (3, 4, 5)1801,350
38307278no6 × (5, 12, 13)1801,080
39486480no16 × (3, 4, 5)1921,536
40188082no2 × (9, 40, 41)180720
41138485yesm = 7, n = 6182546
42367785yesm = 9, n = 21981,386
43407585no5 × (8, 15, 17)2001,500
44516885no17 × (3, 4, 5)2041,734
45606387no3 × (20, 21, 29)2101,890
46398089yesm = 8, n = 52081,560
47547290no18 × (3, 4, 5)2161,944
48358491no7 × (5, 12, 13)2101,470
49577695no19 × (3, 4, 5)2282,166
50657297yesm = 9, n = 42342,340
512896100no4 × (7, 24, 25)2241,344
526080100no20 × (3, 4, 5)2402,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.

All 47 primitive Pythagorean triples with hypotenuse c ≤ 300. In each row the odd leg equals m² − n², the even leg equals 2mn and c = m² + n².
#abcmnPerimeterArea
134521126
251213323030
381517414060
472425435684
52021295270210
61235376184210
7940415490180
828455372126630
911606165132330
1016636581144504
1133566574154924
12485573831761,320
1313848576182546
14367785921981,386
15398089852081,560
16657297942342,340
172099101101220990
1860911091032602,730
191511211387240840
20441171251122862,574
21881051371143304,620
2217144145983061,224
23241431451213121,716
24511401491073403,570
25851321571163745,610
261191201691254087,140
27521651731323904,290
28191801811093801,710
29571761851184185,016
301041531851344427,956
31951681931274567,980
32281951971414202,730
33841872051434767,854
3413315620513649410,374
352122022111104622,310
3614017122114553211,970
37602212291525106,630
3810520823313854610,920
3912020924115457012,540
40322552571615444,080
412326426512115523,036
429624726516360811,856
436926026913105988,970
4411525227714964414,490
4516023128116567218,480
4616124028915869019,320
47682852931726469,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.

00 1,0001,000 2,0002,000 3,0003,000 4,0004,000 5,0005,000 odd leg even leg m = 40: (1600 − n², 80n) n = 9: (m² − 81, 18m)
All 792 primitive triples with c ≤ 5,000, plotted as points (odd leg, even leg). The dots form curved rows, and every row is a parabola. Triples with the same m (orange, m = 40) lie on one parabola, and triples with the same n (green, n = 9) lie on another. The dashed arc is c = 5,000.

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 − n2

The 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