Become a Pro / website · becomeapro.ai / content / lessons / math / geometry-for-building / 3-4-5-rule-and-squaring-a-corner.mdx
| 1 | --- |
| 2 | title: "The 3-4-5 rule and squaring a corner" |
| 3 | description: "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." |
| 4 | updated: 2026-12-03 |
| 5 | minutes: 10 |
| 6 | level: Beginner |
| 7 | order: 2 |
| 8 | --- |
| 9 | |
| 10 | A **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 | |
| 14 | In 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 | |
| 16 | The **Pythagorean theorem** says: |
| 17 | |
| 18 | **a x a + b x b = c x c** |
| 19 | |
| 20 | Here 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 | |
| 24 | Try legs of 3 and 4: |
| 25 | |
| 26 | 1. 3 x 3 = 9. |
| 27 | 2. 4 x 4 = 16. |
| 28 | 3. 9 + 16 = 25. |
| 29 | 4. 5 x 5 = 25. So the diagonal is exactly **5**. |
| 30 | |
| 31 | That 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 | |
| 47 | Any 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 | |
| 56 | It 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 | |
| 75 | For 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 | |
| 81 | When 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 | |
| 85 | 1. 10 x 10 = 100. |
| 86 | 2. 12 x 12 = 144. |
| 87 | 3. 100 + 144 = 244. |
| 88 | 4. √244 = 15.62 ft. |
| 89 | 5. Change the decimal to inches: 0.62 x 12 = about 7.45 inches (using the unrounded 0.6205). |
| 90 | 6. Change 0.45 inch to sixteenths: 0.45 x 16 = 7.1, so about 7/16. |
| 91 | 7. The diagonal is about **15 ft 7 7/16 in**. |
| 92 | |
| 93 | The 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 | |
| 99 | Construction 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 | |
| 109 | 1. The legs of a right triangle are 9 ft and 12 ft. How long is the diagonal? |
| 110 | 2. The legs are 5 ft and 12 ft. How long is the diagonal? |
| 111 | 3. A rectangle is 8 ft by 15 ft. What should each diagonal measure if it is square? |
| 112 | 4. A rectangle is 10 ft by 14 ft. What is the diagonal to the nearest 1/16 inch? |
| 113 | 5. 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 | |
| 117 | 1. **15 ft.** 81 + 144 = 225, and √225 = 15. (3-4-5 times 3.) |
| 118 | 2. **13 ft.** 25 + 144 = 169, and √169 = 13. |
| 119 | 3. **17 ft.** 64 + 225 = 289, and √289 = 17. |
| 120 | 4. **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. |
| 121 | 5. **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. |