What are Pythagorean Triples
A Pythagorean triple is a set of three positive integers $(a, b, c)$ that satisfy the equation $a^2 + b^2 = c^2$. The two smaller numbers, $a$ and $b$, are the legs of a right-angled triangle, and the largest, $c$, is the hypotenuse — the side opposite the right angle.
The condition comes straight from the Pythagoras theorem: in any right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides. A Pythagorean triple is the special case where all three side lengths happen to be whole numbers. Most right triangles do not have whole-number sides — a triangle with legs 1 and 1 has a hypotenuse of $\sqrt{2}$, which is not an integer. Triples are the rare, tidy cases where every side is a counting number.
The smallest and most-used triple is $(3, 4, 5)$: $3^2 + 4^2 = 9 + 16 = 25 = 5^2$. Check it once and the definition is locked in.
What makes three numbers a Pythagorean triple?
The test is a single equation. Square the two smaller numbers, add them, and check whether the result equals the square of the largest. If $a^2 + b^2 = c^2$ holds, the three numbers are a triple; if not, they are not. There is nothing more to it — the whole idea rests on that one check, which is why triples connect so directly to the right triangle formulas reference.
Primitive And Non-Primitive Triples
Pythagorean triples come in two kinds, and telling them apart matters.
A primitive Pythagorean triple is one where the three numbers share no common factor larger than 1. The numbers are as "reduced" as they can be. Example: $(3, 4, 5)$, where no number divides all three except 1.
A non-primitive triple is a multiple of a primitive one, so the three numbers share a common factor. Example: $(6, 8, 10)$ is just $(3, 4, 5)$ doubled, and all three share the factor 2.
Every non-primitive triple traces back to a primitive one. Multiply each number of $(3, 4, 5)$ by 2, 3, 4, and so on, and you get $(6, 8, 10)$, $(9, 12, 15)$, and $(12, 16, 20)$, an endless family, all the same shape of triangle, just scaled. This is why one primitive triple is the seed for infinitely many.
The Pythagorean Triples Formula
The most reliable way to generate triples is Euclid's formula. Pick any two positive integers $m$ and $n$ with $m > n > 0$. Then:
$$a = m^2 - n^2$$
$$b = 2mn$$
$$c = m^2 + n^2$$
Here $m$ and $n$ are any two whole numbers you choose, with $m$ larger than $n$. Every $(a, b, c)$ this produces is a genuine Pythagorean triple. The triple is primitive when $m$ and $n$ share no common factor and exactly one of them is even.
A quick worked check. Take $m = 2$, $n = 1$:
$a = 2^2 - 1^2 = 4 - 1 = 3$
$b = 2 \times 2 \times 1 = 4$
$c = 2^2 + 1^2 = 4 + 1 = 5$
That is $(3, 4, 5)$. Euclid's formula rebuilds the most famous triple from the two smallest possible inputs.
There are two shortcut formulas worth knowing as well, each starting from a single number:
If you start with an odd number $x$: the triple is $\left(x,; \dfrac{x^2 - 1}{2},; \dfrac{x^2 + 1}{2}\right)$.
If you start with an even number $x$: the triple is $\left(x,; \left(\dfrac{x}{2}\right)^2 - 1,; \left(\dfrac{x}{2}\right)^2 + 1\right)$.
One honest caveat: even Euclid's formula does not reach every triple in its primitive form for every choice of inputs, but together with scaling it generates all of them. The point to carry is that triples are not random — they are produced by a rule.
The List of Common Pythagorean Triples
These are the triples worth recognising on sight, because they appear again and again in problems. The first column lists the primitive triples; recognising them saves real time.
Primitive triple | Check: $a^2 + b^2 = c^2$ |
|---|---|
$(3, 4, 5)$ | $9 + 16 = 25$ |
$(5, 12, 13)$ | $25 + 144 = 169$ |
$(8, 15, 17)$ | $64 + 225 = 289$ |
$(7, 24, 25)$ | $49 + 576 = 625$ |
$(20, 21, 29)$ | $400 + 441 = 841$ |
$(9, 40, 41)$ | $81 + 1600 = 1681$ |
Each of these can be scaled up to make non-primitive triples: $(3, 4, 5)$ becomes $(6, 8, 10)$, $(5, 12, 13)$ becomes $(10, 24, 26)$, and so on.
Examples of Pythagorean Triples
The examples move from a simple verification to generating new triples and finishing with a reverse problem.
Example 1
Verify that (8, 15, 17) is a Pythagorean triple.
Square the two smaller numbers and add them, then compare with the square of the largest.
$8^2 + 15^2 = 64 + 225 = 289$
$17^2 = 289$
The two sides match.
Final answer: Yes, $(8, 15, 17)$ is a Pythagorean triple.
Example 2
Is (6, 8, 11) a Pythagorean triple?
The tempting wrong path: 6 and 8 look like the start of $(6, 8, 10)$, so a student might glance and assume any third number "near" 10 works, accepting 11.
Watch where that breaks. Run the actual check:
$6^2 + 8^2 = 36 + 64 = 100$
$11^2 = 121$
Since $100 \neq 121$, the equation fails. The eyeball guess of "close enough" gives the wrong answer.
The correct method is to always compute $a^2 + b^2$ and compare with $c^2$ exactly. The correct hypotenuse for legs 6 and 8 is $\sqrt{100} = 10$, not 11.
Final answer: No, $(6, 8, 11)$ is not a Pythagorean triple.
Example 3
Generate a Pythagorean triple using Euclid's formula with m = 3 and n = 2.
Substitute into the three formulas.
$a = m^2 - n^2 = 3^2 - 2^2 = 9 - 4 = 5$
$b = 2mn = 2 \times 3 \times 2 = 12$
$c = m^2 + n^2 = 3^2 + 2^2 = 9 + 4 = 13$
Check: $5^2 + 12^2 = 25 + 144 = 169 = 13^2$.
Final answer: The triple is $(5, 12, 13)$.
Example 4
Create a non-primitive triple from (3, 4, 5).
Multiply each number by the same whole number. Using a factor of 4:
$(3 \times 4,; 4 \times 4,; 5 \times 4) = (12, 16, 20)$
Check: $12^2 + 16^2 = 144 + 256 = 400 = 20^2$.
Final answer: $(12, 16, 20)$ is a non-primitive triple.
Example 5
A right triangle has legs of 9 and 40. Is its hypotenuse a whole number, and does this form a triple?
Apply $a^2 + b^2 = c^2$ to find $c$.
$9^2 + 40^2 = 81 + 1600 = 1681$
$c = \sqrt{1681} = 41$
The hypotenuse is a whole number, 41.
Final answer: Yes, $(9, 40, 41)$ is a Pythagorean triple.
Example 6
The two legs of a right triangle are 20 and 21. Find the hypotenuse and state whether the triple is primitive.
Compute the hypotenuse first.
$20^2 + 21^2 = 400 + 441 = 841$
$c = \sqrt{841} = 29$
Now check for a common factor. The numbers 20, 21, and 29 share no factor larger than 1, so the triple is primitive.
Final answer: The hypotenuse is 29, and $(20, 21, 29)$ is a primitive triple.
Why Pythagorean Triples Matter
Pythagorean triples exist because builders, navigators, and engineers needed right angles they could trust without protractors. A whole-number triple lets you measure a perfect 90° corner using nothing but a tape measure or a knotted rope.
That practical power still shows up today:
Construction. Carpenters use the "3-4-5 rule" to square up foundations and walls: measure 3 units along one edge, 4 along the other, and if the diagonal between them is exactly 5 units, the corner is square.
Navigation and surveying. Right-angle layouts on land rely on the same whole-number relationships the Egyptians used.
Number theory. Triples are the doorway to one of the most famous problems in mathematics — Fermat's Last Theorem, which asks whether the same idea works for cubes and higher powers (it does not).
The reason a tape measure can build a right angle without any angle-measuring tool is the converse of the Pythagoras theorem: if three sides satisfy $a^2 + b^2 = c^2$, the triangle must contain a right angle. The numbers guarantee the geometry.
The Mistakes Students Make Most Often
Most errors with triples come from rushing the check or mishandling Euclid's formula. Three stand out.
Mistake 1: Adding the numbers instead of squaring them
Where it slips in: During the verification test, when a student wants a fast answer.
Don't do this: Check whether $a + b = c$ (for example, claiming $3 + 4 = 5$ "proves" the triple).
The correct way: The test is $a^2 + b^2 = c^2$, not $a + b = c$. With $(3, 4, 5)$ the sum $3 + 4 = 7$, which is nothing to do with 5 — the squares are what matter. A common first instinct is to add rather than square, and it gives wrong results the moment the numbers grow.
Mistake 2: Putting the largest number in the wrong place
Where it slips in: When the three numbers are listed out of order, or the largest is mistaken for a leg.
Don't do this: Test $5^2 + 12^2 = 13^2$ as $13^2 + 5^2 = 12^2$, mixing up which number is the hypotenuse.
The correct way: The largest number is always the hypotenuse $c$, and it sits alone on the right of the equation. The two smaller numbers are the legs and always go on the left. Sorting the three numbers first removes this error entirely.
Mistake 3: Confusing primitive with non-primitive
Where it slips in: When asked for a primitive triple, students sometimes hand back a scaled one.
Don't do this: Offer $(6, 8, 10)$ when a primitive triple is required.
The correct way: Check for a shared factor. $(6, 8, 10)$ all divide by 2, so it is non-primitive. Reduce it to $(3, 4, 5)$ to get the primitive form. The error that costs the most marks is handing in a multiple when the question asked for the seed.
Conclusion
A Pythagorean triple is three positive integers $(a, b, c)$ with $a^2 + b^2 = c^2$, forming a right triangle.
The largest number is always the hypotenuse; the two smaller ones are the legs.
Primitive triples share no common factor; non-primitive triples are scaled copies of them.
Euclid's formula ($a = m^2 - n^2$, $b = 2mn$, $c = m^2 + n^2$) generates triples from any two integers $m > n$.
The common triples to recognise on sight are $(3, 4, 5)$, $(5, 12, 13)$, $(8, 15, 17)$, and $(7, 24, 25)$.
To build fluency with triples and the right-triangle reasoning behind them, a teacher can shorten the learning curve. Explore Bhanzu's geometry tutor, our high school math tutor sessions, or math tutoring to work through these live.
A Practical Next Step
Work through these problems to lock in the idea:
Verify whether $(9, 12, 15)$ is a triple, and state whether it is primitive.
Use Euclid's formula with $m = 4$ and $n = 1$ to generate a new triple.
If you get stuck on the verification, return to the single-equation test in the definition section. Want your child to practise this with a live trainer? Book a free demo class.
Read More
Was this article helpful?
Your feedback helps us write better content