Fence Calculator

Quick answer

A 100 ft fence with one 4 ft gate, built in 8 ft sections, needs 12 sections, 14 posts, 36 rails (3 per section) and 28 bags of concrete (2 per post). Posts = sections + gates + 1, because every gate breaks the run into another segment that needs its own end posts.

Calculate

Try an example:

Your result

—
  • Posts—
  • Rails—
  • Concrete bags (60 lb)—
  • Fence line (after gates)—
  • Estimated cost—
Fence Calculator —
HomeCalc — shopping card

Fence Calculator

Enter your measurements to build your shopping card.

Take this card to the supplier. Confirm quantities before ordering. Prices reviewed December 2026.

How to use this calculator

  1. Measure the total fence run in feet (or metres) along every side you plan to fence, corner to corner.
  2. Set the section length: pre-built panels and standard post spacing are 8 ft; 6 ft spacing suits high-wind areas and heavier panels.
  3. Enter gates and gate width — a walk gate is usually 4 ft, a double drive gate 10–12 ft. Gate openings come out of the fence run, and each gate adds a post.
  4. Add prices per section, post and concrete bag for a materials estimate. Post holes are typically 2 bags of 60 lb concrete each.

Fence materials follow from one division: the fence run (total length minus gate openings) divided by the section length gives the sections, and posts are sections plus one — plus one more for every gate, because each gate breaks the run into a new segment with its own end posts. A 100 ft fence with a 4 ft gate in 8 ft sections is 96 ft of fence line: 12 sections, 14 posts, 36 rails at 3 per section, and 28 bags of concrete. Enter your run and the calculator counts the rest.

The formula, explained

Fence line = Total length − (Gates × Gate width)
Sections = Fence line ÷ Section length (rounded up)  ·  Posts = Sections + Gates + 1
Rails = Sections × Rails per section  ·  Concrete bags = Posts × Bags per post

The post formula surprises people: a straight 48 ft run needs 7 posts for 6 sections, not 6, because both ends need a post. Add a gate and the run becomes two segments, each needing its own pair of end posts — hence posts = sections + gates + 1. Corner posts are already counted as segment ends on multi-side fences if you enter the total run; on very short final sections, cutting one panel is cheaper than adding a post. Post depth is the other structural rule: bury at least one-third of the post (a 6 ft fence on 8 ft posts, 2 ft in the ground, deeper in frost country — below the local frost line where winters freeze).

Worked examples

Example 1 — backyard fence with gate. 100 ft total, one 4 ft gate, 8 ft sections: fence line 96 ft ÷ 8 = 12 sections. Posts = 12 + 1 + 1 = 14. Rails at 3 per section = 36. Concrete at 2 bags per post = 28 bags of 60 lb mix.
Example 2 — straight side fence. 48 ft with no gate: 48 ÷ 8 = 6 sections, 7 posts, 18 rails, 14 concrete bags. The classic off-by-one: six sections always need seven posts.
Example 3 — full yard, two gates. 200 ft with two 4 ft gates: fence line 192 ft ÷ 8 = 24 sections. Posts = 24 + 2 + 1 = 27. Rails 72, concrete 54 bags. Gate hardware and the gate frames themselves are extra — budget $50–$150 per gate.

Coverage and reference

Fence materials per 100 ft of fence line (8 ft sections, 3 rails)
Fence lineSectionsPosts (no gates)RailsConcrete (60 lb bags)
50 ft782116
100 ft13143928
150 ft19205740
200 ft25267552

Each gate adds one post and removes its width from the fence line. Pickets for a stick-built fence: a 6 ft privacy fence uses about 2.4 pickets (5.5 in wide with overlap) per linear foot — roughly 240 pickets per 100 ft. Pre-built panels include pickets and rails, so panel fences need only posts and concrete beyond the panels themselves.

What it costs

Materials for a 6 ft wood privacy fence typically run $12–$22 per linear foot DIY: panels $45–$90 per 8 ft section, posts $12–$25 each, concrete $5–$7 per 60 lb bag, plus gate hardware. The 100 ft example lands around $1,100–$1,600 in materials. Professional installation totals $25–$45 per linear foot. Prices last reviewed December 2026; lumber prices move with the market, so confirm before ordering.

Planning the rest of the project

Fence posts stand in concrete: check bag yields and footing volumes with the Concrete Calculator, gravel drainage at post bases with the Gravel Calculator, and lumber volumes for stick-built rails and pickets with the Board Feet Calculator — all part of our Landscaping Materials guide.

Frequently asked questions

How many posts do I need for a 100 ft fence?

In 8 ft sections with no gates: 13 sections and 14 posts. With one 4 ft gate, the fence line drops to 96 ft — 12 sections and 14 posts (the gate adds back a post). The rule: posts = sections + gates + 1.

How far apart should fence posts be?

8 ft on centre is standard for pre-built panels and 2×4 rails; 6 ft spacing is stiffer for high-wind areas, heavy gates and 6 ft privacy fences in exposed locations. Post spacing must match your panel length exactly for pre-built panels.

How much concrete per fence post?

Two 60 lb bags per post is the common allowance for a 10–12 in diameter hole 24 in deep. Deeper holes for frost lines or taller fences take 3 bags. The calculator lets you set bags per post to match your hole size.

How deep should fence posts go?

At least one-third of the post length: 2 ft deep for a 6 ft fence on 8 ft posts. In frost climates, dig below the local frost line (often 36–48 in) or frost heave will lift the posts. Gate posts deserve the deepest holes and the most concrete.

Should I buy panels or build from pickets and rails?

Panels are faster and consistent; stick-built (posts, rails, pickets) fits sloped ground better because rails can step with the slope, and repairs replace single pickets. On slopes over about 6 inches per section, stick-built usually wins.

Sources & verification

Post/section arithmetic follows standard 8 ft panel practice; 2 × 60 lb bags per post from premix yield data (60 lb bag ≈ 0.45 cu ft) for 10–12 in × 24 in holes; post depth rule (one-third buried, below frost line) from fence industry guidance. Price ranges reviewed December 2026. Full formulas and price methodology are documented on our methodology page; our editorial policy explains how figures are checked, and any corrections are recorded in the corrections log.

You may also need

Projects rarely need just one number. These pair with this calculator — all part of our Landscaping Materials guide:

Embed this calculator — free for blogs and project guides. Paste this code into your page: <iframe src="https://homcalc.work/fence-calculator" width="100%" height="520" style="border:0" title="Fence Calculator" loading="lazy"></iframe>

Methodology: formulas and densities are explained on our methodology page. Last updated December 2026. Estimates only — confirm quantities with your supplier.