Pythagorean Theorem
Free online pythagorean theorem. Solve a² + b² = c² with all variations. Accurate and easy to use.
3² + 4² = 5²
c = 5.0000
Step-by-step
1. c² = a² + b²
2. c² = 3² + 4²
3. c² = 9 + 16
4. c² = 25
5. c = √25
6. c = 5.0000
Area
6.0000
Perimeter
12.0000
Triangle inequality: ✓ Valid triangle
Right triangle: ✓ Yes
Embed this tool
Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.
<iframe src="https://www.theutilbox.org/embed/pythagorean-calculator" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free Pythagorean Theorem tool from The Util Box"></iframe> <!-- Free tool by The Util Box — https://www.theutilbox.org/tools/pythagorean-calculator --> <a href="https://www.theutilbox.org/tools/pythagorean-calculator">Pythagorean Theorem by The Util Box</a>
Frequently Asked Questions about Pythagorean Theorem
Pythagorean Calculator — Solve Any Side of a Right Triangle
This Pythagorean calculator finds the missing side of a right-angled triangle. Choose whether you know the two legs or a leg and the hypotenuse, and the tool gives you the third side with the substitution written out line by line.
It also reports the area from Heron's formula and the perimeter, and checks that the three sides actually form a triangle and that the angle really is a right one.
The Theorem
In a right-angled triangle, the square of the hypotenuse equals the sum of the squares of the two legs:
a² + b² = c²
Solving for the hypotenuse means adding and taking a square root; solving for a leg means subtracting the other leg's square and taking a square root. The step panel shows every one of those stages, which is usually the part students need to see.
The area is computed with Heron's formula rather than the simpler half × base × height, so it works from the
three sides directly: with semi-perimeter s, the area is
√(s(s − a)(s − b)(s − c)).
Honest Limits
- Solving for a leg with too short a hypotenuse gives NaN. If
c is smaller than b there is no real answer, and the tool prints
NaNrather than explaining why. - The theorem is assumed, not verified. The tool applies a² + b² = c² to whatever you enter; it does not check that your triangle is right-angled until after the calculation, and the right-angle check is a separate line below the result.
- The perimeter is shown even for an impossible triangle, while the area correctly reads N/A.
- No unit handling, so the sides must all be in the same unit.
Related Calculators
- Triangle Solver — any triangle from any three measurements, not just right-angled ones.
- Unit Circle Calculator — the trigonometric functions this theorem comes from.
- Circle Calculator — radius, circumference and area.
- Surface Area Calculator — the three-dimensional shapes built from these triangles.
- 3D Volume Calculator — and their volumes.
- Distance Calculator — the straight-line distance between two points.
- Square Footage Calculator — for the area of irregular rooms.
Every calculation runs locally in your browser and works offline.