Fence Calculator

Estimate fence posts, rails, pickets or panels, concrete bags for footings, and gate hardware for wood privacy, picket, vinyl, and chain link fences.

Posts total
14posts
100 ft straight run · 8 ft spacing · 6 ft wood privacy · 1 gate × 4 ft
Line posts10
End / terminal posts2
Corner posts0
Gate posts2
ItemQtyNotes
Posts144×4 line · 6×6 gate posts
Rails363 per section · 8 ft sections
Pickets / boards2055.5″ wide · 0.125″ gap · pickets (1×6 cedar/PT)
Concrete bags (60-lb)5610″ dia × 36″ deep · 1.64 ft³/post
Concrete bags (80-lb)42alt size
Deck screws (3″)1,2302 screws per picket × 3 rails
Gate hardware kits1hinges + latch per gate
Footing depth tip Temperate US baseline. 36″ clears the frost line in most states. Add 4–6″ gravel under each post for drainage.
Estimator only. Verify property lines, local setback, and any HOA / municipal permits before ordering. Material counts use 5–10% mental waste in the breakdown table; round each item up at the supplier. Check "Gate at run endpoint" above if a gate sits at the start/end of the run instead of mid-run — saves an end-post per gate.
Advanced · footing depth, picket width, gap, post size

Inches accept fractions: 12 5/8, 12-5/8, or 12.625

How the math works

For a straight run:

  1. Subtract gate openings: fence_run = length − gates × gate_width
  2. Sections: sections = ceil(fence_run / spacing)
  3. Line posts (between ends): sections − 1
  4. End posts: 2 for straight, 0 for closed perimeter
  5. Gate posts: gate_count × 2
  6. Rails: sections × rails_by_height (2 rails ≤4 ft; 3 rails 5–6 ft; 4 rails ≥7 ft)
  7. Pickets: fence_run_in / (picket_width + gap)
  8. Footing concrete per post: π × (dia / 24)² × depth_in / 12 ft³
  9. Bags per post: ceil(footing_ft³ / bag_yield); sums × post count

For closed perimeter we sum line+end of each side, then subtract shared corners so they are not double-counted; corners are output as their own bucket.

FAQ — spacing, footings, gates

How far apart should fence posts be?

8 ft is the standard center-to-center for wood and vinyl — it matches stock rail length and panel width. Chain link runs at 10 ft because the fabric is supported by tension wire between terminal posts. Going below 6 ft adds posts (cost) without strength benefit; going above 8 ft on wood causes rail sag in 5–7 years.

How deep do fence-post footings need to be?

Below the frost line. In the southern US that means 24″, most of the US is 30–36″, and northern tier states (MN, ND, ME, upper WI) require 42″ or deeper. If the footing sits above frost, the post heaves up every winter and racks the rails.

Do gate posts need to be larger than line posts?

Yes for any gate wider than 3.5 ft or taller than 5 ft. A 4×4 will rack under the hinge load. Use 6×6 wood or 2-7/8″ schedule-40 steel for the hinge-side gate post, with a 12″-diameter footing one step deeper than line posts.

How many rails does a 6-ft fence need?

Three: top, bottom (about 6″ off grade), and middle. A 4-ft fence uses two rails; a 7-ft or 8-ft fence uses four to keep pickets flat. This calculator picks the count automatically from the height field.

How post spacing changes the order

Spacing drives every other number. 8 ft to 10 ft saves ~20% on posts and concrete; 8 ft to 6 ft adds an extra post every 24 ft of run. Wood, vinyl and composite default to 8 ft because stock rail length is 8 ft and pre-assembled panels come in 6 or 8 ft widths. Wider on wood causes bottom-rail sag in 5–7 years. Chain link is the exception — 10 ft is standard because the fabric is held in tension between terminals (ASTM F567 allows up to 12 ft).

Fence layout with posts, string line, stacked rails, and pickets on a residential yard.
Fence estimates are controlled by run length, post spacing, gates, rails, and pickets.

Footing depth by frost line

The single rule that decides whether your fence still stands in five winters: the bottom of the footing must sit below the local frost depth. If it does not, the soil below the post freezes, expands, and shoves the post upward every winter. After three or four cycles the rails are racked, the gate will not latch, and the pickets are diagonal.

Region Frost depth Footing depth
Southern US (FL, TX, southern CA) 0–6″ 24″ minimum
Mid-Atlantic, Midwest, Pacific NW 20–36″ 36″ standard
Upper Midwest, New England, Inland NW 40–48″ 42″ or deeper
Northern tier (MN, ND, ME, AK) 50–80″+ 48″+ with bell bottom

If you are inside city limits, the permit office publishes the local minimum — it is rarely shallower than 30″ and overrides any rule of thumb. The Advanced panel exposes the footing depth so you can match local code exactly.

Gate posts are not line posts

A 4×4 wood post takes a gate badly. The hinge side carries the gate weight as a lever — a 4-ft gate of 1×6 boards is ~60–80 lb at the latch corner, ~250 lb-ft of bending moment at the hinge post. A 4×4 cedar will sway in one season and rack rails by year two. Use a 6×6 wood post or 2-7/8″ schedule-40 steel on the hinge side, dig 42–48″ instead of 36″, and bell the bottom. The latch-side post can stay 4×4.

Worked example — 100 ft × 6 ft wood privacy + 1 × 4-ft gate

  1. Picketed run: 100 − 1×4 = 96 ft
  2. Sections: ceil(96 / 8) = 12
  3. Posts: 10 line + 2 end + 2 gate = 14 total
  4. Rails (6 ft → 3 per section): 12 × 3 = 36
  5. Pickets (5.5″, 0 gap): ceil(96 × 12 / 5.5) = 210
  6. Footing (10″ dia × 36″): π × (10/24)² × 3 = 1.64 ft³/post
  7. Concrete: 14 × ceil(1.64 / 0.60) = 42 × 80-lb bags
  8. Deck screws: 210 × 3 × 2 = 1,260

Common questions

Should I add waste to the picket count?

Add 5%. Pickets ship with split ends, twisted boards and the occasional knothole. On a 210-picket job that is ~10 extra boards. If picking from the rack, plan for one full bundle of spare and return what you do not use.

Does the property line affect the calculator?

No, only material. Setback (gap between fence and property line) is local zoning — most jurisdictions allow zero, some require 6″ to 3 ft. Check survey pins and call 811 for utility locates before pouring. If in doubt, set the fence 6″ inside your line and document the offset in writing with the neighbor.

Can I use this for vinyl or chain-link?

Yes. Pick the style — vinyl swaps the picket count for a panel count, and chain link auto-sets spacing to 10 ft and drops the picket/screw output. Fasteners are hidden for vinyl and chain link because those systems use clamps, tension bands and brackets, not deck screws.

Estimator only. Material counts only — not a substitute for a survey, permit check, or structural review on retaining-style or wind-screen fences over 6 ft. The concrete bags calculator handles footing volume with five bag sizes; the concrete footing calculator sizes the cylinder by post diameter and rebar.

Misha Noyr, M.Eng.

Misha Noyr, M.Eng.

Civil Engineer · 15+ yrs · structural design, geotechnics. Full bio ↓