Pythagorean Triples

Malcolm McKinsey
Written by
Malcolm McKinsey
Fact-checked by
Paul Mazzola

What is a Pythagorean triple?

Some numbers seem to work perfectly in the Pythagorean Theorem, like 3, 4, and 5, which is 32+42=52{3}^{2}+{4}^{2}={5}^{2}. Sets of positive, whole numbers that work in the Pythagorean Theorem are called Pythagorean triples.

For three positive integers to be Pythagorean triples, they must work in the Pythagorean Theorem's formula:

In the Pythagorean Theorem's formula, a and b are legs of a right triangle, and c is the hypotenuse.

Pythagorean Triples Definition
Pythagorean Triples Definition

Only positive integers can be Pythagorean triples. The smallest Pythagorean triple is our example: (3, 4, and 5).

A quick way to find more Pythagorean triples is to multiply all the original terms by another positive integer:

Get free estimates from geometry tutors near you.

Pythagorean triples

Pythagorean triples are relatively prime. Relatively prime means they have no common divisor other than 1, even if the numbers are not prime numbers, like 14 and 15. The number 14 has factors 1, 2, 7, and 14; the number 15 has factors 1, 3, 5, and 15. Their only common factor is 1.

Pythagorean Triples Relatively Prime
Pythagorean Triples Relatively Prime

Primitive Pythagorean triples

A set of numbers is considered to be a primitive Pythagorean triple if the three numbers have no common divisor other than 1.

Our first Pythagorean triple is primitive, since (3, 4, and 5) have no common divisors other than 1. Our fifth set from our example above, however, is not primitive (it is imprimitive) because each value for a, b, and c of the right triangle is a multiple of 5.

Primitive Pythagorean Triples
Primitive Pythagorean Triples

How to find Pythagorean triples

Here's how to find Pythagorean triples in three easy steps:

  1. Pick an even number to be the longer leg's length.

  2. Find a prime number one greater than that even number, to be the hypotenuse.

  3. Calculate the third value to find the Pythagorean triple.

Pythagorean triples formula

Suppose you pick 12 as the length of a leg, knowing 13 is an adjacent prime number. Use these two as part of the Pythagorean Theorem to complete your primitive Pythagorean triple:

Subtract the value of b2{b}^{2} from both sides:

So our primitive Pythagorean triple is (5, 12, 13)! You can quickly generate iterations of that (none of which will be primitive) using the same multiplying method we used before: (10, 24, 26); (15, 36, 39); and so on.

Pythagorean triples examples

Generate a primitive Pythagorean triple based on the prime number 41. What even number is adjacent to and smaller than 41?

Pythagorean Triples Formula
Pythagorean Triples Formula
Get free estimates from geometry tutors near you.

Did you get a=9, b=40, and c=41? The primitive Pythagorean triple is (9, 40, 41).

Generating Pythagorean triples

You can come up with your own Pythagorean triples. Label two positive integers m and n, ensuring m>n. Then, for each side of a right triangle:

Generating Pythagorean Triples
Generating Pythagorean Triples

Formula for generating Pythagorean triples

Generate a set of Pythagorean triples for m=6 and n=5 using our formula:

Let's solve for a:

Now, let's solve for b:

And finally, c:

Our Pythagorean triple is (11, 60, 61). This method catches primitive and imprimitive Pythagorean triples.

Pythagorean triples list

Get free estimates from geometry tutors near you.

I know many of you are eager to get your hands on a Pythagorean Triples list already pre-computed for you. Here's a list of some common ones:

  • 3, 4, 5

  • 5, 12, 13

  • 6, 8, 10

  • 7, 24, 25

  • 8, 15, 17

  • 9, 12, 15

  • 9, 40, 41

  • 10, 24, 26

  • 12, 16, 20

  • 12, 35, 37

  • 14, 48, 50

  • 15, 20, 25

  • 15, 36, 39

  • 16, 30, 34

  • 18, 24, 30

  • 20, 21, 29

  • 21, 28, 35

  • 24, 32, 40

  • 27, 36, 45

  • 30, 40, 50

Lesson summary

By watching the video, reading the lesson, and studying the formulas, you have learned how to identify a Pythagorean triple, apply and use the Pythagorean Theorem (32 + 42 = 52), classify a Pythagorean triple as either primitive or imprimitive, and use both the Pythagorean Theorem and another method to find Pythagorean triples.

What you learned:

After reading the lesson and studying the drawings you will be able to:

  • Identify a Pythagorean triple

  • Apply the Pythagorean Theorem

  • Categorize a Pythagorean triple as either primitive or imprimitive (not primitive)

  • Use the Pythagorean Theorem and another method to find Pythagorean triples