How do I calculate fence materials?
Last updated March 26, 2026
For a 100-foot privacy fence 6 feet tall: you need 18 posts (one every 6 feet, including both ends), 51 rails (3 per section), and 219 pickets (5.5-inch wide boards with no gap). Add 10% extra pickets for waste, bringing the total to about 241 pickets.
How to Calculate
- 1
Measure the total fence length in feet and divide by the post spacing (typically 6 or 8 feet) to get the number of sections, then add 1 for the end post
- 2
Multiply the number of sections by rails per section (2 for ranch-style, 3 for privacy fences) to get total rails
- 3
Divide the total fence length in inches by the picket width (plus gap if any) to get the number of pickets
- 4
Add 10% to all quantities for waste, and calculate post-hole concrete (2 bags of 80lb mix per post)
The Formula
Posts = (Fence Length ÷ Spacing) + 1 | Rails = Sections × Rails Per Section | Pickets = Fence Length × 12 ÷ Picket WidthCalculate posts by dividing the fence length by the spacing and adding one for the final end post. Sections equal one fewer than the number of posts. Multiply sections by rails per section. For pickets, convert fence length to inches and divide by the width of each picket (plus any gap between them).
| Variable | Meaning |
|---|---|
| Fence Length | Total linear feet of fence |
| Spacing | Distance between posts, typically 6 or 8 feet |
| Sections | Number of fence sections (posts minus 1) |
| Picket Width | Width of one picket board in inches (commonly 3.5 or 5.5 inches) |
Common Examples
100-foot privacy fence (6ft tall, 6ft post spacing)
18 posts, 51 rails, 219 pickets
150-foot privacy fence (6ft tall, 6ft post spacing)
26 posts, 75 rails, 328 pickets
200-foot privacy fence (6ft tall, 6ft post spacing)
35 posts, 102 rails, 437 pickets
50-foot picket fence (4ft tall, 3.5in pickets, 3in gap)
8 posts, 14 rails, 93 pickets
Concrete for fence post holes (18 posts, 10in dia, 24in deep)
33 bags of 80lb concrete (about 1.8 bags per post)
100-foot fence material cost estimate
Approximately $1,335 (18 posts at $15, 51 rails at $8, 219 pickets at $3)
What Goes Into a Fence?
A standard wooden fence has three main structural components: posts (the vertical supports set into the ground), rails (the horizontal boards connecting the posts), and pickets or boards (the vertical surface material attached to the rails). Getting accurate quantities of each component before you start building prevents delays, extra trips to the lumber yard, and wasted material.
The exact materials depend on your fence style. A 6-foot privacy fence uses taller posts, three rails per section, and closely spaced boards. A 4-foot picket fence uses shorter posts, two rails, and boards with decorative spacing between them. The formulas are the same — only the inputs change.
Calculating Posts
Posts are the foundation of your fence. They are typically spaced 6 feet apart for privacy fences and up to 8 feet apart for lighter designs like split rail or picket fences. The formula is:
Number of posts = (total fence length ÷ post spacing) + 1
The “plus one” accounts for the post at the end of the fence. For a 100-foot fence with 6-foot spacing: 100 ÷ 6 = 16.67, rounded up to 17 sections, which means 18 posts. If your fence has corners, each corner requires a post as well — include those in your count.
For a 6-foot-tall privacy fence, use 4×4 posts that are 8 feet long (6 feet above ground plus 2 feet buried). For extra stability in soft soil or windy areas, consider 4×6 posts or burying 2.5–3 feet of the post.
Calculating Rails
Rails run horizontally between posts and support the pickets. The number of rails per section depends on the fence style and height:
- 2 rails: Sufficient for fences up to 4 feet tall (picket fences, garden borders).
- 3 rails: Required for fences 5–6 feet tall (privacy fences, security fences). The three rails are positioned at the top, middle, and bottom of each section.
Total rails = number of sections × rails per section. For a 100-foot privacy fence with 17 sections: 17 × 3 = 51 rails. Standard rail material is 2×4 pressure-treated lumber in lengths that match your post spacing (typically 8-foot boards trimmed to fit 6-foot sections).
Calculating Pickets
Pickets are the vertical boards that form the visible surface of the fence. The calculation depends on whether you want a privacy fence (no gaps) or a decorative picket fence (gaps between boards):
- Privacy fence (no gaps): Total fence length in inches ÷ picket width. For 100 feet of fence with 5.5-inch boards: 1,200 ÷ 5.5 = 219 pickets.
- Picket fence (with gaps): Total fence length in inches ÷ (picket width + gap width). For 50 feet of fence with 3.5-inch pickets and 3-inch gaps: 600 ÷ 6.5 = 93 pickets.
Standard picket sizes are 1×4 (actual 3.5 inches wide) for picket fences and 1×6 (actual 5.5 inches wide) for privacy fences. Add 10% extra pickets for waste from cuts, warped boards, and knot-hole rejects.
Do Not Forget the Post-Hole Concrete
Every fence post needs a solid footing. The standard approach is to dig a hole 10–12 inches in diameter and 24 inches deep (or one-third of the total post length), then set the post in concrete. Each post hole of this size requires about 1.8 bags of 80-pound concrete mix.
For 18 posts, that is approximately 33 bags of 80-pound concrete mix. At $5–$7 per bag, concrete adds $165–$231 to your project — a cost that is easy to overlook when budgeting.
Fence Styles and Their Material Requirements
Different fence styles require different material quantities:
- Board-on-board privacy (6 ft): Uses overlapping boards for complete privacy from both sides. Requires about 30% more pickets than standard privacy because the boards overlap by approximately 1 inch. For 100 feet: roughly 285 boards instead of 219.
- Shadow box (6 ft): Alternates boards on opposite sides of the rails, creating a semi-private look with airflow. Uses the same number of pickets as a standard privacy fence.
- Picket fence (3–4 ft): Decorative with spaced boards. Uses fewer, shorter pickets — a 50-foot run with 3-inch gaps needs only 93 pickets compared to 219 for the same length of privacy fence.
- Split rail (3–4 ft): No pickets at all — just posts and 2–3 rails. A 100-foot split rail fence with 8-foot spacing needs only 14 posts and 26–39 rails.
Hardware and Fasteners
Beyond lumber, you need fasteners to assemble the fence:
- Screws or nails: Use 2 screws or nails per picket per rail. For a privacy fence with 3 rails: 6 fasteners per picket. For 219 pickets, that is 1,314 screws. Use hot-dipped galvanized or stainless steel fasteners to prevent rust staining.
- Rail brackets or toe-nailing: If using metal rail brackets (recommended for strength), you need 2 brackets per rail end, totaling 4 brackets per section. For 17 sections: 68 brackets.
- Gate hardware: Each gate requires 2–3 hinges, a latch, and optionally a spring closer. Budget $30–$60 per gate in hardware.
Cost Estimates for Fence Materials in 2026
Here are typical 2026 prices for pressure-treated lumber fence materials:
- 4×4×8 treated posts: $12–$18 each
- 2×4×8 treated rails: $6–$10 each
- 1×6×6 treated fence boards: $2.50–$4.00 each
- 80lb concrete mix: $5–$7 per bag
- Galvanized screws (5 lb box): $15–$25
- Professional installation: $15–$35 per linear foot (materials and labor combined)
For a 100-foot privacy fence, expect $1,300–$1,800 in materials for DIY, or $1,500–$3,500 installed professionally. Cedar and redwood cost 40–60% more than pressure-treated pine but last longer and do not require staining.
Frequently Asked Questions
How many fence posts do I need?
How far apart should fence posts be?
How many bags of concrete per fence post?
How many pickets do I need for a privacy fence?
How do I account for gates in my fence?
What is the cost of a 100-foot privacy fence?
Related Calculators
Deck Calculator
Calculate decking boards, joists, screws, and posts for your deck
Concrete Calculator
Estimate cubic yards for patios, slabs, footings, driveways
Lumber Calculator
Calculate board feet for decks, framing, and woodworking
Square Footage Calculator
Calculate square footage for rooms, lots, and shapes