Pythagorean Theorem Calculator
Missing side, angles and area of a right triangle, with steps, triples and feet-and-inches input.
A Pythagorean triple is three whole numbers a, b and c with a² + b² = c², the side lengths of a right triangle.
Pythagorean triples with c ≤ 100
52 triples
16 primitive
There are 52 Pythagorean triples with a hypotenuse of 100 or less, listed by hypotenuse. Each one satisfies a² + b² = c².
| # | a | b | c | Primitive or multiple | Perimeter |
|---|---|---|---|---|---|
| 1 | 3 | 4 | 5 | Primitive | 12 |
| 2 | 6 | 8 | 10 | 2 × (3, 4, 5) | 24 |
| 3 | 5 | 12 | 13 | Primitive | 30 |
| 4 | 9 | 12 | 15 | 3 × (3, 4, 5) | 36 |
| 5 | 8 | 15 | 17 | Primitive | 40 |
| 6 | 12 | 16 | 20 | 4 × (3, 4, 5) | 48 |
| 7 | 7 | 24 | 25 | Primitive | 56 |
| 8 | 15 | 20 | 25 | 5 × (3, 4, 5) | 60 |
| 9 | 10 | 24 | 26 | 2 × (5, 12, 13) | 60 |
| 10 | 20 | 21 | 29 | Primitive | 70 |
| 11 | 18 | 24 | 30 | 6 × (3, 4, 5) | 72 |
| 12 | 16 | 30 | 34 | 2 × (8, 15, 17) | 80 |
| 13 | 21 | 28 | 35 | 7 × (3, 4, 5) | 84 |
| 14 | 12 | 35 | 37 | Primitive | 84 |
| 15 | 15 | 36 | 39 | 3 × (5, 12, 13) | 90 |
| 16 | 24 | 32 | 40 | 8 × (3, 4, 5) | 96 |
| 17 | 9 | 40 | 41 | Primitive | 90 |
| 18 | 27 | 36 | 45 | 9 × (3, 4, 5) | 108 |
| 19 | 14 | 48 | 50 | 2 × (7, 24, 25) | 112 |
| 20 | 30 | 40 | 50 | 10 × (3, 4, 5) | 120 |
| 21 | 24 | 45 | 51 | 3 × (8, 15, 17) | 120 |
| 22 | 20 | 48 | 52 | 4 × (5, 12, 13) | 120 |
| 23 | 28 | 45 | 53 | Primitive | 126 |
| 24 | 33 | 44 | 55 | 11 × (3, 4, 5) | 132 |
| 25 | 40 | 42 | 58 | 2 × (20, 21, 29) | 140 |
| 26 | 36 | 48 | 60 | 12 × (3, 4, 5) | 144 |
| 27 | 11 | 60 | 61 | Primitive | 132 |
| 28 | 16 | 63 | 65 | Primitive | 144 |
| 29 | 25 | 60 | 65 | 5 × (5, 12, 13) | 150 |
| 30 | 33 | 56 | 65 | Primitive | 154 |
| 31 | 39 | 52 | 65 | 13 × (3, 4, 5) | 156 |
| 32 | 32 | 60 | 68 | 4 × (8, 15, 17) | 160 |
| 33 | 42 | 56 | 70 | 14 × (3, 4, 5) | 168 |
| 34 | 48 | 55 | 73 | Primitive | 176 |
| 35 | 24 | 70 | 74 | 2 × (12, 35, 37) | 168 |
| 36 | 21 | 72 | 75 | 3 × (7, 24, 25) | 168 |
| 37 | 45 | 60 | 75 | 15 × (3, 4, 5) | 180 |
| 38 | 30 | 72 | 78 | 6 × (5, 12, 13) | 180 |
| 39 | 48 | 64 | 80 | 16 × (3, 4, 5) | 192 |
| 40 | 18 | 80 | 82 | 2 × (9, 40, 41) | 180 |
| 41 | 13 | 84 | 85 | Primitive | 182 |
| 42 | 36 | 77 | 85 | Primitive | 198 |
| 43 | 40 | 75 | 85 | 5 × (8, 15, 17) | 200 |
| 44 | 51 | 68 | 85 | 17 × (3, 4, 5) | 204 |
| 45 | 60 | 63 | 87 | 3 × (20, 21, 29) | 210 |
| 46 | 39 | 80 | 89 | Primitive | 208 |
| 47 | 54 | 72 | 90 | 18 × (3, 4, 5) | 216 |
| 48 | 35 | 84 | 91 | 7 × (5, 12, 13) | 210 |
| 49 | 57 | 76 | 95 | 19 × (3, 4, 5) | 228 |
| 50 | 65 | 72 | 97 | Primitive | 234 |
| 51 | 28 | 96 | 100 | 4 × (7, 24, 25) | 224 |
| 52 | 60 | 80 | 100 | 20 × (3, 4, 5) | 240 |
The smallest is 3, 4, 5, since 9 + 16 = 25. Up to 100 there are 52 triples, 16 of them primitive. List every triple up to 1,000, check any three numbers, generate new triples with Euclid’s formula, or find every triple that contains a given side.
The Pythagorean triple condition
Plain-text formula: a^2 + b^2 = c^2, a, b, c ∈ {1, 2, 3, …}
Three positive whole numbers form a Pythagorean triple when the squares of the two smaller ones add up to the square of the largest. By the converse of the Pythagorean theorem, they are then the sides of a right triangle, with c as the hypotenuse.
Euclid’s formula
Plain-text formula: a = m^2 − n^2, b = 2mn, c = m^2 + n^2
Any two whole numbers m > n ≥ 1 give a triple. It is primitive exactly when m and n have no common factor and one of them is even. Every primitive triple comes from exactly one such pair, so the formula lists them all.
Multiples of a triple
Plain-text formula: (ka)^2 + (kb)^2 = k^2(a^2 + b^2) = (kc)^2
Multiplying all three sides by the same whole number k gives another triple, so (3, 4, 5) gives (6, 8, 10), (9, 12, 15) and so on. Dividing a triple by the greatest common divisor of its sides gives back its primitive base triple.
In List mode, the count above the table is the number of triples with a hypotenuse up to your limit. Each row says whether the triple is primitive, meaning its sides share no common factor, or a multiple of a smaller triple, such as 3 × (3, 4, 5) for (9, 12, 15). Up to 100 there are 52 triples, and 16 of them are primitive.
In Check mode, a “yes” means the numbers are the sides of a right triangle with whole-number sides. A “no” tells you whether the triangle would be acute or obtuse instead, and suggests a nearby triple when one of the sides can be swapped for a whole number that works.
A Pythagorean triple is a set of three positive whole numbers (a, b, c) that satisfy . Because they fit the Pythagorean theorem, they are the side lengths of a right triangle: a and b are the legs, and c is the hypotenuse. They are also called Pythagorean triplets or Pythagorean numbers.
The best known is (3, 4, 5): . Most sets of three numbers fail the test. For (4, 5, 6), , and 41 is not . In fact, the legs of most right triangles do not produce a whole-number hypotenuse: legs 1 and 1 give , and legs 2 and 3 give .
Five triples are worth memorising because they come up again and again in right-triangle problems: (3, 4, 5), (5, 12, 13), (8, 15, 17), (7, 24, 25) and (20, 21, 29). Spot one of them, or a multiple such as (6, 8, 10), and you know the third side without a calculator.
There are 16 primitive Pythagorean triples with a hypotenuse of 100 or less. Every other triple up to 100 is a multiple of one of them, which brings the total to 52. The last column gives the m and n that produce each one through Euclid’s formula. Choose List triples above to see all 52, or raise the limit to 1,000 for 881 triples, 158 of them primitive.
| Triple (a, b, c) | Check a² + b² = c² | Euclid m and n |
|---|---|---|
| 3, 4, 5 | 9 + 16 = 25 | m = 2, n = 1 |
| 5, 12, 13 | 25 + 144 = 169 | m = 3, n = 2 |
| 8, 15, 17 | 64 + 225 = 289 | m = 4, n = 1 |
| 7, 24, 25 | 49 + 576 = 625 | m = 4, n = 3 |
| 20, 21, 29 | 400 + 441 = 841 | m = 5, n = 2 |
| 12, 35, 37 | 144 + 1225 = 1369 | m = 6, n = 1 |
| 9, 40, 41 | 81 + 1600 = 1681 | m = 5, n = 4 |
| 28, 45, 53 | 784 + 2025 = 2809 | m = 7, n = 2 |
| 11, 60, 61 | 121 + 3600 = 3721 | m = 6, n = 5 |
| 16, 63, 65 | 256 + 3969 = 4225 | m = 8, n = 1 |
| 33, 56, 65 | 1089 + 3136 = 4225 | m = 7, n = 4 |
| 48, 55, 73 | 2304 + 3025 = 5329 | m = 8, n = 3 |
| 13, 84, 85 | 169 + 7056 = 7225 | m = 7, n = 6 |
| 36, 77, 85 | 1296 + 5929 = 7225 | m = 9, n = 2 |
| 39, 80, 89 | 1521 + 6400 = 7921 | m = 8, n = 5 |
| 65, 72, 97 | 4225 + 5184 = 9409 | m = 9, n = 4 |
Ordered by hypotenuse, the first 10 Pythagorean triples are (3, 4, 5), (6, 8, 10), (5, 12, 13), (9, 12, 15), (8, 15, 17), (12, 16, 20), (7, 24, 25), (15, 20, 25), (10, 24, 26) and (20, 21, 29). The table continues to 20. Two triples can share a hypotenuse: 25 is the hypotenuse of both (7, 24, 25) and (15, 20, 25).
| # | Triple (a, b, c) | Primitive or multiple |
|---|---|---|
| 1 | 3, 4, 5 | Primitive |
| 2 | 6, 8, 10 | 2 × (3, 4, 5) |
| 3 | 5, 12, 13 | Primitive |
| 4 | 9, 12, 15 | 3 × (3, 4, 5) |
| 5 | 8, 15, 17 | Primitive |
| 6 | 12, 16, 20 | 4 × (3, 4, 5) |
| 7 | 7, 24, 25 | Primitive |
| 8 | 15, 20, 25 | 5 × (3, 4, 5) |
| 9 | 10, 24, 26 | 2 × (5, 12, 13) |
| 10 | 20, 21, 29 | Primitive |
| 11 | 18, 24, 30 | 6 × (3, 4, 5) |
| 12 | 16, 30, 34 | 2 × (8, 15, 17) |
| 13 | 21, 28, 35 | 7 × (3, 4, 5) |
| 14 | 12, 35, 37 | Primitive |
| 15 | 15, 36, 39 | 3 × (5, 12, 13) |
| 16 | 24, 32, 40 | 8 × (3, 4, 5) |
| 17 | 9, 40, 41 | Primitive |
| 18 | 27, 36, 45 | 9 × (3, 4, 5) |
| 19 | 14, 48, 50 | 2 × (7, 24, 25) |
| 20 | 30, 40, 50 | 10 × (3, 4, 5) |
A triple is primitive when a, b and c have no common factor other than 1. (3, 4, 5), (5, 12, 13) and (8, 15, 17) are primitive. Multiply a primitive triple by any whole number and you get another triple: (3, 4, 5) gives (6, 8, 10), (9, 12, 15), (12, 16, 20) and so on without end.
To find the base triple, divide all three sides by their greatest common divisor. For (10, 24, 26), the GCD is 2, so it is 2 × (5, 12, 13). The GCD calculator shows that division step by step.
In every primitive triple, exactly one leg is even and the hypotenuse is odd. One leg is always a multiple of 3, one leg is a multiple of 4, and one of the three sides is a multiple of 5, which is why the area of a triple’s triangle is always a multiple of 6.
Pick two whole numbers m and n with m larger than n. Then , and always form a triple, because . For m = 2 and n = 1 you get (3, 4, 5); for m = 3 and n = 2 you get (5, 12, 13).
The result is primitive when m and n share no common factor and are not both odd. If both are odd, every side is even, so the triple is twice a smaller one: m = 3 and n = 1 give (8, 6, 10) = 2 × (4, 3, 5). Multiply by a scale factor k to reach every non-primitive triple too.
| m | n | a = m² − n² | b = 2mn | c = m² + n² |
|---|---|---|---|---|
| 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 |
| 5 | 4 | 9 | 40 | 41 |
| 6 | 1 | 35 | 12 | 37 |
| 6 | 5 | 11 | 60 | 61 |
From any odd number n of 3 or more: the triple is . For n = 7: (7, 24, 25). For n = 9: (9, 40, 41). The other leg and the hypotenuse always differ by 1.
From any even number 2n of 4 or more: the triple is . For 2n = 8, n = 4 and the triple is (8, 15, 17). For 2n = 12: (12, 35, 37).
These give one triple each, but a number can belong to many. 12 is a side of four triples: (5, 12, 13), (9, 12, 15), (12, 16, 20) and (12, 35, 37). Find by side above lists all of them, including triples where your number is the hypotenuse. A number can be a hypotenuse only if it has a prime factor of the form 4k + 1, such as 5, 13, 17 or 29.
Triples were known long before Pythagoras. A Babylonian clay tablet called Plimpton 322, from around 1800 BCE, lists rows of numbers that match the sides of right triangles, including the triple (119, 120, 169). Euclid’s Elements, written around 300 BCE, gives the general formula used on this page.
Builders still use the 3-4-5 triple to set out square corners: mark 3 units along one wall and 4 along the other, and the diagonal between the marks is exactly 5 when the corner is 90°. Scaled up, 6-8-10 or 9-12-15 feet does the same on a deck or slab.
Pythagorean triple days are dates that form a triple in month/day/year order: 3/4/05, 5/12/13, 8/15/17, 12/16/20, 7/24/25 and 10/24/26. October 24, 2026 was the last one this century; the next is March 4, 2105.
Putting the largest number in the wrong place. The hypotenuse c must be the largest of the three. (5, 3, 4) is still a triple, but is false. The checker sorts the numbers for you.
Adding before squaring. , and , not 25. Square each leg first, then add.
Thinking every multiple is a new primitive triple. (9, 12, 15) is a triple, but it is 3 × (3, 4, 5), not a primitive one.
Using both odd numbers in Euclid’s formula. m = 5 and n = 3 give (16, 30, 34), which is 2 × (8, 15, 17); it repeats a triple you already had.
Work each one out, then check it by typing the numbers into the calculator above.
| Question | Answer | Working |
|---|---|---|
| Is (20, 21, 29) a Pythagorean triple? | Yes, primitive | 400 + 441 = 841 = 29² |
| Is (6, 9, 11) a Pythagorean triple? | No | 36 + 81 = 117, but 11² = 121 |
| Which triple do m = 4 and n = 1 give? | (15, 8, 17) | 16 − 1, 2 × 4 × 1, 16 + 1 |
| The legs are 9 and 40. What is c? | 41 | 81 + 1,600 = 1,681 = 41² |
| Find a triple with 11 as a leg. | (11, 60, 61) | (121 − 1) ÷ 2 = 60, (121 + 1) ÷ 2 = 61 |
| Is (10, 24, 26) primitive? | No, 2 × (5, 12, 13) | All three sides are even |
Check whether 9, 12 and 15 form a Pythagorean triple, and say whether it is primitive.
Answer: Yes. (9, 12, 15) is a Pythagorean triple, three times the primitive triple (3, 4, 5).
Ordered by hypotenuse: (3, 4, 5), (6, 8, 10), (5, 12, 13), (9, 12, 15), (8, 15, 17), (12, 16, 20), (7, 24, 25), (15, 20, 25), (10, 24, 26) and (20, 21, 29). Counting only primitive triples, the first 10 are (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) and (16, 63, 65).
The five primitive triples used most in class and on tests are (3, 4, 5), (5, 12, 13), (8, 15, 17), (7, 24, 25) and (20, 21, 29). Their multiples, such as (6, 8, 10) and (10, 24, 26), are triples too.
Yes. 9² + 12² = 81 + 144 = 225 = 15². It is not primitive, because it is 3 × (3, 4, 5).
Euclid’s formula: for whole numbers m > n, the numbers m² − n², 2mn and m² + n² form a triple. With m = 2 and n = 1 it gives (3, 4, 5). It gives every primitive triple when m and n are coprime and not both odd.
A triple whose three numbers have no common factor other than 1, such as (3, 4, 5) or (5, 12, 13). Every other triple is a whole-number multiple of a primitive one.
Infinitely many. Every odd number from 3 up is the shortest side of a primitive triple, and every triple has infinitely many multiples. With a hypotenuse up to 100 there are 52 triples, 16 of them primitive; up to 1,000 there are 881, 158 of them primitive.
No. A triple is three whole numbers. Sides such as 1.5, 2 and 2.5 do form a right triangle, and doubling them gives the triple (3, 4, 5), but the decimals themselves are not a triple.
Missing side, angles and area of a right triangle, with steps, triples and feet-and-inches input.
Solve any triangle from SSS, SAS, ASA, AAS or SSA, with law of sines and cosines steps and the ambiguous case.
LCM and GCF of up to 10 numbers with steps: multiples, prime factors, Euclid’s algorithm and a coprime check.
Prime factors with division steps, a factor tree, the divisor count and every divisor.
Square, cube and nth roots in simplest radical form, with decimals and prime-factor steps.
Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?