ThisCalculator

Construction

Fence Replacement Calculator: How Much Material?

Updated · Standard formula, shown below

Number of posts 14
Total rail length
300 ft
Result
Number of pickets
200
Result
Fence length
100 ft
You entered

Fence Replacement Calculator: How Much Material?

This fence replacement calculator estimates the amount of material you need to replace an existing fence: it takes the total fence length, the number of rails, and the post spacing, then returns the number of posts, rails, and pickets required. You enter your fence’s dimensions and spacing choices, and the calculator gives you a material count you can use to order lumber or plan a budget. Below, we explain the math behind the tool, walk through a sample calculation, and cover common pitfalls like corner posts and waste allowance.

Formula

The calculator uses three simple formulas:

  • Number of posts = ⌈Fence length ÷ Post spacing⌉ + 1 (the +1 accounts for the end post).
  • Total rail length = Fence length × Number of rails.
  • Number of pickets = ⌈(Fence length × 12) ÷ (Picket width + Picket gap)⌉.

Here, Fence length is in feet, Post spacing is in feet, Number of rails is a count (typically 2 or 3), Picket width and Picket gap are in inches. The ⌈ ⌉ symbol means “round up to the nearest whole number� because you can’t buy a fraction of a post or picket.

Worked Example

Using the default values from the calculator:

  • Fence length = 100 ft
  • Post spacing = 8 ft
  • Number of rails = 3
  • Picket width = 5.5 in
  • Picket gap = 0.5 in

Posts: 100 ÷ 8 = 12.5, round up to 13, then add 1 = 14 posts.

Rails: 100 × 3 = 300 ft of rail material.

Pickets: (100 × 12) = 1200 in. Divide by (5.5 + 0.5) = 6 in per picket. 1200 ÷ 6 = 200 pickets. No rounding needed here, but if the gap were 0.4 in, you’d get 203.39, which rounds up to 204.

The calculator returns 14 posts, 300 ft of rails, and 200 pickets for a 100-ft fence with 8-ft post spacing and 6-in picket spacing.

When to Use This Calculator

Use this tool when you’re planning to replace an existing fence and need to order materials. It’s most accurate for a straight, level run of fence. If your fence has corners, gates, or changes in elevation, you’ll need to adjust the count. For a corner, you need an extra post at each corner (the calculator already adds one post at each end, but corners require a post that serves two directions). For a gate, you need two gate posts (often thicker) and you’ll subtract the gate width from the fence length.

This calculator is also handy for estimating cost: multiply the number of posts by the price per post, and do the same for rails and pickets. But remember, prices vary by region, lumber type, and time of year, so always check local suppliers.

How to Choose Post Spacing and Rail Count

Post spacing is a trade-off between strength and cost. Common spacings are 6 ft and 8 ft. For a privacy fence, 8 ft spacing with 4×4 posts is typical in many areas, but if you live in a windy region or use heavier pickets, 6 ft spacing is safer. The number of rails also depends on height and material: a 4-ft fence usually has 2 rails, a 6-ft fence has 3, and a taller fence may need 4. The calculator lets you adjust these numbers to match your plan.

Picket width and gap determine the look and privacy level. A 5.5-in picket with a 0.5-in gap gives a semi-private fence (you can see through slightly). For full privacy, use a 0-in gap or overlap the pickets. For a board-on-board fence, you’ll need about 1.5 times the linear feet of pickets because each board overlaps the next.

Common Mistakes and How to Avoid Them

  • Forgetting the end post: The +1 in the formula is critical. Many people divide length by spacing and forget the extra post at the end.
  • Mixing units: The calculator uses feet for length and inches for picket width/gap. If you enter picket width in feet, you’ll get a wildly wrong count. Always convert to inches before dividing.
  • Ignoring waste: Lumber isn’t perfect. You’ll have cuts, knots, and warps. Add 5–10% to your material count, especially for pickets, to cover waste.
  • Not accounting for gates: A gate breaks the run of fence. Subtract the gate width (e.g., 4 ft) from the total fence length before calculating pickets, and add two gate posts.
  • Rounding down: Always round up to the next whole number. You can’t buy 12.5 posts; you buy 13.

Limits of the Formula

This calculator assumes a straight, level fence with equally spaced posts and uniform pickets. Real fences have corners, slopes, and obstacles like trees or rocks. On a slope, you may need longer posts or stepped rails, which changes the material count. The formula also doesn’t include concrete for setting posts, nails/screws, or post caps. For a complete estimate, add those items separately.

Another limitation: the calculator gives you the number of pickets, but not the board feet of lumber. If you’re buying pickets by the piece, the count is what you need. If you’re buying by board foot, multiply the number of pickets by the width and length of each picket (in inches) and divide by 144 to get board feet.

Alternatives to a Full Replacement

Before you tear everything out, consider whether you really need a full replacement. Sometimes only a few posts are rotten, or the pickets are damaged but the frame is solid. You can replace individual pickets, re-set a leaning post, or add a new rail. This calculator can still help: measure the length of the section you’re repairing and run the numbers for just that section. If you’re replacing only pickets, you can skip the post count and just use the picket formula.

Another alternative is to install a vinyl or metal fence over an existing concrete footer, but that’s a different project with its own material needs.

Frequently Asked Questions

How many posts do I need for a 100-foot fence with 8-foot spacing?

You need 14 posts. Divide 100 by 8 to get 12.5, round up to 13, then add 1 for the end post. If you have corners, add one extra post per corner.

What is the standard post spacing for a privacy fence?

Most privacy fences use 8-foot spacing for 4×4 posts, but 6-foot spacing is common in windy areas or when using heavier materials. Check local building codes, as some areas require specific spacing.

How do I calculate pickets for a board-on-board fence?

For board-on-board, each board overlaps the next, so you need about 1.5 times the linear feet of fence. For a 100-ft fence, that’s 150 ft of picket material. If each picket is 6 ft long, you’d need 25 pickets (150 ÷ 6).

Do I need to include waste in my material order?

Yes, add 5–10% to your picket count and about 10% for posts and rails. Lumber can have defects, and you’ll make cuts. For a 200-picket fence, order 210–220 pickets.

Can I reuse old posts if they’re still solid?

Yes, if the posts are in good condition (no rot, still plumb), you can reuse them and only replace rails and pickets. In that case, set the number of posts to 0 in your calculation and just use the rail and picket counts.

How much concrete do I need per post?

For a typical 4×4 post set in a 10-inch diameter hole, you need about one 50-lb bag of concrete mix per post. For 6×6 posts, use two bags. This calculator doesn’t include concrete, so add it separately based on your post count.

Related

Formula used
in len | Fence length | ft | 100 | 0
in ps | Post spacing | ft | 8 | 1
in rails | Number of rails | - | 3 | 1
in pick_w | Pick width | in | 5.5 | 1
in pick_gap | Pick gap | in | 0.5 | 0
out posts | Number of posts | - | ceil(len / ps) + 1 | 0
out rails_total | Total rail length | ft | len * rails | 0
out pickets | Number of pickets | - | ceil(len * 12 / (pick_w + pick_gap)) | 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.