Fence Calculator

How many posts, rails, pickets and bags of concrete for a wood picket or privacy fence — from just the fence length, spacing and height.

Checked and reviewed by Zia ur Rehman, site owner · Last reviewed: November 2026 · The formula is shown on this page and the sources behind the numbers are listed at the foot of the page.

A wood fence looks simple — posts, rails and pickets repeated down the yard — but the material list adds up fast, and guessing it at the lumber yard almost always means a second trip. A 100 ft privacy fence needs well over 200 pickets, and every one of its posts wants concrete in the hole. This calculator turns the total fence length, your post spacing and the fence height into a complete shopping list: line posts, horizontal rails, individual pickets and the 80 lb bags of concrete to set the posts in.

Enter the length of the run in feet and inches, choose a post spacing (8 ft is the common maximum for wood fences, 6 ft is stronger), pick the fence height and allow one extra post for each gate opening. The picket count is worked out from the actual picket width plus the gap you plan to leave between boards, so a tight privacy fence and an open picket fence give different — and correct — numbers. If the same yard project includes a deck, the Deck Calculator works out its boards and footings in the same way.

Fence Calculator

15 fence posts
Fence sections13
Rails39
Pickets209
Pickets to buy (with 10% spares)230
Post length to buy8 ft
Concrete, 80 lb bags (approx)30

Concrete uses a planning figure of about two 80 lb bags per post hole. For an exact count, measure your holes and run the volume through the Concrete Bag Calculator. The picket buy figure adds 10% spares for the warped and split boards in every bundle, and the post length is the fence height plus about 2 ft to bury, rounded up to a standard 6, 8 or 10 ft stock length.

Quick answer: a 100 ft fence with posts every 8 ft and one gate takes 13 sections, 15 posts and — at 6 ft high with 3 rails per section — 39 rails.

How to Use This Calculator

  1. Measure the full length of the fence run in feet and inches, following the property line. For an L-shaped or stepped fence, add the runs together and enter the total — then plan a post at every corner and change of direction as well.
  2. Choose the post spacing: 8 ft is the standard maximum for wood fence rails, while 6 ft spacing makes a noticeably stiffer fence and is the safer choice for a 6 ft privacy fence in a windy spot.
  3. Select the fence height and enter the number of gates. Each gate opening gets one extra post in the count, because a gate hangs from its own post rather than sharing the ordinary line spacing.
  4. Enter the picket width and the gap between pickets as you will actually build them — 5.5 inches and a ¼-inch gap is the default here — then read off the posts, rails, pickets and concrete bags to buy.

The Formula

The fence is built in sections, one section between each pair of posts. Divide the fence length by the post spacing and always round up, because a part-section still needs a full bay of rails and pickets: a 100 ft fence at 8 ft spacing is 12.5, so 13 sections. Posts then follow from the sections — a post at both ends of the run gives sections plus one — with one extra post added for each gate opening. Rails are simpler: each section takes two horizontal rails on a fence up to 5 ft tall, and three rails at 6 ft, because the taller fence needs the middle rail to stop the pickets bowing. Each rail is one board the length of the spacing, so an 8 ft spacing means standard 8 ft 2×4 rails.

Pickets are counted by coverage, not by the fence height. Each picket covers its own width plus one gap, so divide the fence length in inches by (picket width + gap) and round up: standard 5.5-inch pickets with a ¼-inch gap cover 5.75 inches each, a little over two pickets per foot. Concrete is allowed per post rather than per foot of fence — roughly two 80 lb bags for a typical post hole. If your holes are unusually wide or deep, work out the exact hole volume and convert it with the Concrete Bag Calculator, and for a slab or footing pour the Concrete Calculator gives cubic yards instead.

Sections = Fence length ÷ Post spacing (round up)  |  Posts = Sections + 1 + Gates  |  Pickets = Fence length (in) ÷ (picket width + gap)
Fence length / post spacing = sectionsposts + rails + pickets

Worked Example

