Fence Calculator

Enter each run of fence, the post spacing, the number of rails, the picket size and gap, and any gates, and get a materials list: posts, rails, pickets with waste, gate posts, and the bags of concrete for every hole.

Units

Fence runs

A run is a straight stretch between corners, or between a corner and the house.

  1. Run 1: Back
  2. Run 2: Left side
  3. Run 3: Right side

Posts, rails and pickets

Centre to centre
2 up to 5 ft tall, 3 above
Actual face width; 0 for panels
0 for a privacy fence
For cuts and bad boards

Gates

Each gate adds one post, and its opening comes out of the pickets.

  1. Gate 1

Post holes and concrete

10 in suits a 4x4
Depth of concrete in each hole
3 1/2 for a 4x4, 5 1/2 for a 6x6

Prices (optional)

Typical $7.97–$7.98 per bag (Oct 2026), varies by region

Fence materials

Materials list

22 posts

54 rails, 327 pickets, and 55 bags of 50 lb (fast-setting concrete) to set the posts.

Pickets include 10% extra. Gate posts are included in the post count.

Posts 8 ft apart · 3 rails per section · 5 1/2 in pickets, no gap · 10 in holes, 24 in of concrete

Fence length
140 ft42.7 m
Sections
18
Posts
221 for gates
Rails
54
Pickets
327297 before the extra
Concrete
20.3 cu ftall holes
Concrete for the post holes (any one bag size)
Bag sizeBags
Fast-setting concrete, 50 lb bag (0.375 cu ft)55
Fast-setting concrete, 60 lb bag (0.45 cu ft)46
Concrete mix, 40 lb bag (0.30 cu ft)68
Concrete mix, 50 lb bag (0.375 cu ft)55
Concrete mix, 60 lb bag (0.45 cu ft)46
Concrete mix, 80 lb bag (0.60 cu ft)34
Concrete mix, 90 lb bag (0.67 cu ft)31

Check these

  • Runs are counted as separate straight lines. Where two runs meet at a corner they share a post, so subtract one post (and its concrete) per shared corner.

Your fence, to scale

Back · 60 ftLeft side · 40 ftRight side · 40 ft
Each square is a post; runs are drawn at one scale.
Run by run
RunLengthSectionsPosts
Back60 ft89
Left side40 ft56
Right side40 ft56
Gate posts1

How to use it

  1. Measure each run. A run is a straight stretch between corners or between a corner and the house. Measure along the line the fence will take, and add a row per run; corner posts are counted where runs meet.
  2. Set the post spacing. Eight feet on centre for most wood fences and panel fences; six feet for tall fences in wind, heavy panels or soft ground.
  3. Choose rails and pickets. Two rails for fences up to 5 ft, three for taller. Enter the picket's actual face width (5 1/2 in for a nominal 1 x 6, 3 1/2 in for a 1 x 4) and the gap between pickets, 0 for a privacy fence. For a panel fence, set the picket width to 0.
  4. Add gates. Width and how many. Each gate adds one post (it hangs between two, and one is already a line post) and its opening comes out of the picket run.
  5. Set the hole size. Diameter, depth of the concrete, and the post size, so the post's own volume is subtracted. Pick the bag size you will buy.
  6. Read the list. Posts, rails, pickets before and after waste, gate posts and concrete bags, with a per-run breakdown and a materials total when you enter prices.

Post spacing

Posts are spaced to suit the rails. Dimensional lumber comes in 8 ft lengths (and 16 ft, which cuts to two), and prebuilt panels are 8 ft wide, so 8 ft on centre wastes nothing. The calculator divides each run by the spacing and rounds up to whole sections, which is what you do on the ground: a 50 ft run at 8 ft is seven sections, and you either shorten the last one or spread the difference across all of them. Each run gets one more post than it has sections; where two runs meet at a corner, the corner post serves both, and you can drop one post from the total for each corner, or let the spare be the one you keep. Six-foot spacing is worth the extra posts for a 6 ft solid fence in an exposed spot, since a privacy fence is a sail, and for heavier materials such as composite boards.

Picket math

Pickets per foot is the picket width plus the gap, divided into 12. The nominal sizes mislead: a 1 x 6 picket is 5 1/2 in wide and a 1 x 4 is 3 1/2 in. Butted 5 1/2 in pickets for a privacy fence run 2.18 per foot; a traditional picket fence of 3 1/2 in boards with 2 1/2 in gaps runs 2.00 per foot. The calculator counts pickets across the whole run rather than per section, so the fractional picket at the end of each section is not rounded up eight times over. Board-on-board and shadowbox fences overlap pickets on both sides of the rails and need roughly 1 1/2 to 2 times as many; estimate them by entering the effective spacing, or run the calculator twice. Pickets also shrink as they dry: a wet-treated 5 1/2 in board can lose a quarter inch, so a fence butted tight in spring has gaps by autumn. Leave the gap or accept it.

Gates

A gate is a hole in the fence between two posts. The hinge post carries the gate's full weight as a lever, so it is the one post on the fence worth upsizing to a 6 x 6, setting deeper and bracing with more concrete; the latch post takes the slam. Common widths are 3 ft for a walk gate, 4 ft to get a mower through, and 10 to 12 ft as a double gate for a vehicle. Set the gate so one of its posts falls where a line post would go anyway, and only the other is extra: the calculator adds one post per gate and takes the gate width out of the picket count. The gate itself, whether a kit or built on site from the same pickets, is bought or counted separately, along with hinges, a latch and, for double gates, a drop rod.

Concrete per post

