sodcalculator

07 Home and DIY

Horizontal Fence Board Calculator: How Many Boards Do You Need?

Tag 07-3077 · Updated · Standard formula, shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

This calculator works out how many horizontal fence boards you need for a given fence length and height, including the number of posts and the total board footage. You enter the fence length, height, board width, and gap (if any), and it returns the number of boards per row, total rows, total boards, and posts. It assumes a standard post spacing of 8 feet and a 2×4 top and bottom rail, which you can adjust in the inputs.

Formula

The calculator uses two main calculations:

  • Rows: rows = ceil( (height in inches) / (board width + gap) )
  • Boards per row: boards per row = ceil( (length in inches) / (board width + gap) )
  • Total boards: total = rows × boards per row
  • Posts: posts = ceil( length / post spacing ) + 1

Where:

  • Length = total horizontal distance of the fence (ft)
  • Height = fence height from ground to top (ft)
  • Board width = actual face width of one board (in) – for a 1×6, that’s 5.5 in
  • Gap = space between boards (in) – set to 0 for a solid privacy fence
  • Post spacing = center-to-center distance between posts (ft), typically 6–8 ft

All results are rounded up to the nearest whole board because you can’t buy a fraction of a board.

Worked Example

Using the default inputs (length 40 ft, height 6 ft, board width 5.5 in, gap 0.5 in, post spacing 8 ft):

  1. Convert height to inches: 6 ft × 12 = 72 in
  2. Effective board spacing: 5.5 + 0.5 = 6.0 in
  3. Rows = ceil(72 / 6.0) = 12 rows
  4. Convert length to inches: 40 ft × 12 = 480 in
  5. Boards per row = ceil(480 / 6.0) = 80 boards
  6. Total boards = 12 × 80 = 960 boards
  7. Posts = ceil(40 / 8) + 1 = 5 + 1 = 6 posts

So for a 40 ft long, 6 ft high horizontal fence with 5.5 in wide boards and a 0.5 in gap, you need 960 boards and 6 posts. The calculator’s headline answer matches this.

Why Horizontal Fences Need a Different Calculator

Horizontal fence boards run parallel to the ground, so the number of boards depends on both the height (how many rows) and the length (how many boards per row). A vertical board calculator only needs the length and board width, but a horizontal one requires both dimensions. Also, horizontal fences often use wider boards (1×6 or 2×6) and may have gaps for a semi-private look, which changes the count significantly. This calculator handles both solid and gapped designs.

How to Choose Board Width and Gap

Your choice of board width and gap affects both aesthetics and cost. Common options:

  • 1×6 board (5.5 in actual) – most common, good balance of coverage and cost
  • 1×4 board (3.5 in actual) – narrower, more rows, more boards, more labor
  • 2×6 board (5.5 in actual) – thicker, more privacy, heavier, more expensive
  • Gap of 0.5 to 1 in – allows airflow and light, reduces material cost
  • Zero gap – full privacy, but boards may warp and trap moisture

If you’re using cedar or pressure-treated lumber, remember that actual widths are 0.5 in less than nominal (a 1×6 is 5.5 in wide). Always measure your actual boards before calculating.

Common Mistakes and How to Avoid Them

  • Using nominal width instead of actual – always use the true face width (5.5 in for a 1×6).
  • Forgetting to convert feet to inches – do all calculations in inches to avoid unit mix-ups.
  • Not rounding up – you can’t buy a partial board; always round up to the next whole number.
  • Ignoring the gap – if you plan a gap, include it in the effective spacing, or you’ll overestimate.
  • Assuming post spacing is always 8 ft – in windy areas or with heavy boards, you may need 6 ft spacing, which increases post count.

Limits of This Calculator

This calculator assumes a flat, straight fence line with no gates, corners, or steps. Real fences have posts at corners and gates, which add extra posts and may break the board pattern. It also doesn’t account for waste due to cutting, warped boards, or mistakes – a common rule of thumb is to add 10% for waste. The calculator uses nominal board lengths (usually 8 ft, 10 ft, or 12 ft), but you’ll need to cut boards to fit your exact length, so plan for some offcuts.

Cost Considerations

While this calculator gives you the number of boards, the total cost depends on your local lumber prices, which vary widely. To estimate cost, multiply the total number of boards by the price per board at your local supplier. Don’t forget to add the cost of posts, concrete, screws, and stain or sealer. A typical horizontal fence uses about 1.5 to 2 times more board footage than a vertical fence of the same area, because the boards overlap or have gaps that require more coverage.

Frequently Asked Questions

How many boards do I need for a 100 ft horizontal fence?

Using the default 5.5 in board width and 0.5 in gap, a 6 ft high fence would need: rows = ceil(72/6) = 12, boards per row = ceil(1200/6) = 200, total = 2400 boards. That’s a lot – consider using wider boards or a larger gap to reduce count.

Should I use a gap between horizontal boards?

It depends on your privacy needs and climate. A gap of 0.5 to 1 inch allows air circulation and reduces wind load, but sacrifices privacy. For full privacy, use no gap, but be aware that boards may expand and contract with moisture, so leave a small 1/8 inch gap to prevent buckling.

What is the actual width of a 1×6 board?

A nominal 1×6 board measures 0.75 in thick and 5.5 in wide. The 1×6 is the “nominal� size before planing; the actual width is always 0.5 in less. Always measure your boards, as some treated lumber may vary slightly.

How many posts do I need for a horizontal fence?

Posts are typically spaced 6 to 8 feet apart. For a 40 ft fence with 8 ft spacing, you need 6 posts (5 sections + 1 end). For 6 ft spacing, you’d need 8 posts. Always add one extra post for the end, and consider extra posts at corners and gates.

Can I use this calculator for a vertical fence?

No – this calculator is specifically for horizontal boards. For a vertical fence, you only need the length and board width, and the height is handled by the board length. Use a separate vertical board calculator or adjust the formula accordingly.

How much extra should I buy for waste?

It’s wise to add 10% to your total board count to cover cuts, warped boards, and mistakes. For a 960-board fence, that’s about 96 extra boards. Some professionals add 15% if the fence has many corners or angles.

Alternatives to Traditional Horizontal Boards

If you like the horizontal look but want fewer boards, consider using wider boards like 1×8 or 2×8, which reduce the number of rows. Another option is to use metal or composite horizontal panels that come in pre-assembled sections, but these are more expensive. You can also mix horizontal and vertical sections for a modern design, but that requires more complex framing. This calculator helps you compare options by adjusting the board width and gap.

Related

Formula used
in len | Fence length | ft | 40 | 1 | 1000
in hgt | Fence height | ft | 6 | 1 | 12
in bw | Board width | in | 5.5 | 2 | 12
in gap | Gap between boards | in | 0.5 | 0 | 4
in post | Post spacing | ft | 8 | 4 | 12
out boards | Total boards | boards | ceil(round((len * 12 / (bw + gap)) * ceil(hgt * 12 / (bw + gap)), 6))
out rows | Rows of boards | rows | ceil(hgt * 12 / (bw + gap))
out posts | Number of posts | posts | ceil(round(len / post, 6)) + 1
out bdft | Board feet (nominal) | bdft | boards * 6 * (bw / 12) * (len / (len * 12 / (bw + gap))) | 1

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.

More in this bed

The whole Home and DIY bed →