Fence Calculator

Plan a wood or vinyl fence. Enter the total length, how far apart your posts will be, corners, gates, and picket size, and the calculator builds your materials list: posts, rails, pickets and concrete for setting the posts.

Your measurements

ft
ft
pcs
pcs
ft
rails
in
in
bags

Results

Fence posts23posts
Sections19 sections
Rails57 rails
Pickets319 pickets
Concrete for posts46 bags

Estimate only. Quantities are rounded up. Check product labels, your supplier and local building code before you buy or build.

How to use the fence calculator

  1. Measure the full length of the fence line in feet, including gate openings.
  2. Enter post spacing (6 or 8 ft is common), the number of corners and gates.
  3. Enter rails per section, picket width and the gap you want between pickets (0 for a privacy fence).
  4. Set how many bags of concrete you will use per post.

Formula

Sections = fence length ÷ post spacing, rounded up

Posts = sections + 1 + corners + gates

Rails = sections × rails per section

Pickets = (fence length − gate widths) × 12 ÷ (picket width + gap), rounded up

Worked example

A 150 ft fence with posts every 8 ft has 19 sections. With 2 corners and 1 gate you need 23 posts and, at 3 rails per section, 57 rails. Subtracting a 4 ft gate leaves 146 ft of pickets: 319 pickets 5.5 inches wide with no gap. At 2 bags per post, that is 46 bags of concrete.

Tips before you buy

  • Corners and gate openings almost always need their own posts, so the calculator adds one for each.
  • Taller fences usually need three rails per section; shorter fences can use two.
  • Posts are often buried one third to one half of their above-ground height, and below the frost line. Check local rules before you dig.
  • Call 811 before digging in the US so underground utilities can be marked.

Frequently asked questions

How many fence posts do I need for 100 feet?

With posts every 8 ft, a straight 100 ft fence has 13 sections and 14 posts. Add one for each corner and gate.

How far apart should fence posts be?

Six to eight feet is standard for wood fences. Vinyl and metal panels set the spacing by panel width.

How many pickets do I need per foot?

With 5.5 inch pickets and no gap you need about 2.2 pickets per foot of fence.

How much concrete per fence post?

Often one to three 50 lb bags, depending on hole diameter and depth. Use the concrete calculator for an exact volume.

Last updated: