Fence Calculator (Posts, Rails & Pickets)
CalculatorsPosts, rails, pickets and concrete bags for a fence line, with gates and a cost.
- Rails
- 57
- Pickets
- 234
- Picket length
- 6 ft
- Post length
- 10 ft posts, 3 ft in the ground
- Concrete bags
- 63 (3 per post)
- Fenced length (gates out)
- 146 ft
Estimates round up. Posts and rails are counted on the full line with one extra post per gate; gate openings come off the pickets only. Posts go about a third of their length into the ground: at least 2 ft, or half the fence height rounded up to the next 6 in. Concrete per post is the hole (10 in across, as deep as the burial) minus the post. Local codes, frost depth and HOA rules are not checked.
Each side is split into sections no longer than the post spacing, rounded up. Posts are the sections plus one (shared corners), plus one per gate. Pickets cover the fenced length at one picket plus one gap each. Concrete per post fills the hole around the post.
sections = ⌈side ÷ spacing⌉ · posts = sections + 1 + gates · pickets = ⌈length × 12 ÷ (picket + gap)⌉ · concrete = π r² × depth − post area × depth
⌈150 ÷ 8⌉ = 19 sections → 21 posts · ⌈146 × 12 ÷ 7.5⌉ = 234 pickets · 1.636 − 0.255 = 1.38 cu ft ÷ 0.6 → 3 bags per post
Calculated in your browser. The numbers you enter and the result are saved to your past runs so you can reopen them. Privacy
About
What the Fence Calculator does
The Fence Calculator estimates the materials for a wood, vinyl or picket fence. Enter the length of each side, the post spacing and rails per section, the picket width and gap, and any gates, and get the number of posts, rails, pickets and bags of concrete for the posts, plus a material cost if you add prices. Counts round up, so you will not run short.
Steps
How to use it
- 1Enter the fence length, or the length of each side for an L or U shape.
- 2Pick the post spacing and the number of rails per section.
- 3Enter the picket width and gap, and how many gates there are.
- 4Add prices per item for a material total.
Example
A real run
Input
150 ft fence, 8 ft post spacing, 3 rails, 5.5 in pickets with 2 in gaps, one 4 ft gate, 2 bags per post
Output
Sections: 19 · Posts: 21 Rails: 57 · Pickets: 234 Concrete: 42 bags
150 ÷ 8 = 18.75, rounded up to 19 sections; posts are 19 + 1 + 1 for the gate. Pickets cover the 146 ft left after the gate: 146 × 12 ÷ 7.5 = 233.6, so 234.
Options
Every setting, and when to use it
- Sides
- Several sides form one continuous line that shares its corner posts. Tick the full-loop box if the fence closes on itself.
- Post spacing
- 8 feet is usual for wood privacy and picket fences, 6 feet for many vinyl panels and heavy gates, 10 feet for chain link.
- Rails per section
- Two rails for fences up to about 4 feet tall, three for 5 to 6 feet.
- Pickets and gaps
- Pickets = fenced length in inches ÷ (picket width + gap). A nominal 1×6 picket is 5.5 inches wide; use a 0 gap for a privacy fence.
Good to know
Common problems and limits
Estimates only. Hardware, gate kits, post caps and screws are not counted.
Local building codes, property lines and HOA rules are not checked: confirm height limits, setbacks and post depth before you dig.
For concrete beyond posts, such as a footing, use the Concrete Calculator.
Audience
Who uses it
- DIY homeownersTurn a measured property line into a shopping list, measuring sides with the Feet and Inches Calculator.
- Fence installersCheck a bid's post and picket counts quickly.
- Landlords and HOA boardsCompare material costs for repairs and replacements.
FAQ
Frequently asked
How many posts do I need for a fence?
Divide each side by the post spacing and round up for the number of sections; posts are the sections plus one. A 150 ft fence at 8 ft spacing has 19 sections and 20 posts, plus one more for a gate: 21.
What is the standard fence post spacing?
6 to 8 feet on center for wood and vinyl, with 8 feet the most common for wood; check your panel or rail length, since rails must span post to post.
How deep should fence posts be set?
A common rule is to bury about a third of the post's length, at least 2 feet, and to go below the frost line where the ground freezes. Local codes may set a minimum.
How many pickets per foot of fence?
Twelve inches divided by the picket width plus the gap. With 5.5-inch pickets and 2-inch gaps that is 12 ÷ 7.5 = 1.6 pickets per foot.
How much concrete per fence post?
Often one to two 50 lb bags for a 4×4 post in a 10-inch-wide hole about 2 feet deep; larger posts and deeper holes need more. Enter the number per post that matches your holes.
Do gates change the count?
Each gate opening needs a post on each side, so the calculator adds one post per gate and takes the gate width out of the picket count.
Automation: an MCP tool fence(sides, spacing, rails, picket, gap, gates) → posts, rails, pickets, bags and an n8n node are planned for this tool.