On this page
How the 3-4-5 Rule Squares a Corner
Any triangle whose sides follow a² + b² = c² has a right angle between a and b. With 3, 4 and 5, that is 9 + 16 = 25, and the numbers are whole, so they are easy to hit with a tape.
- Set the first line. Snap a chalk line or pull a string along the side you are building from, such as the house wall for a deck.
- Mark 3 units along it from the corner.
- Swing the second line out roughly square and mark 4 units along it.
- Measure between the marks. Move the second line until that distance is exactly 5 units. The corner is now 90°.
Use the biggest multiple the space allows. The table shows what a 1/8 in miss on the diagonal does to the corner and how far that throws a line 20 ft long:
| Leg A | Leg B | Diagonal | Corner error from a 1/8 in miss | Out over 20 ft |
|---|---|---|---|---|
| 3 ft | 4 ft | 5 ft | 0.249° | 1.04 in |
| 6 ft | 8 ft | 10 ft | 0.124° | 0.52 in |
| 9 ft | 12 ft | 15 ft | 0.083° | 0.35 in |
| 12 ft | 16 ft | 20 ft | 0.062° | 0.26 in |
| 15 ft | 20 ft | 25 ft | 0.05° | 0.21 in |
The “Lay out a square corner” option picks the largest whole-foot multiple that fits the room you have along each line.
Checking a Rectangle by Its Diagonals
Deck frames, shed floors, concrete forms and footings are squared by comparing diagonals. A four-sided frame with equal opposite sides is a parallelogram, and a parallelogram is a rectangle exactly when its two diagonals are equal.
- Make the opposite sides equal. Measure both long sides and both short sides and adjust until each pair matches.
- Measure both diagonals from the same point on each corner: the outside face of the rim, a string intersection, or a nail in a batter board.
- Compare. Equal diagonals mean the frame is square. The target for both is √(L² + W²), which the first option above calculates.
- Rack and recheck. If they differ, push the corners at the ends of the longer diagonal toward each other, then measure again.
Diagonals for common frame sizes, to the nearest 1/16 in:
| Frame | Diagonal | Decimal Feet |
|---|---|---|
| 8 × 8 ft | 11 ft 3 3/4 in | 11.314 ft |
| 8 × 10 ft | 12 ft 9 11/16 in | 12.806 ft |
| 10 × 10 ft | 14 ft 1 11/16 in | 14.142 ft |
| 10 × 12 ft | 15 ft 7 7/16 in | 15.62 ft |
| 10 × 16 ft | 18 ft 10 7/16 in | 18.868 ft |
| 12 × 12 ft | 16 ft 11 5/8 in | 16.971 ft |
| 12 × 16 ft | 20 ft | 20 ft |
| 12 × 20 ft | 23 ft 3 7/8 in | 23.324 ft |
| 16 × 20 ft | 25 ft 7 3/8 in | 25.612 ft |
| 20 × 20 ft | 28 ft 3 7/16 in | 28.284 ft |
| 20 × 24 ft | 31 ft 2 7/8 in | 31.241 ft |
| 24 × 24 ft | 33 ft 11 5/16 in | 33.941 ft |
How Far to Move a Frame That Is Out of Square
The usual advice is to split the difference between the diagonals. That is how much each diagonal has to change, but it is not how far the frame has to move. For a frame with length L, width W and diagonals d1 and d2, the side opposite L sits out of line by:
On a 12 × 10 ft frame (144 in by 120 in) with diagonals of 188 in and 187 in, that is (35,344 − 34,969) ÷ 576 = 0.65 in. Half the difference would say 1/2 in, and the frame would still be about 1/8 in out after the first push. The shift is never less than half the difference between the diagonals. On a square frame it is about 0.7 times the full difference; when L is the long side of a narrow frame it is close to half; when L is the short side it can be several times the difference. That is why the calculator works it out from your actual sizes.
The same measurements give the corner angle: the corners at the ends of the long diagonal are wider than 90°, the other two are narrower. A 0.65 in shift across a 120 in side is 0.31°.
If the two diagonals are far apart and the sides do not match, the frame is not a parallelogram: one side is cut or set at the wrong length. The calculator warns when your sides and diagonals do not agree with each other.
Checking an Existing Corner
Walls, slabs and old foundations are rarely perfect, and tile, cabinets and flooring all start from a corner. To check one, measure a distance along each wall from the corner, then measure between the two marks. The law of cosines turns the three numbers into the angle:
With 12 ft along one wall, 10 ft along the other and 15 ft 8 in between the marks, the corner is 90.34°. The diagonal for a square corner would be 15 ft 7 7/16 in, so this one is 9/16 in long and the corner is open. At the 10 ft mark the wall is 0.72 in, about 3/4 in, away from where a square wall would be. That is the amount a straight tile line or a cabinet run has to absorb.
Use marks as far from the corner as the walls allow; the angle comes out more accurately from longer measurements.
Mistakes That Make a Square Corner Come Out Wrong
- Measuring diagonals to different points. Outside corner on one diagonal and inside on the other builds in an error of a board’s thickness.
- A sagging tape. Over 15 ft or more, a tape that droops reads long. Pull it tight and keep it level, or have a helper hold the middle.
- Squaring before the sides match. Equal diagonals on unequal sides can give a trapezoid or another skewed shape, not a rectangle.
- Using a small triangle for a big layout. A 3-4-5 in feet is fine for a step, not for a 20 ft deck. Use 9-12-15 or larger.
- Squaring once. Frames move when they are fastened. Check the diagonals again after the joists or the forms are fixed.
- Mixing decimal feet with feet and inches. 15.7 ft is 15 ft 8.4 in, not 15 ft 7 in. Use the feet and inches calculator to convert.
Once the corner is square, the deck calculator, the concrete calculator and the tile calculator take the measurements from there, and the linear feet calculator totals the boards for a frame.
Frequently Asked Questions
What is the 3-4-5 rule?
A triangle with sides of 3, 4 and 5 units always has a 90° corner between the 3 and the 4, because 3² + 4² = 5² (9 + 16 = 25). Measure 3 ft along one line and 4 ft along the other, and when the distance between those two marks is exactly 5 ft, the corner is square. Any multiple works the same way: 6-8-10, 9-12-15 or 12-16-20.
What should the diagonal be on a 10 x 12 frame?
15 ft 7 7/16 in to the nearest sixteenth. The diagonal is the square root of length² + width²: 120 in and 144 in give √(14,400 + 20,736) = 187.45 in. Measure both diagonals; when they match each other, a frame with equal opposite sides is square.
Why use a bigger triangle than 3-4-5?
Because the same tape error matters less on a bigger triangle. Missing the diagonal by 1/8 in on a 3-4-5 in feet leaves the corner about 0.25° off, which is 1 in over 20 ft. On a 9-12-15 the same miss is about 0.08°, a little over 1/3 in over 20 ft. Use the largest multiple the space allows.
My diagonals are different. How far do I move the frame?
Further than half the difference. For a frame with sides L and W and diagonals d1 and d2, the far side sits (d1² − d2²) ÷ (4 × L) out of line along L. A 12 × 10 ft frame with diagonals of 15 ft 8 in and 15 ft 7 in is out by 375 ÷ 576 = 0.65 in, about 5/8 in, not the 1/2 in that half the difference suggests. Rack it toward the shorter diagonal and measure again.
How do I check whether a room corner is square?
Mark a point along each wall, measure from the corner to each mark, then measure between the marks. Choose “Check an existing corner” above and enter the three numbers. A 12 ft and a 10 ft mark with 15 ft 8 in between them is a 90.34° corner, so the 10 ft wall ends about 3/4 in out of square at the mark. Tile and cabinet layouts start from that number.
What is the diagonal of a square?
The side times 1.4142 (the square root of 2). A 10 ft square has a diagonal of 14.142 ft, or 14 ft 1 11/16 in. A 12 ft square is 16 ft 11 5/8 in corner to corner.
Does the 3-4-5 rule work in metric?
Yes. The ratio has no units: 0.9 m, 1.2 m and 1.5 m, or 3 m, 4 m and 5 m, give the same square corner. In inches, 12-16-20 is a handy size for checking a cabinet or a tile layout.
Are there other right triangles besides 3-4-5?
Yes. 5-12-13 and 8-15-17 are the next whole-number sets (25 + 144 = 169 and 64 + 225 = 289). They are useful when one side of the space is much longer than the other, such as 5 ft along a short return wall and 12 ft down a long one.
Do equal diagonals always mean a square frame?
Only if the opposite sides are equal too. A shape with equal diagonals but one side longer than its opposite side can be a trapezoid or another skewed shape, not a rectangle. Measure both lengths and both widths first, make them match, then compare the diagonals.
How close do the diagonals need to be?
There is no single standard; it depends on what goes on the frame. On a deck or shed floor many builders aim for diagonals within about 1/8 to 1/4 in, because decking and sheet goods will show a larger error at the far end. For tile, check against the layout: a corner 0.34° off moves a grout line about 3/4 in over 10 ft.
Estimates for planning only. Quantities are calculated from standard coverage and yield figures, with a waste allowance where the page states one. Always confirm against the manufacturer figures on the product you buy, and check local requirements before ordering. See our full method and assumptions.