Each hole is a cylinder with a post in it, and the concrete is the difference. The usual hole is about three times the post width, so 10 to 12 in for a 4 x 4, and the depth is a third of the fence height plus whatever the frost line demands. Many installers put 4 to 6 in of gravel in the bottom for drainage and set the post on it, so the concrete column is shorter than the hole; enter the concrete depth. For a 12 in hole with 30 in of concrete around a 4 x 4, the calculator finds 1.75 cubic feet per hole, which is 4 of the 60 lb bags or 3 of the 80 lb bags. Multiply by every post, gate posts included, and the bags add up fast, which is why fence crews buy concrete by the pallet. Fast-setting mix can be poured dry into the hole and watered in; its 50 and 60 lb bags are listed at the same yields as ordinary concrete mix.

Bag yields come from:

Worked example: a privacy fence on three sides

A 6 ft privacy fence along the back (60 ft) and both sides (40 and 60 ft) of a yard, posts 8 ft on centre, three rails, butted 5 1/2 in pickets, one 4 ft gate, 12 in holes with 30 in of concrete around 4 x 4 posts, and 5 percent extra on the pickets:

Result

RunLength (ft)SectionsPosts
Back6089
Left side4056
Right side6089
  • Fence length160 ft
  • Posts25
  • Of which added for the gate1
  • Rails63
  • Pickets (with 5% extra)359
  • Concrete43.8 cu ft
  • 80 lb bags73

The three runs total 160 ft and 21 sections, which takes 24 posts counted run by run, plus 1 more for the gate: 25 in all. Three rails per section is 63 rails. The pickets cover the fence less the gate opening: 341 before waste, 359 to buy. The 25 holes need 43.8 cubic feet of concrete, or 73 of the 80 lb bags. Two corners where runs meet could each share a post, so you may buy two fewer posts than the per-run count; the calculator lists the conservative number and flags it in the result.

Mistakes people make

  • Using nominal picket widths. A 1 x 6 is 5 1/2 in. Using 6 in under-counts pickets by about 8 percent.
  • Posts too short. Height above ground plus depth in the ground plus a little to trim. A 6 ft fence usually wants 8 ft posts at least.
  • Stretching the spacing. Nine or ten feet between posts saves posts and sags rails.
  • Treating gate posts like line posts. Upsize, deepen and concrete them.
  • Forgetting the frost line. Posts set above it heave. Ask the local building department.
  • Buying exactly the picket count. Some boards in every bundle are unusable. Five percent.

Frequently asked questions

How far apart should fence posts be?

Eight feet on centre is the standard for wood fences, because rails come in 8 and 16 ft lengths and prebuilt panels are 8 ft wide. Go to 6 ft for a tall solid fence in a windy spot, for heavy panels, or where the ground is soft. Never stretch beyond 8 ft with 2 x 4 rails; they sag. The calculator divides each run by the spacing and rounds up, so a 60 ft run at 8 ft is 8 sections and 9 posts, with the last sections a little short rather than one long one.

How many pickets per 8 ft section?

Divide the section length in inches by the picket width plus the gap. Butted 5 1/2 in pickets (a nominal 1 x 6) come to 17.5 per 8 ft section; 5 1/2 in pickets with a 1/2 in gap, 16.0; 3 1/2 in pickets with a 2 1/2 in gap, 16.0. Board-on-board and shadowbox fences overlap the pickets, so they need roughly 1 1/2 to 2 times as many. The calculator counts pickets across the whole fence length, not per section, so the fractions do not pile up.

How many bags of concrete does each fence post need?

For a 12 in hole 30 in deep around a 4 x 4 post (3 1/2 in actual), 1.75 cubic feet of concrete once the post is subtracted, which is 4 of the 60 lb bags or 3 of the 80 lb bags. A 10 in hole 24 in deep needs about half that. With gravel in the bottom of the hole the concrete column is shorter still. Fast-setting mix is poured dry into the hole and watered; its 50 and 60 lb bags are listed at the same yields as ordinary mix.

How deep should fence posts be set?

A third of the post's height above ground is the usual rule, so about 2 ft for a 6 ft fence, and below the frost line wherever the ground freezes, which in cold regions means 3 to 4 ft. Gate posts and corner posts go deeper. Buy posts long enough: a 6 ft fence with 2 ft in the ground uses the whole of an 8 ft post, so 2 1/2 ft in the ground means 10 ft posts trimmed to length, and a 4 ft picket fence with 2 ft buried needs 6 ft posts.

How many rails do I need?

Two per section for fences up to about 5 ft, three for 6 ft and taller, so pickets have support near the top, middle and bottom and do not cup or warp. Rails are counted per section with no waste added, so the example above with 21 sections and 3 rails each needs 63 rails; buy one or two spares for the boards with a bad knot or a twist.

Do gates need different posts?

Yes. A gate hangs its whole weight on one post and slams against the other, so gate posts are commonly a size up (6 x 6 instead of 4 x 4), set deeper, and always in concrete. A gate hangs between two posts, one of which the run already has, so the calculator adds one post per gate and subtracts the gate opening from the picket run; the pickets for the gate itself are usually bought with the gate kit or counted separately. Double gates for a driveway need two hinge posts and a drop rod in the middle.

How much extra lumber should I buy?

The calculator's waste percentage applies to the pickets, the boards that get cut and the ones most likely to be split or knot-ridden; 5 percent is usual. Rails and posts are counted exactly, so buy a spare or two of each: a post that splits when you drive a screw into it on installation day is a trip to the store. The concrete is counted exactly too, so round the bags up and keep one spare for the hole that comes out wider than planned, which is most of them.

Related