Fence calculator

Posts = fence length ÷ post spacing, rounded up, + 1, + 1 for each corner and gate. 100 ft of 6 ft privacy fence with one gate and posts 8 ft apart takes 14 posts, 36 rails and 231 pickets. Enter your fence to get the materials, concrete and cost.

Posts for 100 ft of fence14 posts

About 14 posts (8 ft), 36 rails and 231 pickets for 100 ft of wood privacy fence, with 43 bags of fast-setting concrete to set the posts.

Fence length

Add up every side for the length. Gates come out of the length and get a post on each side. Post depth starts at a third of the height; ask your building department about the frost line where you live.

Your prices

Wood prices from Home Depot listings, December 2026. Chain link parts vary too much to set a price: enter your store’s. Leave a box empty to skip it.

Working

  1. Fence length100 ft
  2. − 1 gate of 4 ft4 ft
  3. Fence to build96 ft
  4. Spans of 8 ft or less (96 ÷ 8, rounded up)12
  5. + 1 end post, 1 for gates14 posts
  6. Post length: 6 ft above ground + 24 in below8 ft posts
  7. Sections between posts (14 − 1 − 1 gate)12
  8. Rails: 12 sections × 3 (over 5 ft)36 rails
  9. Pickets: 1,152 in ÷ (5.5 in + 0 in gap)209.45 → 210
  10. + 10% extra (split or crooked boards)231 pickets
  11. Concrete: holes 3 × the post width, 24 in of post in concrete over 6 in of gravel, + 10%15.9 cu ft
  12. In 50 lb bags of fast-setting concrete (0.375 cu ft each)43 bags
  13. 14 posts at $10.68$149.52
  14. 36 rails at $3.98$143.28
  15. 231 pickets at $2.08$480.48
  16. 43 bags of concrete at $12.99$558.57
  17. Materials (screws, gates and caps not included)$1,331.85
  18. For comparison, HomeGuide puts a wood privacy fence at about $25–$50 a foot installed: $2,500–$5,000 for 100 ft.
  19. Gates are bought ready-made or as a kit; their posts are counted above.
  20. Bringing bags home? 43 bags of 50 lb weigh about 2,150 lb: about 2 trips in a half-ton pickup or one load in a three-quarter-ton. Payload includes the people in the cab.

Shopping list

We may earn a commission if you buy through these links, at no extra cost to you. Affiliate disclosure

Report a problem with this calculator

How to work out what a fence takes

posts = length ÷ spacing, rounded up, + 1 + corners + gatesrails = sections × rails per sectionpickets = length (in) ÷ (picket width + gap)

Measure along the line of the fence and add up every side. Take the gates out of the length: they get posts but no rails or pickets. The rounding is up on purpose, so you are never one post short; when a side divides exactly, that leaves one post spare.

Worked example: 100 ft of privacy fence

  1. Fence to build: 100 ft less one 4 ft gate = 96 ft.
  2. Posts: 96 ÷ 8 = 12 spans, + 1 end post + 1 for the gate = 14 posts.
  3. Sections with rails: 14 − 1 − 1 gate = 12; three rails each for a 6 ft fence = 36 rails.
  4. Pickets: 96 × 12 = 1,152 in ÷ 5.5 in = 209.45, rounded up to 210, + 10% = 231 pickets.
  5. Concrete: 14 holes 10½ in across, 2 ft of post in concrete over 6 in of gravel = 43 bags of 50 lb fast-setting mix with 10% extra.

Posts, rails and pickets by length

Straight fencePostsRailsPickets
50 ft821110
100 ft1439219
150 ft2057328
200 ft2675437
300 ft39114655

A 6 ft wood privacy fence with posts 8 ft apart, three rails a section and 5½ in pickets with no gap; no gates or corners and no extra pickets.

How much does a fence cost?

The calculator prices the parts you buy: a 4×4×8 ft pressure-treated post about $10.68, a 2×4×8 ft rail $3.98, a 6 ft dog-ear picket $2.08 and a 50 lb bag of fast-setting concrete $12.99. For the 100 ft example that is $1,331.85, about $13.32 a foot, before screws, gate hardware and tools. Chain link parts vary too much to set a starting price: enter your store’s.

Installed by a contractorPer linear footFor 100 ft
Wood privacy fence$25–$50$2,500–$5,000
Wood picket fence$20–$50$2,000–$5,000
Chain link fence$9–$30$900–$3,000

Prices last updated: December 2026. Store prices from Home Depot and Ace listings; installed ranges from HomeGuide. Enter your own prices for a real total.

Privacy, picket or chain link?

  • Wood privacy fence: pickets side by side with no gap, usually 6 ft high on three rails, posts 8 ft apart or less.
  • Wood picket fence: narrower pickets with a gap, usually lower, on two rails. Set your own gap: pool fences have local rules on gaps.
  • Chain link: steel posts with fabric sold in 50 ft rolls and a top rail. End, corner and gate posts (terminal posts) take tension bars and bands that hold the fabric tight; line posts go no more than 10 ft apart.

Before you dig, check where your property line runs, any homeowners’ association rules and your local permit and height limits, and call 811 so buried lines are marked.

Estimates only, not a contractor quote. Check local codes and your supplier’s figures before ordering.

Sources

Questions people ask

How many fence posts do I need?

Divide the length of fence by the post spacing, round up, and add one for the end. Then add one for each corner and one for each gate, because a gate needs a post on both sides. For 100 ft with one 4 ft gate and posts 8 ft apart: 96 ÷ 8 = 12, + 1 end + 1 gate = 14 posts.

How deep should fence posts be?

Quikrete’s instructions put a third of the post’s length in the ground; Lowe’s says a third to half of the height above ground. For a 6 ft fence that is about 2 ft or more, plus gravel under the post. Where the ground freezes, go below the frost line: your building department can tell you how deep that is.

How much does a fence cost per foot?

Installed by a contractor, HomeGuide puts a wood privacy fence at about $25–$50 a linear foot, a picket fence $20–$50 and chain link $9–$30. Building it yourself, the posts, rails, pickets and concrete for the 100 ft privacy fence above come to about $1,331.85 at the store prices used here, or $13.32 a foot.

How far apart should fence posts be?

Home Depot’s fence guide puts wood fence posts 8 ft apart or less, so 8 ft rails and panels fit between them. Chain link line posts go no more than 10 ft apart. Closer posts make a stiffer fence and cost more posts and concrete.

How many pickets do I need?

Divide the length in inches by the width of one picket plus the gap. A 5½ in picket with no gap covers 8 ft (96 in) with 96 ÷ 5.5 = 17.45, so 18 pickets per 8 ft section. With a 2½ in gap, a 3½ in picket needs 96 ÷ 6 = 16. Add some extra for split or crooked boards.

How many rails does a fence need?

The calculator counts two rails per section for fences up to 5 ft high and three above that, the usual build for a 6 ft privacy fence. Rails run between the posts, so each section between two posts needs its own set.

Last checked December 4, 2026. See how we calculate and test our results.