What this wood fence calculator does
Choose a style and enter the fence length, height and post spacing, and it counts the boards, rails and posts, with a waste allowance. It also totals the linear feet (or metres) of lumber, which is handy for comparing quotes. Changing the style loads typical board sizes, which you can edit.
How each style is counted
Privacy and picket
One layer of boards along the fenced length, with your chosen gap between them:
boards = ⌈ (length + gap) ÷ (board width + gap) ⌉
A row of n boards has only n − 1 gaps, which is why one gap is added to the length.
Board-on-board
A front layer is spaced so a back layer can cover its gaps, overlapping each neighbouring board by the overlap you set. The gap in the front layer is therefore board width − 2 × overlap. The front layer is counted with the formula above; the back layer has one board fewer, because it only fills the gaps between front boards.
Shadowbox
Boards alternate on either side of the rails. Enter the gap between boards on the same side. Each side is counted like a single layer; the second side has one fewer board. If the gap is narrower than a board, the two sides overlap and the fence is private when viewed straight on.
Horizontal
Boards run from post to post, stacked up the fence height. Rows per section are ⌈ (height + gap) ÷ (board width + gap) ⌉, and each row in each section is one board. Horizontal boards fasten to the posts, so no rails are counted. Long spans often get a vertical center support.
Rails, posts and lumber
Rails are counted per section. Posts use the same logic as the fence post calculator. Linear lumber adds up board length (the fence height for vertical boards), rail length along the fence, and post length (height plus depth in the ground).
Worked example
The calculator opens with a 100 ft privacy fence, 6 ft high, posts at most 8 ft apart, 5½ in boards butted together and 10% waste:
- Sections: 100 ÷ 8 = 12.5 → 13, so 14 posts spaced 7 ft 8¼ in apart.
- Rails: 3 per section × 13 = 39, plus 10% = 43 rails.
- Boards: 1,200 in ÷ 5½ in = 218.2 → 219, plus 10% = 241 boards, each 6 ft long.
- Lumber: 1,446 ft of boards + 330 ft of rails + 112 ft of posts (14 × 8 ft) = 1,888 linear ft.
Switch the same fence to board-on-board with a 1 in overlap and the front layer is 134 boards, the back layer 133, so 267 boards before waste, about 22% more than the privacy version.