DIY Calculator

Calculators › Fences & Walls

Fence Calculator

Enter the length of your fence, its height and style, and the calculator lists everything to buy: posts (line, corner and gate posts), rails, pickets or panels, and bags of concrete for the post holes — updated as you type.

Your fence
Rails and post holes

Auto: 2 rails up to 4 ft high, 3 up to 6 ft, 4 above. Hole depth defaults to one-third of the fence height, at least 24 in — check your local frost line.

Cost (optional)

You need

21 posts

57 rails · 335 pickets · 42 bags of 80 lb concrete

8 ft6 ftposts 24 in deep
Fence length150 ft (146 ft of fence + gates)
Sections between posts19
Posts21 (18 line · 2 end/corner · 1 gate post)
Post length8 ft (6 ft above ground + 24 in in the ground)
Rails (3 per section, 8 ft long)57
Pickets (5.5 in)335 (incl. 5% extra)
Concrete for posts19.33 cu ft (0.92 per post)

Concrete bags

50 lb fast-setting (0.375 cu ft)63 (3 per post)
60 lb (0.45 cu ft)63 (3 per post)
80 lb (0.60 cu ft)42 (2 per post)

Posts = length ÷ post spacing + 1 per run (corners shared, +1 per gate) · Pickets = fence length ÷ (picket width + gap) · Rails = sections × rails per section · Concrete = hole volume − post volume

Report a problem or suggest a feature

It works for a wood privacy fence with pickets edge to edge, a spaced picket fence, or pre-built vinyl and wood panels. Add gates and corners and the post count changes with them, and the diagram shows your post spacing and height.

Good to know

6 ft wood privacy fence, straight run, no gates (1×6 pickets, 10 × 24 in holes)

Fence lengthPosts (8 ft apart)Posts (6 ft apart)Rails (8 ft)Pickets80 lb concrete bags (8 ft)
50 ft8102111016
100 ft14183921928
150 ft20265732840
200 ft26357543752
300 ft395111465578

Add one post per gate and about 5% extra pickets. Corners are shared, so an L-shaped fence needs one fewer post than two separate runs.

How to use this calculator

  1. Measure the total length along the post line and choose the layout: straight, L-shape or three sides.
  2. Pick the style and height, and set the post spacing (or panel width for vinyl panels).
  3. Add your gates. Open “Rails and post holes” to change the hole size or rails per section.
  4. Optionally enter a price per foot of fence to estimate the cost.

Add this calculator to your website

Run a landscaping supply, garden center or DIY blog? Paste this code into your page to let visitors use the fence calculator right there. It is free, has no ads, and resizes itself to fit.

Preview the embed ↗

More calculators

Frequently asked questions

How many pickets do I need for a 150 ft privacy fence?

With 1×6 pickets (5.5 in wide) set edge to edge and one 4 ft gate, you need 319 pickets for the remaining 146 ft — 335 with 5% extra for waste.

How many posts do I need for a 150-foot fence?

With posts every 8 ft in a straight line you need 20 posts: 19 sections plus one extra post to close the run. Each gate adds one more post, so one gate makes it 21.

How many rails does a 6 ft privacy fence need?

Three per section — top, middle and bottom. A 150 ft fence with posts 8 ft apart has 19 sections, so 57 rails.

How much concrete does each fence post need?

A 10 in wide, 24 in deep hole around a 4×4 post takes about 0.92 cubic feet of concrete: two 80 lb bags, or three 50 lb bags of fast-setting mix.

Does this work for vinyl fences?

Yes — choose “Panels” and enter the panel width (usually 6 or 8 ft). The calculator then counts panels and posts instead of rails and pickets.