Foundation Squaring Calculator

How we build and test

This foundation squaring calculator gives the diagonal that makes a rectangular layout square. Enter the length and width of the foundation, slab, deck or shed, and it returns the diagonal in feet and inches along with the 3-4-5 marks.

Diagonal for square

Enter the length and width of the layout.

What this calculator does

  • Diagonal that makes a rectangular foundation square
  • A 3-4-5 check scaled to your layout
  • How far out of square you are and how to fix it

How to use the foundation squaring calculator

  1. Enter the length and width of the layout, measured between the string lines or the outside of the forms.
  2. Measure both diagonals, corner to corner. When each one equals the diagonal shown, the layout is square.
  3. Optional: enter your two measured diagonals to see how far out of square you are and how much to shift.

Squaring formula

Diagonal = √(length² + width²)
3-4-5 rule: sides of 3 and 4 have a diagonal of 5

A rectangle is square when its two diagonals are equal, and equal to the value from the Pythagorean theorem. The 3-4-5 rule is the same theorem with easy numbers. Larger multiples are more accurate, so on a foundation use 12-16-20 or 24-32-40 instead of 3-4-5.

Worked example: 40 × 24 ft foundation

  1. Diagonal: √(40² + 24²) = √2,176 = 46.648 ft.
  2. In feet and inches: 46 ft 7 3/4 in.
  3. 3-4-5 check: mark 24 ft along the short side and 32 ft along the long side. The marks are 40 ft apart when the corner is square.
  4. If one diagonal measures 46 ft 9 in and the other 46 ft 6 1/2 in, the layout is 2 1/2 in out. Shift one end about 1 1/4 in and measure again.

Diagonals for common sizes

Layout Diagonal
8 × 10 ft 12.806 ft
10 × 12 ft 15.62 ft
12 × 16 ft 20 ft
16 × 20 ft 25.612 ft
20 × 24 ft 31.241 ft
24 × 24 ft 33.941 ft
24 × 30 ft 38.419 ft
24 × 40 ft 46.648 ft
30 × 40 ft 50 ft
30 × 50 ft 58.31 ft
40 × 60 ft 72.111 ft

Tips for squaring a layout

  • Set one long side first and treat it as fixed. Adjust the other three to it.
  • Keep the tape level and pulled to the same tension for both diagonals.
  • Check the side lengths again after every shift. Moving a corner changes them.
  • Within 1/4 in on the diagonals is good for most slabs, decks and sheds.

Next, size the footings with the concrete footing calculator and order the pour with the concrete calculator. To add and convert tape measurements, use the feet and inches calculator.

Questions

How do you square a foundation?

Set the four corners to the right length and width, then measure both diagonals. Shift one end until the diagonals are equal.

What is the 3-4-5 rule?

A triangle with sides of 3, 4 and 5 has a perfect right angle. Mark 3 ft along one side and 4 ft along the other; the corner is square when the marks are exactly 5 ft apart.

What is the diagonal of a 24×24 foundation?

33.941 ft, which is 33 ft 11 5/16 in.

How far out of square is acceptable?

For most residential work, diagonals within 1/4 in of each other. Framers can absorb a little more, but errors show up later in the roof and the flooring.

Related calculators