Quick answer
Posts = sections + 1, where sections = fence length ÷ post spacing, rounded up. A 100 ft privacy fence with posts every 8 ft needs 14 posts, 39 rails (3 per section) and 219 pickets of 5½ in set tight together. For a 6 ft fence, use 8 ft posts so 2 ft goes in the ground.
How to use the fence calculator
- Measure the fence line. Add up every side, including the gate openings. Check your property lines and local height limits first.
- Pick the fence type. Pickets on rails is a stick-built fence. Pre-built panels counts one panel per section.
- Set the post spacing. 8 ft is standard for wood; 6 ft is stronger in wind. Panels set the spacing: use the panel width.
- Add gates. Their width is taken out of the pickets and rails, and each gate adds a post.
Fence material formulas
Example: 100 ft ÷ 8 ft = 12.5, so 13 sections and 14 posts. Three rails per section is 39 rails. 100 ft is 1,200 in, and 1,200 ÷ 5.5 = 218.2, so 219 pickets.
Fence materials by length
| Fence length | Sections | Posts | Rails (3 per section) | 5½ in pickets | Nails or screws |
|---|---|---|---|---|---|
| 50 ft | 7 | 8 | 21 | 110 | 660 |
| 75 ft | 10 | 11 | 30 | 164 | 984 |
| 100 ft | 13 | 14 | 39 | 219 | 1,314 |
| 150 ft | 19 | 20 | 57 | 328 | 1,968 |
| 200 ft | 25 | 26 | 75 | 437 | 2,622 |
| 300 ft | 38 | 39 | 114 | 655 | 3,930 |
| 500 ft | 63 | 64 | 189 | 1,091 | 6,546 |
Posts 8 ft apart, pickets with no gap, no gates.
Post length, depth and concrete
- Post length: bury about one third of the post, and at least 2 ft (60 cm). A 6 ft fence uses 8 ft posts; a 4 ft fence uses 6 ft posts. Go deeper than the frost line in cold climates.
- Corner, end and gate posts carry more load. Many builders use 6×6 posts or deeper holes for gates.
- Concrete: use the fence post concrete calculator with the post count from this page.
- Rails: 2×4 rails span between posts, so 8 ft spacing uses 8 ft rails.
Before you dig, have underground utilities marked (call 811 in the United States).
Sources, assumptions and limits
What the calculator assumes
- Sections are equal to the post spacing; the last section is usually shorter and is still counted as a full one.
- Each gate removes its width from pickets and rails and adds one post. Gate hardware and gate frames are not included.
- Fasteners are two per picket at each rail.
Where the numbers come from
- American Fence Association: fence installation practice and terminology
Checked by the DIY Calc team against the sources above. Products and local rules vary, so treat every result as an estimate. Found an error? Email [email protected].
Frequently asked questions
How many pickets do I need for a 100 ft fence?
How many fence posts do I need?
How far apart should fence posts be?
How many rails does a 6 ft fence need?
How long should fence posts be for a 6 ft fence?
Related calculators
Fence Post Concrete CalculatorHow many bags of concrete per fence post, with the post and gravel base subtracted.Open calculator →
Decking CalculatorDeck boards, linear feet, joists and screws for a rectangular deck.Open calculator →
Paint CalculatorGallons or liters of paint for a room, a single wall or a ceiling, rounded to real can sizes.Open calculator →Last reviewed . Estimates only: see the disclaimer.
