Fence Calculator

Posts, rails, pickets and cost for wood, vinyl and chain-link fences

ft
ft
ft
Wood: typically 6–8 ft; vinyl 8–10 ft; chain-link 10–12 ft
gates
ft
rails
Wood fences only; taller fences usually need more rails
in
in
0 for a solid privacy fence
$/ft
Example value only — prices vary widely by region and material; get local quotes
Estimated cost—
Posts—
Sections / panels—
Rails—
Pickets—
Fence length excluding gates—
Post hole depth—
🎰 15 Global Lotteries + 12 Smart Number Pickers
Powerball · Mega Millions · EuroMillions · UK Lotto — Zodiac, Birthday, Dream, AI & more

How many fence posts do I need?

Divide the length of the fence by the post spacing and round up to get the number of sections (panels). An open run needs one more post than sections — five panels need six posts — while a closed loop needs exactly one post per section. Each gate adds a post, because the opening needs a post on both sides.

Typical post spacing, according to Decks.com: 6–8 ft for wood and composite fences (most residential privacy fences fall in this range), 8–10 ft for vinyl and 10–12 ft for chain-link. For prefab panels, the panel width sets the spacing.

Example: 150 ft privacy fence

A 150 ft open run of 6 ft wood privacy fence with one 4 ft gate has 146 ft of fence. At 8 ft spacing that is 19 sections (146 ÷ 8 = 18.25, rounded up), so you need 19 + 1 + 1 = 21 posts. With three rails per section you need 57 rails, and 5.5-inch pickets set tight need 146 × 12 ÷ 5.5 = 319 pickets (buy a few extra). At an example installed price of $30 per foot, the fence would cost about $4,380 — real prices vary a lot by region and material.

Setting posts

  • Depth: Decks.com recommends post holes at least one-third to one-half of the post's above-ground height. For a 6 ft fence that means 2–3 ft deep, so you need 8–9 ft posts.
  • Call 811 first: 811 is the free national call-before-you-dig service. Contact it a few business days before any digging — fence installation is one of the common projects it covers — so buried gas, electric and other lines get marked.
  • Check local rules: height limits, setbacks from the property line, pool-barrier rules and HOA covenants vary by city and neighborhood. Confirm them, and your property line, before you buy materials.

Choosing a fence type

Wood privacy fences are the classic backyard choice; spaced picket fences use fewer pickets and suit front yards; vinyl panels cost more up front but need little upkeep; chain-link is the cheapest way to enclose a large area. If you are also building a deck, use the deck calculator, and estimate post-hole concrete with the concrete calculator.

Sources

Last checked: 2026-10-27

Frequently Asked Questions

How far apart should fence posts be?
Decks.com gives 6–8 ft for wood and composite fences, 8–10 ft for vinyl and 10–12 ft for chain-link. Always follow the panel or manufacturer specs if you use prefab panels.
How many fence posts do I need for 100 feet?
At 8 ft spacing, 100 ft is 13 sections (12.5 rounded up), so an open run needs 14 posts, plus one for each gate. At 6 ft spacing it is 17 sections and 18 posts.
How deep should fence posts be?
At least one-third to one-half of the post's height above ground. For a 6 ft fence that is roughly 2–3 ft deep. Frost depth and soil can call for more — check local practice.
How many pickets do I need per foot of fence?
Divide 12 inches by the picket width plus the gap. Tight 5.5-inch privacy pickets need about 2.2 per foot; 3.5-inch pickets with 2.5-inch gaps need 2 per foot.
Do I need to call before digging fence post holes?
Yes. 811 is the free national call-before-you-dig service, and you should contact it a few business days before you start digging so underground utilities can be marked.

Bookmarks