Skip to content
CalcBelt

Fence calculator

Count the posts, rails, pickets or panels and the bags of concrete for your fence, and see what a wood, vinyl, chain link or aluminum fence typically costs installed.

Units
How is it built?

All sides added up, gates included.

Center to center. 6 to 8 ft is typical; 8 ft matches 8 ft rails.

Each gate adds a post.

Add 1 for each corner.

Pickets and rails

0 for a privacy fence.

Lowe's 6 ft fence plan uses 3: top, middle and bottom.

Post holes

Empty = half the fence height (3 ft), Quikrete's rule. Always go below your frost line.

Empty = 3 × the post width (10 1/2 in).

Fence materials

15 posts

13 sections, posts at least 9 ft long (buy 10 ft)

Rails
393 per section, 8 ft long
Pickets
2191 × 6 (5.5 in wide)
Concrete, 50 lb bags
755 per post (fast-setting mix)
Post holes
10 1/2 in wide42 in deep, including gravel
Gravel for the holes
4.51 cu ft

Installed cost

per linear ft

About $3,500 for 100 ft (range $2,000 to $5,000)

Typical US price $20 to $50 per linear ft (HomeGuide, Fixr, HomeAdvisor, October 2026). Gates, slopes and removing an old fence cost extra.

How it's calculated
  1. Sections: 100 ft ÷ 8 ft between posts = 12.5, rounded up to 13
  2. Posts: 13 sections + 1 + 1 for gates = 15
  3. Each post goes 3 ft into a 10 1/2 in hole on 6 in of gravel; concrete fills 1.55 cu ft around it
  4. 1.55 cu ft ÷ 0.375 cu ft per 50 lb bag = 4.13, rounded up to 5 per post
  5. Pickets: fence length 100 ft ÷ (picket 5 1/2 in + gap) = 219, rounded up

Estimates use manufacturer data sheets and industry guides (sources). Check local codes and your supplier's figures before you order.

How to use the fence calculator

  1. Measure the total length of the fence line: every side added up, gates included.
  2. Choose posts, rails and pickets for a site-built fence, or ready-made panels.
  3. Enter the height and the post spacing (or the panel width).
  4. Add the number of gates and corners. Each one needs an extra post.
  5. Check the post depth against your local frost line, then read the materials and cost.

How to calculate fence materials

Everything starts with the length of the fence and the spacing of the posts:

Sections = fence length ÷ post spacing (rounded up)
Posts = sections + 1 + corners + gates

Example: 100 ft of 6 ft privacy fence with posts 8 ft apart and one gate. 100 ÷ 8 = 12.5, so 13 sections and 15 posts. Each section has three rails, so 39 rails, and 1 × 6 pickets laid tight need 219 pickets.

Post holes and concrete

Quikrete’s guidance for setting posts:

  • Width: dig the hole about three times as wide as the post. For a 4 × 4 (actually 3 1/2 in square) that’s about 10 1/2 in.
  • Depth: bury a third of the post’s total length, which is half the height above ground. A 6 ft fence needs posts 9 ft long set 3 ft deep, so buy 10 ft posts. Where frost goes deeper, follow your local code.
  • Drainage: put about 6 in of gravel in the bottom of each hole before setting the post.

The calculator works out the concrete as the volume of the hole minus the post, at 0.375 cubic feet per 50 lb bag of fast-setting mix, and rounds up per hole. That’s a little more than Quikrete’s own rule of thumb, which sets a 3 in post in a 9 × 30 in hole with two bags. For vinyl, Catalyst’s kit uses a 10 in hole for a 5 × 5 post.

Post and hole Depth in ground Concrete 50 lb bags
4 × 4 post, 10 1/2 in hole 2 ft 1.03 cu ft 3
4 × 4 post, 10 1/2 in hole 3 ft 1.55 cu ft 5
6 × 6 post, 16 1/2 in hole 3 ft 3.83 cu ft 11

Lumber sizes

Fence lumber is sold by nominal size, which is larger than the real board. A 1 × 6 picket is 3/4 × 5 1/2 in, a 1 × 4 is 3/4 × 3 1/2 in, a 4 × 4 post is 3 1/2 in square and a 6 × 6 is 5 1/2 in square. The calculator uses the actual widths. Catalyst’s vinyl privacy panels come 6 or 8 ft wide; check the width of the ones you buy.

Before you dig

Call 811 a few days before you dig so buried utility lines are marked, check your property line, and ask whether your town or HOA needs a permit or limits fence height.

For wood priced by the board foot, the board foot calculator adds up posts, rails and pickets. The concrete calculator handles bigger footings, and the deck calculator counts boards and joists for a deck along the same yard.

To have the fence built, the fence installation cost calculator estimates the installed price for wood, vinyl or chain link.

Questions and answers

How far apart should fence posts be?

Typically 6 to 8 feet on center for a wood fence (Lowe's). Eight feet matches standard 8 ft rails. For panel fences, the spacing is the panel width plus the post width, since each panel fits between two posts.

How deep should fence posts be?

Quikrete's rule is a third of the post's total length, which works out to half the height above ground: 3 ft deep for a 6 ft fence, on top of 6 in of gravel. Where the ground freezes, go below the frost line; some codes require it.

How many bags of concrete per fence post?

It depends on the hole. Quikrete's data sheet says two 50 lb bags of Fast-Setting mix set a 3 in square post in a 9 in hole 30 in deep; measured geometrically, that hole holds closer to 2.5 bags. A 4 × 4 post set 3 ft deep in a hole three times its width (10.5 in) needs about 1.5 cubic feet of concrete, or five 50 lb bags.

How many pickets do I need for 100 feet of fence?

With 1 × 6 pickets, which are 5 1/2 in wide, set side by side for privacy: 100 × 12 ÷ 5.5 = 219 pickets, rounded up. Leave a gap between pickets and you need fewer.

How many rails does a fence need?

Lowe's plans for a 6 ft wood privacy fence use three rails per section: top, middle and bottom. The calculator suggests two for fences up to 4 ft and four above 6 ft; change it to match your design.

How much does a fence cost per foot?

Typical installed prices in 2025 and 2026 cost guides: wood privacy $20 to $50 per linear foot, vinyl $25 to $60, chain link $10 to $30 and aluminum $25 to $75 (HomeGuide, Fixr, Forbes Home, HomeAdvisor). Materials alone for a wood fence run about $10 to $30 per foot.

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

With posts 8 ft apart, 200 ÷ 8 = 25 sections, so 26 posts for a straight run. Lowe's puts typical spacing at 6 to 8 ft; at 6 ft the same fence needs 35 posts. Add a post for each corner and each side of a gate.

How long should posts be for a 6 ft fence?

About 9 ft. Quikrete sets one-third of a post's overall length in the ground, which is half its height above ground, so a 6 ft fence puts 3 ft in the ground. Go deeper where the frost line or your local code requires it.

Sources

Figures checked October 2026.