Pythagorean Theorem Calculator — Overview
The Pythagorean theorem is one of the most fundamental relationships in mathematics and geometry. It states that in any right triangle (triangle with 90° angle), the square of the hypotenuse equals the sum of squares of the other two sides: a² + b² = c².
Key Components of a Right Triangle:
- Leg a: One of the two sides forming the right angle.
- Leg b: The other side forming the right angle.
- Hypotenuse (c): The longest side, opposite the right angle. Always the longest.
- Right Angle: The 90° angle marked with a small square.
Applications: Construction (measuring diagonals), surveying (distance calculations), navigation (GPS), architecture (roof pitches), ladder safety, and countless engineering problems.
This calculator handles: (1) finding hypotenuse from two legs, (2) finding missing leg given hypotenuse and one leg, (3) verifying if sides form a right triangle, (4) calculating perimeter and area, and (5) visualizing triangles.
Pythagorean Theorem Calculator
What Is the Pythagorean Theorem? — Definition & History
Definition: In a right triangle, the square of the hypotenuse (longest side) equals the sum of the squares of the other two sides. Mathematically: a² + b² = c²
History: Named after ancient Greek mathematician Pythagoras (569-475 BC), though the relationship was known to Babylonians and other ancient civilizations. One of the most famous theorems in mathematics with hundreds of known proofs.
Geometric Interpretation: If you draw squares on each side of a right triangle, the area of the square on the hypotenuse equals the sum of the areas of the squares on the two legs. This visual representation helps understand why the relationship works.
Key Requirements:
- Must be a right triangle (one angle exactly 90°)
- c (hypotenuse) must be the longest side
- a and b are the two legs forming the right angle
- All sides must be positive numbers
Pythagorean Theorem Formulas — Explained
Finding Hypotenuse (c)
Example: If a = 3 and b = 4, then c = √(9 + 16) = √25 = 5
Finding Leg A
Example: If c = 5 and b = 4, then a = √(25 - 16) = √9 = 3
Finding Leg B
Example: If c = 5 and a = 3, then b = √(25 - 9) = √16 = 4
Verifying Right Triangle
Example: 3² + 4² = 9 + 16 = 25 = 5² ✓ (Yes, right triangle)
Perimeter of Right Triangle
Area of Right Triangle
Example: Area = (3 × 4) ÷ 2 = 6 square units
Calculate Pythagorean Theorem Manually — Step by Step
Example 1: Find Hypotenuse if a = 5 and b = 12
Step 1: Write the Formula
c = √(a² + b²)
Step 2: Square Both Legs
a² = 5² = 25
b² = 12² = 144
Step 3: Add the Squares
a² + b² = 25 + 144 = 169
Step 4: Take Square Root
c = √169 = 13
Step 5: State Result
Hypotenuse = 13 units
Example 2: Find Missing Leg if c = 13 and a = 5
Step 1: Write the Formula
b = √(c² - a²)
Step 2: Square Known Values
c² = 13² = 169
a² = 5² = 25
Step 3: Subtract
c² - a² = 169 - 25 = 144
Step 4: Take Square Root
b = √144 = 12
Step 5: State Result
Missing Leg = 12 units
Pythagorean Triples — Common Right Triangle Sides
A Pythagorean triple is a set of three positive integers a, b, c that satisfy a² + b² = c². These are particularly useful because they produce whole number solutions without needing to calculate square roots.
Common Pythagorean Triples
| Leg A | Leg B | Hypotenuse | Category |
|---|---|---|---|
| 3 | 4 | 5 | Most Common |
| 5 | 12 | 13 | Common |
| 8 | 15 | 17 | Common |
| 7 | 24 | 25 | Common |
| 6 | 8 | 10 | Multiple of 3-4-5 |
| 9 | 12 | 15 | Multiple of 3-4-5 |
| 20 | 21 | 29 | Common |
| 9 | 40 | 41 | Common |
Note: Any multiple of a Pythagorean triple is also a triple. For example, the 3-4-5 triple can be multiplied by any integer: 6-8-10, 9-12-15, 12-16-20, etc., all form right triangles.
Real-World Pythagorean Theorem Applications
Example A: Ladder Safety
A 13-foot ladder is leaned against a wall. For safety, the base should be 5 feet from wall. How high does it reach?
- c = 13 (ladder length), a = 5 (distance from wall)
- b = √(13² - 5²) = √(169 - 25) = √144 = 12 feet
- The ladder reaches 12 feet high on the wall.
Example B: Construction - Square Foundation
Builders need to check if a building foundation is square (all 90° angles). Diagonal should be exactly √(length² + width²).
- If building is 30 feet × 40 feet, diagonal should be √(900 + 1600) = √2500 = 50 feet
- If measured diagonal = 50 feet, the corners are square ✓
Example C: TV Screen Diagonal
A TV screen is 24 inches wide and 14 inches tall. What's the diagonal (screen size)?
- c = √(24² + 14²) = √(576 + 196) = √772 ≈ 27.8 inches
- So it's roughly a 28-inch TV screen.
Example D: Navigation - Shortest Route
A ship needs to reach a destination. Going east 3 km, then north 4 km. Straight-line distance?
- c = √(3² + 4²) = √(9 + 16) = √25 = 5 km
- Direct route is 5 km (faster than 7 km total distance).
Example E: Surveying - Distance Across River
Surveyors measure a right triangle to find distance across a river. Two legs: 40 meters and 30 meters. What's the direct distance?
- c = √(40² + 30²) = √(1600 + 900) = √2500 = 50 meters
- River width is 50 meters at that point.
Special Right Triangles — 45-45-90 and 30-60-90
45-45-90 Triangle (Isosceles Right Triangle)
Two legs are equal length. If legs = 1, hypotenuse = √2 ≈ 1.414
- Ratio: 1 : 1 : √2
- If legs = a, then hypotenuse = a√2
- If hypotenuse = h, then legs = h/√2
- Example: legs = 5, hypotenuse = 5√2 ≈ 7.07
30-60-90 Triangle
Angles are 30°, 60°, and 90°. Sides have special ratio.
- Ratio: 1 : √3 : 2
- If short leg = a, then long leg = a√3, hypotenuse = 2a
- If hypotenuse = h, then short leg = h/2, long leg = h√3/2
- Example: short leg = 3, long leg = 3√3 ≈ 5.196, hypotenuse = 6
These special triangles appear frequently in construction, engineering, and geometry because they have predictable ratios, making calculations easier.
Common Pythagorean Theorem Mistakes
Mistake 1: Using Non-Right Triangles
❌ Wrong: Using a² + b² = c² on any triangle
✅ Correct: Only works for RIGHT triangles (one 90° angle)
Mistake 2: Confusing Which Side Is Hypotenuse
❌ Wrong: Treating the smallest side as hypotenuse
✅ Correct: Hypotenuse is ALWAYS the longest side (opposite right angle)
Mistake 3: Forgetting Square Root When Finding Hypotenuse
❌ Wrong: c = 3² + 4² = 9 + 16 = 25 (forgot √)
✅ Correct: c = √(3² + 4²) = √25 = 5
Mistake 4: Wrong Order with Negative Result
❌ Wrong: a = √(9 - 25) = √(-16) = undefined (subtracted wrong way)
✅ Correct: a = √(25 - 9) = √16 = 4 (larger number minus smaller)
Mistake 5: Assuming Any Three Numbers Form Right Triangle
❌ Wrong: 2, 3, 4 form right triangle (2² + 3² = 4 + 9 = 13 ≠ 16 = 4²)
✅ Correct: Check a² + b² = c² first to verify
Glossary
- Right Triangle: Triangle with one 90-degree angle.
- Hypotenuse: The longest side of a right triangle, opposite the right angle.
- Legs: The two sides that form the right angle (sides a and b).
- Pythagorean Theorem: a² + b² = c² relationship in right triangles.
- Pythagorean Triple: Set of three integers satisfying a² + b² = c².
- Right Angle: 90-degree angle, marked with small square.
- Adjacent: Side next to an angle (not opposite).
- Opposite: Side across from an angle.
- Square Root: The inverse of squaring; √25 = 5 because 5² = 25.
Frequently Asked Questions
Q: Why does a² + b² = c² work?
The relationship is proven geometrically. If you draw squares on each side of a right triangle, the area of the square on the hypotenuse (c²) equals the sum of areas on the other two squares (a² + b²). This is the core insight.
Q: Does Pythagorean theorem work for non-right triangles?
No, it only applies to right triangles. For other triangles, use the Law of Cosines: c² = a² + b² - 2ab·cos(C).
Q: What if I get a negative number under the square root?
This means the three sides cannot form a valid right triangle. You may have the formula backwards (try subtracting the other way) or the sides don't satisfy the right triangle requirement.
Q: How do I know which side is the hypotenuse?
The hypotenuse is always the LONGEST side in a right triangle, located opposite the 90-degree angle.
Q: Can sides be negative or zero?
No, triangle sides must be positive numbers. Negative or zero values don't make physical sense for real triangles.
Q: Are all Pythagorean triples multiples of 3-4-5?
No. While many are multiples of small triples, infinitely many primitive Pythagorean triples (not multiples of smaller ones) exist, like 5-12-13, 8-15-17, etc.
Related Calculators
- Triangle Area Calculator — Calculate area of any triangle
- Circle Area Calculator — Related geometry concepts
- Rectangle Area Calculator — Diagonal calculations
- Distance Calculator — Coordinate geometry using Pythagorean theorem
- Exponent Calculator — Square and square root calculations