Branchwell

Become a Pro / website · becomeapro.ai / content / lessons / math / geometry-for-building / 3-4-5-rule-and-squaring-a-corner.mdx

1---
2title: "The 3-4-5 rule and squaring a corner"
3description: "Use the Pythagorean theorem and the 3-4-5 rule to lay out perfectly square corners, check a frame with diagonals, and find any diagonal length."
4updated: 2026-12-03
5minutes: 10
6level: Beginner
7order: 2
8---
9
10A **square** corner is an exact 90 degree angle, also called a **right angle**. Decks, foundations, walls, tile layouts and fences all depend on square corners. If the first corner is off, every board, tile and sheet after it is off too. The 3-4-5 rule lets you check a corner with nothing but a tape measure.
11
12## The Pythagorean theorem
13
14In a triangle with a right angle, the two sides that form the corner are called the **legs**. The long side across from the corner is the **hypotenuse**, or the diagonal.
15
16The **Pythagorean theorem** says:
17
18**a x a + b x b = c x c**
19
20Here a and b are the legs and c is the diagonal. Written with squares, it is a² + b² = c².
21
22## The 3-4-5 rule
23
24Try legs of 3 and 4:
25
261. 3 x 3 = 9.
272. 4 x 4 = 16.
283. 9 + 16 = 25.
294. 5 x 5 = 25. So the diagonal is exactly **5**.
30
31That means: if one side measures 3, the other measures 4, and the diagonal between them measures exactly 5, the corner is square.
32
33<Diagram caption="A right triangle with legs of 3 and 4 always has a diagonal of exactly 5. Any multiple works too, like 6-8-10.">
34 <svg viewBox="0 0 600 300" role="img" aria-label="A right triangle with a vertical leg of 3, a horizontal leg of 4 and a diagonal of 5, with a small square marking the right angle">
35 <polygon points="100,250 420,250 100,10" className="soft" stroke="currentColor" strokeWidth="2" />
36 <rect x="100" y="226" width="24" height="24" fill="none" stroke="currentColor" strokeWidth="2" />
37 <text x="260" y="280" fontSize="20" textAnchor="middle" fill="currentColor">4 ft</text>
38 <text x="70" y="135" fontSize="20" textAnchor="middle" fill="currentColor">3 ft</text>
39 <text x="285" y="120" fontSize="20" textAnchor="middle" fill="currentColor">5 ft</text>
40 <text x="440" y="90" fontSize="16" fill="currentColor">3 x 3 = 9</text>
41 <text x="440" y="120" fontSize="16" fill="currentColor">4 x 4 = 16</text>
42 <text x="440" y="150" fontSize="16" fill="currentColor">9 + 16 = 25</text>
43 <text x="440" y="180" fontSize="16" fill="currentColor">5 x 5 = 25</text>
44 </svg>
45</Diagram>
46
47Any multiple of 3-4-5 also works. Bigger triangles are more accurate, because a small measuring error matters less.
48
49| Multiply by | Legs | Diagonal |
50|---|---|---|
51| 1 | 3 and 4 | 5 |
52| 2 | 6 and 8 | 10 |
53| 3 | 9 and 12 | 15 |
54| 4 | 12 and 16 | 20 |
55
56It works in any unit: feet, meters or even inches. In metric, 0.6 m, 0.8 m and 1.0 m is handy for small layouts.
57
58## How to square a corner
59
60<Steps>
61 <Step title="Set the first line">Snap a chalk line or set a string line for one side. This is your reference.</Step>
62 <Step title="Measure 6 ft along the first line">From the corner, mark 6 ft along the first line.</Step>
63 <Step title="Measure 8 ft along the second line">From the same corner, swing the tape roughly at a right angle and mark 8 ft.</Step>
64 <Step title="Measure the diagonal">Measure between the two marks. It should be exactly 10 ft.</Step>
65 <Step title="Adjust and recheck">Move the second line (not the first) until the diagonal reads 10 ft. Then remeasure all three sides.</Step>
66</Steps>
67
68**Reading the diagonal:**
69
70- **Longer than 10 ft:** the corner is open, more than 90 degrees. Swing the second line in toward the first.
71- **Shorter than 10 ft:** the corner is closed, less than 90 degrees. Swing it out.
72
73## Checking a whole rectangle
74
75For a full rectangle, like a deck frame or a foundation form, measure both diagonals, corner to corner. **If the two diagonals are equal, the rectangle is square.**
76
77**Example: a 12 ft by 16 ft deck.** 12-16-20 is 3-4-5 times 4, so each diagonal should be **20 ft**. If one is 20 ft 1/2 in and the other is 19 ft 11 1/2 in, push the frame along the long diagonal until they match.
78
79## Finding any diagonal
80
81When the sides are not a 3-4-5 multiple, use the theorem and a calculator's square root key `√`.
82
83**Example: a 10 ft by 12 ft shed floor.**
84
851. 10 x 10 = 100.
862. 12 x 12 = 144.
873. 100 + 144 = 244.
884. √244 = 15.62 ft.
895. Change the decimal to inches: 0.62 x 12 = about 7.45 inches (using the unrounded 0.6205).
906. Change 0.45 inch to sixteenths: 0.45 x 16 = 7.1, so about 7/16.
917. The diagonal is about **15 ft 7 7/16 in**.
92
93The same math gives a rafter or stair stringer length. A run of 12 ft and a rise of 5 ft: 144 + 25 = 169, and √169 = **13 ft** exactly (a 5-12-13 triangle).
94
95<Callout type="tip">Keep a short list of exact right triangles in your head: 3-4-5, 5-12-13 and 8-15-17. They come up all the time and need no calculator.</Callout>
96
97## Modern tools
98
99Construction calculator apps find diagonals in feet, inches and fractions directly. Laser measures and cross-line lasers that project a 90 degree line speed up layout, especially indoors. Still check with a tape and the 3-4-5 rule, because lasers can be knocked out of calibration.
100
101## Common mistakes
102
103- **Measuring from different points.** All three measurements must start from the exact same corner point.
104- **Tape sag.** On long diagonals, pull the tape tight or have a helper hold it level.
105- **Adjusting the reference line.** Fix the first line in place and only move the second.
106
107## Practice
108
1091. The legs of a right triangle are 9 ft and 12 ft. How long is the diagonal?
1102. The legs are 5 ft and 12 ft. How long is the diagonal?
1113. A rectangle is 8 ft by 15 ft. What should each diagonal measure if it is square?
1124. A rectangle is 10 ft by 14 ft. What is the diagonal to the nearest 1/16 inch?
1135. You mark 6 ft and 8 ft and the diagonal reads 10 ft 1 in. Is the corner open or closed, and which way do you move the second line?
114
115## Answers
116
1171. **15 ft.** 81 + 144 = 225, and √225 = 15. (3-4-5 times 3.)
1182. **13 ft.** 25 + 144 = 169, and √169 = 13.
1193. **17 ft.** 64 + 225 = 289, and √289 = 17.
1204. **17 ft 2 7/16 in.** 100 + 196 = 296. √296 = 17.205 ft. 0.205 x 12 = 2.46 in. 0.46 x 16 = 7.3, so 7/16.
1215. **Open** (more than 90 degrees), because the diagonal is too long. Swing the second line in toward the first until the diagonal reads 10 ft.