Holzbaurechner / Fence

Wood fence calculator

Posts, rails, pickets and concrete for a wood privacy or picket fence, with a shopping list in stock lengths and a cost estimate.

How the fence is built

The calculator plans the classic American wood fence: 4x4 posts set in concrete, usually 8 ft apart, with 2x4 rails between them and dog-ear pickets nailed to the rails. Fences up to 4 ft get two rails per section, taller fences three. An 8 ft fence gets 6x6 posts.

Posts go about a third of the fence height into the ground, at least 2 ft. A 6 ft fence therefore uses 8 ft posts. Pickets end about 2 in. above the ground so they do not wick up water.

Privacy fence or picket fence

Set the gap to 0 for a privacy fence with pickets butted together. For a classic picket fence, 2 to 3 in. between 5-1/2 in. pickets is typical. Fresh pressure-treated pickets shrink as they dry, so a privacy fence built tight shows small gaps after the first summer.

Pressure-treated or cedar?

Posts should always be pressure-treated lumber rated for ground contact, even on a cedar fence. Cedar pickets and rails look better, are lighter and stay straighter, but cost about 40 to 50 % more. Pressure-treated pine is cheaper and takes stain once it has dried for a few months.

Building the fence step by step

  1. Rules first: check the property line, local height limits and HOA rules, and call 811 at least a few days before you dig.
  2. Lay out the line: drive stakes at the ends and corners and stretch a string line. Mark the post positions along it.
  3. Set the posts: dig the holes about three times as wide as the post, add a few inches of gravel, set the post plumb and fill with concrete. Fast-setting concrete is poured dry and then soaked with water.
  4. Rails: fasten the rails to the posts with brackets or structural screws, the top rail a few inches below the post top.
  5. Pickets: use a spacer block for even gaps and check with a level every few pickets. Two nails or screws per rail.

Frequently asked questions

How many pickets do I need for 100 ft of fence?
With 5-1/2 in. pickets butted together you need 219 pickets for 100 ft. With a 2 in. gap it drops to 160. Add a few percent for split or warped pickets.
How many bags of concrete per fence post?
For a 4x4 post in a 10 in. hole 2 ft deep you need two to three 50 lb bags of fast-setting concrete. The calculator works it out from the hole size.
How far apart should fence posts be?
8 ft is the standard, because rails come in 8 ft lengths. In windy areas or for tall privacy fences, 6 ft spacing makes the fence much sturdier.
Do I need a permit for a fence?
The model building code exempts fences up to 7 ft, but many cities set their own limits, often 6 ft in back yards and 3 to 4 ft in front yards, and some require a permit for any fence. Check with your city or county before you build.