How to work out what a fence takes
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
- Fence to build: 100 ft less one 4 ft gate = 96 ft.
- Posts: 96 ÷ 8 = 12 spans, + 1 end post + 1 for the gate = 14 posts.
- Sections with rails: 14 − 1 − 1 gate = 12; three rails each for a 6 ft fence = 36 rails.
- Pickets: 96 × 12 = 1,152 in ÷ 5.5 in = 209.45, rounded up to 210, + 10% = 231 pickets.
- 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 fence | Posts | Rails | Pickets |
|---|---|---|---|
| 50 ft | 8 | 21 | 110 |
| 100 ft | 14 | 39 | 219 |
| 150 ft | 20 | 57 | 328 |
| 200 ft | 26 | 75 | 437 |
| 300 ft | 39 | 114 | 655 |
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 contractor | Per linear foot | For 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
- Home Depot: How to build a fence (posts 8 ft apart or less)
- Lowe’s: Nominal vs actual lumber sizes (1×6 is ¾ × 5½ in, 4×4 is 3½ × 3½ in)
- HomeGuide: Fence installation cost (per linear foot, by type)
- Kent: How to lay out your chain link fence (line posts at most 10 ft apart)
- Yard Gard chain link fencing catalog (fittings per post: tension bands, rail ends, caps)
- Fencing Direct: What else do I need to buy with my chain link fence
- Hometalk: How to build a wood fence (3 rails for a 6 ft privacy fence)
- Home Depot: YardGard 1-3/8 in × 10-1/2 ft top rail (swaged end)
- Home Depot: 4 in × 4 in × 8 ft #2 ground contact pressure-treated post
- Home Depot: 2 in × 4 in × 8 ft #2 ground contact pressure-treated lumber
- Home Depot: Outdoor Essentials 5/8 in × 5-1/2 in × 6 ft pressure-treated dog-ear fence picket
- Quikrete: Setting posts (hole 3 times the post width, depth 1/3 of the post length, 6 in of gravel)
- Lowe’s: Setting a post with concrete (hole 1/3 to 1/2 the post height; check local requirements)
- Ace Hardware: Quikrete Fast-Setting Concrete Mix, 50 lb (yields about 0.375 cu ft)
- Tractor Supply: Quikrete Fast-Setting Concrete Mix, 50 lb (worked examples for 4 in and 6 in posts)
- Quikrete: Concrete Mix No. 1101 data sheet (40 lb ≈ 0.30 cu ft, 60 lb ≈ 0.45 cu ft, 80 lb ≈ 0.60 cu ft)
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.