Skip to content
UseCalcNow
Construction

Wood Fence Calculator — Lumber & Picket Estimator

Estimate posts, rails, and pickets for your wood fence project. Enter fence length, post spacing, and picket dimensions for an accurate material list.

About This Calculator

Planning a wood fence means counting posts, rails, and pickets accurately to avoid mid-project supply runs. This calculator takes your fence length, post spacing, rail count, and picket dimensions to produce a material list you can take to the lumber yard. Enter your numbers above and get an instant breakdown of every component needed.

The Formula Behind This Calculator

The calculator divides total fence length by post spacing to find the number of sections, then adds one to get the total posts. For pickets, it converts post spacing to inches and divides by the combined picket width plus gap to find pickets per section, then multiplies by total sections. Rail boards equal sections multiplied by the number of rails per section. The result shown is the total picket count, with posts and rail boards listed in the explanation.

Understanding the math helps you verify results and make better decisions for your project.

How to Use

  1. 1Measure the total fence line length in feet along the path the fence will follow.
  2. 2Enter your desired post spacing — 6 to 8 feet is standard for wood fences.
  3. 3Set the number of horizontal rails (typically 2 for shorter fences, 3 for 6 ft or taller).
  4. 4Input your picket width and the gap between pickets to get an accurate picket count.
  5. 5Read the breakdown of posts, rails, and pickets, then add 10% for waste and cuts.

When to Use

  • Building a new privacy, semi-private, or picket fence from scratch.
  • Replacing an entire fence line and need to order lumber.
  • Comparing material costs between different fence styles or wood species.
  • Estimating pickup truck loads for lumber delivery planning.

Tips

  • Add 10% to your picket count for waste, miscuts, and warped boards you will reject at the site.
  • Pressure-treated Southern Yellow Pine is the most cost-effective choice for posts in contact with soil.
  • Stain or seal all six sides of each picket before installation to maximize wood lifespan.
  • Use hot-dipped galvanized or stainless steel fasteners to prevent black streaks from tannin reactions.
  • Set corner and gate posts deeper — at least 36 inches — to resist lateral load from the gate.

Wood Fence Anatomy: Understanding Posts, Rails, and Pickets

Every wood fence is built from the same three components: posts buried in the ground, horizontal rails spanning between posts, and vertical pickets attached to the rails. Posts carry the structural load and resist wind pressure on the fence face. A typical residential fence uses 4x4 or 6x6 posts set 24 to 36 inches deep, depending on frost line and fence height.

Rails run horizontally between posts and provide the backing for picket attachment. Most fences use 2x4 rails, either face-nailed to the posts or notched into a dado cut. The number of rails depends on fence height — shorter fences under 5 feet can use two rails, while 6-foot and taller fences need three rails to keep pickets straight and resist sagging over time.

Pickets are the visible face of the fence. Common widths range from 3.5 inches (1x4 nominal) to 5.5 inches (1x6 nominal) and 7.25 inches (1x8 nominal). The gap between pickets determines whether the fence is solid privacy, semi-private, or decorative. A dog-eared 1x6 picket with a half-inch gap is the most common residential style in North America. For a comprehensive material estimate that accounts for all three components, use the fence calculator alongside this tool.

Calculating Lumber for Different Fence Styles

Fence style dramatically changes the lumber count. A solid privacy fence with butted pickets uses 30 to 40 percent more boards than a shadowbox style with alternating pickets on both sides. Board-on-board fences — where pickets overlap on the same side — use roughly double the pickets of a standard privacy fence. Always identify your fence style before running the numbers.

For a standard 6-foot privacy fence with 5.5-inch pickets placed edge to edge, a 100-foot run needs approximately 220 pickets. The same length in a shadowbox configuration needs about 280 pickets because boards alternate on both sides of the rail. A board-on-board style covering the same distance can require 400 or more pickets depending on the overlap amount.

Rails and posts stay the same count regardless of style, but picket width and spacing change everything. Narrower pickets (3.5 inches) need about 50 percent more boards than wider ones (5.5 inches) for the same fence length. If you are also planning gates or decorative elements, the fence material calculator can help account for those extras.

Post Spacing and Structural Integrity

Post spacing is the single biggest factor in fence strength after depth. The standard 8-foot spacing works for most 6-foot privacy fences in moderate wind zones. In areas with sustained high winds — coastal regions or open plains — reducing spacing to 6 feet increases lateral resistance by about 33 percent without adding disproportionate cost.

Wider post spacing saves on posts and concrete but puts more load on each rail span. A 2x4 rail spanning 8 feet under wind load will flex more than one spanning 6 feet, which can cause picket fasteners to loosen over time. If you choose 10 or 12 foot spacing for cost reasons, upgrade to 2x6 rails or add a middle rail for stiffness.

Gate posts deserve special attention. A 4-foot gate hung on a single 4x4 post will sag within a year under its own weight. Use 6x6 posts for any gate wider than 3 feet, and set them at least 36 inches deep with full concrete encasement. The fence post depth calculator helps determine the right depth for your frost zone and soil type.

Choosing the Right Wood Species for Fencing

Pressure-treated Southern Yellow Pine dominates the wood fence market because it is cheap, widely available, and carries a 15 to 20 year warranty against rot and insects when rated for ground contact. The treatment process forces preservatives deep into the wood fibers, making it suitable for posts directly buried in soil. Expect to pay $2 to $4 per linear foot for PT pine pickets.

Cedar is the premium choice for visible above-ground components. Western Red Cedar contains natural oils that resist moisture and insects, and it holds stain beautifully. Cedar costs about 50 percent more than treated pine but lasts 20 to 25 years with proper sealing. Many builders mix materials: treated pine posts in the ground with cedar pickets and rails above grade.

