Foundation Squaring Calculator

Check that a rectangular foundation, deck, or slab layout is truly square before you pour or build on it.

Please enter valid positive numbers for the fields shown above.

MeasureValue

The Problem This Solves

A rectangle can have two sides of exactly the right length and still not be square — one corner can be pushed a few degrees out of true while the outer dimensions still measure correctly. Build a foundation on a frame like that and the problem doesn't go away, it moves downstream: walls that won't meet flush at the corners, roof trusses that need to be shimmed or trimmed to fit, siding and flooring that has to be scribed and cut instead of installed square out of the box. Checking square before you pour concrete or set anchor bolts is the cheapest point in the whole project to catch it.

What You Need Before You Start

The Logic Behind the Calculation

Both methods here are the same idea — the Pythagorean theorem — used two different ways. A rectangle is square exactly when its two diagonals are equal in length, and for a rectangle with sides L and W, that shared diagonal length is √(L² + W²). Enter your full length and width and the calculator gives you that target number: measure both diagonals corner-to-corner on the actual layout, and if each one matches this figure (and matches the other), the layout is square.

The 3-4-5 method applies the same theorem to a single corner, without needing the full dimensions worked out yet. Since 3² + 4² = 5² (9 + 16 = 25), marking 3 ft along one side of a corner and 4 ft along the adjacent side, then checking that the distance between those two marks is exactly 5 ft, proves that corner is a true 90°. The calculator scales that same ratio to whatever leg length you enter — a 6 ft leg pairs with an 8 ft leg and a 10 ft diagonal, a 9 ft leg with 12 ft and 15 ft, and so on. Larger multiples of 3-4-5 give you more precision over a longer span, which matters more on a big foundation than a small deck.

When the Number Might Not Match

If your measured diagonal comes up short or long of the target, check the side lengths themselves first — a diagonal mismatch is often just a side that's not actually the length you intended yet, not a square-ness problem at all. A sagging tape, a string line that's shifted since you last checked it, or measuring from the wrong reference point (outside of one batter board to the inside of another, for example) are the next most common causes. Small discrepancies are normal: many builders treat a diagonal difference of roughly ¼ inch as within reasonable tolerance for a typical residential deck or shed foundation, tightening that tolerance for larger structures or anything going on a permitted, engineered foundation. This tool checks the geometry only — it isn't a substitute for your local building code's tolerances or a licensed surveyor on a project where being off by a fraction of an inch actually matters structurally.

Related calculators

Basement Finishing Cost Estimator

Get a ballpark cost estimate for finishing your basement, based on square footage and finish quality.

Duplex Construction Cost Calculator

Get a ballpark cost estimate for building a duplex, based on total square footage and finish quality.

Chicken Coop Size Calculator

Enter your flock size and breed mix to get the indoor coop space and outdoor run space your chickens need.

Log Board Foot Calculator

Enter a log's small-end diameter and length to compare its estimated lumber yield under the Doyle, Scribner, and International 1/4-inch scaling rules.