← All blog posts

Pythagorean theorem: a worked example from start to finish

WhiteUI · A plain-English guide to the Pythagorean Theorem Calculator

Suppose you are marking out a rectangular garden bed that should measure 6 metres by 8 metres, and you want to check that the corners are square before you dig. The diagonal of a true rectangle must follow the Pythagorean theorem exactly, so measuring the diagonal tells you whether the corner is right. This post works that one job from the first measurement to the final check, using the calculator’s own method throughout.

Measure, label, and calculate

First, confirm the corner you are checking is meant to be a right angle — the theorem only speaks to right angles, so a corner that is meant to be 100 degrees will fail the check for a different reason. Label the two sides that meet at the corner: 6 metres and 8 metres. The diagonal is opposite that corner, so it is the hypotenuse, the side you are solving for. The form you need is c = √(a² + b²).

Now the arithmetic. Square both sides: 6² = 36 and 8² = 64. Add them: 36 + 64 = 100. Take the square root: √100 = 10. The diagonal should be exactly 10 metres. The area of the triangle formed by the two sides and the diagonal is (6 × 8) ÷ 2 = 24 square metres, which is half the bed’s 48 square metres, as it should be.

Check it, and what a wrong answer means

Check by squaring back: 10² = 100, and 36 + 64 = 100, so the numbers agree. In the garden, if your tape shows 10 metres, the corner is square. If it shows 10.4 metres, the corner is too open; if it shows 9.6 metres, it is too closed. A small error in the diagonal means a small error in the angle, and the further out you measure, the easier it is to spot: the same check on a 3 by 4 corner gives a 5 diagonal, where a 20-centimetre error is harder to notice than on a 6 by 8 corner.

A second job uses the same steps in reverse. A gate diagonal must fit a frame with a hypotenuse of 15 metres and one side of 9 metres. The missing side is √(15² − 9²) = √(225 − 81) = √144 = 12 metres. Check: 9² + 12² = 81 + 144 = 225 = 15². If the frame’s other side measures 12 metres, the gate is square; if it does not, the frame is out of square, not the arithmetic.

Hypotenuse or shorter side: which form to use

The worked example above solves for the hypotenuse, so it adds the squares. The gate example in the same section solves for a shorter side, so it subtracts. The difference is the whole decision: if the missing side is the one opposite the right angle, add; if the missing side is one of the two that meet at the right angle, subtract the known leg’s square from the hypotenuse’s square. Labelling the sides before you pick the form is what keeps the two apart.

Take a ladder leaning against a wall, with the foot 7 metres from the wall and the ladder 25 metres long. The ladder is the hypotenuse, so the height it reaches is the missing shorter side: √(25² − 7²) = √(625 − 49) = √576 = 24 metres. Check: 7² + 24² = 49 + 576 = 625 = 25². The same three numbers answer the question the other way round, too: legs of 7 and 24 give a hypotenuse of √(49 + 576) = √625 = 25. One triangle, two questions, and the operation — add or subtract — is decided by which side is missing, not by which numbers you happen to have.

Measure twice: the checks that catch a bad tape reading

The arithmetic in this post is exact, but a tape reading is not. A tape that sags, a hook that slips, or a measurement taken from the outside of a wall instead of the inside all put a wrong number into a correct calculation. The defence is to measure each side twice, from a different starting point if you can, and to measure the diagonal twice as well. If the two readings disagree, measure a third time before you trust either one.

There is also a quick range check that needs no tape at all. For sides of 6 and 8 metres, the diagonal must be longer than the longer side, 8 metres, and shorter than the two sides added together, 14 metres. The answer of 10 metres sits inside that range, as it must. A diagonal reading of 15 metres for the same corner fails the check outright — no right-angled triangle with legs 6 and 8 can have a diagonal longer than 14 — so the measurement, not the maths, is wrong. Check the range first, and only then believe the tape.

Frequently asked questions

How do I know which side is missing?

The side opposite the right angle is the hypotenuse. If that is the side you need, add the squares. If you need one of the sides that meet at the right angle, subtract the known leg’s square from the hypotenuse’s square.

What if the numbers are not whole?

The steps are identical — square, add or subtract, square root — and the answer will usually be a decimal. Legs of 2 and 3 give √(4 + 9) = √13, about 3.61, which is a perfectly good answer; most real measurements are not neat triples.

Do I need the area as well?

Only if the job asks for it. The calculator shows it because it is free once you know two sides: area is (leg 1 × leg 2) ÷ 2. For the garden corner above it is 24 square metres, but the diagonal alone answers the squareness question.

More guides on the Pythagorean Theorem Calculator

Try it yourself

Enter two sides of a right-angled triangle to find the missing side, with the area shown too.

Open the Pythagorean Theorem Calculator