Fence Calculator — Posts, Rails, Pickets & Bags

Measure the whole line, gates included. The calculator deducts the gates, sections what's left at your spacing, and counts every post, rail, picket, and bag.

Measure the whole line, gates included — the calculator deducts them.
6–8 ft on center is standard for wood fences. Your spacing is treated as a maximum.
Picket style adds the picket count; rail style has no pickets to count.
2 is standard for picket and rail fences at typical heights; a 6 ft privacy build commonly uses 3. Accepts 1–4.
5.5 in is the actual width of a nominal 1×6 picket.
Set the gap to 0 for a solid, privacy-style run.
4 ft is the standard single-gate width. For gates of different widths, enter the total gate count and their average width, or run the tool once per gate section.

Materials for your run

—

MaterialFigure
Net run (length − gate widths)—
Sections—
Actual post spacing (your sections work out to this)—
Posts (sections + 1, plus 1 per gate)—
Rail boards—
Rail length (linear ft)—
Pickets—
Concrete — 50 lb bags (estimate, 1 per post)—

Concrete is estimated at one 50 lb bag per post for a standard post hole. For a volume-based figure from your actual hole dimensions, use the Concrete Calculator.

Estimate only. Post, rail, and picket counts are figured from the run length, spacing, and gate layout you enter, for a single straight run on level ground; corners, slopes, stepped or racked sections, and end conditions can add posts and materials. Concrete is estimated at one 50 lb bag per post for a standard post hole and varies with hole size and depth — use the Concrete Calculator for a volume-based figure. Confirm quantities with your supplier and check property lines, local rules, and utility locations before digging.

Deduct the gates from the run first, divide what's left by your post spacing and round up for sections, then add one post to close the run and one per gate. A 100 ft line with one 4 ft gate leaves a 96 ft run: 12 sections, 14 posts, 24 rails, 192 pickets at a 5.5″ picket with a ½″ gap, and about 14 bags of concrete.

Measuring the run

Measure the whole line the fence will follow, straight through the gate openings — gates included. That instruction is the opposite of tools that make you subtract gates yourself before typing anything, and it is deliberate: the deduction is part of the arithmetic, so it belongs inside the calculator where it happens in the right order and in the open. For a full perimeter, add the sides and enter the total, keeping in mind the counts below describe a single straight run; corners on a real perimeter each behave like an end, and can add a post the straight-run math does not know about. Measure in feet with decimals — 10 ft 6 in is 10.5 ft — and measure the line the fence will actually take, along the ground it will stand on.

Posts — spacing is a maximum, actual spacing is the truth

The run divides into sections at your spacing, rounded up, because a section longer than your spacing is the one thing the layout must not contain. That makes your entered spacing a maximum, and the actual spacing — the net run divided by the sections it produced — is often a little less. On a dividing run the two are equal: 96 ft in 12 sections is exactly 8.00 ft. On a non-dividing run they separate, and the actual figure is the one you will really dig: 100 ft with no gate at 8 ft spacing makes 13 sections, and those sections work out to 7.69 ft apart, not 8. Posts are then the sections plus one to close the run — every section needs a post at each end, and neighbouring sections share the post between them, which is the whole arithmetic of a fence line in one sentence.

Worked example — 100 ft, 8 ft spacing, one 4 ft gate, picket style

The calculator is pre-filled with exactly this case: 2 rails per section, 5.5 in pickets, a 0.5 in gap:

  • Total gate width: 1 × 4 ft = 4 ft; net run: 100 − 4 = 96.00 ft
  • Sections: ceil(96 ÷ 8) = 12 sections; actual spacing 96 ÷ 12 = 8.00 ft
  • Posts: 12 + 1 + 1 gate = 14 posts
  • Rails: 12 × 2 = 24 boards; rail length 96 × 2 = 192.00 linear ft
  • Pickets: ceil((96 × 12) ÷ (5.5 + 0.5)) = ceil(192.0) = 192 pickets
  • Concrete: 14 posts × 1 = 14 bags (50 lb, at the stated per-post estimate)

Each gate adds one extra post — a gate needs a post on both sides, and one side is the post your fence sections already end on.

Gates, rails, and pickets

A gate changes the count twice: its width comes off the run before any section is counted — an opening carries no rails and no pickets — and it adds one post, per the convention stated in the worked example. Rails are counted two ways because lumber is bought two ways: as boards (sections × rails per section) and as linear feet (net run × rails per section); the two figures describe the same wood. Two rails per section is the standard count for picket fences and rail fences at typical heights, which is why it is the default; a 6 ft privacy build commonly uses three, and the field accepts 1–4 so one number changes instead of the tool guessing from a height it never asked for. Pickets are counted on the whole net run at once — the run in inches divided by one picket's width-plus-gap module, rounded up once. Counting per section and rounding at every section would invent extra pickets at every post. A gap of 0 is a legitimate entry: it prices a solid, privacy-style run where pickets touch.

Concrete per post — an estimate, labelled as one

The concrete line estimates one 50 lb bag per post, gate posts included. That figure is built for a standard post hole — roughly 8–10 inches across and 24 inches deep, for a 4×4 post, where the post itself displaces part of the hole's volume. It understates whenever reality departs from that hole: deeper frost-line digging, wider holes, and 6×6 gate posts all take more. When the hole dimensions are the question, the Concrete Calculator figures bags from the volume of the holes you actually dig, and its answer governs. Treat this page's bag count as a planning estimate with its assumption printed beside it, never as a pour specification.

What the estimate leaves out

The counts above are the fence's frame and skin, not a full bill of materials. Gate kits and gate framing, hinges and latches, post caps, screws and nails, and gravel for drainage under posts are all real purchases this page does not count. Corners, slopes, and stepped or racked sections on uneven ground can add posts and material beyond a straight, level run. Quantities also assume the run as entered: a property line that jogs, or an obstacle the fence must route around, changes the line and therefore every figure on it. Confirm the final list with your supplier against your layout before ordering.

Frequently asked questions

How many fence posts do I need for 100 feet?

At 8 ft spacing with one 4 ft gate: the 96 ft net run makes 12 sections, so 12 + 1 + 1 gate post = 14 posts; without a gate the same line is 13 sections and 14 posts at a true 7.69 ft spacing.

How far apart should fence posts be?

6–8 ft on center is standard for wood fences; this calculator treats your spacing as a maximum and shows the actual spacing your sections produce, which is the spacing you will really dig.

How many pickets do I need?

Net run in inches ÷ (picket width + gap), rounded up: 96 ft × 12 ÷ (5.5 + 0.5) = 192 pickets in the worked example; set the gap to 0 for a solid privacy-style run.

How much concrete do I need per fence post?

This page estimates one 50 lb bag per post for a standard post hole and says so on the results; deeper, wider, or frost-line holes take more — the linked Concrete Calculator figures bags from your actual hole dimensions.

Do gates change the post count?

Yes, two ways: the gate width comes off the run before sections are counted, and each gate adds one post, because a gate needs a post on both sides and one of them is the section-end post already counted.

Related tools