TallyTakeoff

Fence Calculator

This fence calculator turns a fence run into an exact shopping list — posts, rails, pickets, concrete, and gate hardware — before you go to the lumberyard. Enter your total run, corners, and gates, and the calculator handles the fencepost math (easy to get wrong by hand) for you.

The +1 post math, done rightPrices editable · reviewed July 2026Whole-piece counts you can buy
146 ft run6 ft23 posts
Post spacing
Rails per section
Concrete per post
Prices — editablepressure-treated pine averages · reviewed July 2026

Price edits are remembered on this device — no account, nothing sent anywhere.

SHOPPING LIST146 FT NET · 19 SECTIONS
23posts
20 line + 2 corner + 1 gate · buy 8 ft posts
rails (3/section)57
pickets319
concrete bags (2/post)46
Materials at your prices$2,232
+10% fasteners & caps$223
Estimated total$2,455

$16.37/linear ft · band ±10%: $2,210$2,701

Estimates only, not quotes. Prices are editable national averages — confirm current pricing and quantities with your supplier before you buy.

Plain-English tour

How this fence post calculator counts posts, rails, and pickets

A wood fence is priced and bought by the piece, not the foot, so this calculator's real job is turning a single run length into whole counts of posts, rails, and pickets you can hand to a lumberyard.

The first and easiest mistake in a DIY fence estimate is counting posts as if they matched fence sections one-for-one. They don't. Split a 100 ft run into 8 ft sections and you get roughly 12.5 sections, rounded up to 13 whole sections — but that takes 14 posts, because every section shares a post with its neighbor except the two posts at the very ends of the run. This calculator adds that one extra post automatically, then adds a post for every corner (a corner turns the line, so it needs its own post beyond the regular spacing) and one more for every gate (a gate opening rarely lines up on a routine spacing interval, so it gets a dedicated post on top of the line count).

From there, rails multiply straightforwardly — one full run of rails per section, at 2 or 3 per section depending on style — and pickets divide the net fence length (run minus gate openings) by each picket's width plus its gap. Concrete is priced per post, and a 10% fastener allowance covers screws, nails, and post caps that don't get their own line item.

Setting a wooden fence post in fast-setting concrete with a level — a fence calculator counts posts, rails, pickets and bags
Each post takes about two bags of fast-setting concrete — counted per post from the run.
Cedar fence under construction with posts and rails up and pickets stacked on the grass — a full materials list from one run length
Sections plus one: a 100 ft run at 8 ft spacing needs 14 posts, not 13.
Show the math

The formula

net run = total run − (gates × gate width)
sections = net run ÷ spacing, rounded up
posts = sections + 1 + corners + gates
rails = sections × rails per section
pickets = net run (in) ÷ (picket width + gap), rounded up
concrete = posts × bags per post
cost = pieces at your prices × 1.10 fasteners
With the defaults

Worked example: 150 ft of wood fence materials

Using the calculator's own defaults: a 150 ft privacy fence (6 ft boards), 2 corners, 1 gate (4 ft wide), posts every 8 ft, 3 rails per section, 5.5 in pickets with no gap, and 2 bags of fast-setting concrete per post.

  1. 1. Net run150 − (1 × 4) = 146 ft
  2. 2. Sections146 ÷ 8 = 18.25 → 19
  3. 3. Posts19 + 1 + 2 + 1 = 23
  4. 4. Rails19 × 3 = 57
  5. 5. Pickets(146 × 12) ÷ 5.5 = 318.5 → 319
  6. 6. Concrete23 × 2 = 46 bags
  7. 7. Materials(23×$18)+(57×$9)+(319×$2.75)+(46×$8)+(1×$60) = $2,232
  8. 8. Total ×1.10$2,455 typical · $2,210–$2,701 · $16.37/lf

Post length guidance: 6 ft boards + 2 ft buried = 8 ft posts.

What we assume

Assumptions & defaults

