A Pythagorean triple is a set of three positive integers that satisfy . In plain language, the three numbers are whole-number side lengths of a right triangle, and is the hypotenuse. The classic example is because .
Use the idea only when all three values are positive integers. Many right triangles satisfy the Pythagorean theorem, but only some give integer side lengths.
Common Pythagorean Triples To Know
These show up often enough that they are worth recognizing on sight:
Their multiples work too. For example, doubling gives , and
That is why many non-primitive triples are just scaled copies of smaller ones.
What Makes A Triple Primitive
A primitive Pythagorean triple has no common factor greater than . For example, is primitive, but is not because all three numbers are divisible by .
This matters because every non-primitive triple comes from scaling a primitive one. If you understand the primitive triples, you understand the larger family too.
How To Find Pythagorean Triples
There are two practical ways to get new ones.
Scale A Triple You Already Know
If is a Pythagorean triple and is a positive integer, then is also a Pythagorean triple because
This is the fastest way to build examples such as or .
Use Euclid's Formula
If and are integers with , then
gives a Pythagorean triple.
If you want a primitive triple, meaning the three numbers have no common factor greater than , you also need and to be coprime and not both odd.
Worked Example: Generate A Triple
Take and . Since , Euclid's formula applies.
Then
So is a Pythagorean triple.
You can verify it directly:
Now scale it by and you get . The right-triangle shape stays the same, but the side lengths double.
This example shows both main ideas at once: Euclid's formula creates a triple, and scaling creates more.
Common Mistakes With Pythagorean Triples
Forgetting The Whole-Number Condition
The equation has many real-number solutions, but a Pythagorean triple requires all three values to be positive integers.
Calling Every Valid Triple Primitive
is a valid triple, but it is not primitive because all three numbers share a common factor of .
Mixing Up "Triple" And "Primitive Triple"
A triple only needs to satisfy with positive integers. The extra conditions on and matter only if you want the triple to be primitive.
Putting The Largest Number In The Wrong Place
In a triple , is the hypotenuse, so it must be the largest number.
When Pythagorean Triples Are Useful
They show up in right-triangle geometry, coordinate geometry, and introductory number theory. They are also useful when you want to check quickly whether three whole numbers can form a right triangle.
In proof-based math, they are a standard example of a Diophantine equation: an equation where you look for integer solutions instead of all real-number solutions.
Try A Similar Problem
Use and in Euclid's formula, then verify the result in . If you want one more step, explore the Pythagorean Theorem to see how the same relationship is used to solve for missing side lengths.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →