Fence Board Calculator

Estimate how many fence pickets, posts, 2x4 rails, fasteners, and concrete bags you need for your fence project. Compare solid privacy, spaced picket, board-on-board, and horizontal styles with gate subtractions and waste allowances.

Reviewed and updated September 26, 2026

Use it when you want to know
  • Pickets for every fence styleCalculate spaced pickets, solid privacy, board-on-board shadowbox, and horizontal boards.
  • Posts, rails, and concreteEstimate 4x4 posts, 2x4 framing rails, post hole concrete bags, and gate framing.
  • Deduct gates and add wasteSubtract openings for walk or drive gates and add a 10% cutting and lumber buffer.
Calculator

How many fence boards, posts, and rails do you need?

Enter your fence run, choose a style, and set post spacing to calculate exact pickets, posts, 2x4 framing rails, fasteners, and concrete bags. Includes gate deductions, board-on-board overlap, and lumber waste buffers.

Solid Privacy: Vertical pickets mounted edge-to-edge on 2x4 rails. Standard for backyard privacy and perimeter boundaries.

3. Picket & board specifications

Check if gates use prefabricated steel frames or are factored into the main picket order.

5. Framing, fasteners & concrete

Guide

How to calculate fence pickets, posts, and framing materials

Building a wood fence requires balancing board dimensions, shrinkage gaps, wind load post spacing, and structural rails. Planning your material order avoids mid-project supply runs and creates a fence that stays plumb and true for decades.

The anatomy of a wood fence: posts, rails, pickets, and footings

Every wood fence consists of four fundamental structural components:

1. Posts: Vertical structural timbers (usually 4x4 or 6x6 lumber) embedded in concrete footings to carry wind load and fence weight.

2. Rails: Horizontal 2x4 framing stringers connecting post to post that give pickets their fastening backing.

3. Pickets or boards: Vertical or horizontal facing boards (usually 1x4, 1x6, or 1x8) that create privacy, containment, and visual appeal.

4. Concrete footings: Solid cylindrical anchors beneath the ground line that resist frost heave, soil shifting, and storm winds. Check our dedicated Fence Post Concrete Calculator for exact hole diameters and soil conditions.

Actual versus nominal board dimensions

Lumber terminology confuses many first-time builders. When buying 1x6 fence pickets, the lumber has been planed and dried. Its true face width is 5.5 inches, not 6 inches. A 1x4 picket measures 3.5 inches wide, and a 1x8 board measures 7.25 inches.

Relying on nominal widths creates severe lumber shortages. Across a 100-foot fence line, assuming 6-inch boards calculates 200 pickets. With the actual 5.5-inch width, you need 219 pickets. That 19-board shortfall leaves a 9-foot gaping hole at the end of your installation. Always calculate orders using true surfaced dimensions.

Choosing the right fence style for your yard

The calculation method changes significantly depending on your fence architecture:

Solid privacy fences: Pickets sit edge-to-edge. This is the most popular style for residential backyards. When using wet pressure-treated pine, install pickets tight with zero gap. The lumber naturally shrinks 1/8 to 1/4 inch across its width as moisture evaporates, creating natural expansion relief.

Spaced picket fences: Traditional front yard fences with uniform spaces between pickets (typically 1.5 to 2.5 inches). Because gaps cover part of the fence run, picket counts are 30 to 45 percent lower than solid privacy fences.

Board-on-board shadowbox fences: Vertical boards alternate on the front and back of the horizontal rails, with each board overlapping its neighbor by 1.0 to 1.5 inches. This is the premier privacy fence style because even after boards shrink in the dry summer sun, there is zero line of sight into your yard. However, the overlap reduces effective coverage to 4.5 inches per 1x6 board, requiring roughly 25 to 30 percent more pickets than flat privacy fences.

Horizontal board fences: A modern architectural profile where boards run horizontally between posts. In horizontal fences, boards span from post to post, and the number of board courses is calculated by dividing fence height by the board width plus gap. For structural stability, horizontal fences require 6-foot post spacing or vertical center battens to eliminate sagging.

Post spacing: 8 feet versus 6 feet on center

Standard residential post spacing is 8 feet on center. Lumber yards stock pressure-treated 2x4 rails in 8-foot and 16-foot lengths, allowing each rail to span from post center to post center with minimal waste.

However, you should reduce post spacing to 6 feet on center in three specific situations:

First, in high-wind regions (such as coastal areas, open plains, or hilltop lots) where a solid 6-foot privacy fence acts like a giant sail.

