Calculators
A pythagorean theorem calculator for right triangles: enter any two sides and get the third — the hypotenuse or a missing leg — with the theorem explained.
Fill both legs to get the hypotenuse; fill the hypotenuse and one leg to get the other leg.
Enter two sides, click Calculate. This pythagorean theorem calculator finds the missing side of a right triangle instantly, right on the page.
With the defaults and , the pythagorean theorem calculator returns . The blank box is the unknown: leave c empty and it solves the hypotenuse; fill c alongside one leg and it solves the remaining leg.
This page is more than a static pythagorean theorem calculator — it is also an AI tutor you can ask questions:
The pythagorean theorem is a rule about right triangles — triangles with one 90° angle:
In words: the squares of the two legs add up to the square of the hypotenuse. The picture shows the classic 3-4-5 right triangle the pythagorean theorem calculator uses as its default: the legs 3 and 4 meet at the right angle, and the hypotenuse 5 stretches from the top of one leg to the far end of the other.
The theorem quietly insists on two things:
a right triangle with legs 3 and 4 meeting at the right angle, and hypotenuse 5 opposite it
A right triangle has legs and . Find the hypotenuse.
The hypotenuse is 5 — the default triangle of the pythagorean theorem calculator on this page, and the most famous Pythagorean triple in whole numbers. Picture why the root is needed: 9 and 16 are the areas of squares built on the legs, and 25 is the area of the square on the hypotenuse. The side itself is the square root of that area.
Sanity check before moving on: the hypotenuse must be the longest side, and holds. If your c ever comes out shorter than a leg, the sides went into the wrong boxes — re-read which side sits opposite the right angle.
The same equation solves for whichever side is missing — only the algebra moves.
Worked: a right triangle has hypotenuse and leg . Find leg .
So 5-12-13 is another Pythagorean triple, and this subtraction route is exactly what the optional c box drives: fill 13 and 5 in the pythagorean theorem calculator, leave b blank, and the b row returns 12. Whatever side is unknown — name it, isolate its square, take the root. Notice that both leg routes subtract: the hypotenuse's square is the largest of the three, so stays positive and the root stays real. That is the arithmetic behind the pythagorean theorem calculator's guard message when c is not the longest side.
Some whole-number triples satisfy exactly. The three worth memorizing:
Multiples of a triple are triples too: double 3-4-5 for 6-8-10, because ; triple it for 9-12-15. The pythagorean theorem calculator confirms any of them in one click.
The converse runs the theorem backwards: if the squares of the two shorter sides add up to the square of the longest side, the triangle is a right triangle. Builders square corners with it — measure 3 ft along one edge, 4 ft along the other, and adjust until the diagonal reads exactly 5 ft. The corner is then a true 90°, guaranteed by the same equation the pythagorean theorem calculator checks.
The cure for all three is the same: mark the right angle first, label the two sides that form it and , label the side opposite it , then type the numbers.
A right triangle has legs 6 and 8. How long is the hypotenuse? Check your answer with the pythagorean theorem calculator above.
A right triangle has hypotenuse 25 and one leg 7. Find the other leg. Check your answer with the pythagorean theorem calculator above.
The rule for right triangles: the squares of the two legs add up to the square of the hypotenuse, a² + b² = c². With legs 3 and 4, the hypotenuse is 5 because 9 + 16 = 25. The pythagorean theorem calculator above applies it to any right triangle.
Only when the triangle has a right angle (90°) — that is the one condition. If no right angle is marked or given, the pythagorean theorem calculator does not apply; reach for the law of cosines instead.
Square the hypotenuse, subtract the square of the known leg, take the root: b = √(c² − a²). For c = 13 and a = 5, b = √144 = 12. Fill the c box and one leg box in the pythagorean theorem calculator and it does the subtraction for you.
No — right triangles only. The 90° angle is what makes a² + b² = c² true. On other triangles the two shorter squares never add up exactly to the longest one, which is why the pythagorean theorem calculator asks for the sides of a right triangle.
Three whole numbers that fit a² + b² = c² exactly: 3-4-5, 5-12-13, 8-15-17, and every multiple, like 6-8-10. The pythagorean theorem calculator returns whole-number answers on exactly these triangles.
Use the converse: square the two shorter sides and add. If the total equals the square of the longest side, the triangle is right-angled. For 7, 24, 25: 49 + 576 = 625, a right triangle — and the pythagorean theorem calculator confirms it with √625 = 25.