Skip to content
MeasureToBuy

Fence Calculator

Enter the fence length, height, post spacing and gates, then pick prebuilt panels or pickets on rails. The calculator counts posts, panels or pickets, rails and the bags of concrete to set the posts.

Measurements

Include the gate openings.

Count each straight stretch between corners or ends. Each run adds an end post.

Above ground.

Post spacing

Standard panels and rails

Fence style

Built on site

A 1×4 picket is 3½ in wide; a 1×6 is 5½ in.

0 for a privacy fence, 1–2 in for spaced pickets.

Rails per section

5–6 ft privacy fences

Opening between gate posts.

Advanced optionscoverage, sizes, custom values
Post size

3½ in actual

0 = automatic: ⅓ of the fence height, at least 24 in (600 mm). Go below the frost line where the ground freezes.

Concrete bag

0.375 cu ft per bag

Your estimate

You need 15 posts and 330 pickets.

100 ft of fence at 8 ft spacing = 13 sections, with 42 bags of concrete for the posts.

Fence length
100 ft
Gate openings1 × 4 ft
4 ft
Sections8 ft post spacing
13 sections
Posts8 ft long (6 ft + 24 in in the ground)
15 posts
Pickets3.5 in wide, 0 in gap
330 pickets
Rails3 per section × 12 sections, 8 ft long
36 rails
Gates
1 gate

Post concrete

Hole diameter3 × post width
10.5 in
Hole depth⅓ of the height, minimum applied
24 in
Concrete per holehole minus the post
1.03 cu ft
Concrete for all posts
15.5 cu ft
50 lb fast-setting bags0.38 cu ft per bag
42 bags
  • Posts = 13 sections + 1 for the run end + 1 so each gate has its own hinge and latch post.
  • Set gate posts deeper or use 6×6 posts — a swinging gate pulls harder on its post than any fence section.
  • Hardware, nails or screws, gravel under the posts and post caps are not included. Buy 5% extra pickets for splits and knots.
  • Height limits, setbacks, property lines and permits vary by town and HOA. Call 811 (or your local utility locator) before digging.
Fence · elevation
GATE8 ft6 ft3 OF 13 SECTIONS SHOWN
13 sections of 8 ft cover 100 ft. Posts = sections + 1 per run + 1 per gate.

Next step

Compare concrete bag sizes

Your post holes need about 15.5 cu ft of concrete. Compare bag sizes and mixing water.

Concrete bag calculator

Also useful

Plan the whole fence

Step through layout, posts, concrete and materials in one printable plan.

Start the Install a Fence project

How to measure

  1. Walk the fence line with a long tape or measuring wheel and total every straight stretch, including gate openings.
  2. Count the straight runs: each stretch between corners or ends. A fence along three sides of a yard is three runs.
  3. Decide on gates and their width. 3–4 ft for people, 10–12 ft (or a double gate) for vehicles.
  4. Choose post spacing: 8 ft suits most wood panels and 8 ft rails; 6 ft is stiffer in wind and common for vinyl.

How the fence calculation works

Sections   = ceil(fence length ÷ post spacing)
Posts      = sections + runs + gates
Infill     = fence length − gate widths
Panels     = ceil(infill ÷ post spacing)
Pickets    = ceil(infill ÷ (picket width + gap))
Rails      = ceil(infill ÷ post spacing) × rails per section
Hole       = ⌀ 3 × post width, depth ⅓ of fence height (min 24 in)
Bags       = posts × (hole volume − post volume) ÷ bag yield

A straight run of n sections has n + 1 posts. Each extra run starts a new line of posts, and each gate needs its own post on the far side so the hinge and latch posts aren't shared with a fence section.

Panels, pickets and rails cover the fence line minus the gate openings. Short end sections are cut from full panels or rails.

Post holes are about three times the post width — 10½ in for a 4×4 — and deep enough to bury a third of the height above ground, never less than 24 in. Concrete fills the hole around the post; bag counts use published yields of 0.375 cu ft for a 50 lb fast-setting bag and 0.6 cu ft for 80 lb.

Worked example

100 ft of 6 ft privacy fence in one run, 8 ft post spacing, one 4 ft gate, 3½ in pickets laid tight on 3 rails, 4×4 posts.

  1. Sections: 100 ÷ 8 = 12.5 → 13; posts: 13 + 1 + 1 gate = 15
  2. Infill: 100 − 4 = 96 ft = 1,152 in ÷ 3.5 = 329.1 → 330 pickets
  3. Rails: 96 ÷ 8 = 12 sections × 3 = 36 rails
  4. Holes: 10½ in × 24 in; concrete π × 5.25² × 24 − 3.5² × 24 = 1,784 cu in = 1.03 cu ft each
  5. Concrete: 15 × 1.03 = 15.5 cu ft ÷ 0.375 = 41.3 → 42 bags of 50 lb fast-setting

Buy 15 posts 8 ft long, 330 pickets, 36 rails, one gate and 42 bags of 50 lb fast-setting concrete.

Reading your result

The headline gives posts and infill — the two big items. Rails and gates are listed below, and concrete has its own table.

If the post count looks high, check the number of runs: each separate stretch adds an end post.

In cold climates the hole should reach below the frost line, which can be deeper than the rule of thumb. Enter that depth under Advanced options.

Assumptions

  • Posts are set in concrete. Gravel under each post for drainage is not included.
  • Post length = fence height + hole depth, rounded up to a stock length.
  • Picket counts have no waste; buy about 5% extra for splits and knots.
  • Hardware, fasteners, post caps and gate kits are not included.

Unit conversions use exact definitions (1 in = 25.4 mm, 1 US gal = 3.785 L). See the calculation methodology for rounding rules.

When to call a professional

  • Fence height limits, setbacks, pool-barrier rules and permits vary by town and HOA. Check before you buy.
  • Call 811 (or your local utility locator) before digging any post holes. Have the property line surveyed if you're building close to it.

Frequently asked questions

How many fence posts do I need for 100 feet?

At 8 ft spacing, 100 ÷ 8 = 12.5 → 13 sections, so 14 posts for one straight run, plus one per gate.

How deep should fence posts be?

About a third of the height above ground and at least 24 in — 2 ft for a 6 ft fence. Go below the frost line where the ground freezes.

How many bags of concrete per fence post?

For a 4×4 in a 10½ in hole 24 in deep, about 1 cu ft: roughly 3 bags of 50 lb fast-setting or 2 bags of 80 lb.

How many pickets do I need per 8 ft section?

With 3½ in pickets laid tight, 96 ÷ 3.5 = 27.4 → 28 pickets. With a 1½ in gap, 96 ÷ 5 = 19.2 → 20.

More lumber & carpentry calculators

All lumber & carpentry