Find, verify, and generate Pythagorean triples
Last updated: March 2026
A Pythagorean triple is a set of three positive integers a, b, and c that satisfy a² + b² = c². The classic example is (3, 4, 5).
Primitive triples have greatest common divisor 1. Non-primitive triples are multiples of primitive ones. Euclid's formula (m² − n², 2mn, m² + n²) generates primitive triples when m and n are coprime and of opposite parity.
Select Find (list all triples up to a maximum), Verify (check if numbers form a triple), or Generate (use Euclid’s formula).
Why: Different modes serve different purposes. Finding shows available triples for reference, verification tests validity, and generation teaches Euclid’s mathematical method.
Depending on mode: Find needs a maximum hypotenuse, Verify needs three side lengths, or Generate needs integers m and n.
Why: Each mode requires specific inputs because they solve different problems. Invalid inputs (like m ≤ n in Generate mode) won’t produce meaningful results.
Press Calculate to run the computation. The calculator will find, verify, or generate Pythagorean triples based on your inputs.
Why: Manual triple calculation requires advanced number theory (GCD checks, Euclid’s formula). The calculator handles these complex operations instantly and accurately.
Check whether triples are primitive (no common factors) or multiples. Review the equation a² + b² = c² shown for each result.
Why: Primitive and non-primitive triples have different applications. Knowing whether a triple is primitive helps in mathematical analysis and construction applications.
Use verified triples for accurate right-angle construction, surveying layouts, geometry proofs, or educational demonstrations of the Pythagorean theorem.
Why: Pythagorean triples provide exact integer solutions perfect for practical construction—no rounding or approximation errors when using whole numbers.
A surveyor needs to establish a perfect right angle for a 30-meter by 40-meter building foundation. Rather than using expensive surveying equipment, they decide to use the Pythagorean triple (30, 40, 50) to verify alignment. They measure 30 meters along one edge and 40 meters along the perpendicular edge, then verify the diagonal.
The surveyor chooses a Pythagorean triple that matches the required building dimensions. The 3-4-5 triple scaled by 10 gives (30, 40, 50).
Carefully measure 30 meters along one edge using a measuring tape or surveying wheel. Mark both endpoints with surveying stakes.
From the corner, measure 40 meters perpendicular to the first side. Use a simple framing square or transit to ensure approximate perpendicularity.
Using the Pythagorean theorem, if the two perpendicular sides are exactly 30 m and 40 m, the diagonal MUST be exactly 50 m.
Use a long tape measure or the surveying wheel to measure the actual distance between the starting point and the 40 m mark (the diagonal).
Verify: 30² + 40² = 900 + 1600 = 2500 = 50² ✓ This is a perfect Pythagorean triple, and it's a multiple of (3, 4, 5) divided by 10.
If the measured diagonal is exactly 50 meters, the corner is perfectly 90°. If it measures 49 or 51 meters, the corner is off-square and needs adjustment. The (30, 40, 50) Pythagorean triple provides an exact integer solution that eliminates rounding errors. This technique has been used by construction workers and surveyors for centuries because it works perfectly every time when you have valid Pythagorean integer values.
Primitive triples have no common factor greater than 1. Non-primitive triples are multiples of primitive ones.
For integers m > n > 0, it gives a = m² − n², b = 2mn, and c = m² + n².
(3, 4, 5) is the smallest positive integer example.
Yes, but a Pythagorean triple specifically means positive integers.
Yes. Euclid's formula produces infinitely many primitive triples.
They provide a simple way to create exact right angles without measuring degrees.
Related Tools
Classify triangles.
Calculate equilateral triangle properties.
Calculate area using Heron's formula.
Calculate hypotenuse.
Calculate isosceles triangle properties.
Calculate triangle orthocenter.