Check Square Calculator

Quick answer

A check square calculator finds the expected diagonal of a rectangle using the Pythagorean theorem. Enter the length and width, and the tool returns the diagonal you should measure corner to corner. If both diagonals match that number, your layout is square. A 30-by-40-foot foundation has an expected diagonal of 50 feet.

Updated 2026-10-17By Shakeel Muzaffar | Reviewed by Prof. Dr. Khalil Mudassar, PhD
Try
Your details
Lumber, Framing and Carpentry
ft
The longer side of the rectangle in feet.
ft
The shorter side of the rectangle in feet.
ft
Your actual measured diagonal. Leave blank or zero to just calculate the expected value.
Your results

Expected diagonal

—
3-4-5 short side—
3-4-5 long side—
3-4-5 hypotenuse—
Measured diagonal—
Difference—
Squareness verdict—

Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.

Saved results (0)
Calculator GuideMethod, worked examples, factors and FAQ
How this calculator works1Your inputs2Verified formulameasurementfactor3Result
How it works: your measurements run through a verified formula to give the result.

How to Use the Check Square Calculator

  1. Enter the length of the rectangle (the longer side) in feet.
  2. Enter the width (the shorter side) in feet.
  3. Read the expected diagonal and the 3-4-5 check values.
  4. Optionally enter your measured diagonal to see whether your layout is square, close or out of square.

Here is what each result line means:

ResultWhat it means
Expected diagonalThe corner-to-corner distance a perfect rectangle of those dimensions would have.
3-4-5 short sideDistance to mark along the shorter side for a 3-4-5 squareness check.
3-4-5 long sideDistance to mark along the longer side.
3-4-5 hypotenuseThe diagonal between those two marks if the corner is exactly 90 degrees.
Measured diagonalThe diagonal you actually measured on site (optional).
DifferenceHow far your measured diagonal is from the expected value, in feet and inches.
Squareness verdictWhether your layout is square (within 1/8 inch), close (within 1/2 inch) or out of square.

For wall framing dimensions, see the stud calculator.

What Is Checking Square?

Checking square means verifying that a rectangular layout has true 90-degree corners. Builders, carpenters and concrete workers check square before setting forms, laying plates or nailing decking. A rectangle with four right angles has two diagonals of exactly the same length. If the diagonals differ, at least one corner is not 90 degrees.

The two most common methods are the diagonal method (compare measured diagonals to the Pythagorean value) and the 3-4-5 method (check one corner at a time using a right-triangle ratio).

How the Check Square Calculator Works

Diagonal formula:
Expected diagonal from length and width
D = (L2 + W2)
3-4-5 rule:
Scaled 3-4-5 rule where k is the largest whole multiplier that fits within the shorter side
3 k, 4 k, 5 k

The calculator computes the expected diagonal from the Pythagorean theorem. If you enter a measured diagonal, it subtracts the expected value to show how far off square the layout is.

The 3-4-5 values are scaled so the short leg fits within the shorter wall. For example, on a 12-foot-wide layout the calculator uses 12-16-20 (k = 4).

  1. Square the length and the width, add them, and take the square root.
  2. Compare the result to your measured diagonal.
  3. If the difference is less than 1/8 inch, the layout is square for most construction purposes.

Check Square Worked Example

A foundation measures 30 feet long and 40 feet wide. You measure one diagonal at 50.02 feet.

Worked example: 30 x 40 foundation
30 ft 40 ft D = (900 + 1600) = 2500 = 50 ft

Step 1. Expected diagonal = sqrt(30^2 + 40^2) = sqrt(900 + 1600) = sqrt(2500) = 50.000 feet.

Step 2. 3-4-5 check: shorter side is 30 ft, k = 10, so measure 30 ft along one side, 40 ft along the other, and the diagonal should be 50 ft.

Step 3. Measured diagonal = 50.02 ft. Difference = 0.020 ft = 0.24 inches.

Verdict. The layout is close to square but off by about 1/4 inch. For most residential work this is acceptable, but for finish carpentry or tile work you may want to adjust further.

Factors That Affect Squareness Checks

Tape Sag

A long tape measure sags under its own weight, making the reading slightly short. For diagonals over 50 feet, add tension or use a laser distance measurer for better accuracy.

Temperature

A steel tape expands about 1/16 inch per 100 feet for every 15-degree Fahrenheit rise. This is negligible for most residential work but matters on large commercial slabs.

Slope

If the ground or slab is not level, the measured diagonal will be longer than the true horizontal distance. Level the tape or measure on a flat surface.

Stake and String Stretch

Nylon string stretches more than steel tape. Pull string lines tight and re-check after staking. Prefer a dry line or wire for long spans.

Corner Rounding

If the corner is a rounded form or a batter board, hook the tape to the exact intersection point, not the outside of the board.

Diagonal Method vs 3-4-5 Method

Both methods confirm 90-degree corners, but they work differently and suit different situations.

FeatureDiagonal method3-4-5 method
What it checksAll four corners at onceOne corner at a time
Measurements neededTwo diagonalsThree per corner
Best forFoundations, decks, slabsSingle corners, framing walls
AccuracyHigher (longer measurement span)Lower (shorter span unless scaled up)
ToolsLong tape or laserAny tape
SpeedFaster for a full rectangleFaster for one corner

