Right Triangle Solver logo
Right Triangle Solver

Pythagorean Triples

Pythagorean Triples Calculator

Calculator Mode

Check a Pythagorean triple

Pythagorean Triples Calculator

Check whole-number triples and generate new ones with Euclid's formula.

A Pythagorean triple is a set of three positive whole numbers that can serve as the sides of a right triangle. The two shorter numbers are the legs, the largest number is the hypotenuse, and the three values satisfy the Pythagorean theorem.

a2+b2=c2a^2+b^2=c^2

The Pythagorean Triples Calculator does two jobs. In check mode, you enter three whole numbers and it tests whether they form a valid triple. In generate mode, you enter two integers, mm and nn, and it builds a new triple with Euclid's formula. Checking and generating are different tasks, and this page explains both, step by step.

The best-known example is 33, 44, and 55. Squaring and adding the legs gives 32+42=9+16=253^2+4^2=9+16=25, which equals 525^2. Because the two sides match exactly, (3,4,5)(3, 4, 5) is a valid triple. A primitive triple is one whose three numbers share no common factor greater than 11; 33, 44, and 55 have nothing in common, so (3,4,5)(3, 4, 5) is primitive. The sections below show how to check any three numbers, how to generate triples of any size, and how to tell primitive triples from scaled copies.

Check or Generate Pythagorean Triples With the Calculator

Two modes, one page: check a set of numbers, or build a new triple.

Mode 1: Check a Pythagorean Triple

Enter the three side lengths as aa, bb, and cc, with cc as the largest value. The calculator squares aa and bb, adds the results, squares cc, and compares the two sides of the equation.

a2+b2=c2a^2+b^2=c^2

When both sides are equal, the three numbers form a valid Pythagorean triple, and the result says so. When they differ, the numbers do not form a triple, and the result shows the two unequal totals so you can see how far off they are. All three inputs must be positive whole numbers, and all three must use the same unit.

Mode 2: Generate Pythagorean Triples

Enter two positive integers, mm and nn, with mm greater than nn. The calculator applies Euclid's formula to produce three whole-number side lengths.

a=m2−n2a=m^2-n^2

b=2mnb=2mn

c=m2+n2c=m^2+n^2

The result is always a valid triple, because Euclid's formula is built to satisfy the Pythagorean theorem. The two legs may appear in either order, but cc is always the hypotenuse. To use the calculator, pick a mode, enter valid numbers, click Calculate, and read the result with its step-by-step working. Click Reset to clear the fields and start again.

What Is a Pythagorean Triple?

Three positive whole numbers that fit the Pythagorean theorem exactly.

A Pythagorean triple is a set of three positive integers, written (a,b,c)(a, b, c), that satisfy the equation a2+b2=c2a^2+b^2=c^2. Here aa and bb are the legs, the two sides that meet at the right angle, and cc is the hypotenuse, the side opposite the right angle and always the longest of the three.

The equation must hold exactly. A near miss is not a triple: if the sum of the squared legs differs from the squared hypotenuse by even one unit, the three numbers fail the test. That strict equality is what makes a triple useful in building and carpentry, where a 33-44-55 check marks a square corner with no measuring error.

All three numbers must be whole and positive. A right triangle with decimal side lengths, such as legs 1.51.5 and 22 with hypotenuse 2.52.5, satisfies the Pythagorean theorem but is not a Pythagorean triple, because the definition requires integers. Likewise, a triangle with an irrational side, such as legs 11 and 11 with hypotenuse 2\sqrt{2}, is a right triangle but not a triple. The word triple is reserved for positive integer solutions only.

The triple (3,4,5)(3, 4, 5) is the natural first example. Its legs are 33 and 44, its hypotenuse is 55, and 9+16=259+16=25 confirms the equation. The order of the legs does not matter: (4,3,5)(4, 3, 5) describes the same triangle. What matters is that the two smaller numbers are the legs and the largest is the hypotenuse.

Squares drawn on the sides 3, 4, and 5 with areas 9, 16, and 25, showing 9 plus 16 equals 25
Squares on the sides 3, 4, and 5 have areas 9, 16, and 25. Since 9 + 16 = 25, the numbers 3, 4, and 5 form a Pythagorean triple.

