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 .
When you use this method
Reach for triples when you want whole-number side lengths of a right triangle, not just any solution. Many right triangles satisfy the Pythagorean theorem, but only some give integer side lengths. Triples are most useful in right-triangle geometry, coordinate geometry, and introductory number theory, and for checking 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.
A few triples show up often enough to recognize on sight:
Their multiples work too. Doubling gives , and
That is why many non-primitive triples are just scaled copies of smaller ones.
The procedure, step by step
There are two reliable ways to produce triples. Pick whichever fits the situation.
Step 1 — Decide what you need. A plain triple only has to satisfy with positive integers. A primitive triple additionally has no common factor greater than .
Step 2a — Scale a triple you already know. If is a Pythagorean triple and is a positive integer, then is also one, because
This is the fastest way to build examples such as or .
Step 2b — Use Euclid's formula. If and are integers with , then
gives a Pythagorean triple. For a primitive triple, and must also be coprime and not both odd.
Step 3 — Verify. Substitute back into to confirm.
A full example through every step
Take and . Since , Euclid's formula applies. Then
So is a Pythagorean triple. 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 ideas at once: Euclid's formula creates a triple, and scaling creates more.
Where each step tends to break
At the "what do I need" step, students forget the whole-number condition. The equation has many real-number solutions, but a triple requires all three values to be positive integers. Self-check: are , , all whole numbers?
At the primitive step, the trap is calling every valid triple primitive. is a valid triple, but it is not primitive because all three numbers share a common factor of . Self-check: do the three numbers share a factor greater than ?
When applying Euclid's formula, the trap is confusing "triple" and "primitive triple." A triple only needs with positive integers; the coprime and not-both-odd conditions on and matter only when you want the result primitive.
At the verification step, watch the ordering: in , is the hypotenuse, so it must be the largest number.
Build the skill on a new case
Use and in Euclid's formula, then verify the result in . Run each step above: produce the triple, check whether it is primitive, then confirm by substitution. For one more step, see the Pythagorean Theorem to watch the same relationship used to solve for missing side lengths.
Frequently Asked Questions
- What is a Pythagorean triple?
- A Pythagorean triple is a set of three positive integers a, b, and c that satisfy a squared plus b squared equals c squared. The three numbers are whole-number side lengths of a right triangle with c as the hypotenuse. The classic example is 3, 4, 5, since 9 plus 16 equals 25.
- What are the most common Pythagorean triples?
- The ones worth recognizing on sight are 3-4-5, 5-12-13, 8-15-17, and 7-24-25. Their multiples also work, so doubling 3-4-5 gives 6-8-10, which still satisfies the equation because 36 plus 64 equals 100. Many larger triples are just scaled copies of these small ones.
- What makes a Pythagorean triple primitive?
- A primitive triple has no common factor greater than 1. For example, 3-4-5 is primitive, but 6-8-10 is not because all three numbers are divisible by 2. Every non-primitive triple comes from scaling a primitive one, so understanding the primitive triples explains the whole family.
- How does Euclid's formula generate Pythagorean triples?
- Pick integers m and n with m greater than n greater than 0, then set a equal to m squared minus n squared, b equal to 2mn, and c equal to m squared plus n squared. This always gives a Pythagorean triple. To get a primitive one, m and n must also be coprime and not both odd.
- Are multiples of a Pythagorean triple still triples?
- Yes. If a, b, c is a Pythagorean triple and k is any positive integer, then ka, kb, kc is also a triple, because the factor k squared appears on both sides of the equation. This scaling trick is the fastest way to build examples such as 9-12-15 or 10-24-26.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →