Pythagorean Triples

A Pythagorean Triple is a set of three positive integers namely [latex]a, b[/latex] and [latex]c[/latex] that represent the sides of a right triangle such that the equation [latex]{a^2} + {b^2} = {c^2}[/latex] which is based on the Pythagorean Theorem is satisfied.

We can informally describe the equation of a Pythagorean Triple as:

[latex]\large{{a^2} + {b^2} = {c^2}}[/latex]

The sum of the squares of the two smaller positive integers is equal to the square of the largest positive integer.

The geometric interpretation of a Pythagorean Triple can be illustrated by a right triangle with sides [latex]a, b[/latex], and [latex]c[/latex].

  • The sides [latex]a[/latex] and [latex]b[/latex] are the legs of a right triangle while [latex]c[/latex] is the hypotenuse, the longest side of a right triangle.
  • In addition, side [latex]c[/latex] (hypotenuse) is opposite the 90-degree angle of the right triangle. Sides [latex]a[/latex] and [latex]b[/latex] can be any of two sides of a right triangle that are adjacent to side [latex]c[/latex].

Putting it together, we have the right triangle ABC and the equation that it must satisfy.

right triangle with sides a, b and c satisfies the equation a^2+b^2=c^2

From a right triangle perspective, a Pythagorean Triple can be interpreted as the sum of the squares of the shorter sides (legs) equals the square of the longest side (hypotenuse).

One important point, there is no rule or agreement among mathematicians on which one of the two legs, [latex]a[/latex] or [latex]b[/latex], is longer than the other.

The legs of a right triangle [latex]a[/latex] and [latex]b[/latex] can either be [latex]a > b[/latex] or [latex]a < b[/latex] which implies that [latex]a[/latex] is longer than [latex]b[/latex], or [latex]a[/latex] is shorter than [latex]b[/latex], respectively.

concur that side a is less than side b

However, let’s agree only in this lesson that side [latex]a[/latex] is the shorter leg which forces side [latex]b[/latex] to be the longer one. Therefore, [latex]a < b[/latex]. It just makes sense since [latex]a[/latex] comes before [latex]b[/latex] in the alphabet. 

Note: I intentionally leave the case where the legs of the right triangle are equal because no Pythagorean Triple exists when [latex]a=b[/latex].

Two Types or Kinds of Pythagorean Triple


Primitive Pythagorean Triple (known as “reduced triples”) is a set of three positive integers [latex]a[/latex], [latex]b[/latex], and [latex]c[/latex] with a GCF of [latex]1[/latex]. Plus, these three integers must satisfy the equation [latex]{a^2} + {b^2} = {c^2}[/latex].

Examples of Primitive Pythagorean Triples

  • [latex]3[/latex], [latex]4[/latex], and [latex]5[/latex] is a Primitive Pythagorean Triple because their GCF is [latex]1[/latex] and they satisfy the equation [latex]{a^2} + {b^2} = {c^2}[/latex].

[latex]{a^2} + {b^2} = {c^2}[/latex]

[latex]{3^2} + {4^2} = {5^2}[/latex]

[latex]{9} + {15} = {25}[/latex]

[latex]{25} = {25}[/latex]

  • [latex]5[/latex], [latex]12[/latex], and [latex]13[/latex] is also a Primitive Pythagorean Triple since their largest common divisor is [latex]1[/latex] which means that they are relatively prime. And, it also satisfies the required equation.

[latex]{a^2} + {b^2} = {c^2}[/latex]

[latex]{5^2} + {12^2} = {13^2}[/latex]

[latex]{25} + {144} = {169}[/latex]

[latex]{169} = {169}[/latex]


Non-primitive Pythagorean Triple (known as imprimitive Pythagorean Triple) is a Pythagorean Triple whose three sides of a right triangle namely: [latex]a[/latex], [latex]b[/latex] and [latex]c[/latex] have a GCF larger than [latex]1[/latex]. Or, the triplet [latex]a[/latex], [latex]b[/latex] and [latex]c[/latex] have a common factor other than [latex]1[/latex].

Examples of Non-primitive Pythagorean Triples

  • Let’s examine the triple [latex](6, 8, 10)[/latex]. The first thing that I observe is that the Greatest Common Factor is [latex]2[/latex]. It means that the three numbers have a common factor other than [latex]1[/latex]. If this triplet of integers satisfies the equation [latex]{a^2} + {b^2} = {c^2}[/latex], then it must be a Pythagorean triple that is non-primitive.

[latex]{a^2} + {b^2} = {c^2}[/latex]

[latex]{6^2} + {8^2} = {10^2}[/latex]

[latex]{36} + {64} = {100}[/latex]

[latex]{100} = {100}[/latex]

Yes, it checks! Therefore, [latex](6, 8, 10)[/latex] is a non-primitive Pythagorean triple.

  • How about the triple [latex]\left( {32,60,68} \right)[/latex]? By quick inspection, all numbers are even and thus they are divisible by 2. Since there is a divisor other than 1, this is a possible non-primitive Pythagorean triple. Check the values with the formula and indeed it works. Therefore [latex]\left( {32,60,68} \right)[/latex] is an example of a non-primitive Pythagorean triple.

[latex]{a^2} + {b^2} = {c^2}[/latex]

[latex]{32^2} + {60^2} = {68^2}[/latex]

[latex]{1,024} + {3,600} = {4,624}[/latex]

[latex]{4,624} = {4,624}[/latex]

That’s it! Remember, if a triplet of numbers satisfies the equation [latex]{a^2} + {b^2} = {c^2}[/latex] then it must either be a primitive or non-primitive Pythagorean triple.

You may also be interested in these related math lessons or tutorials:

Pythagorean Theorem

Pythagorean Theorem Practice Problems with Answers

Generating Pythagorean Triples

List of Pythagorean Triples