Story· Build and fix
The 3-4-5 trick: how builders make a square corner with a tape measure
Mark 3 units along one edge and 4 along the other, and a true right angle makes the distance between the marks exactly 5. The same holds for 6-8-10 and 30-40-50.
Published · 4 min · By the Convert & Calculate team
Key takeaways
- A triangle with sides 3, 4 and 5 has a right angle, and so does every scaled copy, such as 6, 8 and 10 or 30, 40 and 50.
- Five whole-number triangles cover most jobs: 3-4-5, 5-12-13, 8-15-17, 7-24-25 and 20-21-29.
- Not every diagonal is a whole number: a square with sides of 1 has a diagonal of 1.41421.
The rule behind the trick
In a right-angled triangle, the square of the longest side equals the sum of the squares of the other two. Write the short sides as a and b and the long one as c, and the rule is a² + b² = c². For 3 and 4 that is 9 + 16 = 25, and the square root of 25 is 5.
So if you mark 3 units along one edge from the corner and 4 along the other, and the distance between your two marks is exactly 5, the corner is a true right angle. If the distance is more than 5 the corner is open, and if it is less the corner is pinched.
Try it: Pythagorean Theorem Calculator
Open the full toolYour details
Try an example
Result
Hypotenuse
5
- Area
- 6
- Perimeter
- 12
- Angle opposite a
- 36.87°
Good to know: a² + b² = c²
How it was worked out
- a² + b² = c²
Five triangles worth remembering
A set of three whole numbers that fits the rule is called a Pythagorean triple. We put five of them into our Pythagorean theorem calculator. They are 3-4-5, 5-12-13, 8-15-17, 7-24-25 and 20-21-29.
| Short side | Other side | Diagonal | Angle opposite the short side |
|---|---|---|---|
| 3 | 4 | 5 | 36.87° |
| 5 | 12 | 13 | 22.62° |
| 8 | 15 | 17 | 28.07° |
| 7 | 24 | 25 | 16.26° |
| 20 | 21 | 29 | 43.60° |
Make it bigger to make it accurate
Multiplying all three numbers by the same amount gives another right triangle. Sides of 6 and 8 give a diagonal of 10, and sides of 30 and 40 give 50. The bigger version is easier to trust, because a 2 mm slip of the tape matters far less over 50 units than over 5.
On a site, builders use whichever multiple fits the space: 3-4-5 in feet, or 3-4-5 in metres for a patio or a shed base. Use the same unit on all three measurements, and have a helper hold the zero end of the tape exactly on the corner.
Please note: Estimates only. Measure your actual space, buy a little extra, and check product labels, safety requirements and local building rules. Do not rely on this for structural or safety-critical work.
Finding a missing side
The rule also works backwards. If the long side is 13 and one short side is 12, the other leg is 5. If the long side is 15 and one short side is 9, the other leg is 12.
When the diagonal is not a whole number
Most triangles do not come out even. A square with sides of 1 has a diagonal of 1.41421, and a rectangle measuring 2 by 3 has a diagonal of 3.60555. For those, you need a tape that reads fractions, or you measure in smaller units, such as millimetres.
Who found it
The relationship is named for the Greek thinker Pythagoras, but it was known in several earlier cultures. We have not tried to say who first stretched a knotted rope across a building site, because we could not verify it.
Methodology
Every diagonal, missing side and angle in this story comes from our Pythagorean theorem calculator. The whole-number triples are exact solutions of a² + b² = c², so they can be checked by hand.
Run your own numbers with the Pythagorean Theorem Calculator tool.