Outdoor
How Many Fence Posts and Pickets Do You Need for 40 Feet?
Quick answer: A 40 ft picket fence with posts every 8 ft needs 6 posts, 88 pickets and 10 rails, plus 12 bags of 80 lb concrete if each post is set in 2 bags. The pickets are 5.5 inches wide with a half inch gap and include 10 percent waste.
- Posts6 posts
- Pickets88 pickets
- Rails10 rails
- Concrete mix for post holes, 80 lb bags12 bags
Fence materials for 40 feet
At 40 feet the whole fence fits in one delivery and one weekend.
| Item | Quantity | How it is worked out |
|---|---|---|
| Posts | 6 | 5 sections plus 1 |
| Pickets | 88 | 80 pickets plus 10% waste |
| Rails | 10 | 5 sections × 2 rails |
| 80 lb concrete bags | 12 | 6 posts × 2 bags |
A short run of 40 feet is often a single straight line. If yours turns a corner, count each straight run on its own and subtract one post for the corner, because it is shared by two runs.
The math for 40 feet of fence
- Sections. 40 ÷ 8 = 5, rounded up to 5 sections.
- Posts. One more than the sections: 5 + 1 = 6 posts.
- Pickets. 5.5 + 0.5 = 6 inches per picket, so 2 pickets per foot. 40 × 2 = 80, and with 10 percent waste 88 pickets.
- Rails. 5 sections × 2 rails = 10 rails.
Without the waste allowance the fence needs 80 pickets. The extra 8 cover cuts, splits and mistakes.
Posts and rails for 40 feet by post spacing
Closer posts make a stronger fence but use more posts, rails and concrete.
| Post spacing | Posts | Rails | Concrete bags |
|---|---|---|---|
| 6 ft | 8 | 14 | 16 |
| 8 ft | 6 | 10 | 12 |
| 10 ft | 5 | 8 | 10 |
| Rails per section | Rails for 40 ft |
|---|---|
| 2 rails | 10 |
| 3 rails | 15 |
| 4 rails | 20 |
A fence of about 4 feet usually has 2 rails per section, and taller fences use 3 or 4. Check your design or the instructions of your rails.
40 feet of fence with gates
A gate opening is not covered by pickets, so the calculator takes the gate width out of the fenced run and adds the gate posts.
| Gates | Posts | Pickets | Rails |
|---|---|---|---|
| No gate | 6 | 88 | 10 |
| 1 gate (4 ft) | 7 | 80 | 10 |
| 2 gates (4 ft) | 7 | 71 | 8 |
Gate hardware, such as hinges, a latch and a frame, is a separate purchase. Gate posts usually need to be heavier than line posts.
Laying out 40 feet of posts
Posts at exactly 8 feet leave a short last section: 4 sections of 8 feet and one of 8 feet. To avoid the short section, space the 5 sections evenly at 8 feet instead. Stretch a string line along the fence line, mark each post position on the ground, and check the marks against the property line before you dig.
On a slope, measure along the ground rather than on a map, because the fence length along a hill is longer than the horizontal distance. Call 811 a few working days before digging so underground lines are marked.
Nearby fence lengths
Keep going
- The Fence calculator lets you enter any size.
- How many fence posts and pickets for 100 feet explains spacing, rails and gates.
- How much waste factor to add to building materials
- How to measure a room for materials
Frequently asked questions
How many fence posts for 40 feet?
With posts 8 feet apart you need 6 posts: 5 sections plus one. At 6 feet spacing you need 8 and at 10 feet you need 5.
How many pickets for 40 feet of fence?
88 pickets of 5.5 inches with a half inch gap and 10 percent waste. Without waste, 80.
How many rails for 40 feet of fence?
With 2 rails per section you need 10 rails. With 3 rails per section you need 15.
How many bags of concrete for 40 feet of fence posts?
About 12 bags of 80 lb mix if each of the 6 posts takes 2 bags. The real amount depends on the hole size and depth.
How many fence panels for 40 feet?
Prefabricated panels are sold in set widths, often 6 or 8 feet. Divide 40 by the panel width and round up, then add one post more than the number of panels.

Sources and assumptions
These are the settings behind every number above. Verified figures link to a source. Editable defaults are common rules of thumb: change them in the calculator to match your product and your site.
| Setting | Value | Status | Source |
|---|---|---|---|
| fence post spacing | 8 ft | Editable default | contractor rule of thumb, editable |
| fence rails per section | 2 rails/section | Editable default | contractor rule of thumb, editable |
| fence post concrete bags | 2 bag/post | Editable default | Rule of thumb for 80 lb concrete bags set per fence post hole; depends on hole size. Not verified. |