Pythagoras theorem calculator: find the missing side
Free TutorAura tool · no sign-up · Updated
Enter two sides of a right-angled triangle to find the third with Pythagoras' theorem, , where is the hypotenuse (the longest side, opposite the right angle). The calculator gives exact answers in surd form (like ) as well as decimals, and shows the working.
Finding the hypotenuse
Square, add, square root. For shorter sides 6 and 8: , so .
Finding a shorter side
Square, subtract, square root. For a hypotenuse of 13 and one side of 5: , so .
A quick check: the hypotenuse must be the longest side. If your answer for a shorter side is bigger than the hypotenuse, you added instead of subtracting.
Pythagorean triples
Some whole-number sides work exactly. Recognising them saves time:
| Triple | Multiples |
|---|---|
| 3, 4, 5 | 6, 8, 10 · 9, 12, 15 |
| 5, 12, 13 | 10, 24, 26 |
| 8, 15, 17 | 16, 30, 34 |
| 7, 24, 25 |
Common uses and mistakes
- Distance between two points: the horizontal and vertical differences are the shorter sides.
- Ladders, ramps and diagonals of rectangles are classic exam contexts.
- Mistakes: squaring the hypotenuse but adding it, forgetting the final square root, or using Pythagoras on a triangle without a right angle (use the sine or cosine rule instead).
Pythagoras' theorem is on the Digital SAT reference sheet; for angles, see right-triangle trigonometry.
Example: the distance between two points
To find the distance from to , draw a right-angled triangle: the horizontal side is and the vertical side is . The distance is the hypotenuse: . This is the distance formula, , which is just Pythagoras in disguise.
Pythagoras in 3D
For the diagonal of a cuboid with sides , and , use Pythagoras twice, or in one go: . A box 3 cm by 4 cm by 12 cm has a space diagonal of cm. 3D Pythagoras is a Higher-tier GCSE topic.
Frequently asked questions
How do I know which side is the hypotenuse?
It's opposite the right angle and is always the longest side. Label it c before you start.
What is the hypotenuse?
The longest side of a right-angled triangle, opposite the right angle.
Does Pythagoras work for all triangles?
No, only right-angled triangles. For other triangles use the cosine rule.
Why does the answer show a surd?
When the result isn't a whole number, the exact answer is a surd like 2√5. Exams sometimes ask for this exact form; otherwise round the decimal as the question says.
Sources
- National curriculum in England: mathematics programmes of study. Department for Education.
- Common Core State Standards for Mathematics. Common Core State Standards Initiative.
Keep reading
Pythagoras and right-triangle trigonometry
Use Pythagoras' theorem and sine, cosine and tangent to find sides and angles in right-angled triangles.
Angles, parallel lines and similar triangles
Use angle facts, parallel-line rules, polygon angle sums and similar triangles to find missing angles and lengths.
An AI geometry tutor you can draw with
Angles, triangles, circles, area, volume, trigonometry and proofs, worked through on a whiteboard you draw on.
SAT Math formulas: what's on the reference sheet and what to memorise
The formulas the SAT gives you on the reference sheet, plus the algebra, data and trigonometry facts you must know by heart.