Skip to content

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, a2+b2=c2a^2 + b^2 = c^2, where cc is the hypotenuse (the longest side, opposite the right angle). The calculator gives exact answers in surd form (like 252\sqrt{5}) as well as decimals, and shows the working.

Loading the tool

Finding the hypotenuse

Square, add, square root. For shorter sides 6 and 8: c2=62+82=36+64=100c^2 = 6^2 + 8^2 = 36 + 64 = 100, so c=100=10c = \sqrt{100} = 10.

Finding a shorter side

Square, subtract, square root. For a hypotenuse of 13 and one side of 5: a2=132−52=169−25=144a^2 = 13^2 - 5^2 = 169 - 25 = 144, so a=12a = 12.

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:

TripleMultiples
3, 4, 56, 8, 10 · 9, 12, 15
5, 12, 1310, 24, 26
8, 15, 1716, 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 (1,2)(1, 2) to (7,10)(7, 10), draw a right-angled triangle: the horizontal side is 7−1=67 - 1 = 6 and the vertical side is 10−2=810 - 2 = 8. The distance is the hypotenuse: 62+82=100=10\sqrt{6^2 + 8^2} = \sqrt{100} = 10. This is the distance formula, d=(x2−x1)2+(y2−y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}, which is just Pythagoras in disguise.

Pythagoras in 3D

For the diagonal of a cuboid with sides aa, bb and cc, use Pythagoras twice, or in one go: d=a2+b2+c2d = \sqrt{a^2 + b^2 + c^2}. A box 3 cm by 4 cm by 12 cm has a space diagonal of 9+16+144=169=13\sqrt{9 + 16 + 144} = \sqrt{169} = 13 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

  1. National curriculum in England: mathematics programmes of study. Department for Education.
  2. Common Core State Standards for Mathematics. Common Core State Standards Initiative.