Pythagorean Triple Calculator and List
This Pythagorean triple calculator checks whether three whole numbers fit a² + b² = c², finds triples that include a number you choose, and lists every triple up to a largest hypotenuse. It is great for geometry homework, building right angles with the 3-4-5 rule and spotting patterns.
Pythagorean Triple Calculator
Check, find and list triples, with steps.
How to use the Pythagorean triple calculator
- To check a triple, enter three whole numbers in any order and press Check.
- To find triples, enter one number and press Find triples; it is tested both as a leg and as the hypotenuse.
- To list primitive triples, enter the largest hypotenuse and press List triples.
- Read the steps and the table under the tool.
How it works
Checking sorts the numbers, compares a² + b² with c² and uses the greatest common divisor to tell primitive from non-primitive triples. Finding uses the factorization n² = (c − b)(c + b) for every factor pair of the same parity when n is a leg, and tests a² + b² = n² when n is the hypotenuse. Listing uses Euclid’s formula a = m² − n², b = 2mn, c = m² + n² with m and n coprime and of opposite parity, which produces every primitive triple exactly once.
Example
3, 4, 5: 9 + 16 = 25 = 5², a primitive triple. The number 12 appears in four triples: (5, 12, 13), (9, 12, 15), (12, 16, 20) and (12, 35, 37). There are 16 primitive triples with c up to 100, starting (3, 4, 5), (5, 12, 13), (8, 15, 17) and (7, 24, 25).
Frequently asked questions
What is a Pythagorean triple?
Three positive whole numbers a, b and c with a² + b² = c², such as 3, 4, 5. They are the sides of a right triangle with whole-number lengths.
What is a primitive Pythagorean triple?
A triple whose three numbers have no common factor greater than 1. (3, 4, 5) is primitive; (6, 8, 10) is 2 × (3, 4, 5) and is not.
What is Euclid’s formula?
For whole numbers m larger than n, a = m² − n², b = 2mn and c = m² + n² form a triple. With m and n coprime and not both odd, it gives every primitive triple.
Which numbers are in no triple?
Only 1 and 2. Every whole number from 3 up is a leg of at least one Pythagorean triple.
See also: Pythagorean Theorem Calculator, Right Triangle Calculator.
Check and list Pythagorean triples
How to use it
- To check, enter a, b and c.
- To find triples for a number, enter it in the Number box.
- To list triples, set the largest hypotenuse c.
- Read the results, marked primitive or multiple.
More questions
What are the most common Pythagorean triples?
3-4-5, 5-12-13, 8-15-17 and 7-24-25.
What is a primitive triple?
One where a, b and c share no common factor. 3-4-5 is primitive, and 6-8-10 is a multiple of it.
How do builders use 3-4-5?
Measure 3 ft on one side and 4 ft on the other. If the diagonal is 5 ft, the corner is square.
Related tools: Pythagorean Theorem Calculator, Hypotenuse Calculator (Reverse Solve), Right Triangle Calculator.
A 5 by 12 frame and triples containing 12
Use Check to test three numbers, Find to list every triple that contains a number, or List to show all primitive triples up to a limit. To find the straight-line distance between two points on a grid, use the Distance Calculator.
Worked example: a frame 5 feet by 12 feet should have a 13-foot diagonal, because 25 + 144 = 169. The tool confirms 5, 12, 13 is a primitive triple. Four triples contain 12: 5-12-13, 9-12-15, 12-16-20 and 12-35-37.
More answers
Which Pythagorean triples contain the number 12?
There are four: 5-12-13, 9-12-15, 12-16-20 and 12-35-37. Two of them (5-12-13 and 12-35-37) are primitive, and the others are multiples of 3-4-5.
How many primitive triples have a hypotenuse of 30 or less?
Five: 3-4-5, 5-12-13, 8-15-17, 7-24-25 and 20-21-29. The List option shows each one with its Euclid pair m and n.