Fence calculator assumptions
Privacy style6 ft boards · 3 rails · no gap
Picket style4 ft · 2 rails · 1.75 in gap
Split-rail style4 ft · 2 rails · no pickets
Post length ruleHeight + 2 ft buried, next even foot
Concrete per post1–2 bags of 50-lb fast-set (2 is the safer default)
Fastener allowance+10% on the materials subtotal
Prices (editable)Post $18 · rail $9 · picket $2.75 · bag $8 · gate kit $60

Selecting a style resets rails and gap to its defaults, but every field stays editable afterward. Prices are editable national-average retail estimates for pressure-treated pine — swap in cedar, vinyl, or metal pricing yourself, or use the fence installation cost calculator to compare installed pricing across materials. Prices reviewed July 2026.

Derived from this calculator

Fence posts per run, by post spacing

Fence posts needed by run length at 6 ft and 8 ft post spacing, straight run before corners and gates
Run lengthPosts @ 8 ftPosts @ 6 ft
50 ft810
100 ft1418
150 ft2026
200 ft2635
300 ft3951

Sections-plus-one: divide the run by the spacing, round up, add one — then the calculator adds a post per corner and per gate on top, which is what the quick table can't know. Each post takes about two bags of fast-setting concrete, priced per bag by the concrete calculator's math; picket culls and the final short bay are why the waste factors reference gives pickets 5%. When the piece count is settled, the fence cost calculator turns the same run into an installed price per foot.

Where the numbers come from

Sources & standards

Post-setting depth and concrete-bag yield guidance follow manufacturer installation instructions for fast-setting concrete mixes. Ground-contact lumber requirements follow the American Wood Protection Association's Use Category System (AWPA U1, categories UC4A/UC4B) for posts set in soil or concrete. Frost-depth and property-line setback rules are jurisdiction-specific — verify with your local building department before finalizing post depth or fence placement. Prices reviewed July 2026 — see how our price reviews work.

Before you dig

Frequently asked questions

Why are there more posts than fence sections?
Because posts are shared between neighboring sections except at the two ends of the run. A 150 ft run split into 8 ft sections needs 19 sections but 20 line posts — one more than the section count — plus an extra post at every corner and gate, since those openings don't fall on the regular spacing.
Should I space posts 6 ft or 8 ft apart?
8 ft spacing uses fewer posts and less concrete and is standard for most residential privacy and picket fences with a properly sized rail. 6 ft spacing costs more in posts and labor but resists wind load and sag better on taller fences, exposed sites, or with thinner rails — check your rail's span rating if you're unsure which to use.
How many bags of concrete does one fence post need?
Most residential posts — a 4x4 or 6x6 set about 2 ft deep — use 1-2 bags of 50-lb fast-setting concrete mix per hole. Deeper holes, wider post bases, and heavier gate posts can need more; check the yield printed on your specific bag against your hole size.
How long should my fence posts be?
A quick planning rule is fence height plus 2 ft of buried depth, rounded up to a standard retail length. The more precise trade rule buries roughly one-third of the post's total length and always goes below the local frost line in freezing climates, so a cold-climate post may need to run longer than the simple +2 ft rule suggests.
Do I need my neighbor's sign-off to build on the property line?
Not usually to build on your own side of it, but you do generally need your own survey or plat to confirm exactly where the line runs, and most municipalities set a minimum setback regardless of whose fence it is. Check local zoning before you dig — a fence built over the line can turn into a dispute at resale.
What changes if my yard slopes?
You'll either step the fence in level sections (each panel horizontal, with a small triangular gap underneath that grows downhill) or rack it to follow the slope continuously. Stepped fencing is simpler for privacy panels but leaves gaps at the bottom; racked fencing looks continuous but needs custom-angled pickets on every panel, adding labor and waste this calculator's flat-ground quantities don't include.
QUANTITY ↔ COST TWIN
Know the pieces. Now price the whole install.
Fence Installation Cost Calculator