How to Calculate the Hypotenuse (Pythagoras) on a Calculator
Find the hypotenuse or a missing side with a² + b² = c², calculator keys, common Pythagorean triples, and real uses like the 3-4-5 rule and ladders.
The short answer
In a right-angled triangle, the hypotenuse is c = √(a² + b²), where a and b are the two shorter sides. For sides of 3 and 4, c = √(9 + 16) = √25 = 5. To find a missing shorter side, subtract instead: a = √(c² − b²). On the scientific calculator, press √, then 3, x², +, 4, x², ), = to get 5.
The Pythagorean theorem in one line
For any triangle with a 90° angle:
a² + b² = c²
- a and b are the two sides that form the right angle (the "legs").
- c is the side opposite the right angle, the hypotenuse. It is always the longest side.
The theorem only works for right-angled triangles. If no angle is 90°, you need the law of cosines instead.
Finding the hypotenuse: step by step
Example: a = 7 cm, b = 10 cm.
On the scientific calculator
sqrt(.The bracket matters. Without it, the calculator cannot tell that the whole sum belongs inside the square root.
Finding a missing leg
If you know the hypotenuse and one leg, rearrange the formula:
a = √(c² − b²)
Example: the hypotenuse is 13 and one leg is 5.
Calculator: √, 13, x², −, 5, x², ), = gives 12.
A common slip is to subtract the wrong way round (5² − 13²). That gives a negative number, and the calculator returns Error because the square root of a negative number is not a real number. If you see Error, check that you put the hypotenuse first.
Pythagorean triples worth remembering
Some right triangles have whole-number sides. These come up in exams and on building sites.
| a | b | c (hypotenuse) |
|---|---|---|
| 3 | 4 | 5 |
| 5 | 12 | 13 |
| 6 | 8 | 10 |
| 7 | 24 | 25 |
| 8 | 15 | 17 |
| 9 | 12 | 15 |
Any multiple of a triple is also a triple: 3-4-5 becomes 6-8-10, 30-40-50 and so on.
Real-life uses
Checking a corner is square (the 3-4-5 rule)
Builders and DIYers mark 3 units along one wall and 4 units along the other. If the diagonal between the marks is exactly 5 units, the corner is 90°. For bigger spaces use 6-8-10 or 9-12-15 (in feet, metres or any unit) for better accuracy.
Room or plot diagonal
A room 4 m by 3 m has a diagonal of √(4² + 3²) = 5 m. This tells you whether a long item, like a rolled carpet or a pipe, fits across the room.
Ladder against a wall
A 5 m ladder with its foot 1.2 m from the wall reaches √(5² − 1.2²) = 4.85 m up the wall.
Calculator: √, 5, x², −, 1.2, x², ), = gives 4.85386444.
TV screen width and height
TV sizes are diagonals. A 16:9 screen with a 55-inch diagonal is about 47.94 inches wide and 26.96 inches tall. The method: the diagonal of a 16 × 9 rectangle is √(16² + 9²) = 18.36, so the width is 55 × 16 ÷ 18.36 and the height is 55 × 9 ÷ 18.36. For a full chart, see the TV screen size guide.
Distance between two points
On a graph or a map grid, the straight-line distance between (x₁, y₁) and (x₂, y₂) is √((x₂ − x₁)² + (y₂ − y₁)²). From (1, 2) to (4, 6) the distance is √(3² + 4²) = 5.
Finding the angles too
Once you know the sides, the scientific calculator's inverse tangent gives the angles (make sure it is in DEG mode):
- Angle opposite side a = tan⁻¹(a ÷ b).
- For the 3-4-5 triangle: tan⁻¹(3 ÷ 4) = 36.87°, and the other acute angle is 90° − 36.87° = 53.13°.
Calculator: tan⁻¹, 3, ÷, 4, ), =.
If the answer looks wrong, the calculator may be in radians. See degrees vs radians. The same tangent idea converts a slope into an angle, explained in slope percentage to degrees.
Tips for using the calculator
- Use x² or xʸ. x² adds
^2to the expression. For other powers, use xʸ, which adds^. - Put negative numbers in brackets. Typing −2 and then x² gives Error, because the expression becomes
-2^2. Type ( −2 ) x² instead, or just square the positive number: lengths are never negative. - Check the history. The last calculations appear below the keypad. Click one to reuse its result.
- Keep units consistent. Convert everything to the same unit before you start. Mixing 2 m and 150 cm gives a wrong answer. A length converter helps if the measurements are in different units.
Common mistakes
Quick reference
- Hypotenuse: c = √(a² + b²).
- Missing leg: a = √(c² − b²).
- 3-4-5, 5-12-13 and 6-8-10 are right triangles.
- Angle: tan⁻¹(opposite ÷ adjacent), in DEG mode.
- Calculator keys: √ ( a x² + b x² ) =.
Frequently asked questions
How do you find the hypotenuse?
Square both shorter sides, add them and take the square root: c = √(a² + b²). For sides 7 and 10, c = √149 = 12.21.
How do you find a missing side if you know the hypotenuse?
Subtract the square of the known side from the square of the hypotenuse and take the square root: a = √(c² − b²). With c = 13 and b = 5, a = 12.
Does Pythagoras work for any triangle?
No. It only works for right-angled triangles, where one angle is exactly 90°.
What is the 3-4-5 rule?
A triangle with sides 3, 4 and 5 always has a right angle. Builders measure 3 and 4 units along two walls and check the diagonal is 5 to confirm a square corner.
Why does my calculator show Error?
Usually the subtraction is the wrong way round, giving the square root of a negative number, or a negative number was squared without brackets.
Put this guide into practice with our free online tool — no signup required.
Open tool