A 100 ft backyard privacy fence, built with 8 ft post spacing, 6 ft high, with one gate and standard 5.5-inch pickets at a ¼-inch gap: sections = 100 ÷ 8 = 12.5, rounded up to 13 sections. Posts = 13 + 1 + 1 gate = 15 posts — typically 4×4 posts, set in concrete. At 6 ft high each section takes 3 rails, so rails = 13 × 3 = 39 rails, each one an 8 ft 2×4. Pickets = 1,200 inches ÷ 5.75 = 208.7, rounded up to 209 pickets. Concrete = 15 posts × 2 bags = 30 bags of 80 lb mix.

The same settings on a shorter 50 ft side-yard fence: sections = 50 ÷ 8 = 6.25, rounded up to 7 sections. Posts = 7 + 1 + 1 gate = 9, rails = 7 × 3 = 21, pickets = 600 inches ÷ 5.75 = 104.3, rounded up to 105, and concrete = 9 × 2 = 18 bags. Notice the posts and rails jump in whole sections while the pickets track the length closely — which is why shortening a run by a few feet rarely saves a post, but does save pickets.

A smaller job — a 25 ft garden fence, 4 ft high, posts at 6 ft spacing and no gate: sections = 25 ÷ 6 = 4.17, rounded up to 5 sections. Posts = 5 + 1 = 6, rails = 5 × 2 = 10 (a 4 ft fence takes two rails per section), pickets = 300 ÷ 5.75 = 53, and concrete = 6 × 2 = 12 bags. Small fences are dominated by the end posts and corners, which is why the per-foot material count falls as fences get longer.

Fence Materials by Fence Length (8 ft spacing, 6 ft privacy fence, 5.5-in pickets, 1 gate)

Fence lengthPostsRailsPickets80 lb concrete bags
25 ft6125312
50 ft92110518
100 ft153920930
150 ft215731442
200 ft277541854

Straight Runs vs Closed Perimeters: The Off-by-One Post

The post count above uses the straight-run rule: posts = sections + 1, because a run has two ends and each end needs a post. That rule changes when the fence closes on itself. On a closed perimeter — a fence that runs all the way around a yard and meets itself — the last section connects back to the first post, so there is no extra end post: posts = sections exactly. A 100 ft yard perimeter at 8 ft spacing is 13 sections and 13 posts, not 14; order by the straight-run formula and you buy a post, two bags of concrete and a post cap you will never use. The reverse mistake is worse: counting a straight run as if it were closed leaves you one post short at the far end. Corners sit between the two rules — every corner takes its own post, and each straight side of an L- or U-shaped fence is counted as its own run, with the corner post shared. Gates follow the calculator's rule on any layout: one extra post per gate opening, because the gate hangs from a post of its own.

The Same Fences at 6 ft Post Spacing

The table above uses 8 ft spacing. At 6 ft spacing the same lengths take more posts, rails and concrete — the pickets do not change, because they follow the length, not the spacing:

Fence lengthPostsRailsPickets80 lb concrete bags
25 ft7155314
50 ft112710522
100 ft195120938
150 ft277531454
200 ft3610241872

Quick Answers

How many pickets do I need for a 50 ft fence?

With standard 5.5-inch pickets at a ¼-inch gap, a 50 ft fence takes 600 ÷ 5.75 = 105 pickets — 116 to buy once 10% spares are added. The same fence at 8 ft spacing and 6 ft high needs 9 posts, 21 rails and 18 bags of concrete.

How many posts do I need for a 150 ft fence?

At 8 ft spacing, 150 ft is 19 sections, so 21 posts with one gate — plus 57 rails, 314 pickets and 42 bags of concrete.

How many rails do I need for a 100 ft fence?

At 6 ft high, 13 sections × 3 rails = 39 rails. At 4–5 ft high the same fence takes two rails per section — 26 rails.

How much concrete do I need for a 200 ft fence?

A 200 ft fence at 8 ft spacing has 27 posts, so 54 bags of 80 lb concrete at the two-bags-per-post planning figure.

How many posts for a 75 ft fence at 6 ft spacing?

75 ft at 6 ft spacing is 13 sections, so 15 posts with one gate — 39 rails, 157 pickets (173 to buy with spares) and 30 bags of concrete.

Spacing and Rails by Fence Style

