Skip to content

Calculator

Fence Calculator

Estimate fence posts, rails, pickets and post concrete from total fence length, post spacing, gates and picket size.

A fence material list starts with one measurement: the total length of the fence line. From there, the post spacing sets how many sections and posts you need, the rails follow the sections, and the picket width and gap decide how many pickets cover the run. This calculator does all four and can add the concrete for setting the posts.

Project dimensions

Enter your measurements below. Results update with a waste allowance you can adjust.

Add up every run of fence, including the gate openings.

6 to 8 feet is typical for wood privacy fences. Vinyl and panel systems set their own spacing.

Whole number. Use 0 for none.

Use 0 for a privacy fence with boards butted together.

Often 2 for fences up to about 5 feet and 3 for taller fences.

Leave blank to skip. Use the concrete footing calculator to work this out for your hole size.

Optional. Defaults to 10%. Range 0 to 30.

Important disclaimer

This tool estimates posts, rails and pickets for straight fence runs. Corners, slopes and changes in direction can need extra posts. Post depth, hole size and setting method depend on soil, frost depth and local rules. Many areas require a permit or have height limits and setback rules, and utility lines must be located before digging. Cost uses only the price per picket you enter.

About this calculator

How the fence calculator works

  1. Fenced length = total length − (gates × gate width).
  2. Sections = fenced length ÷ post spacing, rounded up.
  3. Posts = sections + 1 + one extra post for each gate.
  4. Rails = sections × rails per section.
  5. Pickets = fenced length ÷ (picket width + gap) × (1 + waste% ÷ 100), rounded up.

Worked example: privacy fence with a gate

A 100 foot wood privacy fence with posts 8 feet apart, one 4 foot gate, 5.5 inch pickets butted together and 2 rails per section:

  • Fenced length: 100 − 4 = 96 feet.
  • Sections: 96 ÷ 8 = 12. Posts: 12 + 1 + 1 = 14.
  • Rails: 12 × 2 = 24.
  • Pickets: 1,152 inches ÷ 5.5 = 209.5, plus 10 percent = 231 pickets.

Worked example: spaced picket fence

A 150 foot run with no gate, 3.5 inch pickets with a 2 inch gap, posts 8 feet apart and 5 percent waste needs 19 sections, 20 posts, 38 rails and 344 pickets. At 2 bags of concrete per post, that is 40 bags.

Quick reference at 8 foot post spacing

Fence length (no gates)SectionsPostsRails (2 per section)
50 ft7814
100 ft131426
150 ft192038
200 ft252650

Corners, slopes and gates

The post count assumes one straight run. Add one post for every corner or change of direction, since a corner post ends one run and starts the next. On slopes, stepped fences use the same number of posts but may need longer posts. Gates need sturdy posts on both sides; many builders use a larger post or set gate posts deeper.

Frequently asked questions

How far apart should fence posts be?

Wood fences are commonly built with posts 6 to 8 feet apart. Vinyl and metal panel systems have fixed panel widths, so use the panel width as the spacing.

How many bags of concrete per fence post?

It depends on the hole size and depth. A 10 inch hole 3 feet deep around a 4×4 post holds about 1.4 cubic feet of concrete, which is about 2 to 3 bags of 80 lb mix. Use the concrete footing and post hole calculator for your hole size.

Do I need a permit for a fence?

Many towns limit fence height and set rules for placement near property lines and streets, and some require a permit. Always have underground utilities marked before digging.

For a full planning walkthrough, read How Many Fence Posts and Pickets Do I Need?

Related guides

Practical planning guides paired with this calculator.

Related calculators

Other published tools in the same topic.

More in Decks & Fences

Browse published calculators and guides for this topic.

Open Decks & Fences topic →