ThisCalculator

Construction

Wood Fence Material Calculator and Planning Guide

Updated · Standard formula, shown below

Fence posts 14 posts
Horizontal rails
39 rails
Result
Fence boards
200 boards
Result
Fence length
100 ft
You entered

Wood Fence Material Calculator and Planning Guide

Calculate wood fence material by entering the fence’s total length, the distance between posts, the number of horizontal rails, and the board width and gap. The calculator estimates the number of posts, rails, and fence boards needed; add gates and extra material separately because their dimensions and construction vary.

Formula

The estimates use these formulas:

  • Posts = ceil(fence length ÷ post spacing) + 1
  • Rails = ceil(fence length ÷ post spacing) × rails per bay
  • Boards = ceil(fence length × 12 ÷ (board width + gap))

Here, fence length and post spacing are in feet; board width and gap are in inches; and “ceil” means round up to the next whole number. A bay is the fence section between two adjacent posts. The calculator assumes a straight, uninterrupted run, evenly spaced posts, and boards covering one side continuously. It does not include gate framing, corner-specific bracing, trim, or waste.

Worked Example

Using the calculator’s defaults—100 ft of fence, 8 ft post spacing, 6 ft fence height, 6 in boards, no gap, and 3 rails per bay:

  1. Posts: ceil(100 ÷ 8) + 1 = ceil(12.5) + 1 = 14 posts.
  2. Rails: ceil(100 ÷ 8) × 3 = 13 × 3 = 39 rails.
  3. Boards: ceil(100 × 12 ÷ (6 + 0)) = ceil(200) = 200 boards.

The post count creates 13 bays across the run. Because 100 ft does not divide evenly into 13 bays, this estimate assumes the spacing is adjusted to fit the length: average spacing is about 7.69 ft. If you require bays no wider than 8 ft, 14 posts are sufficient, with spacing laid out to suit the endpoints.

How to Measure and Use the Estimate

Measure the fence line along the planned route, including each straight section, and add the lengths. Mark corners, ends, gates, and changes in direction before choosing post locations. Those features can affect the layout even when the total length stays the same.

  • Use consistent units. This calculator takes fence dimensions in feet and board width and gaps in inches. For metric planning, convert metres to feet (1 m ≈ 3.281 ft) and millimetres to inches (1 in = 25.4 mm), or do the calculations separately in one unit system.
  • Enter the actual board face width, not its nominal lumber size. A board sold by a nominal size may have a different measured width.
  • Set the gap to the planned clear space between boards. For a tight, side-by-side layout, use zero; if boards overlap, this simple formula does not apply.
  • Choose post spacing and rail count to match the fence design and the lumber or installation guidance you are following. The calculator does not determine structural suitability.

For example, a board 5.5 in wide with a 0.5 in gap covers 6 in of fence length. On a 100 ft run, the estimate is ceil(1,200 ÷ 6) = 200 boards. The 6 ft fence height does not change that count, but it matters when selecting board length and checking how much of each board will be above ground.

What the Material Counts Include

“Horizontal rails” here means the number of rail pieces needed for every bay, not the number of continuous runs. In the example, 13 bays × 3 rails gives 39 bay-length rails. A rail that spans a bay must be long enough for its actual post layout and connection method. Buy or cut lengths based on the design, rather than assuming that a single long rail can run uninterrupted around corners.

The board estimate treats the boards as a continuous row across the full fence length. It does not automatically deduct gates or openings. For a gate, subtract its width from the board-run length only if the gate is excluded from this fence estimate, then calculate gate boards and framing separately. Also count end posts, corner posts, and gate posts in the layout: the simple post formula is a baseline, not a detailed post schedule for every design.

Allowances, Layout, and Common Errors

Calculated quantities are exact only for the stated assumptions. Real projects may need extra boards for cuts, defects, damaged pieces, or later replacement. An allowance is a planning choice rather than a universal fixed percentage; it depends on board quality, cutting layout, and how much spare stock is useful. Keep any additional quantity separate from the base estimate so you can see what the calculation itself requires.

  • Rounding too early: The formulas round post bays up, but do not round board coverage down. A partial board-width increment still requires another board.
  • Counting bays as posts: A straight fence run has one more post than bays. For 13 bays, the basic layout has 14 posts.
  • Ignoring actual dimensions: Nominal board width, actual width, and the intended gap can differ. Use the dimensions that determine the installed spacing.
  • Assuming every post is identical: Ends, corners, and gates may need different placement or hardware. Check the plan and connection details.
  • Confusing coverage with height: Board count depends on the fence length and the board’s width plus gap. Fence height determines board length, not how many boards span the run.

Limits and Practical Checks

This calculator estimates quantities, not a complete bill of materials. It does not calculate concrete, fasteners, caps, hinges, latches, decorative trim, or gate components, and it cannot establish whether a particular post size, spacing, or rail arrangement is appropriate. Site slope can also change board lengths, gaps, and the way fence sections are stepped or racked. For a sloped or irregular line, divide the fence into planned sections and calculate each section according to its layout.

Before ordering, compare the estimate with a sketch showing post centers, section lengths, gates, corners, board orientation, and rail positions. Confirm that available lumber lengths suit the span and cuts, and follow relevant product instructions and local requirements for the specific project.

Frequently Asked Questions

How many posts do I need for 100 feet of fence?
At a maximum spacing of 8 ft, ceil(100 ÷ 8) + 1 gives 14 posts. Lay out the 13 bays evenly or adjust spacing to suit the fence design; the average spacing would be about 7.69 ft.

How many boards are needed for a wood fence?
Divide the fence length, converted to inches, by the board’s actual width plus the clear gap, then round up. For 100 ft with 6 in boards and no gap, the estimate is 200 boards for one continuous row.

How many rails should a wood fence have?
It depends on the fence design, height, board arrangement, and support requirements. This calculator lets you enter the number of rails per bay; its default of three is an example assumption, not a universal rule.

Does the board count include extra boards for waste?
No. It is the calculated base quantity. Add a separate allowance for cuts, damaged boards, or spares based on the project’s layout and materials.

Can I use this calculator for a fence with a gate?
Use it for the uninterrupted fence runs, then plan the gate opening, gate boards, and gate framing separately. Account for gate posts and any special end or corner posts in the post layout.

Related

Formula used
in l | Fence length | ft | 100 | 0
in s | Post spacing | ft | 8 | 0
in h | Fence height | ft | 6 | 0
in b | Board width | in | 6 | 0
in g | Board gap | in | 0 | 0
in r | Rails per bay | - | 3 | 0
out posts | Fence posts | posts | ceil(l / s) + 1 | 0
out rails | Horizontal rails | rails | ceil(l / s) * r | 0
out boards | Fence boards | boards | ceil(l * 12 / (b + g)) | 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.