Understanding the Pythagorean Theorem

The theorem behind every triple: the squares of the legs add to the square of the hypotenuse.

The Pythagorean theorem states that in any right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides. With legs aa and bb and hypotenuse cc, the theorem reads as follows.

a2+b2=c2a^2+b^2=c^2

One clear way to see it is through areas. Draw a square on each side of the triangle. The square on leg aa has area a2a^2, the square on leg bb has area b2b^2, and the square on the hypotenuse has area c2c^2. The theorem says the first two areas add up to the third. For the 33-44-55 triangle, the squares have areas 99, 1616, and 2525, and 9+16=259+16=25 shows the balance directly.

That area picture also explains why 33-44-55 is a valid right triangle. Its side lengths satisfy the area balance exactly, so the angle between the legs must be a right angle. Every Pythagorean triple satisfies the theorem, because a triple is defined by that equation. The reverse is not true: plenty of right triangles have side lengths that are not whole numbers, so they satisfy the theorem without being triples. Use the Pythagorean theorem calculator when a triangle has decimal or unknown sides instead of whole-number triples.

Right triangle ABC with legs a equals 3 and b equals 4, hypotenuse c equals 5, a right-angle marker, and the formula a squared plus b squared equals c squared
Right triangle ABC with legs a = 3 and b = 4 and hypotenuse c = 5. The right-angle marker sits at C, and 3 squared plus 4 squared equals 5 squared.

How to Check Whether Three Numbers Form a Pythagorean Triple

Eight short steps turn any three whole numbers into a clear yes or no.

  1. Identify the largest of the three values.
  2. Assign the largest value to cc, the hypotenuse.
  3. Assign the other two values to aa and bb, the legs.
  4. Square aa.
  5. Square bb.
  6. Add the two squares.
  7. Square cc.
  8. Compare the two results: equal means a valid triple, unequal means not a triple.

Here is a valid example. Check 77, 2424, and 2525: the largest value is 2525, so it is the hypotenuse. Square the legs and add.

72+242=2527^2+24^2=25^2

49+576=62549+576=625

Since 625=625625=625, the two sides match, so (7,24,25)(7, 24, 25) is a valid Pythagorean triple. It is also primitive, because 77, 2424, and 2525 share no common factor greater than 11.

Now an invalid example. Check 44, 55, and 66: the largest value is 66, so it is the hypotenuse.

42+52≠624^2+5^2 \neq 6^2

16+25=4116+25=41

62=366^2=36

Since 4141 does not equal 3636, the values do not form a Pythagorean triple. The same eight steps work for any positive integer inputs, large or small, so exact verification never depends on memory or guesswork.

Step-by-step flow for checking 7, 24, 25: square the legs to 49 and 576, add to 625, square the hypotenuse to 625, and confirm equality
Checking 7, 24, 25 step by step: 49 + 576 = 625 and 25 squared = 625, so the two sides match and the triple is valid.

How to Generate Pythagorean Triples Using Euclid's Formula

Two small integers in, a full triple out: that is Euclid's formula.

Euclid's formula builds a Pythagorean triple from two positive integers, mm and nn, with mm greater than nn. The parameter mm is the larger integer and nn is the smaller one, and both must be whole numbers. The three formulas produce the two legs and the hypotenuse.

a=m2−n2a=m^2-n^2

b=2mnb=2mn

c=m2+n2c=m^2+n^2

The condition m>n>0m>n>0 matters. If mm equals nn, the first leg becomes zero, which is not a triangle side. If mm is smaller than nn, the first leg becomes negative, which is also impossible. Decimal values of mm and nn are not valid here either, because the formula is designed for integer parameters that produce integer sides.

Try m=2m=2 and n=1n=1. The first leg is a=22−12=4−1=3a=2^2-1^2=4-1=3, the second leg is b=2(2)(1)=4b=2(2)(1)=4, and the hypotenuse is c=22+12=4+1=5c=2^2+1^2=4+1=5. The result is the triple (3,4,5)(3, 4, 5). Notice that the generated legs can appear in either order: the formula may return the larger leg first or second, but cc is always the hypotenuse. The next section proves why these formulas always satisfy the Pythagorean theorem.

