Pythagorean Theorem Calculator: Find the Missing Side of a Right Triangle
Find the hypotenuse or a missing leg of a right triangle
Try the calculator
Math runs in your browser. No sign-up.
Right-triangle hypotenuse
For a right triangle with legs 3 and 4, the hypotenuse is ٥.
The Pythagorean theorem states that in a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs. Knowing any two sides lets you find the third. It is one of the most widely used results in geometry, underpinning distance calculations in everything from carpentry to GPS.
This Pythagorean Theorem Calculator efficiently determines the length of the hypotenuse or a missing leg of any right-angled triangle. By inputting the lengths of any two sides, the tool applies the fundamental geometric principle a² + b² = c² to accurately compute the third side. Beyond just the missing side, it also calculates the triangle's area, offering a comprehensive solution for geometry problems, construction layouts, and any scenario requiring precise distance calculations in a 90-degree context. It's an essential utility for students, carpenters, engineers, and anyone needing to verify right angles or calculate Euclidean distances.
What is a pythagorean theorem?
Use this Pythagorean theorem calculator to find the missing side of any right triangle. Enter any two sides — the two legs, or one leg and the hypotenuse — and we apply a² + b² = c² to compute the third side, the area, and the perimeter. This fundamental geometric principle is essential for geometry homework, carpentry, construction, and any layout problem involving a 90-degree corner. The theorem is a cornerstone result in Euclidean geometry, taught in every secondary-school math curriculum worldwide, and its applications extend to fields like engineering, architecture, and even computer graphics for distance calculations.
The formula
- a, b — the two legs (the sides meeting at the right angle)
- c — the hypotenuse (the side opposite the right angle)
Source: Pythagorean Theorem (Euclidean Geometry).
Worked examples
1The classic 3-4-5 triangle
Legs of 3 and 4 produce a hypotenuse of exactly 5 — one of the small set of integer right triangles (Pythagorean triples). Carpenters and framers use the 3-4-5 rule to square corners: measure 3 units along one wall, 4 along the other, and if the diagonal is exactly 5 the corner is a true right angle.
2Diagonal of a 16:9 TV
A 16:9 TV where the screen is 55.3 inches wide by 31.1 inches tall has a diagonal of about 63.4 inches — hence a '65-inch class' rating (manufacturers round generously). Screen sizes are always measured on the diagonal.
3Squaring a foundation corner
A carpenter is building a rectangular deck and needs to ensure a corner is perfectly square. They measure 8 feet along one edge and 6 feet along the adjacent edge. The diagonal distance between these two points should be exactly 10 feet (since 8² + 6² = 64 + 36 = 100, and √100 = 10). If the diagonal is not 10 feet, the corner is not a true 90-degree angle.
How to use this calculator
- Leg a (default: 3)
- Leg b (default: 4)
- Read the result. Use the worked examples below to sanity-check against a known scenario.
Common mistakes and edge cases
Mixing up legs and hypotenuse. The hypotenuse is always the longest side and always opposite the right angle. If you know the hypotenuse and one leg, rearrange: leg = √(c² − a²).
Applying the formula to non-right triangles. For general triangles use the law of cosines: c² = a² + b² − 2ab·cos(C), where C is the angle opposite side c. The Pythagorean form is the special case where C = 90° and cos(C) = 0.
Forgetting the units. If the legs are in meters, the hypotenuse is in meters — not square meters. The squaring happens inside the formula; the square root takes you back out.
Frequently asked questions
Does the Pythagorean theorem work in 3D?
Can I use this for non-right triangles?
Why is it sometimes written a² + b² = c²?
Who was Pythagoras?
What are Pythagorean triples?
How is the Pythagorean theorem used in real life?
Can I find a leg if I know the hypotenuse and the other leg?
What is the converse of the Pythagorean theorem?
Pythagorean Theorem glossary
How we built this calculator
Methodology
The Pythagorean theorem was known to ancient Babylonian mathematicians a millennium before Pythagoras. It applies to any right triangle regardless of size or orientation, and it generalizes to higher dimensions — the distance between two points in 3D space uses the same formula with a third term.
This calculator was written by Numora math team and reviewed by Numora geometry team before publication. Both names link to full bios with verifiable credentials.
Sources & references
Every numeric assumption traces to a primary source.
- Euclid's Elements, Book I, Proposition 47INT
- Zhou Bi Suan JingINT
- National Council of Teachers of Mathematics (NCTM) StandardsUSA
- University of Cambridge, Department of Pure Mathematics and Mathematical StatisticsUK
- Numora Editorial Policy. numora.net/editorial-policy