Fence Calculator

Plan a wood privacy or picket fence in seconds. Enter the fence length and post spacing to get posts, rails, pickets, bags of concrete for the posts and, if you add prices, the material cost.

  • Free, no sign-up
  • Feet, inches or metric
  • Formula shown
  • Reviewed Nov 26, 2026

1Your measurements

in
0 = privacy fence
in
≈ 3× post width
in
Incl. 6 in gravel

Prices for a cost estimate (optional)

Your resultsUpdates as you type

How to use the fence calculator

  1. Measure the total length of fence line. For several runs, add them together.
  2. Choose post spacing, rails per section and picket width (enter a gap for spaced picket fences, 0 for privacy).
  3. Set the post hole size and concrete bag type to get the bag count. Add one post per gate and per corner.

Fence material formulas

sections = ⌈length ÷ post spacing⌉ · posts = sections + 1
rails = sections × rails per section
pickets = length (in) ÷ (picket width + gap) × 1.05
concrete per hole = (π × (hole ⌀ ÷ 2)² − post area) × (depth − 6") ÷ 1,728

Worked example

A 100 ft, 6 ft tall privacy fence: 8 ft spacing, 3 rails, 5-1/2" boards, 4×4 posts in 10" × 30" holes:

  1. Sections: 100 ÷ 8 = 12.5 → 13 · Posts: 14 · Rails: 13 × 3 = 39
  2. Boards: 1,200" ÷ 5.5" × 1.05 = 230 boards
  3. Concrete: 0.92 cu ft per hole × 14 posts ÷ 0.375 = 35 bags of 50 lb fast-setting mix

Fence materials by length

6 ft privacy fence: 8 ft spacing, 3 rails, 5-1/2" boards, 4×4 posts, 10" × 30" holes
Fence lengthPostsRailsBoards50 lb bags80 lb bags
50 ft8211152013
75 ft11301722817
100 ft14392303522
150 ft20573445031
200 ft26754596440
300 ft391146889660

Fence post depth

A common rule is to bury one-third of the post's above-ground height, plus about 6 inches of gravel at the bottom for drainage. In cold climates the hole must also reach below the frost line, which can be 36–48 inches or more; your local building department can tell you the required depth.

Post hole size by fence height (1/3 rule + 6" gravel)
Fence heightPost lengthHole depthHole diameter (4×4)50 lb bags per post
3 ft4 ft18"10"1.2
4 ft6 ft22"10"1.6
5 ft8 ft26"10"2
6 ft8 ft30"10"2.5
8 ft12 ft38"10"3.3

Picket fence vs. privacy fence

For a picket fence, enter the gap between pickets (often 2–3 inches); the calculator divides the fence length by picket width plus gap. For a privacy fence, leave the gap at 0 so the boards butt together. Shadowbox (board-on-board) fences need roughly 1.5–2× the boards of a privacy fence because the boards overlap on alternating sides.

Estimating fence cost

Add the local price of a post, a rail, a picket and a bag of concrete and the calculator totals the material cost and cost per linear foot. Add gates, hardware, fasteners and post caps separately. For an installed price including labor, use thefence cost calculator.

Tips

  • Call 811 before you dig. It's free in the US and marks buried utility lines.
  • Check property lines and HOA rules for height limits, setbacks and which side must face out.
  • Set corner and end posts first, run a string line between them, then set line posts to the string.
  • Crown the concrete at the top so water runs away from the post instead of pooling against it.

Frequently asked questions

How many fence posts do I need?

Divide the fence length by the post spacing (usually 6 or 8 ft) and round up to get the number of sections, then add 1. Add an extra post for each gate and for every corner or end where a run changes direction. A straight 100 ft fence with 8 ft spacing needs 13 sections and 14 posts.

How many bags of concrete per fence post?

It depends on hole size. A 4×4 post in a 10" diameter hole with 24" of concrete (30" deep with 6" of gravel) takes about 0.92 cu ft — roughly 2.5 bags of 50 lb fast-setting concrete (0.375 cu ft each) or 1.5 bags of 80 lb mix.

How deep should fence post holes be?

A common rule is one-third of the post's above-ground height, plus about 6 inches for gravel — so roughly 30 inches for a 6 ft fence. In cold climates, go below the frost line. The hole diameter is usually about 3 times the post width (10–12" for a 4×4).

How many pickets do I need for a fence?

Divide the fence length in inches by the picket width plus the gap between pickets. For a 100 ft privacy fence with 5-1/2" boards and no gap that is about 218 boards, plus 5% extra for culls and cuts.

Should fence posts be 6 or 8 feet apart?

8 ft is the standard for wood privacy fences because rails come in 8 ft lengths. Use 6 ft spacing for heavier fences, windy sites, or when using 6 ft panels.

Estimates are for planning and ordering. Material densities, product sizes and site conditions vary, so confirm quantities with your supplier and follow local building codes. See how we calculate.