📐 Pythagorean Theorem Calculator
Enter any two sides of a right triangle to instantly find the third side using a² + b² = c² - with a full step-by-step solution and an interactive visual diagram. Check if three numbers form a Pythagorean triple, generate triples with Euclid's formula, and calculate the diagonal of a 3D box.
📐 Pythagorean Theorem Calculator
🔢 Pythagorean Triples
Pythagorean triples are sets of three integers (a, b, c) where a² + b² = c². Click any triple to calculate it.
🔬 Generate Triples
Using Euclid's formula: choose m > n > 0 to generate a primitive triple.
🌍 Real-World Applications
📐 Pythagorean Theorem - Full Guide
The Theorem
In a right triangle, the square of the hypotenuse equals the sum of squares of the other two sides.
Where: a, b = legs (shorter sides)
c = hypotenuse (longest side, opposite 90°)
Finding c: c = √(a² + b²)
Finding a: a = √(c² - b²)
Finding b: b = √(c² - a²)
Euclid's Formula for Pythagorean Triples
For any m > n > 0, this generates a Pythagorean triple:
b = 2mn
c = m² + n²
Example: m=2, n=1
a = 4-1 = 3, b = 4, c = 4+1 = 5
→ (3,4,5) ✓ → 9+16=25
Distance Formula (Pythagorean Theorem in 2D)
This IS the Pythagorean theorem! The horizontal
difference is leg a, vertical difference is leg b,
and the straight-line distance is hypotenuse c.
Example: From (1,2) to (4,6):
= √((4-1)² + (6-2)²) = √(9+16) = √25 = 5
3D Pythagorean Theorem
Diagonal = √(l² + w² + h²)
Example: 3×4×5 box:
Diagonal = √(9+16+25) = √50 = 5√2 ≈ 7.07
Right Triangle Trigonometry
cos(A) = b/c = adjacent/hypotenuse
tan(A) = a/b = opposite/adjacent
Pythagorean identity: sin²(A) + cos²(A) = 1
(This is just a²/c² + b²/c² = (a²+b²)/c² = c²/c² = 1)
Who Was Pythagoras?
philosopher and mathematician. However, the theorem
was known to Babylonians ~1000 years earlier!
The Plimpton 322 clay tablet (1800 BCE) lists
15 Pythagorean triples, including 13320-13500-18541.
Egyptian rope-stretchers used the 3-4-5 triple
to create right angles for pyramid construction.
❓ Frequently Asked Questions
Pythagorean Theorem Calculator - Understanding a² + b² = c²
The Pythagorean theorem is one of the oldest and most widely applied results in mathematics - documented in ancient Egypt, Babylon, India, and China, and formally proven by the ancient Greeks. Despite being over 2,500 years old, it remains in daily use everywhere from construction sites to satellite navigation systems.
Common Pythagorean Triples - The Numbers That Always Work
Pythagorean triples are sets of positive integers (a, b, c) where a² + b² = c² exactly - no decimals, perfect whole numbers. They're used in construction and engineering where exact integer measurements are convenient:
Primitive Triples (Cannot Be Reduced)
- 3, 4, 5 - 9 + 16 = 25 ✓ Most famous and widely used
- 5, 12, 13 - 25 + 144 = 169 ✓
- 8, 15, 17 - 64 + 225 = 289 ✓
- 7, 24, 25 - 49 + 576 = 625 ✓
- 20, 21, 29 - 400 + 441 = 841 ✓
- 9, 40, 41 - 81 + 1600 = 1681 ✓
Multiples of Primitive Triples
- 6, 8, 10 - (3,4,5) × 2 ✓
- 9, 12, 15 - (3,4,5) × 3 ✓
- 10, 24, 26 - (5,12,13) × 2 ✓
- 15, 36, 39 - (5,12,13) × 3 ✓
- Any multiple of a valid triple is also a triple
- The (3,4,5) ratio is used universally by builders
The 3-4-5 Method in Construction - How Builders Use the Theorem
The most practical application of Pythagorean triples is checking that corners are perfectly square (exactly 90°) during construction. The method:
- From the corner, measure 3 units along one wall and mark the point
- Measure 4 units along the other wall and mark that point
- Measure the diagonal between the two marks
- If the diagonal is exactly 5 units, the corner is perfectly square
- If the diagonal is less than 5, the angle is less than 90°. If more than 5, the angle is greater than 90°.
Builders scale this up: 6-8-10, 9-12-15, or even 30-40-50 for large structures. The ratio 3:4:5 always guarantees a right angle regardless of the unit used - metres, feet, or anything else.
Beyond 2D - The 3D Space Diagonal
The Pythagorean theorem extends to three dimensions for calculating the space diagonal of a rectangular box. If a box has dimensions length (l), width (w), and height (h):
Space diagonal = √(l² + w² + h²)
This is derived by applying the theorem twice: the base diagonal = √(l² + w²), then the space diagonal = √(base diagonal² + h²) = √(l² + w² + h²). This is used in shipping (maximum rod length that fits in a box), architecture (room diagonal for acoustics), and computer graphics (bounding box calculations).
Proofs of the Pythagorean Theorem - There Are Over 370
The Pythagorean theorem has more known proofs than any other mathematical theorem - over 370 documented proofs, including one by US President James Garfield in 1876. They range from simple geometric rearrangements to algebraic proofs to proofs using calculus. The most visually intuitive: arrange four identical right triangles around a square, and the remaining area in two different configurations both equal the areas of the squares on the legs - proving a² + b² = c².