All calculators / Fence
Fence Calculator
Enter the total fence length, post spacing, gates and corners to see how many posts, rails and pickets to buy, plus concrete to set the posts.
Shopping list
Posts: 13 + 1 + 1 gate + 2 corners = 17
Rails: 13 sections x 3 = 39
Pickets: 100 ft x 12 / (5.5 in + 0.25 in gap) = 209, rounded up
Tip: call 811 a few days before you dig. Utility lines are marked for free, and hitting one with a post-hole digger is dangerous and expensive.
Worked example
A backyard fence runs 100 ft in total with posts every 8 ft, one gate and two corners. It is a 6 ft privacy fence with three rails per section and 5.5 inch pickets spaced 1/4 inch apart.
100 / 8 = 12.5, which rounds up to 13 sections. 13 sections need 14 line posts, and the gate and two corners add one post each, so you need 17 posts. Three rails per section is 39 rails.
Each picket plus its gap takes 5.75 inches. The fence is 1,200 inches long, so 1,200 / 5.75 = 208.7, which rounds up to 209 pickets. Setting 17 posts takes about 34 bags of 60 lb concrete.
How to calculate fence posts
Divide the total fence length by the post spacing and round up. That is the number of sections. A straight run always needs one more post than it has sections, because there is a post at each end.
Gates and corners usually add posts. A gate needs a sturdy post on each side, and the opening rarely lands exactly on your regular spacing. A corner changes direction, and unless the corner falls exactly on a post position, it adds one. The calculator adds one post for each gate and each corner, which is a safe estimate for planning. Once you have staked out the layout, count the actual post positions and adjust.
Choosing post spacing
Eight feet is the most common spacing for wood fences because rails come in 8 ft lengths and a section that long stays stiff. Six feet is better for heavy privacy fences in windy areas, for board-on-board styles and for fences on slopes. Vinyl and pre-built panel fences use the panel width, often 6 or 8 ft, so enter that as the spacing.
Closer spacing means more posts and more concrete, but each post carries less wind load. If your area gets strong storms, the extra posts are cheap insurance.
Rails and pickets
Rails are the horizontal boards between posts that the pickets attach to. Fences up to 4 ft tall usually have two rails per section. Six-foot privacy fences usually have three, top, middle and bottom, so the pickets do not bow.
For pickets, divide the fence length in inches by the picket width plus gap. Privacy fences use little or no gap. Many builders leave about 1/4 inch so wet boards have room to swell. Picket fences and spaced styles use gaps of 2 inches or more. Board-on-board fences overlap pickets, so they need roughly 40% to 50% more pickets than a single row. The calculator does not subtract gate openings, which gives you a few spare pickets to build the gates themselves.
Setting posts in concrete
A common rule is to bury one third of the post's length, with a minimum of 2 ft and below your local frost line. A 6 ft fence typically uses 8 ft posts set 2 ft deep. Dig the hole about three times the post width, so 10 to 12 inches for a 4x4.
A 4x4 in a 10 inch hole 2 ft deep takes a little under 1 cubic foot of concrete, about two 60 lb bags. Larger holes, 6x6 posts or deeper frost lines take more. For an exact figure for round holes, the volume of a cylinder is 3.14 x radius squared x depth, minus the post. Gravel in the bottom of each hole helps drainage and keeps the post end out of standing water.
Other things to buy
- Gate hardware: hinges, a latch and a drop rod for double gates.
- Fasteners: galvanized or coated nails or screws, two per picket per rail.
- Post caps and stain or sealer if you are finishing the fence.
Check property lines, HOA rules and permit requirements before you buy. Many towns limit fence height and require the finished side to face the neighbors.
Fence material comparison
Pressure-treated pine: $8–$18 per linear foot installed. Needs stain/seal every 1–2 years. 15–20 year life. Most affordable.
Cedar / redwood: $15–$30 per linear foot. Naturally rot-resistant. 20–25 year life. Mid-range cost.
Vinyl / PVC: $20–$40 per linear foot. No maintenance. 20–30 year warranty. Higher upfront, zero upkeep.
Composite: $25–$45 per linear foot. Wood-plastic blend. 25+ year warranty. Heavier, professional install recommended.
Chain link: $5–$15 per linear foot. No privacy. Galvanized or vinyl-coated. 15–20 year life.
Metal (aluminum, steel): $20–$50 per linear foot. Decorative styles. 20+ year life. Professional install typical.
Fence styles and picket patterns
Privacy (stockade): Pickets tight together or 1/8–1/4 inch gap. 6 ft typical height. Maximum privacy, maximum wind load.
Board-on-board: Alternating pickets on both sides of rails. Looks finished from both sides. Needs ~45% more pickets. Good neighbor fence.
Shadowbox: Staggered pickets on alternating sides. Semi-private, airflow through gaps. ~30% more pickets than stockade.
Spaced picket: 1–3 inch gaps between pickets. 3–4 ft tall. Decorative, not private. Lower wind load.
Ranch / split rail: 2–3 rails, no pickets. 3–4 ft tall. Agricultural or large property boundaries.
Lattice top: Solid lower section with open lattice above. Adds 12–24 inches of height for privacy without full solid wall.
Gate planning and hardware
Single walk gate: 36–48 inches wide. Use heavy-duty hinges (ball-bearing or spring-loaded) and a lockable latch. Gate posts must be 6x6 or doubled 4x4, set in extra concrete.
Double drive gate: 10–16 ft total. Needs a center drop rod or cane bolt. Allow 1/2 inch clearance per leaf for swelling. Hinge on the post that gives the best swing arc.
Gate frame: Build with 2x4s or 2x6s, diagonal brace from bottom hinge corner to opposite top corner. Pickets on gate match fence spacing. Pre-hang before setting gate posts so you can fine-tune clearance.
Fence on a slope
Stepped fence: Posts are same height, rails step down at each post. Leaves triangular gaps at the bottom — may need kick-boards or planting to close. Easiest to build.
Racked (raked) fence: Rails follow the slope, pickets stay vertical. Requires custom-cut pickets or adjustable brackets. Only works on gentle slopes (under 12 inches drop per 8 ft section).
Mixed: Step the posts, rack the rails. Most professional look. Plan gate locations on level ground if possible.
Frequently asked questions
How many fence posts do I need for 100 feet?
At 8 ft spacing a straight 100 ft run needs 14 posts: 13 sections plus one. Add a post for each gate and corner. With one gate and two corners that is 17.
How far apart should fence posts be?
Most wood fences use 8 ft spacing. Use 6 ft for tall privacy fences, windy sites and slopes. Panel fences use the panel width.
How many pickets do I need per 8 foot section?
With 5.5 inch pickets and a 1/4 inch gap, an 8 ft section takes 96 / 5.75 = 16.7, so 17 pickets.
How many bags of concrete per fence post?
About two 60 lb bags for a 4x4 post in a 10 inch hole 2 ft deep. Wider or deeper holes need more.
How deep should fence posts be?
A common rule is one third of the post length and at least 2 ft, and below the frost line where the ground freezes. Check your local code.
What fence style gives privacy both sides?
Board-on-board (alternating pickets on both sides of rails) looks finished from either side and is often required by HOAs for 'good neighbor' fences.
More calculators
Results are estimates, not a contractor quote. Check quantities with your supplier before you order, and follow local building codes.