Builder's Square Calculator (3-4-5 & Diagonal)
To square a rectangle, both diagonals must equal √(length² + width²). A 20 × 30 ft foundation is square when each diagonal measures 36 ft 0-11/16 in. To set the first corner, use the largest 3-4-5 triangle that fits: here 18 ft along the short side, 24 ft along the long side and 30 ft across.
Formulas and figures reviewed · How we check our calculators
1 · Project Specifications
Rectangle
Decimal feet: 6 in. = 0.5 ft, 3 in. = 0.25 ft, 1 in. ≈ 0.083 ft.
Check Your Layout
Same unit as the sides. Enter 0 to skip the squareness check.
The other corner-to-corner measurement. Equal diagonals mean the rectangle is square.
2 · Material Estimates
Example result for the default values. Enter your own measurements and press Calculate.
Estimation Results
Corner to corner. Both diagonals must equal this.
✓ Recommendations
Lay out the long side first, square one corner with 3-4-5, measure the other sides, then confirm both diagonals match.
Notes
Measure from the same point on each corner (e.g., the outside of the batter-board string or the outside face of the form).
Detailed Project Guide & Calculation Methodology
Calculation Formulas & Methodology
Diagonal of a square-cornered rectangle
Diagonal = √(Length² + Width²)The Pythagorean theorem. When both diagonals equal this length, all four corners are 90°.
Step-by-step
- 130 × 20 ft: √(900 + 400) = √1,300 = 36.056 ft
- 20.056 ft × 12 = 0.67 in. → 36 ft 0-11/16 in
3-4-5 method
Mark 3k on one side, 4k on the other; the diagonal is 5kAny multiple works: 3-4-5, 6-8-10, 9-12-15 ft or 0.6-0.8-1.0, 1.2-1.6-2.0 m. Use the largest that fits: errors shrink as the triangle grows.
Corner angle from a measured diagonal
Angle = arccos((L² + W² − D²) ÷ (2 × L × W))The law of cosines. A diagonal longer than the target means the corner is more than 90°.
How It Works
- 1Enter the length and width of the rectangle.
- 2Press Calculate to get the target diagonal and the 3-4-5 layout.
- 3After setting out, measure both diagonals and enter them to check how far out of square the corners are.
Diagonals for common layouts
Target diagonals for square-cornered rectangles, to the nearest 1/16 in. Both diagonals should read this length.
| Size | Diagonal (ft-in) | Diagonal (m) | Typical project |
|---|---|---|---|
| 8 × 10 ft | 12 ft 9-11/16 in | 3.903 m | Small shed |
| 10 × 12 ft | 15 ft 7-7/16 in | 4.761 m | Shed, deck |
| 12 × 16 ft | 20 ft 0 in | 6.096 m | Shed, deck (3-4-5 multiple) |
| 16 × 20 ft | 25 ft 7-3/8 in | 7.807 m | Deck, patio |
| 20 × 20 ft | 28 ft 3-7/16 in | 8.621 m | Two-car garage slab |
| 24 × 24 ft | 33 ft 11-5/16 in | 10.345 m | Garage |
| 20 × 30 ft | 36 ft 0-11/16 in | 10.990 m | Foundation |
| 30 × 40 ft | 50 ft 0 in | 15.240 m | Shop (3-4-5 multiple) |
3-4-5 multiples
| Multiple | Feet | Meters |
|---|---|---|
| × 1 | 3 – 4 – 5 | 0.3 – 0.4 – 0.5 |
| × 2 | 6 – 8 – 10 | 0.6 – 0.8 – 1.0 |
| × 3 | 9 – 12 – 15 | 0.9 – 1.2 – 1.5 |
| × 4 | 12 – 16 – 20 | 1.2 – 1.6 – 2.0 |
| × 5 | 15 – 20 – 25 | 1.5 – 2.0 – 2.5 |
| × 6 | 18 – 24 – 30 | 1.8 – 2.4 – 3.0 |
| × 10 | 30 – 40 – 50 | 3 – 4 – 5 |
Use the largest multiple your sides allow; a 1/8 in. error over 5 ft is a bigger angle error than over 30 ft.
How to square a layout with string lines
- •Set batter boards a few feet outside each corner and pull a string for the first (long) side.
- •Mark the corner on the string, then measure 4k along it and mark.
- •Pull the second string roughly square, mark 3k from the corner, and swing it until the marks are exactly 5k apart.
- •Measure the other two sides to length and set the last corner.
- •Measure both diagonals; adjust the last corner until they match the target from this calculator.
Frequently Asked Questions
A triangle with sides of 3, 4 and 5 units always has a 90° corner between the 3 and 4 sides. Measure 3 ft along one line from the corner, 4 ft along the other, and adjust until the distance between the two marks is exactly 5 ft. Multiples such as 6-8-10 or 9-12-15 work the same way and are more accurate.
Set the long side with batter boards and string, square one corner with the largest 3-4-5 triangle that fits, then set the other sides to length. Measure both diagonals: when they are equal (and equal to √(L² + W²)), the rectangle is square. For a 20 × 30 ft foundation, each diagonal should be 36 ft 0-11/16 in.
Tolerances depend on the work. Many framers aim to get the diagonals of a deck or floor within about 1/8 to 1/4 in. of each other; concrete forms and foundations are often held to about 1/4 in. over the length. Check your plans or the trade standard for the material you're installing.
√(10² + 12²) = √244 = 15.62 ft, or 15 ft 7-7/16 in. Measure both diagonals of the floor frame and adjust until both read 15 ft 7-7/16 in. A 12 × 16 ft shed has a 20 ft diagonal exactly, since it is a 3-4-5 multiple (12-16-20).
Yes. Use 0.6, 0.8 and 1.0 m for small work, or 1.2-1.6-2.0 m and 3-4-5 m for larger layouts. For a 6 × 9 m foundation, the largest 3-4-5 that fits is 6-8-10 m (k = 2), and the full diagonal is 10.817 m.
✓ Pro Tips
- •Hook the tape on a nail or have a helper hold it; a hand-held end creeps.
- •Mark string positions on the batter boards so you can re-pull them after digging.
- •Recheck diagonals after setting forms; bracing and stakes can push them out.
⚠ Common Mistakes
- •Using a small 3-4-5 triangle on a big layout, which magnifies small errors.
- •Measuring diagonals to different points (inside vs outside of a form).
- •Checking only one diagonal: a parallelogram can have the right sides but no square corners.
Share Your Estimate
Related Calculators
Size a shed or carport base and estimate concrete, gravel, paving slabs, sand, timber frame or piers for it.
outdoor projectsCalculate deck area, individual deck boards, and composite pack quantities.
outdoor projectsEstimate concrete volume and number of bags required (40lb, 60lb, 80lb) for slabs, patios, footings, and walls.
concreteDIY Estimation Checklist
- •Measure lengths and heights twice for accuracy.
- •Check product labels for actual coverage rates.
- •Order materials with a 10% buffer for cuts and waste.
- •Account for doors, windows, and obstacles.
- •Compare quotes from at least two suppliers.