Home Material Calculator

Fence calculator

Enter the fence length, the gates, the post spacing and the picket size. You get the posts, rails and pickets to buy, rounded up, and the concrete bags for the post holes if you add the hole size.

Last updated

The whole run, gates included. Measure each straight side on its own.

8 ft is a starting value. Use your panel or rail length, or your plan.

Count the horizontal rails in your fence design.

Each gate adds one post and is taken off the fenced length.

The width each gate takes out of the fence line. 4 ft is a starting value; measure your gate.

The pickets

5.5 in is a starting value. Measure your picket or use the width its maker gives.

0 means pickets butted tight. For a spaced picket fence, enter the gap you want.

Post holes (optional, for concrete)

Use the depth in your post maker's instructions and your local code.

Width of a square post (a 4x4 is 3.5 in). Its volume is taken out of each hole. Leave blank for a solid hole.

You need about

Enter the fence length. The result updates as you type.

Estimate only. Check the counts with your fence supplier before you buy.

For split, warped and rejected pickets. 10% is a planning estimate, not a published figure. Posts, rails and concrete get no allowance.

Estimates only. Post spacing, picket sizes and hole sizes vary by fence and by maker. Check the counts with your supplier, and follow the maker's instructions and your local code for post depth and fence height.

How many fence posts do I need?

Take the gate widths off the fence length. Divide what is left by the post spacing and round up: that is the number of sections. You need one post more than the sections, because the run has a post at each end, plus one more post for each gate, because a gate needs a post on both sides.

A 100 ft fence with one 4 ft gate and posts 8 ft apart has 96 ft of fencing. 96 ÷ 8 = 12 sections, so 12 + 1 + 1 = 14 posts.

The formula

  1. Fenced length: fence length minus (gates x gate width).
  2. Sections: fenced length ÷ post spacing, rounded up.
  3. Posts: sections + 1, plus 1 for each gate.
  4. Rails: sections x rails per section.
  5. Pickets: fenced length in inches ÷ (picket width + gap), rounded up. The waste allowance is added and the total is rounded up again.
  6. Concrete: one hole per post. Each hole is a cylinder, π x (diameter ÷ 2)² x depth, less the post standing in it. Bags = total volume ÷ the bag's yield, rounded up.

Mixed units are fine. The calculator converts every measurement to feet first, using 1 in = 2.54 cm exactly.

Worked example: 100 ft with one gate

The fence is 100 ft long with one 4 ft gate. Posts are 8 ft apart with 2 rails per section. Pickets are 5.5 in wide, butted tight, with a 10 percent allowance. Each post is a 4x4 (3.5 in square) in a hole 10 in across and 24 in deep.

  1. Fenced length: 100 - 4 = 96 ft.
  2. Sections: 96 ÷ 8 = 12.
  3. Posts: 12 + 1 + 1 gate = 14 posts.
  4. Rails: 12 x 2 = 24 rails.
  5. Pickets: 96 ft is 1,152 in, and 1,152 ÷ 5.5 = 209.5, rounded up to 210. With 10 percent, 210 x 1.10 = 231 pickets.
  6. Concrete: one hole is π x 5² = 78.54 sq in, less the post's 12.25 sq in, = 66.29 sq in, x 24 in deep = 1,591 cu in, or 0.92 cu ft. 14 holes take 12.89 cu ft. At 0.60 cu ft per 80 lb bag, that is 21.5, rounded up to 22 bags of 80 lb, or 29 bags of 60 lb, or 35 bags of 50 lb.

With a 1/2 in gap between the same pickets, each picket and its gap take 6 in, so 1,152 ÷ 6 = 192 pickets, or 212 with 10 percent.

Fences with corners

The calculator counts one straight run. For a fence with corners, run it once for each side. Neighboring sides share their corner post, so take one post off the total for each corner. Use the "Add to project list" button to keep the sides together.

Post spacing and rails

The calculator starts at posts 8 ft apart and 2 rails per section. Those are starting values you can change, not recommendations. If you build with ready-made panels, use the panel width plus the post as your spacing. The calculator counts one rail per section for each row of rails, so each rail spans one section.

Picket width and gap

The calculator starts at a 5.5 in picket with no gap. Measure your picket across its face. For a spaced picket fence, enter the gap you want between pickets. The pickets are counted on the fenced length only: gates are bought or built separately.

Post hole concrete

Enter the hole diameter and depth to count concrete for every post hole. The post size is taken out of each hole, because the post fills part of it. Leave the post size blank for a solid hole. Bag counts use the yields in the table below and add no allowance, so holes dug wider than planned take more.

How deep should fence posts be?

This calculator does not set a post depth. The depth depends on the fence height, the soil and, in cold areas, the frost line. Use the depth in your post or fence maker's installation guide and your local building code, then enter it as the hole depth.

Waste allowance

The calculator starts at 10 percent extra pickets. That is a planning estimate, not a published figure. It covers split, warped and rejected pickets. Posts, rails and concrete get no allowance.

What the calculator leaves out

Common mistakes

Values this calculator uses

Concrete bags are counted from the maker's stated yield per bag. Yields are approximate. Your bag's label wins if it differs.

ItemValueSource
80 lb bag0.6 cu ftQuikrete Concrete Mix (No. 1101) data sheet yield
60 lb bag0.45 cu ftQuikrete Concrete Mix (No. 1101) data sheet yield
50 lb bag0.375 cu ftQuikrete Concrete Mix (No. 1101) data sheet yield

Sources

Questions

How many fence posts do I need for 100 feet?

With posts 8 ft apart and no gates, 100 ÷ 8 = 12.5, rounded up to 13 sections, so 14 posts. With posts 6 ft apart, 100 ÷ 6 = 16.7, rounded up to 17 sections, so 18 posts. Add one post for each gate, and take the gate width off the length first.

How do I calculate how many fence pickets I need?

Convert the fenced length to inches and divide by the picket width plus the gap, then round up. 96 ft is 1,152 in. With 5.5 in pickets butted tight, that is 1,152 ÷ 5.5 = 209.5, so 210 pickets. With a 1/2 in gap it is 1,152 ÷ 6 = 192 pickets. Add an allowance for split and rejected pickets.

How much space should be between fence pickets?

It is your choice for a spaced picket fence, and none for a privacy fence where the pickets butt together. Whatever gap you pick, count each picket as its width plus the gap. The calculator starts at no gap, which is a starting value, not a recommendation.

How many bags of concrete do I need per fence post?

Work out the hole volume: π x (diameter ÷ 2)² x depth, less the post. A hole 10 in across and 24 in deep with a 4x4 post holds about 0.92 cu ft. An 80 lb bag yields about 0.60 cu ft (Quikrete), so one post takes 0.92 ÷ 0.60 = 1.5 bags. Count the bags on the total for all posts, so part bags are not wasted: 14 such posts take 22 bags, not 28.