Pythagorean Triples Calculator

Test three numbers, or list the Pythagorean triples up to a size.

A whole number of 1 or more.

A whole number of 1 or more.

The largest, which would be the hypotenuse.

Try

Result

You entered32+42=?523^2 + 4^2 \overset{?}{=} 5^2

Yes, 32+42=52 (primitive)\displaystyle \text{Yes, } 3^2 + 4^2 = 5^2 \ \text{(primitive)}

Common factor

1\displaystyle 1

Primitive triple

(3,4,5)\displaystyle \left(3, 4, 5\right)
Show the work
  1. Converse of the Pythagorean theorem

    Three whole numbers aa, bb and cc make a Pythagorean triple when the squares of the two shorter ones add up to the square of the longest. Here a=3a = 3, b=4b = 4 and c=5c = 5, and a triangle with these sides has a right angle.

    Using a2+b2=c2a^2 + b^2 = c^2

    32+42=9+16=25=52\begin{aligned} 3^2 + 4^2 &= 9 + 16 \\ &= 25 \\ &= 5^2 \end{aligned}
  2. Primitive triples

    A triple is primitive when the three numbers have no common factor. These have none, so the triple is not a multiple of a smaller one.

    Using gcd⁡(a,b,c)=1\gcd(a, b, c) = 1

    gcd⁡(3,4,5)=1\gcd(3, 4, 5) = 1
  3. Result

    So 33, 44, 55 is a Pythagorean triple (primitive).

Worked examples