CalcaTools

Foundation Squaring Calculator | Check Squareness Via Diagonal

SPONSORED
Find the exact diagonal measurement that makes your foundation corners perfectly square, using the extended 3-4-5 rule on any rectangle. Enter the two side lengths and the tool returns the diagonal both must match — the standard check for construction layout.

Last updated: July 2026 · Free · No sign-up required

SPONSORED
Results

Enter values above and click Calculate to see your result instantly.

About the Foundation Squaring Calculator

Every result on this page comes from a real formula — Diagonal = √(length² + width²); both diagonals must be equal — computed live in your browser the moment you press the button.

For context, the sections beneath the calculator include typical values, a worked example you can recompute by hand, and an FAQ covering the practical details of foundation squaring calculator.

Quick reference

MethodRatioUse
3-4-53:4:5Quick corner check
6-8-106:8:10Larger layouts
Diagonal√(L²+W²)Whole structure

info Foundation Squaring Calculator

Free math calculator — enter your numbers and get an instant, accurate result.

info Private by design

Everything runs locally in your browser. No uploads, no accounts, no tracking.

info Works everywhere

Fully responsive and mobile-friendly — calculate on any device, any time.

info Educational

Includes the formula and step-by-step explanation so you understand the math, not just the answer.

Interpretation guide

Diagonal checkMeaning
Equal diagonalsLayout is square
Diagonals differRack the frame until equal
Off by inchesShift one corner sideways

lightbulb Worked example — squaring a 16 × 24 ft shed foundation

A builder lays out string lines for a 16 ft by 24 ft shed slab and needs the diagonal both corner-to-corner measurements must match.

Result: Diagonal = √(16² + 24²) = √(256 + 576) = √832 = 28.84 ft, which is 28 ft 10⅛ in (0.84 × 12 = 10.1 in).

What this means: Both diagonals must measure 28.84 ft. If one reads 28.92 ft and the other 28.76 ft, the layout is racked: shift the far corner of the longer diagonal inward by roughly half the 2-inch difference — about 1 inch — and re-measure. Two or three rounds of adjustment usually bring the diagonals within a quarter inch, which is square enough for a shed.

Formula & methodology

Formula: Diagonal = √(length² + width²); both diagonals must be equal

How the squaring check works

In a true rectangle both diagonals are exactly equal, so the diagonal length from Pythagoras’ theorem is the target every corner-to-corner measurement must hit.

  • Measure the two side lengths of the layout.
  • Compute the target diagonal: √(length² + width²) — the 3-4-5 rule extended to any rectangle.
  • Measure both diagonals corner to corner with a tape.
  • If they differ, rack the frame: shift the far corner of the longer diagonal inward by about half the difference, then re-measure.

Why diagonals, not angles: a 1° angle error is hard to see with a square but shows up as inches of diagonal difference on a big layout, so the diagonal check is far more sensitive. Example: a 12 × 20 ft foundation needs diagonals of √(144 + 400) = 23.32 ft.

Authoritative source: Wolfram MathWorld

Frequently asked questions

How do you square a foundation?
Enter the required values into the input fields and press the calculate button. The tool applies the formula Diagonal = √(length² + width²); both diagonals must be equal and returns the result with a short explanation of each step, so you can check the working yourself.
What is the 3-4-5 rule?
The Foundation Squaring Calculator is free, private, and accurate: it runs entirely in your browser (no uploads, no accounts), applies the standard calculation, and explains each step so you can verify the result. Calculates foundation squaring using Diagonal = √(length² + width²), live in your browser. There is no limit on usage, and it works on any device.
Why measure diagonals instead of angles?
Measuring diagonals is the practical carpenter's method: in a perfect rectangle, both diagonals are exactly equal, and any difference means the corners are not square. Angles are hard to measure accurately on a large slab with a tape measure, while diagonal lengths are easy. The 3-4-5 rule is the same idea applied to a single corner.
What if my diagonals are not equal?
Adjust the layout: shift the shorter diagonal's far corner outward (or the longer one inward) by roughly half the difference, then re-measure. Each iteration should halve the error, and two or three adjustments usually bring the diagonals within a quarter inch. The calculator gives the target diagonal for your dimensions so you know the exact number to match.
How close do the two diagonals need to be?
For a house foundation, within ¼ inch is the usual tolerance; for a shed or deck, ½ inch is fine. The error compounds — a 1-inch diagonal difference on a 20 ft wall means the corner is off square by roughly half a degree, which shows up later as gaps in flooring and framing that assume right angles.
How do I square a building layout with the 3-4-5 method?
From a corner, measure 3 ft along one string line and 4 ft along the other; the diagonal between those marks must be exactly 5 ft when the corner is 90°. Scale up for accuracy on big layouts — 6-8-10 or 9-12-15 — since a tape error of ⅛" matters less over longer legs. It's the Pythagorean theorem doing field work.
How do I check if my layout is a perfect rectangle?
Measure both diagonals corner-to-corner: in a true rectangle they're equal. For a 12 × 20 ft foundation each diagonal should be √(144 + 400) = 23.32 ft (23 ft 3⅞ in). If one diagonal is longer, the layout is a parallelogram — shift the two corners on the long diagonal toward each other and re-measure until the diagonals match.
What is the 3-4-5 rule and when is it enough on its own?
Measure 3 units along one side of a corner and 4 along the other; if the diagonal between the marks is exactly 5, the corner is 90°. It works for checking a single corner quickly, but it does not verify the whole rectangle — two opposite corners can each be square while the shape is still a parallelogram, which is why the full diagonal check matters.
Why do builders measure diagonals instead of using a large square?
Sensitivity. On a 24 ft wall, a corner that is off by 1° shifts the diagonal by over 5 inches — easy to see on a tape — while the angle itself is nearly impossible to read that precisely with a framing square. Diagonals turn an invisible angle error into a visible length difference.
My diagonals match but the sides aren’t parallel — is it still square?
If both diagonals are exactly equal AND the opposite sides are equal in length, the shape is a true rectangle — the math guarantees it. But if you never verified the side lengths, matching diagonals alone only prove it is an isosceles trapezoid or rectangle; always confirm opposite sides match too.
How do I convert the diagonal to feet and inches for the tape?
Take the decimal part of the feet and multiply by 12. A 28.84 ft diagonal is 28 ft plus 0.84 × 12 = 10.1 in, i.e. 28 ft 10⅛ in. Round to the nearest 1/8 in — finer precision than your tape can deliver in the field anyway.

Explore the full math toolkit

Every CalcaTools math calculator — algebra, geometry, trigonometry, statistics, sequences, and unit conversions — with step-by-step workings on every result.