Fence Calculator
Calculate fence layout, post count, and total material length needed for any fence run.
How to Estimate Materials for a Wood Fence?
A wood fence requires posts, rails, pickets (or privacy boards), post caps, concrete for post footings, and gates. The calculator above takes your total fence length, fence height, material type, post spacing, and picket width, then generates a complete material list. A typical 150-foot privacy fence at 6 feet tall with 8-foot post spacing needs approximately 20 posts, 57 rails (three per section), 330 pickets, 20 post caps, and 40 bags of 60-pound concrete for the post holes.
What Are the Components of a Wood Fence?
Posts are the vertical anchors, typically 4x4 pressure-treated lumber set 2-3 feet into the ground in concrete. For a 6-foot fence, you need 8-foot or 9-foot posts (fence height plus buried depth). Rails (also called stringers) are horizontal members connecting the posts, usually 2x4s. A 4-foot fence needs two rails. A 6-foot fence needs three rails for adequate support. Pickets are the vertical face boards that provide the visual barrier. Privacy fences use 1x6 or 5/4x6 boards installed with no gap. Picket fences use narrower boards spaced apart. Post caps protect the exposed end grain from water infiltration and add a decorative touch.
How Far Apart Should Fence Posts Be?
Standard post spacing for wood fences is 8 feet on center, which matches the length of common rail lumber and minimizes waste. Some builders use 6-foot spacing for a sturdier fence that resists wind better. Pre-assembled fence panels sold at home centers are typically 6 or 8 feet wide and dictate the post spacing. Vinyl fence panels usually come in 6 or 8-foot sections with their own post requirements. The spacing choice affects the total number of posts, which directly impacts concrete, labor, and material cost. Closer spacing costs more but produces a fence that resists wind loads and lasts longer.
How Deep Should Fence Post Holes Be?
Set posts one-third of their total length into the ground. A 9-foot post for a 6-foot fence goes 3 feet deep. Minimum recommended depth is 24 inches for 4-foot fences and 36 inches for 6-foot and taller fences. In areas with frost, the post hole should extend below the frost line (typically 36-48 inches in northern states) to prevent frost heave from shifting the posts. Each hole should be 8-12 inches in diameter for a 4x4 post. Fill with concrete to 2-3 inches below ground level and slope the top of the concrete away from the post so water sheds outward instead of pooling against the wood.
How Many Pickets Do I Need?
For a privacy fence with no gaps, divide the total fence length by the picket width. A 150-foot fence using 5.5-inch (1x6) pickets: 150 feet x 12 inches = 1,800 inches / 5.5 = 327 pickets. Add 5-10% for waste. For a spaced picket fence, add the gap to the picket width before dividing. With 3.5-inch pickets and 3.5-inch gaps: 1,800 / 7 = 257 pickets. The calculator adjusts picket count based on the material type and width you select. Wood pickets come in standard lengths of 4, 5, 6, and 8 feet to match common fence heights.
What Types of Fence Materials Are There?
Pressure-treated pine is the most affordable and widely available option at $10-$20 per linear foot installed. It resists rot and insects but needs staining or sealing every 2-3 years. Cedar is naturally rot-resistant, takes stain beautifully, and lasts 15-25 years at $15-$30 per linear foot. Vinyl fencing requires zero maintenance and lasts 20-30 years at $20-$40 per linear foot. Aluminum and steel fences provide ornamental and security options at $25-$50 per linear foot. Composite fencing blends wood fiber and plastic for a low-maintenance alternative at $20-$35 per linear foot. Each material has different post, rail, and panel requirements that affect the total material calculation.
Do I Need a Permit for a Fence?
Most cities and counties require a fence permit. The permit verifies compliance with height restrictions (usually 6 feet in rear yards and 3-4 feet in front yards), setback requirements from property lines, and sight-line rules at intersections. A property survey confirms where your boundary sits so the fence goes in the right place. Building on or over the property line creates legal disputes with neighbors. HOA communities often have additional restrictions on fence materials, colors, and styles. Submit the permit application with a site plan showing the fence location, height, and material before purchasing anything.
How Much Does a Wood Fence Cost?
Material costs for a 6-foot privacy fence run $8-$15 per linear foot in pressure-treated pine or $12-$22 in cedar. Posts and concrete add $3-$5 per linear foot. Gates cost $75-$250 each depending on width and hardware. Professional installation adds $8-$20 per linear foot. A 150-foot pressure-treated privacy fence costs approximately $1,650-$3,000 in materials or $2,850-$6,000 fully installed. The biggest cost variables are fence height, material type, terrain difficulty, and the number of gates. Sloped terrain requires stepped or racked panels, adding complexity and labor cost.
Frequently asked questions
How many fence posts do I need?
How deep should fence posts be?
How many pickets for a 150-foot privacy fence?
How much concrete per fence post?
What fence height is allowed without a permit?
How much does a wood fence cost per foot?
Rate This Calculator
Your feedback helps us improve our tools