Generating (7,24,25) with m=4, n=3
- Input
- m=4, n=3
- Expected output
- a=7, b=24, c=25
7²+24²=625=25²; the hypotenuse calculator confirms c=25 from legs 7 and 24.
pythagorean triples
A Pythagorean triple (a, b, c) satisfies a²+b²=c² with all three values positive integers. Euclid's formula generates any primitive triple from two numbers m and n: a=m²−n², b=2mn, c=m²+n², with m>n>0, coprime, and m−n odd.
7²+24²=625=25²; the hypotenuse calculator confirms c=25 from legs 7 and 24.
Not a primitive triple: all three sides share the factor 4 with the original (3,4,5) triple.
65=1²+8²=4²+7², and each sum of squares generates a different (m,n) pair in Euclid's formula.
In a right triangle, the square of the hypotenuse equals the sum of the squares of the legs: c² = a² + b². Attributed to Greek mathematician Pythagoras (~570–495 BC).
Enter the two smaller numbers as legs in the site's hypotenuse calculator: if the returned hypotenuse matches the third number exactly, with no decimal places, the three form a triple. For 7 and 24, for example, the result is exactly 25.
Every primitive triple comes from some coprime (m,n) pair with an odd difference. Non-primitive triples, however, are just integer multiples of a primitive one, like (12,16,20), which is (3,4,5) multiplied by 4, and do not correspond to their own (m,n) pair in the formula.
Yes. The best-known case is 65, the hypotenuse of both (16,63,65) and (33,56,65), because 65 can be written as the sum of two squares in two different ways (1²+8² and 4²+7²), and each way feeds a distinct (m,n) pair into Euclid's formula.
Fill in two of the three fields. The third will be calculated automatically.
All calculations stay in your browser. No data is sent to any server.