Work out pythagorean triple instantly with clear inputs, formula shown and shareable results.
Euclid's formula generates every primitive Pythagorean triple. For integers m > n > 0 the sides are a = m² − n², b = 2mn and c = m² + n². Multiplying all three by k gives the non-primitive triples that share the same shape.
Euclid's formula
a = k(m² − n²), b = 2kmn, c = k(m² + n²)
When k = 1, m and n are coprime, and exactly one of them is even. Otherwise the triple is a multiple of a smaller one.
Every right triangle with whole-number sides does. Right triangles with irrational sides, such as 1-1-√2, do not.