Try it with your numbers
Show every step
The Pythagorean theorem holds for every right triangle, but a triple is the special case where all three sides come out as whole numbers with no decimals and no square roots. That is why textbooks, standardized tests and carpenters love them.
What are Pythagorean triples?
The theorem says the legs and and the hypotenuse of a right triangle obey . Most right triangles break the “whole number” requirement: legs of and give , which is a perfectly good right triangle and not a triple. A triple needs all three sides to be integers, and by convention is the largest.
Scaling is what makes triples multiply. If works, then works for any positive whole number , because
Geometrically, you are building a larger similar triangle, so the angles stay the same and only the size changes.
A triple is primitive when its three numbers share no common factor beyond . is primitive and is not. Every triple is a primitive one multiplied by some , so the primitives are the real building blocks. Two details worth knowing: the numbers in a primitive triple are pairwise coprime (any two of them share no factor), and exactly one leg is even while the hypotenuse is odd.
List of common Pythagorean triples
There are exactly sixteen primitive triples with a hypotenuse of or less. Here they are, four per line:
- , , ,
- , , ,
- , , ,
- , , ,
Memorizing the first four covers most homework and test questions, since the rest of the common ones are multiples: , , , , and .
The list has patterns that let you spot-check it. Every hypotenuse of a primitive triple leaves remainder when divided by (5, 13, 17, 25, 29, 37, and so on). Hypotenuses can repeat: appears twice and so does . That happens because and are products of two primes that are each one more than a multiple of . A single such prime, like or , gives just one primitive triple.
How do you check if three numbers form a Pythagorean triple?
Use this routine every time:
- Find the largest number and call it , whatever order the numbers were given in.
- Square the two smaller numbers and add them.
- Square and compare. Equal means triple.
Example. Is a triple? The largest is .
The two sides match, so it is a triple. It is also primitive, since .
The trap that costs the most points is squaring in the order the numbers appear. A triangle labeled is a triple, but only if plays the hypotenuse. Students who test against wrongly say no.
For large numbers, skip the big squares and use the difference of squares. Rearranging gives . Here and , and . The check takes seconds.
Every triple contains a side divisible by , a side divisible by and a side divisible by . A candidate like has no multiple of , so it cannot be a triple.
The rule only rejects. A set can pass it and still fail, so confirm with the squares when it survives. Also note that three lengths must make a triangle at all, which the triangle inequality theorem guarantees automatically whenever holds for positive numbers.
Quick check
Answer: Yes
Euclid’s formula: how to generate Pythagorean triples
Pick whole numbers and compute
Proof of why it works takes one line of algebra:
The deeper idea is geometric. Dividing by gives , so every triple is a point with fractional coordinates on the unit circle from the equation of a circle. A line from with slope hits the circle again at exactly . That is Euclid’s formula in disguise, and it shows why it finds all primitives.
The result is primitive exactly when and are coprime and one is even, one is odd.
| Triple | ||
|---|---|---|
| 2 | 1 | |
| 3 | 2 | |
| 4 | 1 | |
| 4 | 3 | |
| 5 | 2 |
Example. Take and . Then , and . Check: . The triple is .
Now break the rule on purpose. With and (both odd), the formula gives , which is just . With and (common factor ), it gives , which is . Both are valid triples, only not primitive.
The bare formula misses triples like . Write the general version as , , and every triple appears.
The derivation of the Pythagorean theorem explains the relationship being used here, while Euclid’s formula explains which whole numbers can satisfy it.
How do you find m and n from a given triple?
Running the formula backward tells you whether a triple is primitive and how it was built. Take the odd leg and the hypotenuse . Adding and subtracting them gives
Example. For , the odd leg is and .
Check: , which is the even leg. Since and are coprime with opposite parity, the triple is primitive.
If the triple is not primitive, divide by the greatest common factor first. For , and the reduced triple is . That gives , and multiplier . If the square roots do not come out whole, the numbers are not a triple at all.
Can a single number generate a Pythagorean triple?
Yes. If you know only one leg, two shortcuts work. For an odd number :
For an even number :
Both are Euclid’s formula with special choices. The odd version uses and , which makes the hypotenuse exactly more than a leg. The even version uses and . For you get . For you get , since and .
There is a catch with the even formula. When is odd the result is not primitive: gives , which is . And gives a side of , so it is excluded. A useful consequence: every whole number from upward is a leg of at least one Pythagorean triple, though and are not.
Try this: Use the shortcuts to build triples from and , then check each by squaring.
Quick check
Answer:
How do you use Pythagorean triples to find a missing side?
Spot the triple inside the numbers you are given. When a problem gives two sides, divide them by their greatest common factor. If the reduced pair matches part of a known triple, the third side follows by multiplying back. This works because any two numbers in a primitive triple are coprime, so the gcd of two given sides is exactly the scale factor .
Example 1: missing hypotenuse. The legs are and .
The pair belongs to , so the hypotenuse is . Check: .
Example 2: missing leg. The hypotenuse is and one leg is .
That is , so the other leg is . Check: .
If the reduced pair is not in any known triple, the sides probably do not form one, and you fall back on the theorem with a square root. Test-makers mostly choose triples, so the shortcut hits often. For extra reps, work through these Pythagorean theorem practice problems.
When do Pythagorean triples fail or not apply?
Two famous right triangles can never be triples. In a -- triangle the hypotenuse is , and since is irrational, no whole gives a whole hypotenuse. A -- triangle has sides , and , which fails for the same reason. See special right triangles for those ratios. Even the triangle has awkward angles of about and , so triples and “nice” angles rarely coincide.
The converse also has a limit. If , the triangle is right. If is larger than , the largest angle is greater than , and if smaller, every angle is under . Applying this to the three sides : is greater than , so the triangle is acute. This is one more way to sort the types of triangles using only side lengths.
Triples are about squares only. No whole numbers satisfy , and the same holds for every higher power. That is Fermat’s Last Theorem, finally proved in the 1990s. Finally, a right triangle like is not a triple because the sides are not whole, though doubling gives .
Quick check
Answer: Obtuse
Where are Pythagorean triples used in real life?
Builders use the -- rule to check square corners. Measure feet along one wall, feet along the other, and adjust until the diagonal between the marks is exactly feet. Larger multiples such as -- or -- reduce measuring error on bigger layouts.
In coordinate geometry, a triple means a clean distance. The distance from to is , with no radical to simplify. Problem writers use that to keep answers tidy.
Triples also feed area problems. A right triangle with legs and has area , and the area of a triangle with any Pythagorean triple is always a whole number. It is a close relative of “Heronian” triangles, which have whole-number sides and area but not necessarily a right angle. Heron’s formula shows that the -- triangle has area , even though .
Historically, the clay tablet Plimpton 322, around years old, shows that Babylonian scribes were working with these number patterns long before Pythagoras.
Practice problems
0 of 5 solved
- A right triangle has legs and . Find the hypotenuse using a triple.
Answer:
Step 1: and , so the legs are times the legs of . Step 2: the hypotenuse is . Check: . - Use Euclid's formula with and to build a triple.
Answer:
Step 1: . Step 2: . Step 3: . Check: . - A right triangle has one leg and hypotenuse . Find the other leg.
Answer:
Step 1: , and , , which matches . Step 2: the missing leg is . Check: . - Find and for the primitive triple .
Answer:
Step 1: the odd leg is and . Step 2: , so . Step 3: , so . Check: . - Find a Pythagorean triple with one leg equal to whose hypotenuse is more than the other leg.
Answer:
Step 1: , so . Step 2: and give and . Check: .
Common questions
What are the first Pythagorean triples?
The smallest are , , , and . Every other triple is a whole-number multiple of one of these or of a larger primitive triple.
What is a primitive Pythagorean triple?
A primitive triple is one whose three numbers share no common factor greater than . is primitive, while is not because every number is divisible by .
How do you generate Pythagorean triples?
Pick whole numbers and compute , and . These always satisfy . Multiply the result by any whole number to get non-primitive triples.
Are there infinitely many Pythagorean triples?
Yes. Every valid pair in Euclid's formula gives a triple, and every triple can be scaled by , , and so on. There are infinitely many primitive triples and infinitely many multiples of each.
Is 1, 1, √2 a Pythagorean triple?
No. It is a right triangle, but a Pythagorean triple requires all three sides to be positive whole numbers, and is not a whole number.
How do you know which number is the hypotenuse in a triple?
The hypotenuse is always the largest of the three numbers, no matter what order they are written in. Square the two smaller numbers, add them, and compare with the square of the largest.