📐 Your Measurements
1/16 in matches most tape measures.
ft
in
ft
in
ft
in
ft
in
✓ Results
15 ft 7 7/16 in
Diagonal, Corner to Corner
Diagonal in Inches 187 7/16 in
Decimal 15.6205 ft (187.446 in)
Metric 4,761.1 mm
Area and Perimeter 120 sq ft, 44 ft around
Rounding Rounded to 1/16 in: 0.0085 in (0.22 mm) short

On this page

  1. How the 3-4-5 Rule Squares a Corner
  2. Checking a Rectangle by Its Diagonals
  3. How Far to Move a Frame That Is Out of Square
  4. Checking an Existing Corner
  5. Mistakes That Make a Square Corner Come Out Wrong
  6. Frequently Asked Questions

How the 3-4-5 Rule Squares a Corner

3-4-5 layout at 9-12-15 A square corner laid out with a 9-12-15 triangle: 12 feet marked along the base line, 9 feet along the second line, and 15 feet measured between the two marks. 12 ft 9 ft 15 ft mark mark Line A: the wall or string you build from 1. Mark 12 ft along line A 2. Mark 9 ft along line B 3. Swing line B until the marks are exactly 15 ft apart The corner is then 90°. Bigger triangles are more accurate: a tape error matters less.
Fig. 1 — The 3-4-5 rule at three times the size: mark 12 ft along the line you build from, 9 ft along the second line, and move the second line until the marks are exactly 15 ft apart.

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.

  1. 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.
  2. Mark 3 units along it from the corner.
  3. Swing the second line out roughly square and mark 4 units along it.
  4. 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 ALeg BDiagonalCorner error from a 1/8 in missOut over 20 ft
3 ft4 ft5 ft0.249°1.04 in
6 ft8 ft10 ft0.124°0.52 in
9 ft12 ft15 ft0.083°0.35 in
12 ft16 ft20 ft0.062°0.26 in
15 ft20 ft25 ft0.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.

  1. Make the opposite sides equal. Measure both long sides and both short sides and adjust until each pair matches.
  2. 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.
  3. Compare. Equal diagonals mean the frame is square. The target for both is √(L² + W²), which the first option above calculates.
  4. 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:

FrameDiagonalDecimal Feet
8 × 8 ft11 ft 3 3/4 in11.314 ft
8 × 10 ft12 ft 9 11/16 in12.806 ft
10 × 10 ft14 ft 1 11/16 in14.142 ft
10 × 12 ft15 ft 7 7/16 in15.62 ft
10 × 16 ft18 ft 10 7/16 in18.868 ft
12 × 12 ft16 ft 11 5/8 in16.971 ft
12 × 16 ft20 ft20 ft
12 × 20 ft23 ft 3 7/8 in23.324 ft
16 × 20 ft25 ft 7 3/8 in25.612 ft
20 × 20 ft28 ft 3 7/16 in28.284 ft
20 × 24 ft31 ft 2 7/8 in31.241 ft
24 × 24 ft33 ft 11 5/16 in33.941 ft

How Far to Move a Frame That Is Out of Square

Racked frame and the shift that squares it A parallelogram frame 12 feet long and 10 feet wide, leaning to the right, drawn over the dashed square it should be. Diagonal 1 measures 188 inches and diagonal 2 measures 187 inches; the far side is out of line by 0.65 inches. shift 0.65 in L = 12 ft W = 10 ft Diagonal 1 = 188 in Diagonal 2 = 187 in Shift = (d1² − d2²) ÷ (4 × L) = (35,344 − 34,969) ÷ 576 = 0.65 in, about 5/8 in Half the difference would say 1/2 in and leave the frame about 1/8 in out. Red arrows: push the corners at the ends of the longer diagonal together. Dashed outline: the square frame.
Fig. 2 — A 12 × 10 ft frame racked out of square (the lean is exaggerated so it can be seen). Diagonal 1 is the longer one. Pushing its two corners toward each other moves the far side back by the shift.

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:

Shift along L = (d1² − d2²) ÷ (4 × L)

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:

Angle = arccos((A² + B² − C²) ÷ (2 × A × B))

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

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.

Last updated · How we calculate