Pythagorean Triple Generator
Generate whole-number Pythagorean triples (a² + b² = c²) from two integers using Euclid's formula, and check whether a triple is primitive.
- Triple (a, b, c)
- 3, 4, 5
- Check: a² + b² = c²
- 25 = 25
- Is this a primitive triple?
- Yes
How it works
Euclid's formula generates every whole-number solution to a² + b² = c² from two positive integers m > n > 0: a = m² − n², b = 2mn, c = m² + n². This is the same method behind well-known triples like 3-4-5 (from m=2, n=1) and 5-12-13 (from m=3, n=2) — practical for things like squaring a corner in construction, since any multiple of 3-4-5 forms a right angle.
A triple is 'primitive' — its three sides share no common factor — exactly when m and n are coprime (their greatest common divisor is 1) and have opposite parity (one even, one odd). If m and n don't meet that condition, the result is a whole-number multiple of a smaller primitive triple, which this calculator identifies. The scale factor k multiplies all three sides by the same amount, which always produces another valid triple, since (ka)² + (kb)² = k²(a² + b²) = k²c² = (kc)².
FAQ
Why does the calculator require m to be greater than n?
Euclid's formula only produces a valid triple with positive, non-degenerate sides when m > n > 0 — if m equaled n, side a (m² − n²) would be zero, and if m were less than n, it would come out negative.
What does it mean for a triple to not be primitive?
A non-primitive triple is just a primitive triple with every side scaled up by the same whole number — 6-8-10 is 2× the primitive 3-4-5 triple, for example. It's still a perfectly valid right-triangle solution, just not the 'smallest' version of that particular shape.
Related calculators
- Percentage Calculator
- Quadratic Equation Solver
- GCD & LCM Calculator
- Circle Area & Circumference Calculator
- Right Triangle Calculator (Pythagorean Theorem)
- Ratio Simplifier
- Exponent & Root Calculator
- Oblique Triangle Solver (Law of Cosines)
- Distance, Midpoint & Slope Calculator
- Permutations & Combinations Calculator (nPr, nCr)
- Arithmetic & Geometric Sequence Calculator
- Regular Polygon Calculator
- Z-Score & Percentile Calculator
- Cubic Equation Solver
- Prime Factorization Calculator
- System of Linear Equations Solver (2 Equations)
- Half-Life Decay Calculator
- Vector Calculator (Dot Product, Cross Product, Angle)
- Ohm's Law Calculator
- Projectile Motion Calculator
- Matrix Determinant & Inverse Calculator (2x2 / 3x3)
- Ideal Gas Law Calculator (PV = nRT)
- Snell's Law Calculator (Refraction Angle)
- Wire Resistance Calculator
- Clock Angle Calculator
- Pythagorean Means Calculator (AM, GM, HM)
- Number Base Converter (Decimal to Binary, Octal, Hex)
- Dice Probability Calculator
- Binomial Probability Calculator
- Torque Calculator
- Law of Sines Triangle Solver
- Modular Exponentiation Calculator
- Simple Pendulum Period Calculator
- Kinetic Energy Calculator
- Complex Number Calculator
- Circular Sector & Arc Length Calculator
- System of 3 Linear Equations Solver
- Reynolds Number Calculator
- Coulomb's Law Calculator
- Speed of Sound in Air Calculator
- Thin Lens Equation Calculator
- Centripetal Force Calculator
- Resistors in Series and Parallel Calculator
- RC Circuit Time Constant Calculator
- Escape Velocity Calculator
- Doppler Effect Calculator
- Birthday Paradox Calculator
- Ellipse Area, Circumference & Eccentricity Calculator
- Hyperbola Calculator
- Hooke's Law Spring Calculator
- Molarity (Molar Concentration) Calculator
- Momentum & Impulse Calculator
- Kepler's Third Law Orbital Period Calculator
- Triangle Area from Coordinates Calculator
- Beer-Lambert Law Absorbance Calculator
- LC Circuit Resonant Frequency Calculator