CalcGallery

Fence Calculator

Count the posts, rails and pickets a run of fence needs.

Built by AbhiLast reviewed September 26, 2026

Units
Post spacingPicket width

Your measurements

Centre to centre. Eight feet, or 2.4 m, is the usual maximum for a timber fence. For panels, use the post spacing the panel maker gives.

The actual width, not the nominal size. A nominal 1×6 measures 5.5 in.

A gate needs a post on each side, and every corner needs one.

Result

Buy 14 postsEstimate

One at each end of the run, plus gates and corners

No allowance is added. Posts and rails are cut to fit and rarely wasted. Pickets are the piece that gets miscut, so buying a few spare is normal where your style uses them. The picket count assumes the run divides evenly; the last section usually needs one ripped narrower.

Sections
13
Rails
26
Pickets
209Estimate
Report a problem with this calculator
Your entries are kept on this device only.

Results are estimates for planning only. Actual needs vary with site conditions, products and workmanship. Always confirm quantities with your supplier and follow local building codes and manufacturer instructions. Read the full disclaimer

How to use the Fence Calculator

  1. Choose the style: pickets with gaps, privacy boards butted together, board on board, or vinyl and other panels.
  2. Measure the total length of the fence run.
  3. Set the post spacing. Eight feet, or 2.4 m, is the usual maximum for timber.
  4. Choose two or three rails per section, and enter the actual picket width and the gap you want. Panels skip this step: the rails and infill come in the panel.
  5. Add one post for each corner, and two for each gate.
  6. Read the post, rail and picket counts.

How it is calculated

A fence is four separate counts off one measurement:

sections = ceil(length ÷ spacing)posts    = sections + 1 + extra postsrails    = sections × rails per sectionpickets  = ceil(length ÷ (picket width + gap))

The post count is the one people get wrong. A run of fence has one more post than it has sections, because the two end posts are not shared with anything. Thirteen sections need fourteen posts.

Pickets are counted from the pitch, which is the picket width plus one gap, not the picket width alone. At 5.5 in wide with a 0.25 in gap each picket occupies 5.75 in of run, so 100 ft takes 209 rather than the 219 you would get from the width alone.

Choosing a style

The posts and sections do not depend on the style. What changes is how the bay between two posts is filled:

pickets with gaps  = ceil(length ÷ (width + gap))privacy, butted    = ceil(length ÷ width)board on board     = 2 × ceil(length ÷ (width + gap in each layer))overlap per edge   = (width − gap in each layer) ÷ 2panels             = sections

Board on board counts both layers at the same pitch, which slightly over-counts the back layer at the ends of a run: one or two spare boards, not a shortfall. Keep the gap narrower than a board, or the back layer will not cover it, and the page says so. A panel fence is counted in panels and posts only, because rails and pickets arrive assembled in the panel.

Practical tips

Measure the run, not the property line. Fences are usually set back from the boundary, and a run that follows a slope is longer than its plan measurement. Measure along the ground where the fence will actually stand.

Set the end and corner posts first. String a line between them and set the intermediate posts to that line. Working from one end and hoping it comes out straight almost never does.

Buy the pickets last. Once the posts and rails are up you can measure the real spacing between them and adjust the gap slightly so the last picket in each section comes out full width, which looks much better than a narrow sliver.

Use the actual widths, not the nominal ones. A nominal 1×6 picket measures 5.5 in. Using 6 in in the calculation undercounts by nearly a tenth, which is nineteen pickets on a 100 ft run.

Check before you dig. Call the utility locating service, and check whether your fence needs a permit or has a height limit. Both are common and both are cheaper to find out about before the posts are in concrete.

With your numbers

  1. Sections = 100 ft ÷ 8 ft spacing, rounded up to 13
  2. Rails = 13 sections × 2 = 26
  3. Pickets = 100 ft ÷ (5.5 in + 0.25 in) = 209
  4. Posts = 13 sections + 1 end post + 0 extra = 14

Quick reference

No allowance is added. Posts and rails are cut to fit and rarely wasted. Pickets are the piece that gets miscut, so buying a few spare is normal where your style uses them. The picket count assumes the run divides evenly; the last section usually needs one ripped narrower.

Common jobs, worked out with the options this calculator starts on for United States.
JobPosts to buy
50 ft, 8 ft spacing8
100 ft, 8 ft spacing14
150 ft, 8 ft spacing20
100 ft, 6 ft spacing, 3 rails18
100 ft privacy, no gap14
100 ft privacy, boards butted14
100 ft board on board, 3.5 in gaps14
100 ft of vinyl panels, 8 ft spacing14
30 m board on board, 90 mm gaps14
30 m, 2.4 m spacing14
50 m, 2.4 m spacing22

Common questions about the Fence Calculator

How do I work out chain link fence materials?
Pick Chain link and enter the length of one fabric roll and one top rail from your supplier. A 100 ft run with 50 ft rolls and 21 ft rails needs 2 rolls and 5 top rails. Posts follow the same spacing as any other style. Fittings, ties and tension bars are not counted.
How many posts do I need for a 100 foot fence?
Fourteen, at 8 ft spacing: the run divides into 13 sections and a straight run needs one more post than it has sections. Add one for each corner and two for each gate on top of that.
How far apart should fence posts be?
Six to eight feet, or 1.8 to 2.4 m, for a timber fence. Eight feet is the common maximum because standard rails come in 8 ft lengths. Closer spacing is stiffer and matters more on exposed sites and for tall privacy fences, which catch a lot of wind.
Why is it one more post than sections?
Each section needs a post at both ends, and neighbouring sections share one. A straight run of 13 sections has 14 posts. A fence that closes on itself, like a full enclosure, needs one fewer because the last section shares the first post.
What gap should I leave between pickets?
A quarter inch, or about 6 mm, is typical for a picket fence and leaves room for the timber to swell when wet. For a solid privacy fence choose the privacy style, which butts the boards, though green timber laid tight will shrink and open up gaps as it dries. Board on board is the usual answer to that shrinkage.
How many boards does a board-on-board fence take?
Roughly twice as many as a single layer at the same spacing. The front layer is spaced with gaps narrower than a board, and the back layer covers each gap, so both layers run at the same pitch. For 100 ft of 5.5 in boards with 3.5 in gaps that is 134 boards a layer, 268 in all, each overlapping its neighbours by 1 in.
How many vinyl fence panels do I need?
One per section, so the same number as the sections count, with one more post than panels for a straight run. Use the post spacing the panel maker gives, centre to centre, because panels are made to fit it and are awkward to cut.
Do I need to account for the last picket not fitting?
Yes. The count divides the run by the picket pitch and rounds up, so the last picket in each run usually needs ripping narrower. That is normal and it is why the count is a minimum rather than an exact order.
How deep should the posts go?
A common rule is a third of the post's above-ground height, or 2 ft for a 6 ft fence, whichever is deeper, and below the frost line where ground freezes. Depth requirements vary locally, so check before you dig.

Report a problem with this calculator