Redwood, cypress, and tropical hardwoods like ipe offer exceptional durability but come at premium prices. Redwood fencing can cost $8 to $15 per linear foot for materials alone. If budget allows, these species provide rich color and grain patterns that pressure-treated lumber cannot match. Whatever species you pick, estimate the total board volume with the lumber calculator before heading to the supplier.

Fasteners, Hardware, and Hidden Costs

The nails or screws you choose matter as much as the wood. Pressure-treated lumber contains copper and other chemicals that react with regular steel fasteners, causing black streaks and premature rust. Use hot-dipped galvanized or stainless steel fasteners rated for ACQ-treated lumber. A 1x6 picket needs two fasteners per rail — three rails means six nails or screws per picket.

A 100-foot fence with 200 pickets and three rails requires 1,200 fasteners. Buy them in 5 lb boxes rather than small packs to save 40 percent or more. Hidden fastener systems that clip pickets from the back cost more upfront ($0.25 to $0.50 per picket) but produce a clean face with no visible nail heads.

Budget for concrete, gravel, post caps, gate hardware, and hinges. A typical gate kit with self-closing hinges and a latch runs $40 to $80. Post caps add $3 to $10 each and protect end grain from water intrusion. To estimate the total project budget including labor and overhead, pair this tool with the fence cost calculator.

Weatherproofing, Staining, and Maintenance

Untreated wood exposed to sun and rain will gray within six months and show surface checks within a year. Apply a penetrating oil-based stain or water-repellent sealer to all six sides of every picket before installation. This seals the end grain and slows moisture movement that causes warping, cupping, and splitting. A good stain needs reapplication every 3 to 5 years depending on sun exposure.

Avoid painting a wood fence unless you are prepared for ongoing maintenance. Paint forms a film that traps moisture when the wood expands and contracts, leading to peeling within 2 to 3 years. Solid-color stains offer a painted look while still allowing the wood to breathe. They last 4 to 7 years on vertical fence surfaces.

Keep vegetation trimmed back at least 12 inches from the fence line on both sides. Plants trap moisture against the wood and create a path for termites. Inspect your fence annually for loose boards, leaning posts, and fastener corrosion. The stain calculator helps estimate how much finish you need based on fence square footage and product coverage rates.

Building Codes, Property Lines, and Setbacks

Before buying lumber, verify your property line and local setback requirements. Most municipalities require fences to be set 2 to 6 inches inside the property line, and some mandate a minimum distance from sidewalks and fire hydrants. A plat survey or a call to your local zoning office prevents expensive disputes with neighbors.

Fence height limits vary by location and by which side of the property the fence faces. Front yard fences are often capped at 3.5 or 4 feet, while rear and side yards typically allow 6 feet. Corner lots may have sight triangle restrictions that limit height near intersections. Some HOAs restrict fence style, color, or material — check covenants before ordering lumber.

Call 811 (the national utility locator service in the US) at least 72 hours before digging any post holes. Utility lines, irrigation pipes, and underground cables can sit just inches below the surface. If your project involves a concrete footing pour or masonry work, the concrete slab calculator can help estimate those material quantities.

Installation Tips for a Straight, Level Fence

Start every fence project by stretching a mason line between batter boards at each end of the run. This line becomes your reference for post alignment and picket tops. Set corner posts first, then use the string to align line posts between them. A laser level or transit helps keep post heights consistent on sloped terrain.

On slopes, you have two options: stair-stepping panels or racking. Stair-stepping keeps each panel level, creating a stepped appearance that follows the grade. Racking tilts the panel to follow the slope, keeping the fence tight to the ground but requiring angled cuts on picket bottoms. Stair-stepping is simpler and works well on gentle slopes under 10 degrees — use the angle cut calculator for the miter cuts.

Brace each post with temporary 2x4 supports while the concrete cures. Wait at least 24 hours before attaching rails or pickets — concrete reaches full strength after 7 days but handles light loads after the first day. Pre-drill picket ends to prevent splitting, especially when working near knots or with harder species like cedar and redwood. For load-bearing structural calculations on larger spans, the wood beam span calculator provides engineering reference values.

FAQ

How far apart should wood fence posts be?

Most wood fence posts are spaced 6 to 8 feet apart. Post spacing depends on fence height, wind exposure, and rail stiffness. Shorter spacing (6 ft) produces a sturdier fence, while 8 ft spacing uses fewer posts and less concrete.

How many pickets do I need for a 100 foot fence?

For a 100 ft fence with 5.5 inch pickets and 0.5 inch gaps at 8 ft post spacing, you need roughly 200 pickets. Run the calculator with your exact dimensions for a precise count.

Should I use 2 or 3 rails for my wood fence?

Fences under 5 ft typically use 2 rails. Fences 5 ft and taller should use 3 rails to prevent picket sagging and resist wind load. A 3-rail configuration with 8 ft spacing is the industry standard for 6 ft privacy fences.

What is the best wood for fence posts?

Pressure-treated pine rated for ground contact is the most common and affordable option. Cedar and redwood resist rot naturally but cost more. For wet or poorly drained soil, consider using concrete footings with a gravel base regardless of wood species.

How much concrete do I need per fence post?

A typical 4x4 fence post in an 8 inch diameter hole needs about one and a half 60 lb bags of concrete. You can use a [post hole concrete calculator](/calculator/post-hole-concrete-calculator) to get exact amounts for your project.

Do I need a permit to build a wood fence?

Most municipalities require a permit for fences over 6 feet tall, and some require one for any fence. Check local building codes, setback rules, and utility easement requirements before digging post holes.

Related Calculators