The formula
- is the hypotenuse: the longest side, opposite the right angle.
- and are the two shorter sides, which meet at the right angle. It doesn't matter which is which.
- It only works in right-angled triangles, and you need two sides to find the third.
In words: the square on the hypotenuse equals the sum of the squares on the other two sides.
Pythagoras calculator (with working)
Fill in any two sides. You’ll get the answer and every step, set out the way your teacher wants to see it.
Finding the hypotenuse
Square the two shorter sides, add them, then take the square root.
Worked example
A right-angled triangle has shorter sides of 6 cm and 8 cm. Find the hypotenuse.
Finding a shorter side
Square the hypotenuse, subtract the square of the side you know, then take the square root.
Worked example
The hypotenuse is 17 m and one shorter side is 8 m. Find the other side.
Quick check: the hypotenuse must be the longest side. If your "shorter side" comes out longer than the hypotenuse, you added when you should have subtracted.
Word problems
Draw the triangle first, mark the right angle, and label the hypotenuse. Ladders, ramps, diagonals of rectangles and screens, and distances on a map are all Pythagoras problems.
Worked example
A 4 m ladder leans against a wall. Its foot is 1.2 m from the wall. How high up the wall does it reach, to 2 decimal places?
The ladder is the hypotenuse (it's opposite the right angle between the wall and the ground).
Is a triangle right-angled?
Square the longest side and compare it with the sum of the squares of the other two (this is the converse of Pythagoras' theorem).
- Sides 8, 15, 17: , so yes, it's right-angled.
- Sides 6, 7, 9: , but , so no.
Pythagorean triples are whole-number sets that work: 3, 4, 5; 5, 12, 13; 8, 15, 17; 7, 24, 25. Any multiple works too, like 6, 8, 10. Spotting one saves time in a test.
In 3D (Year 10A): use Pythagoras twice. For a box 3 by 4 by 12, the space diagonal is .
Common mistakes that cost marks
- Adding when finding a shorter side. To find a shorter side you subtract: c² − b².
- Forgetting the square root. c² = 100 means c = 10, not 100.
- Picking the wrong hypotenuse. It's opposite the right angle, not just the side drawn at a slant.
- Squaring the sum. 6² + 8² is 36 + 64, not (6 + 8)².
- Rounding too early. Keep the exact value until the last line, then round.
- Using it without a right angle. No right angle, no Pythagoras.
Practice questions with answers
Try each one before you open the answer.
The two shorter sides of a right-angled triangle are 9 cm and 12 cm. Find the hypotenuse.
Show the answer
, so cm.
The hypotenuse is 13 m and one shorter side is 5 m. Find the other side.
Show the answer
, so m.
The shorter sides are 7 cm and 10 cm. Find the hypotenuse, to 2 decimal places.
Show the answer
, so cm.
The hypotenuse is 20 mm and one side is 11 mm. Find the third side, to 2 decimal places.
Show the answer
, so mm.
A 5 m ladder leans against a wall with its foot 1.5 m from the wall. How high up the wall does it reach, to 2 decimal places?
Show the answer
, so m.
Is a triangle with sides 7, 24 and 25 right-angled?
Show the answer
Yes. .
A rectangle is 16 cm long and 12 cm wide. How long is its diagonal?
Show the answer
, so cm.
Find the diagonal of a square with sides of 6 cm. Give an exact answer and a decimal to 2 places.
Show the answer
, so cm.
Want more? Each year level below has a free printable PDF of 10 questions with answers, and a full 20-question test. Or check your working with the calculator.
Pythagoras by year level
Following the Victorian Curriculum 2.0. Schools sequence topics differently, so check your course.
Year 8
Pythagoras' theorem
Introducing the theorem: finding the hypotenuse and shorter sides, and checking for right angles.
Year 9
Pythagoras (applied)
Applying it to problems, alongside trigonometry: ladders, ramps, diagonals and distances.
Year 10A
Pythagoras and trigonometry in 3D
Pythagoras and trigonometry in 3D: space diagonals in boxes, pyramids and cones.