How to Mark Out a Square on the Ground: 3-4-5 Rule

Marking a perfect square on the ground comes down to three things: setting one straight reference line, building 90-degree corners off it, and verifying accuracy by measuring the diagonals. Whether you’re laying out a patio, shed foundation, garden bed, or sports court, the process is the same. Here’s how to do it right.

What You’ll Need

  • Tape measure long enough to span the diagonal of your square (for a 10-foot square, that’s about 14 feet 2 inches)
  • Stakes or pegs sturdy enough to stay put when you pull string tight against them
  • Mason’s string or line because it resists stretching better than regular twine
  • Marking paint, chalk, or flour if you want a visible line on the ground itself
  • A hammer or mallet for driving stakes

For larger or more permanent projects, batter boards (two stakes with a horizontal crosspiece connecting them) are worth building. They sit a couple of feet outside each corner and let you adjust your string lines without pulling up stakes every time. More on those below.

Step 1: Establish Your First Side

Drive a stake at one corner of your planned square. Measure out the length of one side and drive a second stake. Run your string tightly between them. This line is your reference edge, and everything else builds from it, so take your time getting it exactly where you want it. If you’re working next to a building or fence, you can use that existing straight edge as your guide.

Step 2: Build a Square Corner With the 3-4-5 Rule

The 3-4-5 rule is the simplest way to create a precise 90-degree angle without any special tools. It’s based on the Pythagorean theorem: a triangle with sides of 3, 4, and 5 units always contains a right angle at the corner between the 3 and 4 sides.

From your first corner stake, measure 3 feet along the string line you’ve already set and mark that point (a small piece of tape on the string works well). Now, from the same corner stake, run a second string roughly perpendicular to the first. Measure 4 feet along this second line and mark it. Finally, measure the diagonal distance between your two marks. If it’s exactly 5 feet, the corner is a perfect 90 degrees.

If the diagonal is shorter than 5 feet, your angle is too tight. Swing the second line outward slightly and remeasure. If it’s longer than 5 feet, the angle is too wide. Swing inward. Small adjustments make a big difference.

For larger squares, scale the numbers up by the same multiplier. Use 6-8-10, 9-12-15, or even 12-16-20 feet. Bigger triangles give you more accurate results because a quarter-inch error is easier to spot across 12 feet than across 3.

Step 3: Set the Remaining Corners

Once your first corner is square, measure along the second string line to the full length of your square’s side and drive a third stake. You now have two sides and three corners. Repeat the 3-4-5 method at each new corner to set the angle, then measure the side length and place your fourth stake.

At this point, connect string between all four stakes to outline the full square. You should have four sides of equal length, but you’re not done yet. A shape can have four equal sides and still be a parallelogram (a diamond leaning to one side) rather than a true square.

Step 4: Check the Diagonals

This is the step that separates a rough layout from an accurate one. Measure from one corner to the opposite corner diagonally, then measure the other diagonal. In a true square, both diagonals are identical. The exact length should be the side length multiplied by 1.414 (the square root of 2). For a 10-foot square, each diagonal should be 14 feet 1.6 inches. For a 12-foot square, about 16 feet 11.5 inches.

If your diagonals don’t match, the layout is racked. Shift the corners that are off until both diagonals read the same measurement. Even a half-inch difference is worth correcting for most building projects, though for a garden bed you can be more relaxed.

Quick Diagonal Reference

  • 8 × 8 feet: diagonal = 11 ft 3.8 in
  • 10 × 10 feet: diagonal = 14 ft 1.6 in
  • 12 × 12 feet: diagonal = 16 ft 11.5 in
  • 16 × 16 feet: diagonal = 22 ft 7.4 in
  • 20 × 20 feet: diagonal = 28 ft 3.2 in

Using Batter Boards for Larger Projects

For anything you’re excavating, pouring concrete for, or building a permanent structure on, batter boards are a major upgrade over simple stakes. Each batter board is just two short stakes driven into the ground with a horizontal crosspiece screwed between them, set about 2 to 4 feet outside each corner of your layout.

You tie your mason’s string to the crosspieces rather than to corner stakes. The advantage is that you can slide the string left or right along the crosspiece to fine-tune your layout without pulling anything out of the ground. When two strings cross, that intersection marks the exact corner of your square. You can also remove the strings temporarily for digging, then retie them to the same crosspieces to restore your layout perfectly.

After tying off all four lines, use the 3-4-5 method at each corner and check both diagonals. If something is off, just slide the string along the batter board and remeasure. This adjustability is why batter boards are standard practice for foundation work.

Tips for Different Ground Surfaces

On bare soil or dirt, you can mark your lines by pouring flour, powdered chalk, or marking paint directly on the ground once your string is set. Drive stakes in with a hammer. Soil is the easiest surface to work with.

On grass, stakes push in easily when the ground is moist but can be stubborn in dry, hard-packed turf. A pilot hole from a screwdriver helps. Use marking paint designed for turf (the kind used for sports fields) if you want visible lines that last a few days.

On gravel, stakes tend to loosen. Use longer stakes or rebar, and pack gravel tightly around the base. Some people use a chalk snap line to mark directly on gravel, stretching it tight between measured points and snapping it to leave a chalk line on the surface. This works well for temporary layouts like game courts or event setups.

On concrete or asphalt, you can’t drive stakes. Use weights, tape, or clamps to anchor your string lines, and mark corners directly on the surface with chalk or a lumber crayon.

Common Mistakes to Avoid

Loose string is the most frequent source of error. If your mason’s line sags, every measurement you take off it will be slightly wrong. Pull it taut enough that it barely deflects when you press a finger against it.

Measuring from the wrong point is another easy mistake. Always measure from the same spot on the stake, ideally the side facing the interior of the square. If you measure from the front of one stake and the back of another, you’re introducing an error equal to the stake’s width.

Skipping the diagonal check is tempting but risky. The 3-4-5 method is accurate, but small errors at each corner compound. Two diagonals that match within a quarter inch confirm the whole layout is square. Two diagonals that don’t match tell you exactly how much correction you need: shift the longer diagonal’s corners inward until both readings agree.