How to calculate fence materials
A wood fence is a row of sections. Each section runs from one post to the next and has rails across it, with pickets (or a prebuilt panel) fixed to the rails. Once you know how many sections you have, everything else follows. If the fence line has several runs, add them up with the linear feet calculator.
Posts = sections + 1 + one per gate + one per corner
Rails = sections × rails per section
Pickets = fence length in inches ÷ (picket width + gap)
Example: 100 ft privacy fence, 6 ft high, one 4 ft gate
| Sections | (100 − 4) ÷ 8 = 12 sections |
| Posts | 12 + 1 + 1 for the gate = 14 posts |
| Rails (3 per section) | 12 × 3 = 36 rails |
| Pickets (5½ in, no gap) | 1,200 in ÷ 5.5 = 219, plus 5% = 230 pickets |
| Concrete (10 in holes, 2 ft deep) | 14 × 0.92 ft³ ÷ 0.375 = 35 bags of 50 lb fast-setting mix |
Pickets are counted across the full length, gates included, because a wood gate is usually covered with the same pickets. The gate frame and hardware (hinges and latch) are extra.
Fence post spacing and depth
Wood fence posts are usually set 6 to 8 ft apart, center to center. Eight feet is the common maximum because 2×4 rails are sold in 8 ft lengths. Tall fences, windy sites and heavy boards do better at 6 ft.
For depth, a common rule is to bury one-third to one-half of the fence height, and never less than 2 ft. In areas where the ground freezes, the hole should go below the frost line so the posts do not heave. Your local building department can tell you the frost depth.
| Fence height | Post depth (1/3 to 1/2 of height, at least 2 ft) | Post length to buy |
|---|---|---|
| 3 ft | 2 ft | 6 ft |
| 4 ft | 2 ft | 6 to 8 ft |
| 5 ft | 2 to 2½ ft | 8 ft |
| 6 ft | 2 to 3 ft | 8 to 10 ft |
| 8 ft | 2⅔ to 4 ft | 12 ft |
Many builders put 4 to 6 inches of gravel in the bottom of each hole for drainage, which means digging that much deeper than the post depth.
How much concrete per fence post?
The concrete fills the hole around the post, so its volume is the hole's volume minus the post's. A hole about three times the post's width is typical: about 10 inches for a 4×4. These amounts are for one 4×4 post:
| Hole width | Depth | Concrete | 50 lb fast-setting bags | 80 lb bags |
|---|---|---|---|---|
| 8 in | 2 ft | 0.53 ft³ | 1.4 | 0.9 |
| 10 in | 2 ft | 0.92 ft³ | 2.5 | 1.5 |
| 10 in | 2.5 ft | 1.15 ft³ | 3.1 | 1.9 |
| 12 in | 2 ft | 1.40 ft³ | 3.7 | 2.3 |
| 12 in | 3 ft | 2.10 ft³ | 5.6 | 3.5 |
Bag yields from Quikrete: a 50 lb bag of Fast-Setting Concrete Mix makes about 0.375 ft³, a 60 lb bag of Concrete Mix about 0.45 ft³ and an 80 lb bag about 0.6 ft³. Holes are rarely perfectly round, so a spare bag or two is wise.
Privacy fence vs picket fence
A privacy fence has pickets fixed edge to edge, usually 1×6 boards (5½ inches actual) and 6 ft tall, so a section 8 ft long takes about 18 pickets. Wood shrinks as it dries, so small gaps can open up over time. If you want full privacy, overlap the boards (board-on-board): depending on the overlap, it takes roughly 25–40% more pickets.
A picket fence has spaces between the boards. With 3½-inch pickets and a 2½-inch gap, an 8 ft section takes 16 pickets. Picket fences are usually 3 to 4 ft high and need only two rails per section. Taller fences need three rails, and 8 ft fences often four.
Prebuilt fence panels
Prebuilt wood or vinyl panels are usually 6 or 8 ft wide. Choose "Prebuilt panels" and set the post spacing to your panel width. The calculator counts one panel per section, so you do not need rails or pickets. Panels are faster to put up, but you have to set the posts accurately because each panel has a fixed width.
Fence material cost
The calculator multiplies each material by the price you enter. In the US, a pressure-treated 4×4×8 post often costs around $10 to $25 and a 2×4×8 rail around $5 to $12. Cedar costs more than pressure-treated pine. Gate hardware, fasteners, stain and labor are not included, because they vary a lot by job and area. Get local quotes if you plan to hire an installer.
Frequently asked questions
How many posts do I need for a 100 ft fence?
With posts 8 ft apart, a straight 100 ft fence has 13 sections and needs 14 posts (sections + 1). Add one more post for each gate and each corner. With posts 6 ft apart it is 17 sections and 18 posts.
How deep should fence posts be?
A common rule is to bury one-third to one-half of the fence height, and never less than 2 ft. For a 6 ft fence that is 2 to 3 ft. In cold climates the bottom of the hole should be below the frost line, so check your local code.
How much concrete do I need per fence post?
A 4×4 post in a 10-inch hole that is 2 ft deep takes about 0.92 cubic feet of concrete: roughly 2.5 bags of 50 lb fast-setting mix or 1.5 bags of 80 lb concrete mix. Wider or deeper holes take more, as the table above shows.
How many pickets are in an 8 ft fence section?
Divide 96 inches by the picket width plus the gap. Privacy pickets 5½ inches wide with no gap need 18 per 8 ft section. Spaced 3½-inch pickets with a 2½-inch gap need 16.
How far apart should fence posts be?
Most wood fences use posts 6 to 8 ft apart, measured center to center. Eight feet is the usual maximum because rails come in 8 ft lengths. Use 6 ft spacing for tall fences, windy areas or heavy boards. For prebuilt panels, space the posts to match the panel width.
Related calculators
Sources
- QUIKRETE Fast-Setting Concrete Mix (product page): setting fence posts
- NIST: Unit conversion (U.S. customary and metric): feet, yards, meters, cubic yards and tons
Formulas, coverage rates and prices are explained on our How we calculate page.
Disclaimer
Results are estimates based on standard sizes and common rules of thumb. Prices are sample US averages (last updated December 2026) and change by store and location. Material needs vary by project and product. Check with your supplier or contractor before you buy. Read the full disclaimer.