Second, when constructing a heavy board-on-board fence, where the 30 percent extra lumber weight puts severe downward and twisting pressure on 2x4 rails.

Third, for horizontal board fences, where lumber installed on its flat edge naturally sags over spans greater than 6 feet.

Why 6-foot privacy fences always require three 2x4 rails

A frequent mistake made by budget contractors and eager DIYers is building a 6-foot privacy fence with only two horizontal rails (one at top and one at bottom).

With only two rails, the unsupported middle span between fasteners is nearly 5 feet tall. As sunlight heats the outdoor face of the pickets while the shaded yard face stays cool, the wood grain experiences differential drying. Pickets cup, twist, and pull their fasteners straight out of the wood. Adding a middle rail at the 3-foot mark locks each picket in plane, keeping the entire fence flat and sturdy for decades.

Post hole depth and the frost line rule

A fence is only as strong as its foundation. A standard residential rule of thumb requires at least one-third of the post length to be buried in the ground. For a 6-foot fence, posts must be set at least 24 inches deep in mild climates, requiring 8-foot posts (6 feet above ground, 2 feet below).

In northern climates subject to freezing temperatures, post footings must extend at least 6 inches below the local frost depth according to the International Residential Code (IRC) outdoor barrier guidelines. If your local frost line is 36 inches, your post holes must be 42 inches deep, requiring 10-foot 4x4 posts. Setting posts too shallow in freeze-thaw zones causes frost heave, lifting the concrete collars and tipping the fence out of plumb within two winters.

Fasteners: exterior screws versus ring-shank nails

Never use interior drywall screws or smooth-shank framing nails for fence construction. Standard drywall screws are brittle, snap under wind load, and corrode rapidly from the copper preservative chemicals in pressure-treated lumber.

Use #8 or #9 exterior-grade ceramic-coated deck screws (1-5/8 inch or 2 inch) or hot-dipped galvanized ring-shank nails. Ring-shank nails have circular ridges that bite into the wood fibers, offering double the holding power of smooth nails. Fasten each picket with two fasteners at each rail crossing. For wide 1x8 boards, use three fasteners per rail to control cupping.

Fence material calculation formulasPickets = Ceil(Picket Run Length / Effective Board Coverage)

Total Pickets = Ceil(Net Pickets x (1 + Waste Allowance)).
Sections = Ceil(Total Fence Length / Post Spacing).
Posts = Sections + 1 (plus 2 posts per gate opening).
Rails = (Sections x Rails Per Section) + Gate Frame Lumber.
Fasteners = (Total Pickets x Fasteners Per Rail x Rails) + (Rails x 4).
Example: A 100 ft fence with one 4 ft gate leaves a 96 ft net run (1,152 inches). With 5.5" boards and 0" gap, net pickets equal Ceil(1,152 / 5.5) = 210 pickets. With 10% waste, order 231 pickets. At 8 ft post spacing, 100 ft requires 13 sections and 14 posts. With 3 rails per section, you need 39 rails plus 4 extra for gate bracing and lumber waste (43 total).

For related outdoor project calculations, consult our Fence Post Concrete Calculator for post hole volumes, our Deck Board Calculator for deck surface boards, our Concrete Bag Calculator for footing premix, our Waste Allowance Calculator for scrap percentages, our Square Footage Calculator for yard dimensions, and our Feet and Inches Calculator for precision cut measurements.

For professional standards and best practices, review technical guides from the American Fence Association and wood durability specifications from the USDA Forest Products Laboratory.

The two-rail trap on 6-foot fences

Using only two 2x4 rails on a 6-foot fence leaves nearly 5 feet of picket unsupported. As wood dries in the summer sun, pickets cup, twist, and snap fasteners. Always specify three rails for 5-foot and 6-foot privacy fences.

Shallow post holes and wind failures

A 6-foot solid privacy fence acts as a massive windbreak during storms. Posts set less than 24 inches deep or above local frost lines can tilt or blow over entirely. Embed at least one-third of the post length in solid concrete.

Wet green pine shrinkage

Fresh pressure-treated pine pickets are saturated with moisture and will shrink 1/8 to 1/4 inch across their width over 60 days. Install wet lumber snug with zero gap, and let summer evaporation open up natural drainage seams.

Property boundaries and utility calls

Always verify your legal boundary pins and local zoning setback ordinances before digging. In the United States, call 811 several business days before setting post holes to have underground electric, gas, and water lines marked for free.

FAQ

Frequently asked fence questions

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

