Fence Calculator — Posts, Rails & Pickets
Enter fence length, post spacing and picket width to get post, rail and picket counts plus the bags of concrete needed to set each post.
Fence Calculator — Posts, Rails & Pickets
Enter fence length, post spacing and picket width to get post, rail and picket counts plus the bags of concrete needed to set each post.
| Standard post spacing | 8 ft on center |
|---|---|
| Post hole depth | 1/3 of post height |
| Concrete per 4×4 post | 1.5–2 bags (50 lb) |
| Rails per section | 2 (3 over 6 ft tall) |
Fence Calculator — instant results
Show calculation steps
- Posts = ⌈100 ÷ 8⌉ + 1 = 14
- Panels = ⌈100 ÷ 8⌉ = 13
- Concrete = 14 posts × 2 bags = 28
Formula
Posts = (Fence Length ft ÷ Post Spacing ft) + 1
Add one post to close the run. Pickets are counted as fence length in inches divided by picket width plus gap, and rails are the number of sections times rails per section.
- Standard post spacing
- 8 ft on center
- Post hole depth
- 1/3 of post height
- Concrete per 4×4 post
- 1.5–2 bags (50 lb)
- Rails per section
- 2 (3 over 6 ft tall)
Post layout and spacing
Post spacing sets everything else. Eight feet on center is the standard for wood privacy fence because rails come in eight and sixteen foot lengths, which means no waste and no mid-span splices. Six feet on center produces a noticeably stiffer fence and is worth the extra posts in high-wind regions or on any run over about six feet tall. Vinyl and preassembled panel fences have fixed spacing set by the panel width, usually six or eight feet, and cannot be adjusted.
Count corners, ends and gates separately. Every corner needs a post, every gate needs two posts sized heavier than line posts, and any change in grade steep enough to step the fence needs a post at each step. A 200 foot run with two corners and one gate does not need 26 posts — it needs those line posts plus the corner and gate posts, and gate posts in particular should be 6×6 rather than 4×4 because they carry a swinging load all day.
Setting posts in concrete
The accepted rule is that a post hole should be one third of the above-ground post height deep, and three times the post width in diameter. A 6 foot fence therefore wants a 24 to 30 inch deep hole, or deeper if your local frost line is below that. A 4×4 post takes a 10 to 12 inch diameter hole, which consumes roughly one and a half to two 50 lb bags of fast-setting post mix per hole.
Set posts on 4 to 6 inches of gravel so water can drain away from the end grain, crown the concrete above grade so it sheds water, and let the mix cure before hanging rails. Fast-setting mix is poured dry into the hole and water is added on top, which is why it is the standard for fencing — no mixing, and posts are workable within an hour. For heavy gates, use standard concrete mixed properly and give it a full day.
Fence prices per linear foot in 2026
Fencing is quoted by the linear foot in the United States. Chain link runs $12 to $25 installed, pressure-treated wood privacy fence runs $25 to $45, cedar privacy $35 to $60, vinyl $30 to $60, and ornamental aluminum $40 to $75. Material-only cost for a DIY wood privacy fence is typically 40 to 50 percent of the installed price, with post-hole digging being the labor most homeowners underestimate.
Before you buy anything, confirm the property line with a survey rather than a fence your neighbor built, check the local permit requirement — many US cities require one over six feet and most HOAs restrict style and height — and call 811 for utility locates. That call is free, legally required in every state, and considerably cheaper than hitting a gas line with an auger.
Fence cost in USA 2026
| Item | Unit | 2026 price (USD) | Notes |
|---|---|---|---|
| 4×4 × 8 ft pressure-treated post | each | $13.50 | Standard line post |
| Cedar picket 1×6 × 6 ft | each | $4.20 | Privacy fence face board |
| Fast-setting post mix | 50 lb bag | $7.25 | 1.5–2 bags per post hole |
| Wood privacy fence installed | per linear ft | $25–$45 | Pressure-treated, 6 ft tall |
| Vinyl fence installed | per linear ft | $30–$60 | Panel system, low maintenance |
| Chain link installed | per linear ft | $12–$25 | Galvanized, 4–6 ft tall |
2026 planning ranges in USD. Permits, gates and grade changes add cost.
Frequently asked questions
How many fence posts do I need for 200 feet?
At 8 feet on center a 200 foot straight run needs 26 posts, plus one extra post at each corner and two heavier posts for every gate.
How deep should fence posts be set?
Dig to one third of the above-ground post height — about 24 to 30 inches for a 6 foot fence — or deeper if your local frost line requires it.
How much does a wood fence cost per foot in 2026?
Installed pressure-treated privacy fence runs $25 to $45 per linear foot in the USA in 2026, with cedar at $35 to $60.
Related calculators
Browse all BuildMat calculatorsPlanning estimate only. Prices are 2026 USA averages in USD and vary by state, supplier and season — confirm quantities and pricing with your local supplier or contractor before ordering.