Fence Lumber Calculator: How to Estimate Boards
- Total rail length
- ft
- Result
- Number of boards
- Result
- Board feet (1x6)
- bd ft
- Result
A fence lumber calculator works out how many boards, posts, and rails you need for a fence based on the total length, section spacing, and board width you enter. You input the fence run length, post spacing, board width, and number of rails, and it returns the number of posts, rails, and pickets (or boards) required, plus a board-foot estimate if you add lumber dimensions. This guide explains the math behind the calculator, how to measure your fence line correctly, and common pitfalls that lead to under- or over-ordering.
Formula
The calculator uses three basic formulas:
- Number of posts = ceil(Fence length / Post spacing) + 1 (the +1 accounts for the end post).
- Number of boards (pickets) = ceil( (Fence length in inches) / (Board width + Gap) ).
- Total rail length = Number of rails × Fence length.
Where:
- Fence length (ft) – total linear distance the fence covers.
- Post spacing (ft) – center-to-center distance between posts (commonly 6 or 8 ft).
- Board width (in) – actual width of each picket or board (e.g., a 1×6 is 5.5 in wide).
- Gap (in) – space left between boards (0 for a solid privacy fence).
- Number of rails – horizontal supports (usually 2 or 3).
The board-foot output assumes a 1-inch-thick board (nominal) and uses the formula: Board feet = (Number of boards × width in inches × length in feet) / 12. For a 6-foot-tall fence, each picket is 6 ft long, so board feet = boards × 6 × 6 / 12 = boards × 3.
Worked Example
Using the default values: fence length = 100 ft, post spacing = 8 ft, board width = 5.5 in, gap = 0.5 in, rails = 3.
- Posts: 100 / 8 = 12.5 → ceil = 13, plus 1 = 14 posts.
- Boards: 100 ft × 12 = 1200 in. Board width + gap = 6.0 in. 1200 / 6 = 200 → 200 boards.
- Total rail length: 3 × 100 = 300 ft.
- Board feet: 200 boards × 6 ft long × 6 in wide / 12 = 200 × 3 = 600 bd ft.
The calculator’s first output (posts) shows 14, matching the manual calculation.
How to Measure Your Fence Line
Accurate measurement is the foundation of a good estimate. Use a measuring wheel or tape along the exact path the fence will take, not a straight line between endpoints if the ground is uneven or curved. Walk the boundary and note any corners, gates, or changes in slope. For a straight run, measure from the outside edge of one end post to the outside edge of the other. Add extra length for corners and gates: each corner typically requires an additional post, and a gate needs extra framing.
If the ground slopes, you still measure horizontally – not along the ground surface. Use a string line and a level to get the true horizontal distance. A common mistake is measuring along the slope, which overestimates the fence length and leads to ordering too many materials.
Choosing Post Spacing and Board Width
Post spacing is a structural decision. Standard spacing for wood fences is 6 or 8 feet on center. Closer spacing (6 ft) gives a sturdier fence but uses more posts and concrete. Wider spacing (8 ft) is common for privacy fences with 2×4 rails, but may require heavier rails or steel reinforcement in windy areas. Check local building codes, as many municipalities require specific post depths and spacing.
Board width affects both appearance and material count. Common pickets are 5.5 inches wide (a 1×6) or 3.5 inches (a 1×4). A wider board means fewer pieces but a heavier fence. For a shadowbox or spaced picket fence, you add a gap equal to the board width or less. For a solid privacy fence, the gap is zero, and you might need to account for boards swelling in humidity – a 1/8-inch gap is often recommended to prevent buckling.
Common Mistakes and How to Avoid Them
- Mixing units: Always convert everything to the same unit. If you measure the fence in feet and the board width in inches, multiply the feet by 12 before dividing.
- Forgetting the end post: The +1 in the post formula is essential. A 100-ft fence with 8-ft spacing needs 14 posts, not 13.
- Ignoring waste: Boards can be cut to fit around posts, gates, or uneven ends. Add 5–10% extra for waste, especially if you have corners or angled cuts.
- Rounding too early: Always round up to the next whole number for materials. You cannot order 12.5 posts – you need 13 (plus the end post).
- Assuming nominal sizes are actual: A “1×6â€� board is actually 0.75 in thick and 5.5 in wide. Use the actual width in the formula, not the nominal 6 in.
Cost Factors and Material Comparison
While the calculator gives you quantities, the total cost depends on your local lumber prices, which vary by region and over time. Pressure-treated pine is the most common and economical choice for posts and rails. Cedar and redwood are naturally rot-resistant and look better but cost more. Composite materials are more expensive upfront but require no staining or sealing. For the boards, you can choose between dog-eared pickets, flat-top, or decorative styles – the price difference is usually small, but the number of boards is the same.
Concrete for setting posts is another cost: each post typically needs one 50-lb bag of fast-setting concrete. Multiply the number of posts by the bag count to get the total. Also factor in gravel for drainage, screws or nails, and post caps.
Limits of the Calculator
This calculator provides a mathematical estimate based on ideal straight-line measurements. It does not account for:
- Sloped terrain that requires stepped or racked sections – each step may need extra posts.
- Gates, which require additional framing and hardware.
- Existing structures (trees, rocks, utility lines) that force you to adjust spacing.
- Local building codes that dictate post depth, height, or materials.
Always consult a professional for complex installations or if you are unsure about structural requirements. The calculator is a starting point, not a substitute for engineering judgment.
Frequently Asked Questions
How many posts do I need for a 100-foot fence with 8-foot spacing?
Divide 100 by 8 to get 12.5, round up to 13, then add 1 for the end post, giving 14 posts total. If you have corners, add one extra post for each corner.
What is the actual width of a 1×6 board?
A nominal 1×6 board is actually 0.75 inches thick and 5.5 inches wide. The difference comes from the sawing and planing process. Always use the actual width (5.5 in) when calculating how many boards you need.
Should I leave a gap between privacy fence boards?
For a solid privacy fence, a small gap of 1/8 to 1/4 inch is often recommended to allow for wood expansion and to prevent the boards from buckling when they get wet. If you want no gap at all, use kiln-dried lumber and expect some movement over time.
How much concrete do I need per post?
For a typical 4×4 post set in a 10-inch-diameter hole that is 3 feet deep, you need about one 50-pound bag of fast-setting concrete per post. For larger posts or deeper holes, you may need two bags. Always check the bag’s instructions for the exact volume.
Can I use this calculator for a metal or vinyl fence?
The post spacing and rail length formulas apply, but the board width and gap are not relevant because metal and vinyl fences come in pre-made panels. For those, you would simply divide the fence length by the panel width and round up.
Related
Formula used
in ft | Fence length | ft | 100 | 0 in ps | Post spacing | ft | 8 | 1 in bw | Board width | in | 5.5 | 1 in gap | Gap between boards | in | 0.5 | 0 in rails | Number of rails | - | 3 | 1 out posts | Number of posts | - | ceil(ft / ps) + 1 | 0 out rails_total | Total rail length | ft | rails * ft | 0 out boards | Number of boards | - | ceil(ft * 12 / (bw + gap)) | 0 out board_ft | Board feet (1x6) | bd ft | boards * 6 * ft / 12 | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.