Pythagorean Theorem Calculator
The Pythagorean theorem says that in a right triangle a² + b² = c², where c is the hypotenuse. For legs 3 and 4 the hypotenuse is 5, the area is 6, the perimeter is 12 and the acute angles are 36.87° and 53.13°.
Last updated · By S. Dilshan · Runs in your browser, nothing is uploaded
Step-by-Step Solution
What Is the Pythagorean Theorem?
The Pythagorean theorem is one of the most famous results in mathematics. It states that in any right-angled triangle, the square of the longest side (the hypotenuse, opposite the right angle) equals the sum of the squares of the other two sides (the legs). Written as a formula: a² + b² = c².
It lets you find the third side whenever you know two. That makes it the basis of distance calculations, ladders and ramps, screen sizes, surveying and navigation. It also works in reverse: if three sides satisfy a² + b² = c², the triangle must contain a right angle, which is how builders check that a corner is square.
Common Pythagorean Triples
| a | b | c | Check |
|---|---|---|---|
| 3 | 4 | 5 | 9 + 16 = 25 |
| 5 | 12 | 13 | 25 + 144 = 169 |
| 8 | 15 | 17 | 64 + 225 = 289 |
| 7 | 24 | 25 | 49 + 576 = 625 |
| 6 | 8 | 10 | Double the 3-4-5 |
Pythagorean Theorem Formulas
aandbare the two legs, the sides that form the right angle.cis the hypotenuse, always the longest side.- To find the hypotenuse, add the squares of the legs and take the square root.
- To find a leg, subtract the square of the known leg from the square of the hypotenuse, then take the square root.
- Once all three sides are known, the area is ½ab and the acute angles come from trigonometry: A = arctan(a ÷ b).
For other combinations of known values, such as a side and an angle, use the right triangle calculator. To take square roots on their own, see the square root calculator.
How Is It Calculated? Worked Examples
Finding the Hypotenuse: Legs 3 and 4
- a² + b² = 9 + 16 = 25.
- c = √25 = 5.
- Area = ½ × 3 × 4 = 6 and perimeter = 3 + 4 + 5 = 12.
- Acute angles: arctan(3 ÷ 4) = 36.87° and 90° − 36.87° = 53.13°.
Finding a Leg: c = 13, b = 12
a = √(169 − 144) = √25 = 5. The area is 30, the perimeter 30 and the acute angles 22.62° and 67.38°.
A Ladder Against a Wall
A 5 m ladder has its foot 1.5 m from the wall. How high does it reach? Height = √(25 − 2.25) = √22.75 = 4.77 m. The ladder makes an angle of about 72.5° with the ground.
Screen Diagonals
A screen 48 inches wide and 27 inches tall has a diagonal of √(2,304 + 729) = √3,033 ≈ 55.07 inches, which is sold as a “55-inch” TV.
The Isosceles Right Triangle
With both legs equal to 1, the hypotenuse is √2 ≈ 1.4142, the length of the diagonal of a unit square.
Distance Between Points
The theorem is the distance formula in disguise. Between (1, 2) and (7, 10) the horizontal and vertical differences are 6 and 8, so the distance is √(36 + 64) = 10. In three dimensions, add a third term: the distance from the origin to (2, 3, 6) is √(4 + 9 + 36) = 7.
How to Use This Pythagorean Theorem Calculator
- Choose what to find: the hypotenuse c, leg a or leg b.
- Enter the two known sides. The hypotenuse must be longer than either leg.
- Read the missing side, the area, the perimeter and both acute angles.
- Open the steps to see the squares and the root.
Where the Pythagorean Theorem Is Used
- Construction and carpentry: checking square corners with the 3-4-5 rule, roof rafters and stair stringers.
- Navigation and mapping: straight-line distance between two points, d = √(Δx² + Δy²).
- Engineering and physics: resolving vectors into components.
- Computer graphics and games: measuring distances between objects on screen.
- Everyday life: ladders, ramps, TV sizes and shortcuts across a rectangular field.
What Are the Most Common Mistakes With the Pythagorean Theorem Calculator?
- Using it on triangles without a right angle. For other triangles use the law of cosines.
- Mixing up the hypotenuse. It is the side opposite the right angle and the longest side.
- Adding when you should subtract. To find a leg, subtract: c² − b².
- Forgetting the square root. a² + b² gives c², not c.
- A hypotenuse shorter than a leg. That is impossible and means a data entry error.
- Mixed units. Both sides must be in the same unit.
Where Can You Verify These Formulas?
The definitions and formulas on this page follow standard references. Check them against these sources:
Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.
Frequently Asked Questions
What is the Pythagorean theorem?
In a right triangle, a² + b² = c², where c is the hypotenuse. It relates the three sides of any right-angled triangle.
How do I find the hypotenuse?
Square both legs, add them and take the square root. For legs 3 and 4: √(9 + 16) = 5.
How do I find a missing leg?
Subtract the square of the known leg from the square of the hypotenuse and take the square root: a = √(c² − b²).
What is a Pythagorean triple?
A set of three whole numbers that satisfy a² + b² = c², such as 3-4-5, 5-12-13 and 8-15-17.
Does the theorem work for triangles without a right angle?
No. For general triangles, the law of cosines c² = a² + b² − 2ab cos C applies. The Pythagorean theorem is the special case C = 90°.
How can I use it to check a right angle?
Measure three sides. If a² + b² = c² for the longest side c, the corner is exactly 90°. Builders use 3-4-5 or 6-8-10 on site.