Fence stylePost spacingRails per sectionNotes
Privacy, 6 ft6–8 ft3Use 6 ft spacing in windy spots; 8 ft is the maximum a wood rail should span
Picket, 4 ft8 ft2A lighter fence — two rails carry it comfortably
Shadowbox, 6 ft8 ft3Pickets alternate on both sides of the rails — close to double the one-sided picket count
Board-on-board, 6 ft8 ft3Overlapping pickets run about 3 per foot; the gap field cannot model the overlap, so work from the per-foot figure

Frost-Line Depth by Region

The FAQ below gives the bury-a-third rule for post depth, but the frost line sets the floor under it: the bottom of the hole should sit below the depth frost reaches, or heave will walk the post up a little every winter. Typical frost depths run about 0–6 inches in Florida and along the Gulf Coast, about 12 inches through the lower South, 18–24 inches in the mid-Atlantic and lower Midwest, 30–36 inches across the upper Midwest and New York, 36–48 inches in New England, and 48–60 inches or more in the northern plains and mountain states. These are planning figures — your building department publishes the exact number for your county, and it is the same frost depth the Deck Calculator works to for footings. And before the first hole is dug, whatever your region: in the US, call 811 a few days ahead and let the utility companies mark buried lines for free — a post-hole digger finds a shallow cable or gas line faster than any other tool in the yard.

Common Fence-Counting Mistakes

Sources and Method

The post footing and framing practice on this page follows the American Wood Council's DCA-6 Prescriptive Residential Wood Deck Construction Guide — the same guide this site uses for deck footings — and the concrete-per-post figure assumes packaged mix made to ASTM C387. Both were checked in November 2026; your local frost line and fence code still govern depths and heights.

Tips for an Accurate Estimate

Frequently Asked Questions

How far apart should fence posts be?

Eight feet is the common maximum spacing for a wood fence, because rails are sold in 8 ft lengths and a standard 2×4 rail can span that far without sagging under a picket fence's weight. Six feet is stronger and is the better choice for a full 6 ft privacy fence, a windy or exposed site, or heavy gates nearby — the pickets and rails flex less and the fence feels solid instead of springy. Going wider than 8 ft with wood rails is not recommended; the rails bow and the fence line waves within a season or two.

How deep should fence posts be set?

The rule of thumb is to bury about a third of the post: a 6 ft fence built on an 8 ft post buries about 2 ft and leaves 6 ft above ground, and taller or gate posts go deeper. Just as important, the bottom of the hole should reach below your local frost line — in cold climates frost heave can lift a shallow post a little more every winter until the fence leans. Frost depths vary widely by region, from almost nothing in the deep South to 3 ft or more in the northern states, so check your local code or building department for the figure that applies to you.

How many pickets do I need per foot of fence?

With standard 5.5-inch pickets and a ¼-inch gap, each picket covers 5.75 inches, so you need 12 ÷ 5.75 = about 2.1 pickets per foot of fence — roughly 21 pickets for every 10 ft. A board-on-board privacy fence with overlapping pickets uses far more, around 3 per foot, and a wide-gap picket fence uses fewer. Whatever the style, enter the real picket width and gap above rather than guessing a per-foot figure.

How much concrete per fence post?

About two 80 lb bags per post is a good planning figure for a typical hole — roughly 12 inches across and 2 to 2.5 ft deep, with the post itself taking up part of the volume. A narrower or shallower hole can take a single bag; a wide hole in soft soil can take three. For an exact count, work out the volume of one hole minus the buried part of the post, multiply by the number of posts, and run that volume through the Concrete Bag Calculator.

Do I need a permit or property-line check?

Often, yes — treat this as general guidance rather than a rule for your town. Many municipalities require a fence permit and set height limits, commonly 6 ft for a backyard privacy fence and lower in a front yard, and homeowners associations frequently add their own rules on height, style and which side the finished face points. Before digging, confirm the property line — building even a few inches over it can mean moving the whole fence — and in the US call 811 a few days ahead so underground utilities on the line are marked for free.

Sources and Method

The constants and rules of thumb on this page come from the published references below. Where a figure is a range, the calculator uses the mid-range value and the text says so.

Related Calculators