Euclid's formula flowchart with m equals 3 and n equals 2 producing 5, 12, and 13
Euclid's formula with m = 3 and n = 2: m squared minus n squared is 5, 2mn is 12, and m squared plus n squared is 13, giving the triple 5, 12, 13.

Mathematical Proof of Euclid's Formula

A short algebra proof shows why Euclid's formula can never fail.

Start with the two leg formulas, a=m2−n2a=m^2-n^2 and b=2mnb=2mn, and test whether a2+b2a^2+b^2 equals c2c^2 when c=m2+n2c=m^2+n^2. Substitute the formulas into the left side of the Pythagorean equation.

a2+b2=(m2−n2)2+(2mn)2a^2+b^2=(m^2-n^2)^2+(2mn)^2

Expand both squares. The first square expands to m4−2m2n2+n4m^4-2m^2n^2+n^4 and the second to 4m2n24m^2n^2, so the sum becomes the following expression.

=m4−2m2n2+n4+4m2n2=m^4-2m^2n^2+n^4+4m^2n^2

Combine the middle terms: −2m2n2+4m2n2-2m^2n^2+4m^2n^2 is +2m2n2+2m^2n^2. The expression is now a perfect square in disguise.

=m4+2m2n2+n4=m^4+2m^2n^2+n^4

Factor it. The result is the square of m2+n2m^2+n^2, which is exactly cc.

=(m2+n2)2=(m^2+n^2)^2

Since c=m2+n2c=m^2+n^2, the right side is c2c^2, and the proof is complete.

a2+b2=c2a^2+b^2=c^2

The key step is the middle terms cancelling partway: the −2m2n2-2m^2n^2 from the first square and the +4m2n2+4m^2n^2 from the second leave exactly the +2m2n2+2m^2n^2 needed to complete the square. Because this works for any integers mm and nn with m>n>0m>n>0, every pair generates a genuine Pythagorean triple. The proof says nothing about primitiveness, though: whether the result is primitive depends on the extra conditions in the sections below.

What Is a Primitive Pythagorean Triple?

A primitive triple is a triple in its simplest form, with no shared factor.

A primitive Pythagorean triple is one whose three side lengths have no common positive integer factor greater than 11. In symbols, the greatest common divisor of the three sides is 11.

gcd⁡(a,b,c)=1\gcd(a,b,c)=1

The triple (3,4,5)(3, 4, 5) is primitive because gcd⁡(3,4,5)=1\gcd(3,4,5)=1: no integer larger than 11 divides all three numbers. The same holds for (5,12,13)(5, 12, 13), (8,15,17)(8, 15, 17), and (7,24,25)(7, 24, 25). Each of these is a base triple that cannot be reduced to a smaller whole-number triple by division.

Primitive does not mean the triple is the smallest possible in every sense. It means only that the three values share no common factor other than 11. A large primitive triple such as (20,21,29)(20, 21, 29) is still primitive, because 2020, 2121, and 2929 have no common divisor. The table below compares the divisors of a primitive triple and a scaled copy.

TripleCommon divisorsPrimitive?
(3,4,5)(3, 4, 5)11Yes
(5,12,13)(5, 12, 13)11Yes
(8,15,17)(8, 15, 17)11Yes
(6,8,10)(6, 8, 10)1,21, 2No
(9,12,15)(9, 12, 15)1,31, 3No
Two right triangles, 3-4-5 and 6-8-10, showing the second is twice the first and only the first is primitive
The 3-4-5 triangle is primitive, while 6-8-10 is twice as large in every side: gcd(3, 4, 5) = 1, but gcd(6, 8, 10) = 2.

What Is a Non-Primitive Pythagorean Triple?

A non-primitive triple is a scaled copy of a primitive one.

A non-primitive Pythagorean triple is a triple whose three values share a common integer factor greater than 11. It is still a valid triple, because it satisfies a2+b2=c2a^2+b^2=c^2 exactly. It is simply not in simplest form.

Start with the primitive triple (3,4,5)(3, 4, 5) and multiply every side by 22. The result is (6,8,10)(6, 8, 10), and the check still works: 36+64=10036+64=100. Multiply by 33 instead and the result is (9,12,15)(9, 12, 15), with 81+144=22581+144=225. Both scaled triples are valid, and neither is primitive, because the first shares the factor 22 and the second shares the factor 33.

