Skip to content
Contania

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

Result
5
Side found
Hypotenuse
Formula used
√(3² + 4²)
Calculation (a² + b² = c²)
StepDetail
Findingthe hypotenuse
Formula√(3² + 4²)
Result5
Advertisement

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