Pythagorean Theorem Calculator
The Pythagorean theorem links the three sides of a right triangle: a² + b² = c². Give it the two sides you know and it returns the missing hypotenuse or leg.
Your numbers
Result
- Side found
- Hypotenuse
- Formula used
- √(3² + 4²)
| Step | Detail |
|---|---|
| Finding | the hypotenuse |
| Formula | √(3² + 4²) |
| Result | 5 |
How the theorem works
In a right triangle, the square of the longest side (the hypotenuse, opposite the right angle) equals the sum of the squares of the other two sides: a² + b² = c². To find the hypotenuse, take √(a² + b²); legs 3 and 4 give √(9 + 16) = 5 — the classic 3-4-5 triangle.
Finding a missing leg
Rearrange the formula: a leg is √(c² − a²). If the hypotenuse is 5 and one leg is 3, the other is √(25 − 9) = 4. Switch the mode above to solve this way. The hypotenuse must always be the largest side, or the triangle cannot be right-angled.
Where it is used
Beyond the classroom, it is how you check a corner is square in construction (a 3-4-5 triangle guarantees a right angle), find a straight-line distance between two points, size a TV or screen diagonal, and cut rafters and braces. It only holds for right triangles.
Frequently asked questions
Sources
Embed this calculator
Copy the code and paste it into your site or blog. Credit with a link back to Contania is included, and the height adjusts itself.
<iframe src="https://contania.app/embed/math/pythagorean-theorem" title="Pythagorean Theorem Calculator (a² + b² = c²)" width="100%" height="720" loading="lazy" style="border:1px solid #e5e0d8;border-radius:12px;max-width:640px"></iframe>
<script>window.addEventListener("message",function(e){if(e.data&&e.data.type==="contania:embed-height"){var f=document.querySelector('iframe[src="https://contania.app/embed/math/pythagorean-theorem"]');if(f){f.style.height=e.data.height+"px"}}});</script>Related calculators
Area
Calculate the area of a rectangle, square, triangle, circle or trapezoid. Pick the shape and enter its measurements to get the area and the formula used.
CalculateMathSquare Root
Find the square root of any number, plus the cube root and the square. See whether the number is a perfect square.
CalculateMathVolume
Calculate the volume of a cube, box, sphere, cylinder, cone or pyramid. Pick the solid and enter its measurements to get the volume and the formula used.
CalculateMathQuadratic Equation
Solve quadratic equations ax² + bx + c = 0 with the quadratic formula. Enter the coefficients to see the discriminant and the roots.
CalculateMathRatio
Simplify a ratio to its lowest terms, or solve a proportion to find a missing value. Enter two numbers to reduce A:B, or add a third to solve A:B = C:?.
CalculateMathRule of Three
Solve the rule of three: enter three known values and find the fourth. Supports direct and inverse proportion with the step-by-step work.
Calculate