Finding the common factor is simple: take the greatest common divisor of the three sides. For (6,8,10)(6, 8, 10) it is 22; for (9,12,15)(9, 12, 15) it is 33. Dividing every side by that factor recovers the primitive triple underneath. So (6,8,10)(6, 8, 10) divided by 22 returns (3,4,5)(3, 4, 5), and (9,12,15)(9, 12, 15) divided by 33 returns (3,4,5)(3, 4, 5) as well. Every non-primitive triple reduces to exactly one primitive triple this way.

Conditions for Generating Primitive Pythagorean Triples

Euclid's formula makes a primitive triple only when both parameter conditions hold.

Two conditions on mm and nn decide whether Euclid's formula produces a primitive triple. Both must hold at the same time, and neither alone is enough.

Condition 1: Coprime parameters

The parameters must be coprime, meaning they share no common factor greater than 11.

gcd⁡(m,n)=1\gcd(m,n)=1

When mm and nn share a factor, that factor leaks into all three generated sides. For example, m=4m=4 and n=2n=2 share the factor 22, and the formula produces (12,16,20)(12, 16, 20), whose sides all share the factor 44. The result is non-primitive.

Condition 2: Opposite parity

One parameter must be even and the other odd. When both parameters are odd, the generated legs and hypotenuse all come out even, so the triple shares the factor 22 and cannot be primitive. For example, m=3m=3 and n=1n=1 are coprime but both odd, and the formula produces (8,6,10)(8, 6, 10), which is the non-primitive triple (6,8,10)(6, 8, 10) with the legs in a different order.

Three parameter pairs show how the conditions work together. The pair (2,1)(2, 1) is coprime with opposite parity and gives the primitive triple (3,4,5)(3, 4, 5). The pair (3,2)(3, 2) is coprime with opposite parity and gives the primitive triple (5,12,13)(5, 12, 13). The pair (3,1)(3, 1) is coprime but both odd, so it gives the non-primitive triple (6,8,10)(6, 8, 10). Coprimality without opposite parity is not enough, and opposite parity without coprimality is not enough either.

Two parameter examples: m equals 3 and n equals 2 give primitive 5-12-13, while m equals 3 and n equals 1 give non-primitive 6-8-10
Parameters m = 3, n = 2 are coprime with opposite parity and give primitive 5-12-13. Parameters m = 3, n = 1 are both odd and give non-primitive 6-8-10.

Difference Between Primitive and Non-Primitive Triples

Same theorem, different form: one table sums up the whole distinction.

Both kinds of triple satisfy the Pythagorean theorem exactly, so both describe genuine right triangles. The difference is only about shared factors and how the triple was produced. A primitive triple is a base pattern; a non-primitive triple is usually a multiple of one.

FeaturePrimitiveNon-primitive
Common divisorOnly 11Greater than 11
Side lengthsCannot be reduced to a smaller integer tripleCan be divided by a common factor
Example3,4,53, 4, 56,8,106, 8, 10
GenerationCoprime mm, nn with opposite parityOther parameter combinations or integer multiples
RelationshipBase integer tripleOften a multiple of a primitive triple

How to Generate More Triples by Scaling Existing Ones

Multiply every side by the same whole number and the triple stays valid.

For any positive integer kk, multiplying every side of a Pythagorean triple (a,b,c)(a, b, c) by kk gives another Pythagorean triple, (ka,kb,kc)(ka, kb, kc).

(ka,kb,kc)\boxed{(ka, kb, kc)}

The reason is simple algebra. Squaring the scaled legs gives (ka)2+(kb)2=k2a2+k2b2(ka)^2+(kb)^2=k^2a^2+k^2b^2, and factoring out k2k^2 gives k2(a2+b2)k^2(a^2+b^2). Since the original triple satisfies a2+b2=c2a^2+b^2=c^2, the scaled sum equals k2c2k^2c^2, which is (kc)2(kc)^2. The scaled triple therefore satisfies the theorem exactly.