Use the diagonal method when you can reach both corners. Use the 3-4-5 method for a single corner, such as checking a wall plate before nailing.

When to Use a Check Square Calculator

Foundation Layout

Check diagonals before you dig or pour. Moving string lines costs nothing; moving a poured footer costs a lot.

Deck Framing

Square the rim joist and ledger before installing the joists. An out-of-square deck is visible along the fascia and railing.

Wall Framing

Rack the wall on the subfloor until the diagonals match before standing it up and nailing the bottom plate.

Concrete Forms

Measure diagonals of the form before pouring. Concrete is permanent; plywood forms are not.

Fence Layout

Square the first corner post to the house or property line so the rest of the fence runs straight.

Common Squareness Check Mistakes

1. Measuring from Outside of Boards Instead of Centers

Hook the tape to the same reference point (inside corner, center of stake, nail head) on every measurement. Switching between inside and outside edges adds a board thickness of error.

2. Using Too Short a 3-4-5 Triangle

A literal 3-4-5 feet check has 1/4 inch of uncertainty at best. Scale up to 12-16-20 or 15-20-25 to cut the percentage error.

3. Forgetting to Check Both Diagonals

One correct diagonal does not prove all four corners are square. A parallelogram (opposite sides parallel but not 90 degrees) can have one diagonal match the Pythagorean value while the other does not.

4. Ignoring Slope

On sloped ground, level the tape before reading the diagonal. A 2-percent slope adds about 1/4 inch per 50 feet.

5. Rounding Too Aggressively

Report the diagonal to at least three decimal places in feet (thousandths) or to the nearest 1/16 inch. Rounding to the nearest inch hides whether the layout is truly square.

Accuracy and Limitations

The calculator gives the mathematically exact diagonal from the Pythagorean theorem. The only source of error is in your measurements, not in the formula.

What it covers

  • Expected diagonal from length and width
  • Scaled 3-4-5 check values
  • Comparison to a measured diagonal
  • Pass, close or fail verdict
  • Difference in feet and inches

What it does not cover

  • Tape sag or stretch corrections
  • Temperature expansion of steel tapes
  • Slope-to-horizontal conversion
  • Non-rectangular shapes (trapezoids)
  • Laser accuracy specifications

How We Calculate Squareness

Method
Pythagorean theorem: D = sqrt(L^2 + W^2). Compare to the measured diagonal to find the difference.
Inputs used
Length (ft), width (ft), measured diagonal (ft, optional).
Constants
None. All values come from your inputs.
Rounding
Diagonal shown to three decimal places (thousandths of a foot). Difference also shown in inches.
Thresholds
Within 1/8 inch (0.0104 ft) = square. Within 1/2 inch (0.0417 ft) = close. Beyond 1/2 inch = out of square.
Edge cases
Zero or negative dimensions return an error. If no measured diagonal is entered, only the expected value is shown.
Sources
See the Sources list below.
Last reviewed
2026-10-24.

Frequently Asked Questions About Checking Square

How do I check if a foundation is square?

Measure both diagonals corner to corner. If they are the same length, all four corners are 90 degrees. The expected diagonal is the square root of the length squared plus the width squared.

What is the 3-4-5 rule in construction?

Measure 3 feet along one side of a corner and 4 feet along the adjacent side. The diagonal between those two marks should be exactly 5 feet. If it is, the corner is 90 degrees. Multiples like 6-8-10 or 12-16-20 also work.

How accurate is the 3-4-5 method?

Accuracy depends on the size of the triangle. A literal 3-4-5 foot check is accurate to about 1/4 inch. Scaling up to 12-16-20 improves accuracy to about 1/16 inch because the percentage error shrinks with longer sides.

Can I use meters instead of feet?

Yes. The Pythagorean formula works in any consistent unit. Enter your measurements in meters and the expected diagonal will be in meters.

What if my diagonals are off by 1/4 inch?

For most residential framing and concrete work, 1/4 inch is acceptable. For tile work, cabinetry or finish carpentry, tighten the tolerance to 1/8 inch or less.

Does the calculator work for non-rectangular shapes?

No. It assumes a rectangle with four intended 90-degree corners. Trapezoids and parallelograms need different methods.

Why are my two diagonals different lengths?

At least one corner is not 90 degrees. The layout may be a parallelogram. Adjust the corners until both diagonals match the expected value.

How do I fix an out-of-square layout?

Loosen the stakes on one end and push the layout diagonally. If one diagonal is too long, push that end inward. Re-measure after each adjustment until both diagonals match.

What tools do I need to check square?

A tape measure long enough to reach the diagonal. For layouts over 50 feet, a laser distance measurer is more accurate than a steel tape because it eliminates sag.

Is my data saved?

No. The calculation runs entirely in your browser and nothing you enter is stored or sent anywhere.

Sources
Reviewed and sourcedClear, comparable resultsReviewed and sourced
Every figure is checked against cited sources and reviewed by a qualified expert.

Related Calculators

This calculator estimates the expected diagonal of a rectangle using the Pythagorean theorem and compares it to your measured diagonal. It is a planning aid. Always verify squareness with a tape measure or laser on site. Spotted an error? Let us know.