How to calculate Pythagorean theorem step by step
A right-angled triangle has one corner of exactly 90 degrees, and the side opposite that corner is the hypotenuse — always the longest side. The Pythagorean theorem says the square of the hypotenuse equals the sum of the squares of the other two sides. Written out, that is a² + b² = c², where c is the hypotenuse and a and b are the two shorter sides. Every calculation on this page follows the same five steps, and the worked examples below use the calculator’s own defaults so you can check each answer against the tool.
Step 1 — Name the sides, then pick the right form
Start by finding the right angle and naming the side opposite it. That side is c, the hypotenuse. The other two sides are a and b, and it does not matter which of the two you call a and which you call b, because a² + b² gives the same total either way. Then ask what is missing. If the hypotenuse is missing, you add the squares: c = √(a² + b²). If a shorter side is missing, you subtract: the missing leg = √(c² − known leg²), and here c must be the longest side, or the subtraction gives a negative number and the triangle cannot exist.
Take the calculator’s defaults: legs of 3 and 4. The hypotenuse is missing, so you add: 3² = 9 and 4² = 16, and 9 + 16 = 25. The last step is the square root: √25 = 5. So the hypotenuse is 5, and the triangle’s area is (3 × 4) ÷ 2 = 6 square units. Try the same pair in the calculator and confirm you get 5 and 6 before you trust any other input.
Step 2 — Work it, then check it by squaring back
The check is the part most people skip, and it catches almost every slip. Once you have an answer, square it and see whether it fits the side you started from. For the 3, 4, 5 triangle, 5² = 25, and 3² + 4² = 9 + 16 = 25, so the two sides match. If they do not match, one input is wrong — usually a side was mislabelled, or the square root was forgotten and the answer is still a squared number.
A second example to run through the same steps: legs of 6 and 8. Square them: 36 and 64. Add: 100. Square root: √100 = 10. Check: 10² = 100, and 36 + 64 = 100. The area is (6 × 8) ÷ 2 = 24 square units. Notice that 6, 8, 10 is just 3, 4, 5 doubled — a pattern that comes up again in the shortcut post. For a leg example, take a hypotenuse of 13 and a known leg of 5: 13² − 5² = 169 − 25 = 144, and √144 = 12, so the missing leg is 12. Check: 5² + 12² = 25 + 144 = 169 = 13².
Frequently asked questions
Which side do I square first?
Either shorter side — the order makes no difference, because addition is the same either way. What matters is that the hypotenuse is the side you compare against at the end, never one of the sides you add in the first step.
What if the triangle has no right angle?
Then this rule does not apply at all, and the answer will be wrong even if the arithmetic is perfect. The theorem only works where one angle is exactly 90 degrees. For other triangles, use a base-and-height area method or the three-sides method instead.
Why do I need the square root at the end?
Because squaring is only the middle of the job. a² + b² gives you the square of the answer, not the answer itself. For legs of 3 and 4, the sum is 25, which is the square of the hypotenuse — the hypotenuse itself is √25 = 5.
More guides on the Pythagorean Theorem Calculator
- Pythagorean theorem formula explained with an example
- Pythagorean theorem: a worked example from start to finish
- Pythagorean theorem mistakes most people make
- Pythagorean theorem for beginners: no maths background needed
- Pythagorean theorem FAQ: the questions everyone asks
- Pythagorean theorem on mobile: doing it without an app
- Pythagorean theorem shortcut method for quick answers
- Pythagorean theorem with units: converting inputs correctly
- Pythagorean theorem history: where the formula comes from
Enter two sides of a right-angled triangle to find the missing side, with the area shown too.