Scaling (3,4,5)(3, 4, 5) by 22 gives (6,8,10)(6, 8, 10), and scaling by 33 gives (9,12,15)(9, 12, 15). Scaling (5,12,13)(5, 12, 13) by 22 gives (10,24,26)(10, 24, 26), and scaling (8,15,17)(8, 15, 17) by 33 gives (24,45,51)(24, 45, 51). Each result is a valid triple, and each is non-primitive, because the multiplier becomes a common factor of all three sides.

An integer multiplier preserves whole-number side lengths, which is why scaling is a reliable way to build new triples. An arbitrary real multiplier, such as 1.51.5, keeps the triangle a right triangle with the same shape, but the sides may stop being whole numbers: (3,4,5)(3, 4, 5) scaled by 1.51.5 gives (4.5,6,7.5)(4.5, 6, 7.5), which is a right triangle but not a Pythagorean triple. Note that the calculator itself has no separate multiplier field; scaling is a manual calculation you do with the triples it checks or generates.

The triple 3-4-5 multiplied by 2, 3, and 4 to give 6-8-10, 9-12-15, and 12-16-20
Scaling 3-4-5 by 2, 3, and 4 gives 6-8-10, 9-12-15, and 12-16-20. Every scaled set is still a valid Pythagorean triple.

Common Pythagorean Triple Examples

Ten triples worth knowing by heart, each one verified.

The table below lists ten well-known Pythagorean triples. Every row has been checked against the Pythagorean theorem, and every row is primitive except where a scaled multiple is noted. The legs in each row can be listed in either order: (4,3,5)(4, 3, 5) is the same triangle as (3,4,5)(3, 4, 5).

First legSecond legHypotenuse
334455
5512121313
8815151717
7724242525
202021212929
121235353737
9940404141
282845455353
111160606161
161663636565
Three right triangles drawn to scale: 3-4-5, 5-12-13, and 8-15-17, showing different shapes
Three primitive triples drawn to scale: 3-4-5, 5-12-13, and 8-15-17. Each has a different shape and different acute angles.

Step-by-Step Worked Examples Using the Calculator

Eight examples covering both modes: four checks and four generations.

Example 1: Check 3, 4, 5

Enter a=3a=3, b=4b=4, and c=5c=5 in check mode. Square the legs and add: 32+42=9+16=253^2+4^2=9+16=25. Square the hypotenuse: 52=255^2=25. Since 25=2525=25, the result is a valid triple. It is primitive, because 33, 44, and 55 share no common factor.

Example 2: Check 5, 12, 13

Enter a=5a=5, b=12b=12, and c=13c=13. The legs give 52+122=25+144=1695^2+12^2=25+144=169, and the hypotenuse gives 132=16913^2=169. Since 169=169169=169, the result is a valid triple. It is primitive, because gcd⁡(5,12,13)=1\gcd(5,12,13)=1.

Example 3: Check 6, 8, 10

Enter a=6a=6, b=8b=8, and c=10c=10. The legs give 62+82=36+64=1006^2+8^2=36+64=100, and the hypotenuse gives 102=10010^2=100. Since 100=100100=100, the result is a valid triple. It is non-primitive, because all three sides share the factor 22; dividing by 22 returns the primitive triple (3,4,5)(3, 4, 5).

Example 4: Check 7, 24, 25

Enter a=7a=7, b=24b=24, and c=25c=25. The legs give 72+242=49+576=6257^2+24^2=49+576=625, and the hypotenuse gives 252=62525^2=625. Since 625=625625=625, the result is a valid triple. It is primitive, because 77, 2424, and 2525 share no common factor.

Example 5: Generate using m = 2, n = 1

Enter m=2m=2 and n=1n=1 in generate mode. The first leg is a=22−12=3a=2^2-1^2=3, the second leg is b=2(2)(1)=4b=2(2)(1)=4, and the hypotenuse is c=22+12=5c=2^2+1^2=5. The result is (3,4,5)(3, 4, 5), a primitive triple.

Example 6: Generate using m = 3, n = 2

Enter m=3m=3 and n=2n=2. The first leg is a=32−22=9−4=5a=3^2-2^2=9-4=5, the second leg is b=2(3)(2)=12b=2(3)(2)=12, and the hypotenuse is c=32+22=13c=3^2+2^2=13. The result is (5,12,13)(5, 12, 13), a primitive triple, because 33 and 22 are coprime with opposite parity.

