Horizontal Slat Fence Calculator
Use this horizontal slat fence calculator to work out how many slats, posts, concrete bags and screws you need, plus the exact row-by-row layout for your fence height.
Diagram updates with your numbers each time you calculate.
How to Use This Horizontal Slat Fence Calculator
Enter your total fence run, the finished height, the slat size and gap you want, your post spacing and the board length you plan to buy, then press Calculate. The tool returns the number of slats to purchase (including waste), the post count and order length, concrete bags, screws, and a row-by-row layout you can copy onto a story pole. A comparison table shows how switching slat sizes changes the board count.
Why This Matters
Horizontal slat fences are the modern alternative to the picket privacy fence, but the material math is different. With pickets you count across the run; with horizontal slats you count up the height, then multiply by the number of boards needed along the length. A small change in gap or slat width can add or remove a whole row, and every row repeats across the entire fence.
Take a 100 ft run at 6 ft tall with 1×6 slats, a ½ in gap and posts at 6 ft centers. That works out to 12 rows and 17 sections, so about 119 twelve-foot boards once you add 10% for waste. At roughly $14 a board, that is around $1,666 in lumber alone. Guess low and you make a second trip for boards from a different lot that never quite match the color. Guess high and you carry the cost of a pallet of cedar you do not need. Posts matter just as much: they carry the wind load, and a post set too shallow is the usual reason a new fence leans within two seasons. Running the numbers first helps you price the job, order once, and avoid surprises at the top rail.
How It's Calculated
The calculator works in inches internally and uses actual (not nominal) lumber dimensions, so a 1×6 is 5.5 in wide and a 2×4 is 3.5 in wide.
Slat zone A = (height × 12) − ground clearance
Rows = ceil((A + gap) ÷ (slat width + gap))
Boards per row = ceil(sections ÷ floor(board length ÷ actual spacing))
Boards to buy = ceil(rows × boards per row × sides × (1 + waste %))
If the last row would be a sliver under 1 in, the tool drops it and tells you how far to widen the gaps instead. Otherwise it reports the width to rip the top slat, or the adjusted gap that lands the fence exactly on your height.
Posts: above-grade height is the fence height plus 2 in for a cap or trim allowance. Embed depth is the greatest of 24 in, half the above-grade height (so at least one-third of the post is buried), or your frost depth, rounded up to the next 6 in. The order length rounds up to the next even foot. Posts are 4×4 up to 6 ft tall at 6 ft spacing, and 6×6 beyond that. Hole diameter is three times the post width, rounded up to an even inch.
Concrete: hole volume minus post volume, times the hole count, plus 5%. An 80 lb bag yields about 0.60 cu ft and a 50 lb bag about 0.375 cu ft. Screws: two per slat at every post, two more at each butt joint, plus 10%, rounded up to the next 25.
These are common rules of thumb, not a specific code edition. Residential building codes generally leave fence construction to local ordinances, so frost depth, height limits and wind requirements vary by location. The results are planning estimates, not engineering, permit or inspection approval.
Worked Example
A 48 ft fence, 6 ft tall, 1×6 slats, ½ in gaps, 2 in ground clearance, 6 ft post spacing, 12 ft boards, one side, 10% waste, no frost depth entered:
- Sections and posts: 48 ÷ 6 = 8 sections, so 9 posts.
- Rows: slat zone = 72 − 2 = 70 in. (70 + 0.5) ÷ (5.5 + 0.5) = 11.75, rounded up to 12 rows. The top slat is 70 − 11 × 6 = 4 in, so rip it to 4 in, or tighten the gaps to about 0.36 in.
- Boards: a 12 ft board spans 2 sections, so 4 boards per row. 12 × 4 = 48 boards, plus 10% = 52.8, rounded up to 53.
- Posts: above grade = 72 + 2 = 74 in. Embed = max(24, 37) = 37, rounded up to 42 in. Total 116 in, so order 10 ft 4×4 posts.
- Concrete: a 12 in hole, 42 in deep, minus the post is about 2.45 cu ft per hole. Nine holes plus 5% is about 23.2 cu ft, or 39 bags of 80 lb.
- Screws: per row 2 × 9 + 2 × 3 = 24, times 12 rows = 288, plus 10% = 317, rounded up to 325.
Tips & Common Mistakes
- Call 811 before you dig. Have underground utilities marked, and check property lines and setbacks. Most jurisdictions also cap fence height.
- Match board length to post spacing. Joints should land on a post center. 12 ft boards at 6 ft spacing give zero offcut; 10 ft boards at 6 ft spacing waste about 4 ft each.
- Mind the span. 1-inch slats sag over spans longer than about 6 ft. Use 2× slats, add mid-span support, or shorten the spacing.
- Use a spacer, not a tape. Cut a gap block from scrap so every row is identical, and mark the row positions from the table on a story pole.
- Use exterior-rated fasteners. Stainless or coated screws prevent the black streaks plain steel leaves on cedar.
- Mind the slope. If the ground is not level, see the Sloped Fence Calculator before setting posts.
Frequently Asked Questions
How many slats do I need for a horizontal fence?
Divide the usable height by the slat width plus gap to get the number of rows, then multiply by the boards needed along the length. For example, 12 rows across 8 sections with 12 ft boards is 48 boards before waste. Add 5–10% for cuts and defects.
What gap should I leave between horizontal fence slats?
Most builders use ¼ to ½ in for a privacy fence. That is enough for wood movement and airflow while blocking most sightlines. Go wider (1 in or more) for a semi-private look, and keep it consistent with a spacer block.
How far apart should posts be for a horizontal slat fence?
Six feet on center is a safe default for 1-inch slats. Eight feet works with 2× slats or when you add a center support. Wider spacing increases sag and puts more wind load on each post.
Should I use 4×4 or 6×6 posts?
4×4 posts are typical for fences up to 6 ft tall at 6 ft spacing. For taller or wider-spaced fences, 6×6 posts resist wind and the weight of the slats better. This calculator recommends 6×6 above those limits, which is the more conservative choice.
How deep should fence posts be set?
A common rule is at least one-third of the post length in the ground and below your local frost line, with 24 in as a practical minimum. A 6 ft fence usually needs about 3 ft of embed. Local codes and soil conditions vary, so confirm with your building department.
Do I need a permit for a horizontal slat fence?
Many areas require a permit above a set height, often 6 ft, and some limit front-yard fences to 4 ft. Rules for corner lots, setbacks and HOAs also differ. Check with your local building department before you buy materials.