Fence Calculator
Building a wood privacy fence or installing pre-assembled perimeter panels secures your yard, protects children and pets, and establishes clear property boundaries. Estimating fencing materials accurately ensures you buy matching posts, horizontal 2-by-4 rails, and dog-ear pickets without running out mid-installation or paying for surplus lumber. This calculator determines the total post count, pre-assembled panel requirements, horizontal rails, and individual vertical pickets needed based on your total run length. Enter your fence dimensions below to account for gate openings and corner posts, ensuring a sturdy, well-spaced boundary fence.
How it works
Base post count is calculated by dividing total fence run length by on-center post spacing (typically 8 feet), rounding up to the nearest section, and adding 1 end post. Extra posts are then added for gate latch sides and corner changes. If using pre-assembled fence panels, panel count equals total length divided by panel width, rounded up. For stick-built fences, horizontal rails equal total sections multiplied by the rails per section (typically 3 for a 6-foot fence), while pickets equal length multiplied by pickets per foot (approximately 2.25 for 5.5-inch boards).
Worked examples
A 100-foot privacy fence run with 8-foot spacing
For a continuous 100-foot fence line without gates: 100 ÷ 8 = 12.5 sections, which rounds up to 13 sections. Base posts equal 13 + 1 = 14 posts. If buying pre-assembled panels, purchase 13 panels. For a custom stick-built fence with 3 rails per section, buy 13 × 3 = 39 rails and 100 × 2.25 = 225 dog-ear pickets.
A 120-foot perimeter fence with 1 gate and 2 corners
For 120 feet: 120 ÷ 8 = 15 sections. Base post count is 15 + 1 = 16 posts. Adding 1 extra post for gate hanging and 2 corner posts totals 19 posts. Pre-built panel count is 15 panels.
Quick reference table
| Total Run Length | Posts (Straight Run) | Pre-Built Panels (8 ft) | Horizontal 2×4 Rails | Pickets (5.5 in) |
|---|---|---|---|---|
| 50 feet | 8 posts | 7 panels | 21 rails | 113 pickets |
| 75 feet | 11 posts | 10 panels | 30 rails | 169 pickets |
| 100 feet | 14 posts | 13 panels | 39 rails | 225 pickets |
| 150 feet | 20 posts | 19 panels | 57 rails | 338 pickets |
| 200 feet | 26 posts | 25 panels | 75 rails | 450 pickets |
| 300 feet | 39 posts | 38 panels | 114 rails | 675 pickets |
Common mistakes to avoid
Frequently asked questions
What size lumber should I use for fence posts?
For standard residential fences up to 6 feet high, pressure-treated 4 × 4 inch lumber rated for Ground Contact (UC4A) is the industry standard. For gate hinge posts or fences 8 feet tall, upgrade to 6 × 6 inch posts to resist sagging and heavy wind loads.
How many bags of concrete do I need per fence post?
Most residential 4 × 4 posts set in a 10-inch diameter by 36-inch deep hole require approximately three to four 80-pound bags of concrete (or four to five 60-pound bags) per post.
Should pickets touch the ground?
No, keep pickets 1 to 2 inches above the ground level. Allowing wood pickets to contact soil or grass causes rapid moisture absorption, rot, and termite damage.
What fasteners are best for building wood fences?
Always use hot-dipped galvanized (HDG) or exterior polymer-coated ceramic screws, or stainless steel ring-shank nails. Never use interior zinc-plated drywall screws or electro-galvanized nails, which corrode quickly when exposed to treated lumber chemicals.