For a standard 100-foot solid privacy fence using 5.5-inch wide pickets (1x6 lumber) with zero gaps, you need 219 pickets. Adding a standard 10 percent waste allowance brings the order to 241 pickets. If you choose a spaced picket fence with a 2-inch gap between pickets, the picket count drops to 160 pickets (176 with waste). If you choose a board-on-board fence with a 1-inch overlap, each board covers 4.5 inches of face distance, requiring 267 pickets (294 with waste).

What is the difference between nominal and actual fence picket width?

Nominal width is the commercial rough-cut lumber label before drying and surfacing. An actual width is the true dimension. A standard nominal 1x6 fence picket measures 5.5 inches wide. A nominal 1x4 picket measures 3.5 inches wide, and a nominal 1x8 picket measures 7.25 inches wide. Always calculate lumber requirements using actual dimensions, because assuming a true 6-inch width for a 1x6 board creates a 9 percent shortage across your fence line.

How many 2x4 rails does a 6-foot fence need?

A 6-foot privacy fence requires three horizontal 2x4 rails per section: one top rail within 6 inches of the picket tops, one bottom rail roughly 8 to 12 inches above ground level, and one center rail. Using only two rails on a 6-foot fence is a common construction mistake that leads to severe warping, twisting, and cupping of the pickets within one or two seasons. For 4-foot fences, two rails are sufficient. For 8-foot fences, building codes generally require four rails.

What is the ideal post spacing: 6 feet or 8 feet?

Eight feet on center is the standard residential spacing because lumber suppliers stock 2x4 rails in 8-foot and 16-foot lengths, maximizing material efficiency. However, six feet on center is strongly recommended for high-wind coastal or prairie regions, board-on-board fences (which carry extra lumber weight), and horizontal board fences to prevent rail or board sag over time.

How does a board-on-board fence calculate pickets differently from solid privacy?

A board-on-board fence places vertical boards alternating on the front and back of the horizontal rails, with each board overlapping its neighbor by 1.0 to 1.5 inches. This creates a solid visual screen that remains private even when the lumber shrinks. Because of the overlap, each 5.5-inch board effectively covers only 4.0 to 4.5 inches of horizontal distance. As a result, a board-on-board fence requires roughly 22 to 30 percent more pickets than a flat solid privacy fence of the same length.

How deep should fence posts be set in the ground?

As a general rule of thumb, set at least one-third of the total post length into the ground. For a standard 6-foot fence, posts should be set at least 24 to 30 inches deep in mild climates, which requires buying 8-foot or 9-foot posts. In cold climates subject to freezing weather, post holes must extend 6 inches below the local frost depth (often 36 to 48 inches deep) to prevent winter frost heaving from lifting the posts out of alignment.

How many bags of concrete do I need for each fence post?

A standard 4x4 post set in a 10-inch diameter hole 30 inches deep typically requires two 80-pound bags of concrete mix, or roughly three 50-pound bags of fast-setting concrete. Corner posts, end posts, and gate posts often use a 12-inch diameter hole and require three to four 80-pound bags to resist lateral pull and gate movement.

Should I leave a gap between wood fence pickets?

If you are installing fresh, wet pressure-treated pine pickets straight from the home improvement center, butt them snug edge-to-edge with no gap. Fresh pressure-treated wood is saturated with water and preservative, and each board will naturally shrink 1/8 to 1/4 inch across its width as it seasons over two to three months. If you leave a gap during installation of wet lumber, the gap will widen excessively once the wood dries. For kiln-dried pine, cedar, or composite pickets, leave a uniform 1/16 to 1/8 inch gap during installation.

What fasteners should I use for fence pickets and rails?

Fasten pickets with 1-5/8 inch or 2-inch exterior-grade coated deck screws or hot-dipped galvanized ring-shank nails. Drive two fasteners per rail connection for 5.5-inch pickets, and three fasteners per rail for 7.25-inch pickets. Fasten 2x4 rails to posts using 3-inch or 3.5-inch exterior wood screws or galvanized structural fence brackets. Never use electro-galvanized interior drywall screws or smooth-shank nails, which corrode and loosen under wind exposure.

How do I account for slopes or uneven ground with fence boards?

You can either step the fence panels or rack the fence panels. Stepping keeps all rails and board tops completely level, creating stepped rectangular sections that drop down with the slope. Racking angles the rails parallel to the grade so the bottom of the pickets follows the slope closely. Racking requires slightly longer pickets or angled bottom cuts, whereas stepping leaves triangular gaps underneath the uphill ends of each section that may require a bottom rot board or gravel filler.