Wood Fence Calculator to estimate pickets or boards, posts, rails, concrete bags, fasteners, material costs, and cost per foot from length, height, post spacing, board gap, style, and prices.
The Wood Fence Calculator estimates the material quantities and costs for a new wood fence. Enter your fence length, style, board width, spacing, post layout, and local material prices, and the tool returns the number of pickets or boards, posts, concrete bags, backer rails, fasteners, a material subtotal, a total estimated cost including a miscellaneous allowance, and a cost-per-linear-foot figure. Results are planning estimates — not a quote — because final quantities depend on actual site conditions, product dimensions, gates, corners, and local code requirements.
What the Wood Fence Calculator Estimates
The calculator supports three wood fence layouts: Vertical Standard, Board-on-Board, and Horizontal. Each layout uses a different formula for counting boards, and the rail logic also changes by style. For every job the tool produces the following outputs:
| Output | What It Represents |
|---|---|
| Pickets / boards needed | Total board count driven by fence style formula |
| Posts | Number of fence posts including end posts |
| Concrete bags | Estimated 60 lb bags at 1.5 bags per post |
| Backer rails | Horizontal framing members (vertical styles only) |
| Fasteners | Planning count of screws or nails |
| Material subtotal | Board + post + rail cost at entered prices |
| Total estimated cost | Material subtotal plus miscellaneous allowance |
| Cost per linear foot | Total cost divided by fence length |
The calculator does not estimate labor, stain, caps, permit fees, gates, or delivery. Those costs are entered separately or noted as a planning allowance using the miscellaneous percentage field.
Wood Fence Material Formulas Used by the Calculator
Every output field is produced by a deterministic formula. Understanding the math helps you catch input errors and explains why two similar fences can produce very different board counts.
Fence Sections and Posts
A section is the span of fence between two adjacent posts. The number of sections is the fence length divided by the chosen post spacing, rounded up to the nearest whole number using the ceiling function. Posts always equal sections plus one, because a run of $ n $ sections requires a post at both ends of each section.
$$\text{Sections} = \left\lceil \dfrac{\text{Total Fence Length (ft)}}{\text{Post Spacing (ft)}} \right\rceil$$
$$\text{Posts} = \text{Sections} + 1$$
For example, a 100 ft fence on 8 ft spacing gives $ \lceil 100 \div 8 \rceil = \lceil 12.5 \rceil = 13 $ sections and $ 13 + 1 = 14 $ posts. Corner posts, gate posts, and end posts with different embedment requirements are not differentiated — treat the output as a starting count and adjust for your specific layout.
Pickets for a Vertical Wood Fence
For a Vertical Standard fence, each picket occupies a width equal to the board face width plus the chosen gap. The total fence length is converted to inches, divided by that combined coverage width, and rounded up.
$$\text{Pickets} = \left\lceil \dfrac{\text{Fence Length (in)}}{\text{Board Width (in)} + \text{Gap (in)}} \right\rceil$$
A 100 ft fence (1,200 in) with 5.5 in boards and a 0 in gap gives $ \lceil 1200 \div 5.5 \rceil = \lceil 218.18 \rceil = 219 $ pickets. Increasing the gap to 0.5 in reduces the count: $ \lceil 1200 \div 6.0 \rceil = 200 $ pickets, but the fence is no longer solid. Verify gap tolerance meets local wind or privacy requirements.
Pickets for a Board-on-Board Fence
A board-on-board fence alternates boards on opposite sides of the rails with a fixed overlap, so each board covers a narrower net span than its face width. This calculator uses a 1.5 in overlap as the standard assumption. Because boards overlap, you always need more of them than a standard vertical fence of the same length.
$$\text{Board-on-Board Pickets} = \left\lceil \dfrac{\text{Fence Length (in)}}{\text{Board Width (in)} – 1.5} \right\rceil$$
With 5.5 in boards and 1.5 in overlap, the net coverage per board is $ 5.5 – 1.5 = 4.0 $ in. For a 100 ft fence: $ \lceil 1200 \div 4.0 \rceil = 300 $ boards — about 37% more boards than the same fence built as Vertical Standard with no gap. This difference matters at the lumber yard and in the budget. The overlap also means the fence is not perfectly airtight from one angle but provides full privacy from straight on.
Boards for a Horizontal Wood Fence
Horizontal fences run boards parallel to the ground, spanning between posts. The number of boards is calculated per section: the fence height in inches is divided by the board width plus any spacing gap, rounded up to get the board count per section, then multiplied by the total number of sections.
$$\text{Horizontal Boards} = \left\lceil \dfrac{\text{Fence Height (in)}}{\text{Board Width (in)} + \text{Gap (in)}} \right\rceil \times \text{Sections}$$
For example, a 6 ft (72 in) tall horizontal fence with 5.5 in boards and a 0.5 in gap gives $ \lceil 72 \div 6.0 \rceil = 12 $ boards per section. Over 13 sections that is $ 12 \times 13 = 156 $ boards total. Note that this calculator counts zero backer rails for horizontal fences because the boards mount directly to the posts — horizontal boards serve as their own structural facing and do not require separate rail stock in this estimating model. If your design uses a separate horizontal nailer system, add that cost manually.
Rails, Fasteners, Concrete, and Cost
Rails (vertical styles). For Vertical Standard and Board-on-Board layouts, each section gets the number of rails you select. The formula is straightforward: $ \text{Rails} = \text{Sections} \times \text{Rails per Section} $. For horizontal fences, rail count outputs zero in this model.
Fasteners. For vertical layouts the calculator assumes two fasteners per board-rail intersection: $ \text{Fasteners} = \text{Pickets} \times \text{Rails per Section} \times 2 $. For horizontal boards it assumes four fasteners per board: $ \text{Fasteners} = \text{Boards} \times 4 $. These are planning counts — round up at purchase and buy extra for overdriven or split fasteners.
Concrete bags. The calculator uses 1.5 bags of 60 lb concrete per post as a standard planning quantity, rounded up: $ \text{Concrete Bags} = \lceil \text{Posts} \times 1.5 \rceil $. Actual consumption depends on hole diameter, depth, soil type, and frost requirements. Check local frost-depth data and your post manufacturer’s embedment tables before ordering.
Material subtotal and total cost.
$$\text{Material Subtotal} = (\text{Boards} \times \text{Price/Board}) + (\text{Posts} \times \text{Price/Post}) + (\text{Rails} \times \text{Price/Rail})$$
$$\text{Total Estimated Cost} = \text{Material Subtotal} \times \left(1 + \dfrac{\text{Misc \%}}{100}\right)$$
$$\text{Cost per Linear Foot} = \dfrac{\text{Total Estimated Cost}}{\text{Fence Length (ft)}}$$
The miscellaneous allowance field is a user-controlled percentage added on top of the material subtotal. Use it to account for waste, small hardware, caps, or other items not in the main price fields.
Example Wood Fence Calculation
The following example walks through every formula step for a standard residential backyard fence. Use these numbers to verify your own inputs produce consistent results.
| Input | Value |
|---|---|
| Fence length | 100 ft |
| Fence height | 6 ft |
| Fence style | Vertical Standard |
| Board width | 5.5 in |
| Picket gap | 0 in |
| Post spacing | 8 ft |
| Rails per section | 3 |
| Price per picket | $2.50 |
| Price per post | $15.00 |
| Price per rail | $8.00 |
| Misc allowance | 10% |
Step-by-step calculation:
$$ \text{Sections} = \lceil 100 \div 8 \rceil = \lceil 12.5 \rceil = 13 $$
$$ \text{Posts} = 13 + 1 = 14 $$
$$ \text{Concrete bags} = \lceil 14 \times 1.5 \rceil = \lceil 21 \rceil = 21 $$
$$ \text{Pickets} = \lceil 1{,}200 \div 5.5 \rceil = \lceil 218.18 \rceil = 219 $$
$$ \text{Rails} = 13 \times 3 = 39 $$
$$ \text{Fasteners} = 219 \times 3 \times 2 = 1{,}314 $$
$$ \text{Material Subtotal} = (219 \times \$2.50) + (14 \times \$15.00) + (39 \times \$8.00) = \$547.50 + \$210.00 + \$312.00 = \$1{,}069.50 $$
$$ \text{Misc Allowance} = \$1{,}069.50 \times 0.10 = \$106.95 $$
$$ \text{Total Estimated Cost} = \$1{,}069.50 + \$106.95 = \$1{,}176.45 $$
$$ \text{Cost per ft} = \$1{,}176.45 \div 100 = \$11.76 $$
| Output | Result |
|---|---|
| Pickets needed | 219 |
| Posts | 14 |
| Concrete bags | 21 |
| Backer rails | 39 |
| Fasteners | 1,314 |
| Material subtotal | $1,069.50 |
| Misc allowance (10%) | $106.95 |
| Total estimated cost | $1,176.45 |
| Cost per linear foot | $11.76 |
Vertical, Board-on-Board, and Horizontal Fence Differences
The three fence styles use different board-counting logic, different rail assumptions, and have different practical trade-offs for privacy, wind resistance, and cost. The table below summarizes the key differences that affect how the calculator works for each layout.
| Fence Style | How Boards Are Counted | Rails Counted? | Best Use | Main Estimating Caution |
|---|---|---|---|---|
| Vertical Standard | Length ÷ (board width + gap) | ✅ Yes | Privacy, traditional look, cost efficiency | Use actual board width, not nominal label |
| Board-on-Board | Length ÷ (board width − 1.5 in overlap) | ✅ Yes | Full privacy at any viewing angle, wind areas | Board count is ~25–40% higher than standard; verify overlap |
| Horizontal | Height ÷ (board width + gap) × sections | ❌ No | Modern aesthetic, board-and-batten, contemporary homes | Post sizing critical; no separate rail stock counted |
Board-on-board construction uses significantly more lumber than a solid vertical fence of identical dimensions because the net coverage per board is reduced by the overlap. A fence specified as board-on-board but priced using vertical board counts will produce a material shortage. Always confirm which style your project uses before entering values.
Assumptions and Limits of This Calculator
Every estimating tool makes simplifying assumptions. Knowing where this calculator’s model differs from a real-world job helps you adjust before ordering materials.
- Concrete: 1.5 bags per post. This is a standard planning estimate for a 60 lb bag and typical residential post hole. Actual consumption depends on hole diameter, hole depth, and soil type. Deep holes in sandy soil can require 3 or more bags per post.
- Board-on-board overlap: 1.5 inches. This is the most common residential overlap. If your design specifies a different overlap, use the custom board width field to adjust the effective net coverage per board manually.
- No gates, corners, or end-post differences. Gate posts typically require larger stock and deeper footings. Corner posts may require additional hardware. These are not modeled in this tool.
- No waste allowance built in. The calculator produces the theoretical minimum board count. Add 5–10% for waste on straight runs and more for sloped terrain where boards must be cut to step or rake.
- No slope stepping or raking. Terrain changes that require stepping or raking the fence line can significantly change board, post, and rail quantities. These must be estimated separately for each slope segment.
- No labor, permit fees, stain, caps, trim, or delivery. Use the miscellaneous percentage field for small items not in the main cost fields. Budget labor and permits separately from this estimate.
- Nominal vs. actual dimensions. A 1×6 board is nominally 6 inches wide but actually measures approximately 5.5 inches. A 1×4 board is actually about 3.5 inches. Always enter the actual measured face width, not the nominal label, to get accurate board counts.
- Prices are user-entered. The calculator cannot retrieve live lumber prices. Results depend entirely on the accuracy of the prices you type. Lumber prices fluctuate with market conditions — verify at your supplier before ordering.
- Local code, frost depth, soil, and wind exposure. Post embedment depth, concrete type, post size, and hardware requirements are governed by local building codes and environmental conditions. This calculator does not replace a code review or a site assessment by a qualified contractor.
- Utility marking. Always contact your regional utility marking service before digging post holes. Unmarked underground lines can be struck at standard fence-post depths.
Wood Fence Planning Tips Before Buying Materials
A material estimate is only as accurate as the inputs behind it. Before heading to the lumber yard, work through these checks.
- Measure the actual fence run. Walk the property line with a 100 ft tape rather than using a survey plat or map estimate. Mark each corner with a stake. Total the segment lengths before entering a single number into the calculator.
- Mark gate openings separately. Subtract the clear width of each gate opening from the total fence length. Gate hardware, double gate posts, and gate framing are ordered separately and are not in this calculator’s scope.
- Confirm post spacing with your local code. Some municipalities or HOA rules specify maximum post spacing for fence permits. Eight-foot post spacing is common but not universal. Confirm before designing your section layout.
- Measure the actual board face width. Buy or borrow a sample board and measure the face with a tape. Do not rely on the nominal size printed on the label. A 1×6 pine board sold as 5.5 in may measure 5.375 in dried, which changes the picket count.
- Add a waste factor before ordering. If your fence line has corners, steps, or boards that will be ripped lengthwise, add at least 10% to the board count. For complex layouts, 15% is more practical.
- Check local permit requirements before digging. Many jurisdictions require a permit for fences above a certain height (commonly 6 ft). Some require a site plan or neighbor notification. Permit applications often require a fence specification that includes post depth and material type.
- Call your regional utility marking service before any post hole. In the United States, call 811 at least 3 business days before digging. Other regions have equivalent services. Post holes are typically 2–3 ft deep — well within the range of buried utility infrastructure.
Frequently Asked Questions About Wood Fence Calculations
How do I calculate how many pickets I need for a fence?
Convert your fence length to inches and divide by the board face width plus your chosen gap. Round up to the nearest whole number. For a standard vertical fence with 5.5 in boards and no gap: $ \text{Pickets} = \lceil \text{Length (in)} \div 5.5 \rceil $. If you are building a board-on-board fence, subtract the overlap (typically 1.5 in) from the board width instead of adding a gap: $ \text{Pickets} = \lceil \text{Length (in)} \div (5.5 – 1.5) \rceil $. Always measure the actual board face width rather than using the nominal lumber label.
How many posts do I need for a 100 ft wood fence?
It depends on your post spacing. With 8 ft spacing: $ \lceil 100 \div 8 \rceil = 13 $ sections, requiring $ 13 + 1 = 14 $ posts. With 6 ft spacing: $ \lceil 100 \div 6 \rceil = 17 $ sections, requiring 18 posts. Posts always equal the number of sections plus one, because each end of the fence needs a post. Gates and corners add posts beyond this count.
How many rails do I need for a wood fence?
For a vertical or board-on-board fence, multiply the number of sections by the rails per section you’ve selected. A 100 ft fence at 8 ft spacing has 13 sections. With 3 rails per section, you need $ 13 \times 3 = 39 $ rails. A 4 ft tall fence typically uses 2 rails; a 6 ft fence uses 2–3 rails; an 8 ft fence typically uses 3–4 rails, though local code or wind load requirements may specify more. For horizontal fences, the boards serve as the facing and no separate rail stock is counted in this calculator.
How many concrete bags are needed per fence post?
This calculator uses 1.5 bags of 60 lb ready-mix concrete per post as a planning estimate. One 60 lb bag typically sets a post hole approximately 10 in in diameter and 24 in deep. Deeper holes, wider holes, or larger-diameter posts require more concrete. In areas with deep frost lines — such as USDA Hardiness Zones 3–5 — post holes may need to be 42–60 in deep, which can require 3–5 bags per post depending on hole diameter. Always check the bag manufacturer’s coverage table and your local frost-depth map before ordering.
How does picket spacing change the number of boards?
A wider gap means each board covers more linear fence per unit, so fewer boards are needed. For example, a 100 ft fence with 5.5 in boards and a 0 in gap requires 219 pickets. Adding a 0.5 in gap brings the coverage per board to 6.0 in and reduces the picket count to 200. Adding a 1 in gap reduces the count further to $ \lceil 1200 \div 6.5 \rceil = 185 $. Gap settings below about 0.25 in are difficult to maintain consistently in the field and are typically treated as zero-gap in practice.
Why does a board-on-board fence need more pickets?
In a board-on-board design, boards on alternate sides of the rails overlap each other, so each board covers a narrower net span than its full face width. With a 1.5 in overlap on a 5.5 in board, the effective coverage is only 4.0 in per board instead of 5.5 in. This means you need about 37% more boards compared to a standard vertical fence of the same length with no gap. The payoff is full visual privacy from any angle and better wind resistance, but the material cost is proportionally higher.
How do I calculate horizontal fence boards?
Find the number of boards per section by dividing fence height in inches by the board width plus any gap, then round up. Multiply that result by the total number of sections. For a 6 ft (72 in) tall fence with 5.5 in boards and a 0.5 in gap: boards per section $ = \lceil 72 \div 6.0 \rceil = 12 $. Over 13 sections: $ 12 \times 13 = 156 $ boards. Board lengths must span the full section width — confirm that the lumber species and grade you’ve selected is available in the full section length without splicing.
Should I use 6 ft or 8 ft post spacing?
Six-foot post spacing uses more posts and more concrete but distributes load across more points, which can improve stability on uneven terrain, in wind-prone areas, or with heavier board species like cedar or redwood. Eight-foot spacing is more common for standard residential wood fences and reduces material cost.
The choice also affects rail deflection — longer rails on 8 ft spans can sag or bow over time if undersized or made from lower-grade lumber. In high-wind zones or for fences taller than 6 ft, 6 ft post spacing is generally the more conservative and structurally sound choice. Check local code requirements before finalizing the spacing.
This calculator produces material planning estimates only. Results depend on the accuracy of user-entered measurements and prices. Always verify quantities with your supplier and confirm design requirements with local code before purchasing materials or beginning construction.