Skip to content

Squaring Calculator (3-4-5 Rule)

Find the diagonal that makes a corner square, plus 3-4-5 marks for layout.

Units
ft
ft
0

    Measure both diagonals of a rectangle. If they match, the layout is square.

    Show the formula
    
      

    The 3-4-5 Rule Calculator settles it from two leg marks and one diagonal pull, before concrete is poured or framing begins.

    Mark both legs from the same corner, pull the tape between the marks, and read the results. A miss? Shift a leg, adjust, and repeat until one wall meets its adjacent wall at perfectly 90°.

    The Pythagorean theorem drives everything through its simple 3:4:5 ratio. Use 3 units along one line, 4 units along the other, expect exactly 5 units. Leave the unknown side blank; the calculator fills it instantly.

    Scale the 3-4-5 triangle to any unit size: 3-4-5 feet for small layouts, 6-8-10 feet for medium spans, 9-12-15 feet for large foundations. Feet-inches output means direct tape measure use; carpenters skip converting decimal feet.

    How to Use the Squaring Calculator (3-4-5 Rule)

    1. Pick your units. Keep US for feet and inches, or switch to Metric for meters and centimeters. The default values change with it.
    2. Enter your measurements. Fill in the side A and side B.
    3. Read the result. The big number is your main answer. Below it you also see diagonal (decimal). Open Show the formula to see every step with your numbers, or use Copy results to paste them into a message or shopping note.

    How Does the 3-4-5 Rule Work?

    Contrarian truth: the 3-4-5 method isn’t really about three numbers. Via the Pythagorean theorem, any two legs work, not only 3 and 4; a 10 ft by 12 ft corner needs 15 ft 7-7/16 in.

    A triangle with sides in a 3:4:5 ratio satisfies the Pythagorean theorem because 3² + 4² = 9 + 16 = 25 = 5², forcing a 90-degree angle wherever two legs meet at the corner.

    A wall layout takes 3 units on one string line, 4 units on the perpendicular string line. The hypotenuse, measured between the two far endpoints, reads exactly 5 units for the corner to be square.

    Batter boards hold the string lines in place, so adjustments happen without disturbing grade stakes. Any integer multiple behaves identically: 6-8-10, 9-12-15, or 12-16-20 all lock a perfect right angle, and Larger multiples improve accuracy.

    Always measure from the same corner point; the diagonal checks a triangle that, with mismatched origins, does not exist on the ground.

    The Core Formula

    Strip the Pythagorean Theorem down to its Scaled form and three lines remain: a = 3k, b = 4k, c = 5k.

    a is One leg of the right triangle, matching the 3 ratio; b is the Other leg, matching the 4 ratio, in the same unit as a; c is the Hypotenuse, matching the 5 ratio.

    k is a dimensionless multiplier to enlarge the 3-4-5 triangle. A positive whole-number keeps tape reading easy; a decimal multiplier works too, provided all three measurements stay in the same unit throughout, feet or metres.

    Mixing feet and inches without converting guarantees an incorrect hypotenuse reading, so convert everything to decimal feet or total inches before calculating. The 3-4-5 Rule Calculator handles this conversion; simply enter your unit length directly.

    A check square calculator applies Diagonal = sqrt(Side A² + Side B²). When the measured diagonal matches the calculated diagonal, the corner is square; otherwise it shows instantly the exact error in millimetres or degrees.

    How Do You Calculate the 3-4-5 Method?

    Start with what a wrong reading tells you. When the diagonal is long, the corner is open; when the diagonal is short, the corner is closed. That direction matters more on site than the arithmetic.

    The sequence is short. Measure 3 units along one line, 4 units along the other, both from the same corner. measure between the two marks; if it reads exactly 5 units, the corner is square.

    Metric runs the same check: Measure 3 metres on one side, 4 metres on the perpendicular side; the diagonal between those two points reads exactly 5 metres when the corner is square at 90 degrees.

    Because any unit works, the triangle travels between jobs. A 6-8-10 ft set suits a small garage slab, while 900-1200-1500 mm fits a bathroom wall. The rule only cares that all three match in units.

    The logic is the Pythagorean theorem applied to setout: 3 squared + 4 squared = 5 squared. On larger areas, scale the ratio to 6-8-10 or 9-12-15 so every tape pull spans a meaningful distance.

    3-4-5 Multiples Chart

    Larger triangles deliver more accurate results because measurement errors become proportionally smaller against a longer Diagonal, not because geometry changes.

    Numbers prove it. A ¼-inch tape error is about 0.4% on a 5-foot hypotenuse, yet only 0.08% on the 25-foot hypotenuse of a 15-20-25 triangle, five times more accurate from the same physical measuring precision.

    Match Multiplier (k) to the job. Small sheds, fence corners, tile layout suit a 3-4-5 ft set; Deck footings and garage slabs suit 6-8-10 ft; Residential foundations and large decks deserve 9-12-15 ft or bigger.

    Higher, 12-16-20 ft serves Commercial slabs and large additions, while 15-20-25 ft and 18-24-30 ft cover outbuildings and Large commercial pads. Site grading lines may justify 30-40-50 ft, with a 50 ft 0 in diagonal.

    Metric crews use 1,500mm, 2,000mm, 2,500mm for Small rooms and bathroom setout; 3,000mm, 4,000mm, 5,000mm for Standard rooms; and 9,000mm, 12,000mm, 15,000mm for Commercial slabs and site setout. Anything odd? Custom (k) covers the rest.

    Other Useful Pythagorean Triples

    Still, 3-4-5 is the most famous right-triangle ratio, not the only whole-number combination that produces a perfect right angle. When layout dimensions refuse to cooperate, alternatives sometimes fit them more naturally than awkward fractional multiples.

    Then there is the 5-12-13 family, scaled to 10-24-26 or 15-36-39, which suits Long, narrow triangles and steep roof checks, where one leg runs far longer than the other and a squat 3-4-5 feels cramped.

    The 8-15-17 set, or 16-30-34, is Less common but occasionally matches existing dimensions on older renovations. 7-24-25, scaled to 14-48-50, is Rare, reserved for very elongated layouts like narrow infill lots or long garden footings.

    A scaled multiple like 6-8-10 covers nearly every job site situation. It is easy to remember, easy to scale, and lands at a comfortable measuring distance, making it The standard that works for any layout.

    Unit Conversions for Field Use

    The 3-4-5 rule works in any consistent unit, whether feet, inches, metres, or millimetres, but you must never mix units mid-check.

    On US job sites, tapes typically read in feet and inches; Convert to decimal feet first. Inches ÷ 12: 9 in = 0.75 ft. Mixed: (ft) + (in ÷ 12), 6′ 9″ = 6.75 ft.

    Going backward, multiply Decimal feet by twelve (× 12) to recover Inches: 0.417 ft = 5 in. For metric drawings, multiply Feet by × 0.3048 to get Metres, so 15 ft = 4.572 m exactly.

    Metres × 1000 = Millimetres. Metric layouts commonly use a 900 mm - 1200 mm - 1500 mm triangle (direct mm scaling); a 3 m - 4 m - 5 m triangle suits larger work.

    Those are exact equivalents, not approximations. The 3-4-5 Rule Calculator accepts decimal inputs in any unit; be consistent across all three fields, verify with the calculator before driving stakes. It runs the same triangle check.

    Worked Example: Laying Out a Residential Foundation Corner

    Picture it: the Tape reads 20 ft 1½ in on a Single-storey house foundation, 30 ft wide × 40 ft long. The corner is out of square; let’s trace back exactly how we got there.

    The Batter boards are set; now we confirm the first corner at exactly 90°. Since the foundation spans 30 ft and 40 ft, a 9-12-15 triangle (k=3) fits well within the layout with adequate accuracy.

    A 12-16-20 triangle (k=4) is even better. Using k=4, start at the corner stake, measure 12 ft along one string line and mark it, measure 16 ft along the other string line and mark again.

    Stretch the tape between the two marks. If the Tape reads 20 ft 0 in, the corner is square. Long means open: Shift the string line on one batter board to close it, then re-measure.

    Most residential foundations accept diagonal variance around ± ⅛ inch over 20 feet, but tolerance limits vary by project type and jurisdiction. Check project drawings and local building requirements before you call that corner finished.

    How to Fix an Out-of-Square Layout

    A worthwhile reframe: the diagonal you pull, not the target, is the useful number. The calculator solves the real corner angle from it using the law of cosines, and tells you which way to move.

    A long diagonal means the corner is open past 90°; a short one, closed under 90°. Pull 10 ft 3/8 in on a 6-8-10 layout and you get 90.37°, which reads long, so not square.

    The second card turns that error into a move: Swinging the far end of a leg by leg length times the error in radians, about ⅝ inch at the end of the 8 ft leg.

    Under 5mm error is absorbed in construction tolerances, so Adjust string lines slightly. At 5-15mm error, Re-measure your baseline, pivot one side, Reset string lines, and re-check. Over 15mm error demands a restart from scratch.

    Re-establish your baseline from a known straight line (boundary or existing wall); Set one corner as your reference and work from there. Always recheck: re-measure all four corners, both diagonals. Check square twice, pour once.

    Is the 3-4-5 Method Accurate?

    Is the 3-4-5 method accurate? The geometry is exact; the result is only as good as the tape and your marks. That distinction should shape how you choose triangle size on every layout you set.

    The third card shows how square your check can prove the corner is. A tape error equal to your tolerance t hides a small angle, and that angle shrinks as the legs get longer, predictably.

    At 1/8 in tolerance, a plain 3-4-5 ft triangle proves the corner to within ±0.25°, a wall drift of about 1/2 in over 10 ft. A 30-40-50 ft triangle, same tolerance, narrows it to ±0.025°.

    Every gain from doubling the sides halves the angle the tape can hide.

    Carpenters are happy with 1/16 in on a foundation diagonal, and closer still on cabinets. Use the largest multiple your walls allow, then confirm the whole layout with two matching diagonals before anything gets fastened.

    Checking a Rectangle With Two Diagonals

    Equal pulls feel like proof, yet the Pythagorean theorem demands more: Each diagonal must match the target.

    When a frame racks into a parallelogram, one diagonal grows, the other shrinks. The tool uses the difference in their squares to find the corner angles and how far to slide the far long side.

    A 12 ft by 16 ft deck frame should read 20 ft on both diagonals. one reads 20 ft 1/4 in, the other 19 ft 11-3/4 in: the corners are 0.12° off; slide 5/16 in.

    10m x 6m slab? Diagonal = sqrt(Length² + Width²) gives sqrt(100 + 36) = sqrt(136) = 11,662mm; both diagonals should measure 11,662mm, plus or minus 3mm. That’s the full rectangle check, the true gold standard.

    Sizing the Triangle to Your Walls and Tying a String Loop

    Alone? A string loop handles working without a second tape. For a 12-16-20 ft triangle, tie a 48 ft loop, pin it at 0, 12 ft, and 28 ft from the corner; pull it tight.

    Walls of 14 ft and 20 ft get a 12-16-20 ft triangle with a 20 ft diagonal. The cards show spare length left on each wall, why the next size up fails, and the precision.

    The multiples chart lists 3-4-5 through 30-40-50 ft at your tolerance, with each size’s diagonal, its precision, and the loop length you would tie.

    Once the corners are set, the Construction Elevation Calculator carries the layout into heights, and the Slope Calculator applies the same right-triangle math to rise and run. Squaring the plan is only step one, really.

    Common Right Angle Mistakes

    Equal diagonals only prove square when opposite sides are already equal.

    Keep the lines level, or set slope deliberately, before pulling any tape across them, and measure horizontal distance only.

    Hooking a tape on an inside corner is harder than it sounds. The principle is exact, but measuring tools struggle to reach the true corner, so measure to marks you set out from the corner.

    The most frequent errors in applying right-angle math to a real layout are Checking only one diagonal, Mixing Units (feet for one leg, inches for another), and Assigning 5 to one of the short sides.

    Loose or Sagging String Lines shift on batter boards; Pull lines tight and secure them on a sharp notch or nail. After Moving a batter board string, Re-run the 3-4-5 check on all affected corners.

    Layout Methods and When Each Applies

    Choosing a squaring Method starts with the Limitation you can live with, not the Tools needed. Every option is Best for a particular scale, and stretching one beyond that range is where layouts drift crooked.

    The 3-4-5 Rule needs a Tape measure only and handles Any corner check, especially batter board layouts for residential foundations. Its weak points are Tape sag and human error, which grow across very long spans.

    Equal diagonals also need a Tape measure only and suit Rectangular layouts, checking the whole shape in one pass. It Only confirms rectangle, not individual corner angle, so pair it with a corner check.

    An Optical/laser level, Rotary laser, or transit suits Large commercial and civil layouts, though they bring Equipment cost and operator training required. A Speed square or framing square handles Short framing members and rafter cuts.

    Squares are Limited to small-scale work and not accurate over distances. At the top, a GPS/total station with Survey-grade equipment serves Civil engineering and boundary surveys; expect High cost; legal work requires licensed surveyor sign-off.

    Accuracy, Tape Tension, and Field Conditions

    A perfect formula on a drooping tape makes crooked slabs. Any check is only as accurate as your measurements, and Several field conditions introduce error that must be managed before you lock in a layout.

    Tape sag comes first. A steel tape unsupported over a long span sags under its own weight and reads long. Measure with the tape pulled taut, supported at midspan, once the distance exceeds 20-25 feet.

    Most steel tapes are calibrated at 68°F (20°C). temperature variation causes minor dimensional change, typically negligible in construction layout but worth noting on large civil projects, where summer heat on long tapes adds measurable length.

    Check your Tape starting point. Confirm whether the tape reads from the outside of the hook or the inside, because Errors in the hook allowance create consistent offset errors across all measurements that never cancel.

    String lines under tension still sag slightly; support the string at intervals or Use a long-range laser on spans over 50 feet. On sloped sites, use level string lines rather than measuring along the slope.

    When to Check for Square

    Timing beats technique, always. Slab setout is the most critical check on any residential build; verify all corners before pouring, because concrete cannot be nudged afterward and every later trade inherits whatever angle you accepted.

    Frame setout follows: check wall frames before bracing and sheeting lock them. For Decks and pergolas, ensure post positions are correct before setting in concrete, and with Formwork, check before pouring footings or retaining walls.

    Finishing trades need it too. On Fence lines, verify corner posts sit at right angles to boundary. For Tiling, check room squareness before laying out tile grid. In Brickwork, verify corners before starting brick courses.

    Jobs solve different unknowns. Squaring a deck or foundation relies on Diagonal measurement, where Both diagonals must be equal. Verifying a corner is 90° uses a 3-4-5 check; Scale to comfortable measuring distance for reliability.

    A Ramp or stair run needs the Hypotenuse from rise and run; Roof valley rafter length, the Hypotenuse of plan triangle; both use Find missing side.

    Squareness Tolerance by Trade

    Squareness tolerance is really about who later inherits your error. Foundation squareness deserves special attention; its own visual tolerance is relatively forgiving, yet every trade that follows, framing, drywall, flooring, cabinetry, builds on that reference.

    A foundation that’s off by 1/2" will force every subsequent trade to fight the error, leaving visible compromises through the entire structure. That’s why Foundation and framing hold 1/8": Errors compound through every subsequent trade.

    Looser work exists. Fence posts and sheds accept 1/4" to 1/2" thanks to Low visual impact; the structure has natural give. Deck framing sits at 1/8" to 1/4", since Decking boards can absorb minor variance.

    Finish trades tighten fast. Tile and flooring layout needs 1/16", because Grout lines and seams make errors highly visible. Cabinetry and finish carpentry demand 1/32" or tighter: Reveals and gaps are inspected at close range.

    Metric crews often quote Concrete slab setout at +/-10mm over any dimension, Slab diagonals within +/-5mm difference, Timber frame walls at +/-5mm in 3m, and Tiling at +/-3mm in 3m; check current Australian Standards first.

    Frequently Asked Questions

    Is a 3-4-5 Triangle a 30-60-90 Triangle?

    No. Besides its right angle, a 3-4-5 triangle has angles of 36.87° and 53.13°, which the first card displays. 30-60-90 triangle sides are never all whole numbers, hence why builders use 3-4-5 for layout instead.

    How Do I Find the Diagonal for Legs That Are Not 3 and 4?

    Odd legs, common beside a property line, follow the Pythagorean theorem: square each leg, add them, take the square root.

    Can I Use This to Calculate a Ramp or Slope Length?

    Yes, a ramp or slope forms a right triangle: horizontal run (A), vertical rise (B), hypotenuse (C). Metres behave identically, since the rule works in any unit once all three sides use the same unit.

    What If My Measured Hypotenuse Is Slightly Off - How Much Error Is Acceptable?

    On a 20×16 ft foundation, the diagonal is about 25.6 ft, so 1/8" error across 25.6 ft is a very small angular deviation. Acceptable tolerance depends on your project type. Commercial work demands tighter tolerances.