Fence Material Calculator
Enter your fence length, height, post spacing, and picket size to get an instant material list: posts, rails, pickets, concrete for footings, and screws. Switch between imperial and metric, adjust fence style, and get a cost estimate for pressure-treated wood, cedar, or redwood.
How to calculate fence materials
A wood fence has four main material categories: posts, rails, pickets, and concrete for footings. The number of posts equals the number of fence sections plus one (one post at each end and one at each joint). The sections count is the total length divided by your post spacing, rounded down. Rails equal the rails-per-section multiplied by the number of sections. Pickets are calculated by dividing the total fence length by the sum of picket width plus picket gap, then rounding up. This calculator adds a 10% waste buffer to the picket count to account for cuts, defects, and future repairs. Post length is set to 1.5 times the above-ground height because building codes and structural best practice call for burying one-third of each post underground for stability.
Choosing post spacing and fence style
Standard residential wood fences use 6-foot or 8-foot post spacing. Six feet is more rigid and better suited to privacy fences in windy areas or sloped lots. Eight feet maximises lumber efficiency but requires straighter, knot-free posts. Solid privacy fences use zero picket spacing so boards sit flush. Shadowbox fences overlap boards slightly (set picket spacing to a small negative value) to give privacy from both sides while allowing airflow. Open picket fences use a 2-4 inch gap for a decorative, traditional look. For split-rail fences, omit pickets entirely and count only posts and rails.
Concrete footings: how much do you need?
Each post needs a concrete footing with a hole diameter roughly three times the post width and a depth equal to one-third the total post length. For a standard 4x4 post (3.5 inch actual width) on a 6-foot privacy fence, that means a 10.5-inch diameter hole about 3 feet deep. A standard 60-pound bag of concrete covers approximately 0.45 cubic feet when mixed. Multiply the hole volume by the number of posts to get the total cubic footage, then divide by 0.45 to get the bag count. In cold climates, the hole depth must reach below the frost line, which overrides the one-third rule.
Material cost guide for wood fences
Pressure-treated pine is the most budget-friendly option, with posts typically costing $15-25 each and pickets $3-5 each. Cedar is naturally rot-resistant and insect-resistant without chemical treatment, running roughly 50-60% more per board. Redwood offers similar durability to cedar with a distinctive color, but costs two to three times the price of pressure-treated pine in most US markets. All prices vary significantly by region, current lumber markets, and board dimensions. The cost estimate in this calculator uses typical national averages as a starting point - always get a local quote before ordering materials.
Fence style guide: recommended parameters
| Fence style | Rails per section | Picket spacing | Best use |
|---|---|---|---|
| Solid privacy | 2-3 | 0 in (flush) | Backyard privacy, full enclosure |
| Shadowbox | 3 | -0.5 to -1 in (overlap) | Privacy with airflow, both-sides look |
| Picket / spaced | 2 | 2.5 to 4 in gap | Front yard, decorative, pet boundary |
| Stockade | 2 | 0 in (dog-ear boards) | Privacy, budget-friendly |
| Split rail | 2 | N/A (no pickets) | Decorative, boundary, large lots |
| 3-rail board | 3 | 0 in (flush) | Tall privacy or security fences |
Typical settings for common residential wood fence styles.
Frequently asked questions
How many fence posts do I need per linear foot?
With 8-foot post spacing you need about 1 post every 8 feet, or roughly 0.125 posts per linear foot of fence (plus one extra for the end). With 6-foot spacing the rate is about 0.167 posts per linear foot. Multiply your fence length in feet by this rate and add 1 for the final post to get your total.
How deep do fence posts need to be buried?
The general rule is to bury one-third of the total post length, or a minimum of 2 feet, whichever is greater. For a 6-foot privacy fence, use a 9-foot post and bury 3 feet. In cold climates the hole must extend below the local frost line (often 36-48 inches in northern states), so check local building codes before ordering posts.
What is the right picket spacing for a privacy fence?
Set picket spacing to 0 for a solid privacy fence - boards sit flush with no gap. For a shadowbox (board-on-board) style that looks finished from both sides, set spacing to a small negative value such as -0.5 or -1 inch so boards overlap. For a traditional picket fence with a decorative look, use a gap equal to the picket width (typically 3.5 inches) for an evenly spaced, open design.
How many bags of concrete do I need for fence posts?
A standard 60-lb bag of dry-mix concrete fills approximately 0.45 cubic feet when mixed. Calculate the volume of each post hole (roughly 3x the post width, 3x the post depth), multiply by the number of posts, and divide by 0.45 to get the bag count. Round up to the nearest whole bag. As a rule of thumb, most 4x4 posts in 3-foot holes need 1 to 2 bags each.
Should I add extra material for waste?
Yes. This calculator already applies a 10% waste buffer to pickets, which covers cuts, board defects, and future patch repairs. You should also order a few extra posts and rails. For a project with angles, curves, or multiple gates, consider adding 15% to pickets. Rails are usually cut from longer boards, so check that your ordered length matches the board lengths available at your local lumber yard.
Do I need a permit for a fence?
Many municipalities require a building permit for fences above 4 to 6 feet tall or within a set distance of the property line. HOA rules may also restrict height, material, and style. Check with your local building department and review any HOA covenants before starting the project. Fences on or near utility easements or property lines may require a survey.