Active experiment

Pythagorean Triples Calculator

Test or generate integer right-triangle triples.

Step 01 · Set up

Fill in the mathematics

Replace the highlighted values below. Tab moves naturally through the equation.

Step 03 · Answer

Ready when you are

Substitution & process

Enter the known values, then select Calculate. Your working steps will appear here.

Understand the method

What does the pythagorean triples calculation mean?

A Pythagorean triple is a set of three positive integers satisfying a² + b² = c², so the lengths form a right triangle. Triples are primitive when the three numbers share no common factor; every other triple is a whole-number multiple of a primitive one.

When to use it

Use it to test whether integer measurements form a right angle, or to construct exact right triangles without decimals.

Formula

a2+b2=c2

In plain text: a² + b² = c²

Variables and units

SymbolMeaning
a, bthe legs
cthe hypotenuse
gcd1 for a primitive triple

How to use the calculator

  1. Enter each known value in its labeled field.
  2. Select the answer precision you want.
  3. Choose Calculate answer to see the result and working.

Worked example

3-4-5 is primitive because 9 + 16 = 25. Then 5-12-13 and 8-15-17 are also primitive, while 6-8-10 is a doubling of 3-4-5.

Common mistakes

  • The hypotenuse must be the largest value.
  • Any multiple of a triple is also a triple but not primitive.
  • Many valid right triangles have non-integer sides, so no triple is expected to exist.

Interpret the result

A triple confirms a right angle exactly, which is why these ratios are used to lay out square corners.