CalcFolio

Fence Calculator

This fence calculator turns the length of your fence line into a materials list: posts, rails, pickets or prefab panels, and bags of concrete to set the posts. Enter up to four connected sides, the post spacing, the fence height and any gates. Hole size and depth follow a common rule of thumb you can override with your own numbers.

Updated

Required

Optional

Optional

Optional

Needs at least three sides

Center to center; 8 ft is common

Above ground

Each gate adds one post

Horizontal rails between two posts

Actual width, e.g. 5.5 in for a nominal 1×6

Actual size: a nominal 4×4 is 3.5 in

Optional

Optional

Optional

Optional

Optional

Advanced options

Blank = 3 × post width

Blank = 1/3 of the height above ground

In the bottom of each hole

How to use the fence calculator

  1. Enter the length of each side in feet. Side 1 is required; add sides 2 to 4 for an L, U or full enclosure. Tick Closed loop if the last side returns to the first post (needs at least three sides).
  2. Set the post spacing (8 ft is common; match it to your panel width for prefab panels) and the height above ground.
  3. Enter the number of gates and their width.
  4. Choose the style: privacy boards touching, picket with a gap, or panel. For boards, enter rails per section, board width and, for pickets, the gap.
  5. Enter the actual post width: a nominal 4×4 measures 3.5 in.
  6. Pick the concrete bag. In Advanced options you can set the hole diameter, depth and gravel base yourself.
  7. Add unit prices if you want a total cost.

How the calculator works

  • Fence length = sum of the sides − gates × gate width
  • Sections = each side ÷ post spacing, rounded up, then added
  • Posts = sections + 1 + one per gate (− 1 for a closed loop)
  • Rails = sections × rails per section; the gate opening is not subtracted, which keeps the count on the safe side
  • Boards = fence length × 12 ÷ (board width + gap), rounded up; panels = sections
  • Post length = height above ground + hole depth

Concrete per post

Quikrete's post-setting instructions call for a hole 3 times the post width, a depth of 1/3 to 1/2 of the post height above ground, and about 6 in of gravel in the bottom. The calculator uses 3 × the post width and the 1/3 depth by default. Concrete fills the ring between the post and the hole above the gravel, and each hole is rounded up to whole bags because each hole is filled separately. Bag yields: about 0.375 cu ft for Quikrete Fast-Setting 50 lb, and about 0.30, 0.45 and 0.60 cu ft for Concrete Mix 40, 60 and 80 lb. Quikrete fills to 3 to 4 in below grade; the calculator fills to the top, so it leans slightly high.

Worked examples

100 ft privacy fence with one gate

6 ft tall, posts every 8 ft, a 4 ft gate, 3 rails, 5.5 in boards and 4×4 posts. The fence itself is 96 ft: 13 sections, 15 posts, 39 rails and 210 boards. Holes are 10.5 in wide and 24 in deep, so you need 8 ft posts. Each hole takes 3 bags of Fast-Setting mix, 45 bags in all. Narrow the hole to 10 in and the count drops to 2 bags per post (30 bags), which matches Quikrete's own figure of two 50 lb bags for a 10 in hole 2 ft deep. Digging 36 in deep instead needs 9 ft posts and 4 bags per hole.

U-shaped picket fence

Sides of 60, 120 and 60 ft, 4 ft tall, one 4 ft gate, 2 rails, 3.5 in pickets with a 2.5 in gap. That is 236 ft of fence, 31 sections, 33 posts, 62 rails and 472 pickets, with holes 16 in deep and 66 bags of Fast-Setting mix.

Closed yard with panels

Four sides of 50, 30, 50 and 30 ft, closed loop, 8 ft panels, one gate: 22 sections, so 22 panels and 23 posts, plus 69 bags.

Before you dig

Local frost depth, setbacks, height limits and HOA rules override any rule of thumb; check with your city or county and your HOA. Contact 811, the free national call-before-you-dig service, a few business days before digging and wait until buried utility lines have been marked. Slopes and stepped sections, bracing, post caps, hardware, gate kits and board-on-board overlap are not modeled. Our concrete and gravel calculators cover slabs and stone strips elsewhere in the yard.

Frequently asked questions

How many posts do I need for a 100 ft fence?

At 8 ft spacing a straight 100 ft run has 13 sections and 14 posts; one gate adds another, for 15. Closing a loop saves one post because the last section ends on the first post.

How deep should fence post holes be?

Quikrete suggests 1/3 to 1/2 of the post height above ground, so 24 to 36 in for a 6 ft fence. Some builders go deeper, and local frost depth may require it. Enter your depth in the advanced options.

How many bags of concrete per fence post?

For a 4×4 post in a 10.5 × 24 in hole over 6 in of gravel, the calculator gives 3 bags of Fast-Setting 50 lb or 2 bags of 80 lb Concrete Mix. A narrower or shallower hole needs less.

How long should fence posts be?

Add the hole depth to the height above ground. A 6 ft fence with 24 in holes needs 8 ft posts.

How do I count pickets with a gap?

Divide the fence length in inches by the picket width plus the gap. Choose the picket style and the calculator does this for you, excluding the gate openings.

Do I need a permit to build a fence?

It depends on where you live. Many cities and counties set height limits and setbacks, some require a permit, and an HOA may need to approve the design. Ask your local building or zoning office, and your HOA if you have one, before you buy materials.

Sources

  1. Quikrete — Setting Posts (hole 3× post width, depth 1/3–1/2 of above-ground height, 6 in gravel)
  2. Quikrete — Fast-Setting Concrete Mix spec data (0.375 cu ft per 50 lb bag; two bags per 10 in × 2 ft hole)
  3. Quikrete — Concrete Mix No. 1101 data sheet (40, 60, 80 lb bag yields)
  4. 811 Before You Dig — free national call-before-you-dig service (Common Ground Alliance)

This is a material estimate based on rules of thumb and the dimensions you enter. Local codes, frost depth, property lines and HOA rules decide how your fence must be built.