How to use the Pythagorean theorem
The Pythagorean theorem states that in any right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides. You can calculate any unknown side length using the core equation a² + b² = c².
Formula
a and b are the two shorter legs meeting at a right angle; c is the hypotenuse opposite the right angle.
Calculator
How the Formula Works Step by Step
To find the hypotenuse (c), square the lengths of both shorter sides (a and b), add the squares together, and take the square root of the result. For example, if a = 3 and b = 4, calculate 3² + 4² = 9 + 16 = 25. The square root of 25 gives c = 5.
To find a missing leg (a or b), rearrange the formula by subtracting the known leg's square from the hypotenuse's square. If c = 10 and a = 6, compute b² = 10² - 6² = 100 - 36 = 64, which gives b = 8 after taking the square root.
Where You Use It in School and Real Life
In school geometry and trigonometry, you use the theorem to find missing side lengths, calculate coordinate distances between points using the distance formula, and verify if a triangle contains a true 90-degree angle.
In real-world tasks, builders and carpenters use the 3-4-5 rule to ensure walls and corners are perfectly square. It also helps you calculate diagonal TV screen sizes, ladder reach up a wall, and direct line-of-sight navigation distances.
Common Mistakes to Avoid
The most frequent error is applying the formula to acute or obtuse triangles. The Pythagorean theorem only works on right-angled triangles containing a 90-degree angle.
Another common slip is forgetting to take the square root at the final step, leaving your answer as c² instead of c. Always ensure you also correctly identify the hypotenuse (c) as the longest side directly opposite the right angle, not one of the perpendicular legs.
Quick Mental Checks and Pythagorean Triples
Memorize common whole-number sets known as Pythagorean triples, such as 3-4-5, 5-12-13, and 8-15-17. Any scaled multiple of these sets, such as 6-8-10 or 30-40-50, also forms a valid right triangle.
For a quick sanity check, verify that your calculated hypotenuse is strictly longer than either individual leg, but strictly shorter than the sum of the two legs (a + b). If it fails either condition, recheck your arithmetic.
Worked examples
Example 1The legs of a right triangle are 3 cm and 4 cm. How long is the hypotenuse?
Write down the formula
c = \sqrt{a^2 + b^2}Square both legs and add them
3^2 + 4^2 = 9 + 16 = 25Take the square root
c = \sqrt{25} = 5
Example 2The legs of a right triangle are 5 cm and 12 cm. How long is the hypotenuse?
Write down the formula
c = \sqrt{a^2 + b^2}Square both legs and add them
5^2 + 12^2 = 25 + 144 = 169Take the square root
c = \sqrt{169} = 13
Example 3The legs of a right triangle are 6 cm and 9 cm. How long is the hypotenuse?
Write down the formula
c = \sqrt{a^2 + b^2}Square both legs and add them
6^2 + 9^2 = 36 + 81 = 117Take the square root
c = \sqrt{117} = 3 \sqrt{13} \approx 10.82
Questions and answers
Can you use the Pythagorean theorem on any triangle?
No, the Pythagorean theorem only applies to right triangles with a 90-degree angle. For non-right triangles, you must use the Law of Cosines instead.
How do you find leg a or b instead of the hypotenuse?
Subtract the square of the known leg from the square of the hypotenuse, then take the square root. The rearranged formula is a = √(c² - b² or b = √(c² - a².
What is the hypotenuse in a right triangle?
The hypotenuse is the longest side of a right triangle, located directly opposite the 90-degree right angle.
What is the 3-4-5 rule?
The 3-4-5 rule is a practical application of the smallest whole-number Pythagorean triple. If a triangle has sides measuring 3, 4, and 5 units, the angle between the two shorter sides is guaranteed to be a perfect 90-degree right angle.
Solve your own problem
Different numbers or a harder variant? Type it in and get the steps.