Privacy Fence Calculator
Calculate pickets, posts, rails, and concrete for a wooden privacy fence. Enter values for instant results with step-by-step formulas.
Reviewed for accuracy by Abdullah, Technical Content Specialist
Privacy Fence Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: Pickets = Fence Length / (Picket Width + Gap) | Posts = (Length / Spacing) + 1 | Rails = Sections x Rails Per Section
Additional inputs: Cost Per Rail ($), Concrete Bag Cost ($).
Worked example โ 328 pickets, 20 posts, 57 rails, 40 bags of concrete
Formula
Pickets = Fence Length / (Picket Width + Gap) | Posts = (Length / Spacing) + 1 | Rails = Sections x Rails Per Section
Total pickets are calculated by dividing the fence length by the combined width of one picket plus any gap. Posts are calculated by dividing the fence length by the post spacing and adding one for the end post. Rails equal the number of fence sections multiplied by the number of rails per section.
Worked Examples
Example 1: Standard Backyard Privacy Fence
Problem:Calculate materials for a 150-foot privacy fence that is 6 feet tall with 5.5-inch pickets, no gaps, 8-foot post spacing, and 3 rails per section.
Solution:Pickets: 150 ft / (5.5/12 ft) = 328 pickets Posts: (150 / 8) + 1 = 20 posts Sections: 20 - 1 = 19 sections Rails: 19 sections x 3 = 57 rails Concrete: 20 posts x 2 bags = 40 bags
Result:328 pickets, 20 posts, 57 rails, 40 bags of concrete
Example 2: Small Side Yard Fence
Problem:Calculate materials for a 40-foot fence, 6 feet tall, 5.5-inch pickets, 6-foot post spacing, 2 rails per section.
Solution:Pickets: 40 ft / (5.5/12 ft) = 88 pickets Posts: (40 / 6) + 1 = 8 posts Sections: 8 - 1 = 7 sections Rails: 7 x 2 = 14 rails Concrete: 8 posts x 2 bags = 16 bags
Result:88 pickets, 8 posts, 14 rails, 16 bags of concrete
Frequently Asked Questions
What is the standard spacing for fence posts?
Standard fence post spacing for a privacy fence is 8 feet on center, meaning the distance from the center of one post to the center of the next post is 8 feet. Some builders prefer 6-foot spacing for added strength, especially in high-wind areas or when using taller fences. Posts should be set at least one-third of their total length into the ground, so a 6-foot fence typically uses 8-foot posts buried 2 feet deep. Corner posts and gate posts may need to be spaced differently to accommodate hardware and ensure proper structural support for the added weight and stress.
How deep should fence posts be set?
Fence posts should be set at a depth equal to one-third of the total post length, plus an additional 6 inches for a gravel base. For a standard 6-foot privacy fence using 8-foot posts, this means a hole that is approximately 30 inches deep. In areas with frost, posts should extend below the frost line to prevent heaving, which can range from 24 to 48 inches depending on your climate zone. The hole diameter should be three times the post width, so a 4x4 post needs a 12-inch diameter hole. Setting posts in concrete provides the strongest installation and prevents leaning over time.
How much concrete do I need per fence post?
Most fence posts require one to two bags of 50-pound fast-setting concrete mix per post. A standard 4x4 post in a 10-inch diameter hole that is 30 inches deep needs approximately 1.5 bags of concrete. Larger 6x6 posts or deeper holes may require 2 to 3 bags each. For best results, pour the dry concrete mix directly into the hole around the post, then add water and allow it to set. This method is faster than pre-mixing and produces reliable results. Always check that your post is plumb and properly aligned before the concrete begins to harden, which usually takes about 20 to 40 minutes.
How many rails do I need for a privacy fence?
A standard privacy fence uses either two or three horizontal rails per section. Two rails are the minimum, placed about 8 inches from the top and bottom of the fence. Three rails add significantly more strength and prevent pickets from warping or bowing, which is especially important for fences taller than 5 feet. Each rail spans from one post to the next, so the number of rails equals the number of sections multiplied by rails per section. For 100 feet of fence with 8-foot spacing, you have about 13 sections, requiring 26 rails for two-rail construction or 39 rails for three-rail construction.
What type of wood is best for a privacy fence?
Cedar and pressure-treated pine are the two most popular choices for privacy fences. Cedar is naturally rot-resistant and insect-resistant, has a beautiful appearance, and can last 15 to 20 years without chemical treatment. Pressure-treated pine is less expensive, extremely durable against rot and insects, and can last 20 to 25 years or more with proper maintenance. Redwood is another excellent option but is significantly more expensive and harder to find in many regions. For the best balance of cost, durability, and appearance, most homeowners choose pressure-treated pine for posts and rails with cedar pickets for the visible face of the fence.
How much does a privacy fence cost per linear foot?
The average cost of a privacy fence ranges from 15 to 45 dollars per linear foot for materials only, depending on wood type and fence height. Pressure-treated pine fences typically cost 12 to 25 dollars per foot for materials. Cedar fences run 20 to 35 dollars per foot, and composite or vinyl fences can cost 25 to 60 dollars per foot. If you hire a professional installer, add another 10 to 25 dollars per foot for labor. A typical 150-foot perimeter fence costs between 2,250 and 6,750 dollars for DIY materials, or 3,750 to 10,500 dollars fully installed. Gate hardware and custom features add to the final price.
Do I need a permit to build a privacy fence?
Most municipalities require a building permit for fences over a certain height, typically 6 feet in the backyard and 4 feet in the front yard. Permit requirements vary significantly by city and county, so always check with your local building department before starting construction. You will also need to verify setback requirements, which dictate how far the fence must be from property lines, sidewalks, and roads. Many areas require the finished side of the fence to face outward toward neighbors. Before digging any post holes, call 811 to have underground utilities marked for free, as hitting a gas line or electrical cable can be extremely dangerous and expensive.
How long does it take to build a privacy fence?
A DIY privacy fence installation typically takes 2 to 4 days for a 100-foot fence, depending on terrain and experience level. The most time-consuming part is digging post holes, which can take a full day by hand or a few hours with a power auger. Setting posts and allowing concrete to cure takes another day. Installing rails and pickets can usually be completed in 1 to 2 days. Professional crews can often complete the same fence in 1 to 2 days because they have specialized equipment and multiple workers. Weather conditions, rocky soil, slopes, and obstacles like trees or utility lines can add significant time to the project.
Should I use screws or nails for fence pickets?
Both screws and nails work for attaching fence pickets, but each has advantages. Ring-shank or spiral-shank galvanized nails are the traditional choice and are faster to install, especially with a pneumatic nail gun. They hold well and cost less than screws. Exterior-grade deck screws provide a stronger hold and are easier to remove if you need to replace individual pickets later. Screws are less likely to pop out over time as the wood expands and contracts with moisture changes. For the best results, use hot-dipped galvanized or stainless steel fasteners that resist rust. Avoid plain steel fasteners, as they will corrode quickly and leave dark stains on the wood.
References
Background & Theory
History
Reviewed for accuracy by Abdullah, Technical Content Specialist ยท Editorial policy
Related Calculators
๐งฎFence Post Depth Calculator
Calculate fence post depth with inputs, formulas, and instant results.
๐งฎRectangle Fence Perimeter Calculator
Calculate rectangle fence perimeter with inputs, formulas, and instant results.
๐งฎVinyl Fence Calculator
Calculate vinyl fence with inputs, formulas, and instant results.
๐งฎChain Link Fence Calculator
Calculate chain link fence materials โ posts, top rail, fabric, and hardware.
๐งฎFence Post Spacing Calculator
Calculate optimal fence post spacing and total post count from fence length and terrain.
๐งฎPool Fence Calculator
Calculate pool fence materials and cost from perimeter, gate count, and material type.