Fence Calculator
Calculate materials needed for your fence project.
Enter fence dimensions and click Calculate to see results.
Related Calculators
How to Calculate Fence Materials: A Complete Guide
Building a fence is one of the most common home improvement projects, but estimating materials accurately is where many people run into trouble. Too few posts and your fence sags. Too few pickets and you are making another trip to the lumber yard. This guide covers how to calculate posts, rails, pickets, and concrete for any standard fence layout.
The Basic Fence Formula
Every fence consists of posts, horizontal rails, and infill (pickets, boards, or mesh). Start with your total fence length:
Number of posts = (Total fence length / Post spacing) + 1
Number of rails = (Number of posts - 1) x Rails per section
Number of pickets = Total fence length / (Picket width + Gap width)
For example, a 100-foot privacy fence with posts every 8 feet:
- Posts: (100 / 8) + 1 = 13.5, rounded up to 14 posts
- Rails at 3 per section: (14 - 1) x 3 = 39 rails
- Pickets at 3.5 inches wide, no gap: (100 x 12) / 3.5 = 343 pickets
Add 10 percent waste for pickets to cover defective boards and cutting.
Post Spacing and Sizing
- Privacy fences (6 ft tall): 4x4 posts, 8 feet long (buried 2 feet), spaced 6 to 8 feet apart, 3 rails.
- Picket fences (3-4 ft tall): 4x4 posts, 6 feet long (buried 2 feet), spaced 6 to 8 feet apart, 2 rails.
- Chain-link: Steel posts spaced 10 feet apart for line posts, with heavier terminal posts at corners and ends.
Each post hole needs roughly 1 to 2 bags of 50-pound fast-setting concrete, depending on hole diameter and depth. For larger projects, the Concrete Calculator can help you estimate total concrete volume across all your post holes.
When You Need This Calculator
- Homeowners building a backyard privacy fence who need a complete materials list for posts, rails, pickets, and concrete.
- Property owners fencing a large lot who need accurate quantities for hundreds of feet of fence line.
- DIYers comparing fence styles who want to see how material quantities differ between privacy, picket, and split rail designs.
Common Mistakes to Avoid
- Forgetting corner and gate posts. Every corner, end, and gate opening needs a post. Gates also need heavier posts (4x6 or doubled 4x4s) to handle swinging stress.
- Using only 2 rails on a tall fence. Fences over 4 feet tall need 3 rails to prevent warping and wind damage.
- Setting posts too shallow. Bury posts at least one-third of their total length, minimum 24 inches. In cold climates, set below the frost line to prevent heaving. Adding a few inches of gravel at the bottom of each hole improves drainage — the Gravel Calculator can help estimate how much you need.
- Not accounting for slope. On uneven terrain, you need either stepped panels or racked panels. Stepped panels require longer posts at low points.
Pro Tips
- Check your property line. A survey pin or plat map confirms your boundary. Building over the line can lead to disputes or forced removal.
- Call 811 before digging. This free service marks underground utilities so you avoid hitting gas, electric, or water lines.
- Use ground-contact treated lumber. Posts should be stamped "Ground Contact" or "UC4A." Standard treated lumber rots quickly when buried.
- Pre-stain pickets before installation. Staining boards flat on sawhorses is faster and coats the backs and edges, extending wood life.
Frequently Asked Questions
How many fence pickets do I need per foot?
Standard 3.5-inch dog-ear pickets with no gap require about 3.43 pickets per linear foot, or roughly 34 per 10 feet of fence. For a picket fence with 1.75-inch gaps, you need about 2.3 pickets per linear foot.
How far apart should fence posts be?
Standard wood fence post spacing is 8 feet on center. In high-wind areas or for fences taller than 6 feet, reduce to 6 feet. Always place a post at every corner, end point, and on each side of a gate opening.
How much does a fence cost per foot?
Materials for a 6-foot wood privacy fence typically run $12 to $25 per linear foot. Installed cost including labor ranges from $25 to $50 per foot. Chain-link runs $8 to $15 per foot for materials; vinyl fencing costs $20 to $40 per foot.