Example 7: Generate using m = 4, n = 1

Enter m=4m=4 and n=1n=1. The formulas give a=42−12=15a=4^2-1^2=15, b=2(4)(1)=8b=2(4)(1)=8, and c=42+12=17c=4^2+1^2=17. Listed with the legs in ascending order, the result is (8,15,17)(8, 15, 17). It is primitive, because 44 and 11 are coprime with opposite parity.

Example 8: Generate using m = 3, n = 1

Enter m=3m=3 and n=1n=1. The formulas give a=32−12=8a=3^2-1^2=8, b=2(3)(1)=6b=2(3)(1)=6, and c=32+12=10c=3^2+1^2=10. Listed with the legs in ascending order, the result is (6,8,10)(6, 8, 10). This triple is non-primitive: 33 and 11 are coprime, but both are odd, so the opposite-parity condition fails and every side comes out even. Dividing by 22 returns the primitive triple (3,4,5)(3, 4, 5).

Why Are There Infinitely Many Pythagorean Triples?

Euclid's formula never runs out of inputs, so it never runs out of triples.

Euclid's formula accepts any pair of positive integers mm and nn with mm greater than nn, and there are infinitely many such pairs. Each new pair produces a triple, and different pairs generally produce different triples. The pairs (2,1)(2, 1), (3,2)(3, 2), (4,1)(4, 1), (4,3)(4, 3), and (5,2)(5, 2) give (3,4,5)(3, 4, 5), (5,12,13)(5, 12, 13), (8,15,17)(8, 15, 17), (7,24,25)(7, 24, 25), and (20,21,29)(20, 21, 29) respectively, and the list keeps going: (5,4)(5, 4) gives (9,40,41)(9, 40, 41), and (6,1)(6, 1) gives (12,35,37)(12, 35, 37). Larger values of mm keep producing larger triples without end.

Integer multiples add even more. Every primitive triple generates a whole family of scaled copies: (3,4,5)(3, 4, 5) alone gives (6,8,10)(6, 8, 10), (9,12,15)(9, 12, 15), (12,16,20)(12, 16, 20), and so on forever. Between the endless parameter pairs and the endless multiples, the supply of Pythagorean triples is infinite. Note the careful wording: not every parameter pair produces a primitive triple, but every pair produces a valid triple, and the primitive ones are infinite too.

How to Recognize a Pythagorean Triple Without Guessing

A few habits make familiar triples jump out before you calculate.

Start by treating the largest value as the hypotenuse and comparing the squared values, exactly as the checking steps describe. With practice, the common triples become familiar: 33-44-55, 55-1212-1313, 88-1515-1717, and 77-2424-2525 appear so often in textbooks and exams that recognizing them saves real time.

Look for common factors next. If all three numbers are even, divide by 22 and see what remains. The set 66-88-1010 is instantly recognizable as twice 33-44-55 once the factor 22 is spotted. Reducing a non-primitive triple to its primitive form often reveals a familiar pattern hiding behind larger numbers.

When you need a new triple rather than a check, Euclid's formula is the reliable route: pick small values of mm and nn and generate. Recognition is a helpful shortcut, but exact verification is always the final word. A triple that looks familiar still deserves the square-and-compare test before you rely on it.

Pythagorean Triples and Ordinary Right Triangles

Every triple is a right triangle, but most right triangles are not triples.

A right triangle can have integer side lengths, decimal side lengths, or irrational side lengths. Only the first category can form a Pythagorean triple. The triple (3,4,5)(3, 4, 5) is an integer right triangle, and it qualifies. A triangle with legs 11 and 11 and hypotenuse 2\sqrt{2} is a genuine right triangle, since 1+1=21+1=2, but its hypotenuse is irrational, so it is not a triple. A triangle with sides 33, 44, and 5.15.1 fails the equation, since 9+16=259+16=25 and 5.12=26.015.1^2=26.01, so it is not even a right triangle.

The distinction matters in practice. Builders use 33-44-55 because whole numbers are easy to measure with a tape. A triangle with sides 33, 44, and 5.15.1 looks almost right but is off by a visible angle, and no whole-number check would pass it. The Pythagorean theorem applies to all right triangles, whatever their side lengths. The term Pythagorean triple refers only to the positive integer solutions, and that narrow meaning is what makes triples special.

