Every yard, by the numbers.
100% free tools

YARD RULER / STAKE SPACING CALCULATOR

Stake Spacing Calculator for Edging and Borders

Enter a total length and target spacing to get the number of stakes and the exact even interval, with no short gap left at the end.

SPACE IT EVENLY

Every stake, evenly spaced.

No awkward leftover gap at the end — get the exact interval and the total count.

⌂ Calculated on your device
—
stakes
—
actual spacing

Need something sturdier than a stake for flags, signs or decor? YardSocket anchors yard accessories once so you can swap them anytime.

OPEN OR CLOSED

Fence-lines and full loops.

Straight runs need an end stake on both sides; loops don't — the math adjusts either way.

ADJUSTED SPACING

No fractional leftover.

Get the exact interval that divides evenly, right alongside what you asked for.

FEEDS FROM LAWN AREA

Perimeter carries over.

Measured your bed already? Pull the perimeter straight in.

The leftover-gap problem

If you start at one end of a border and place a stake every 18 inches, the last gap rarely comes out to exactly 18 inches. You end up with a short gap at the finish, which looks uneven and can leave edging weakly supported. The better approach is to pick a whole number of gaps close to your target and divide the length evenly. That is what this calculator does: it rounds the number of gaps to the nearest whole number, then shows the actual spacing that fits the length exactly.

Open runs versus closed loops

An open run, like a straight fence line or the edge of a driveway, has a stake at both the start and the end, so it needs one more stake than the number of gaps. A closed loop, like edging all the way around a tree ring or an island bed, ends where it started, so the first stake also serves as the last and the count equals the number of gaps. Choosing the wrong layout is the most common counting mistake, which is why the calculator asks for it.

Choosing a spacing

The presets cover common starting points: 12 or 18 inches for landscape edging and 3 feet for a light border fence. The right interval depends on the product, so check the edging or fencing manufacturer’s instructions, and space stakes closer on curves, slopes, or soft soil where the material needs more support. You can enter spacing in inches or feet; the calculator converts inches to feet internally and shows the result back in the unit you chose.

Getting the length

For a straight run, measure end to end. For a bed, the perimeter is the length you want; the lawn square footage calculator reports perimeter for rectangles, circles, triangles, and irregular shapes. The same even-spacing logic is used for fixtures in the landscape lighting calculator, so you can lay out stakes and lights along the same edge.

How to use the stake spacing calculator

  1. Measure the total length of the run, or the perimeter of the bed, in feet.
  2. Enter your target spacing and choose inches or feet.
  3. Choose open run (start to end) or closed loop (around a bed).
  4. Read the stake count and the adjusted spacing.
  5. Mark the first stake, then measure each interval from that starting point using the adjusted spacing.

Stake Spacing Calculator FAQ

How many stakes do I need for 80 feet of edging at 18 inches?

For a closed loop, 80 ft divided by 1.5 ft is about 53.3 gaps, which rounds to 53 stakes at about 18.1 inches apart. For an open run it would be 54 stakes.

Why is the actual spacing different from what I entered?

The calculator adjusts the interval so a whole number of equal gaps fits the length exactly, avoiding a short leftover gap at the end.

What is the difference between an open run and a closed loop?

An open run has a stake at both ends, so it needs one more stake than gaps. A closed loop returns to the starting stake, so stakes equal gaps.

How far apart should edging stakes be?

It depends on the edging product. The 12 and 18 inch presets are common starting points; follow the manufacturer’s instructions and add stakes on curves.

Does it work in inches and feet?

Yes. Enter total length in feet and spacing in either inches or feet; the actual spacing is shown in the unit you chose.

Yard Ruler Free yard & landscape calculators
Calculated on your device. General-purpose planning estimates — not engineering, electrical, or professional advice.
☕ Buy Me a Coffee
Disclosure: YardSocket (yardsocket.com) is owned by Yard Socket LLC, the same company that operates Yard Ruler.