Common Mistakes When Using the Pythagorean Triples Calculator

Fifteen mistakes, each with the fix beside it.

Practice Problems With Answers

Eight problems, four checks and four generations, with full solutions.

Frequently Asked Questions

Answers to the most common right-triangle solving questions.

01 What is a Pythagorean triple?

A Pythagorean triple is a set of three positive whole numbers, written (a,b,c)(a, b, c), that satisfy the equation a2+b2=c2a²+b²=c². The two smaller numbers are the legs of a right triangle and the largest is the hypotenuse. The best-known example is (3,4,5)(3, 4, 5), since 9+16=259+16=25.

02 How does the Pythagorean Triples Calculator work?

It has two modes. Check mode takes three whole numbers and tests whether a2+b2=c2a²+b²=c² holds. Generate mode takes two integers, mm and nn, and applies Euclid's formula to build a new triple. Both modes show step-by-step working with the result.

03 How can I check whether three numbers form a Pythagorean triple?

Take the largest value as the hypotenuse cc and the other two as the legs aa and bb. Square all three, add a2+b2a²+b², and compare with c2c². Equal totals mean a valid triple; unequal totals mean the numbers do not form one.

04 What is Euclid's formula?

Euclid's formula generates a Pythagorean triple from two positive integers, mm and nn, with mm greater than nn. The formulas are a=m2−n2a=m²-n², b=2mnb=2mn, and c=m2+n2c=m²+n². Every pair produces a valid triple, as the algebra proof on this page shows.

05 What are m and n in the Pythagorean triple formula?

The values mm and nn are positive integer parameters in Euclid's formula. The value mm is the larger integer and nn is the smaller one, with m>n>0m>n>0. Larger values of mm produce larger triples, and different pairs produce different triples.

06 What is a primitive Pythagorean triple?

A primitive triple is one whose three side lengths share no common factor greater than 11, so gcd⁡(a,b,c)=1\gcd(a,b,c)=1. Examples include (3,4,5)(3, 4, 5), (5,12,13)(5, 12, 13), (8,15,17)(8, 15, 17), and (7,24,25)(7, 24, 25). Primitive triples cannot be reduced to a smaller whole-number triple.

07 What is a non-primitive Pythagorean triple?

A non-primitive triple is a valid triple whose three sides share a common factor greater than 11. For example, (6,8,10)(6, 8, 10) is twice (3,4,5)(3, 4, 5) and (9,12,15)(9, 12, 15) is three times (3,4,5)(3, 4, 5). Dividing by the common factor returns the primitive triple underneath.

08 How do I know if a generated triple is primitive?

Check the two parameter conditions: mm and nn must be coprime, so gcd⁡(m,n)=1\gcd(m,n)=1, and they must have opposite parity, so one is even and the other is odd. If both conditions hold, the generated triple is primitive. If either fails, it is non-primitive.

09 Can decimal numbers form a Pythagorean triple?

No. A Pythagorean triple is defined as three positive integers, so decimal side lengths never qualify. Decimals can still form a right triangle that satisfies a2+b2=c2a²+b²=c², such as legs 1.51.5 and 22 with hypotenuse 2.52.5, but that triangle is not a Pythagorean triple.

10 Are there infinitely many Pythagorean triples?

Yes. Euclid's formula accepts infinitely many integer pairs (m,n)(m, n), and each pair produces a triple. Integer multiples add more: every primitive triple generates an endless family of scaled copies. The supply of triples never runs out.

11 Can every Pythagorean triple be generated using Euclid's formula?

Yes, every primitive triple comes from Euclid's formula with suitable coprime parameters of opposite parity, and every non-primitive triple is a multiple of a primitive one. So every Pythagorean triple can be reached through Euclid's formula plus scaling by a positive integer.

12 What is the most common Pythagorean triple?

The triple (3,4,5)(3, 4, 5) is the most common and best known. It is the smallest primitive triple, it is easy to remember, and builders and carpenters have used it for centuries to check square corners. The next most familiar are (5,12,13)(5, 12, 13) and (8,15,17)(8, 15, 17).