Fence Calculator

Estimate the materials for a wood fence: how many posts, rails and pickets you need for a straight run, including gates. Works for privacy fences (pickets touching) and spaced picket fences.

For an L-shaped or U-shaped fence, calculate each straight run separately; shared corner posts only need counting once.

How the fence calculation works

posts = ⌈length ÷ spacing⌉ + 1 + gates  |  pickets = ⌈(length − gates × gate width) × 12 ÷ (picket + gap)⌉

Worked example: a 100 ft privacy fence

The gate itself is usually built from the same pickets plus a frame, so buy 8 to 10 extra pickets per gate, along with hinges and a latch.

Lumber sizes

PartTypical sizeNotes
Posts4 × 4 (3.5 × 3.5 in actual)Ground-contact rated pressure-treated, or 6 × 6 for gate posts
Rails2 × 4, 8 ft longMatches 8 ft post spacing
Pickets1 × 6 (5.5 in actual) or 1 × 4 (3.5 in actual)Dog-ear or flat top, 4–6 ft tall

Before you dig

Frequently asked questions

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

With posts every 8 ft, a 100 ft straight run has 13 sections and needs 14 posts. Each gate adds one more post, because a gate needs a post on both sides. Corners and ends of separate runs also add posts.

How far apart should fence posts be?

6 to 8 ft is standard for wood fences, and 8 ft is the usual maximum because rails are commonly sold in 8 ft lengths. Use closer spacing in windy areas or for tall privacy fences.

How many pickets do I need per 8 ft section?

A 1 × 6 board is actually 5.5 in wide. With no gap (privacy fence), an 8 ft section takes 96 ÷ 5.5 ≈ 18 pickets. With a 2.5 in gap (classic picket fence), it takes 96 ÷ 8 = 12.

How many rails per section?

Two rails for fences up to about 4 ft tall and three rails for 5 to 6 ft privacy fences, which keeps pickets from warping.

How much concrete does each fence post need?

A common rule is a hole three times the post width and about one-third of the post's length deep (at least 2 ft, and below the frost line where it freezes). A 10 in hole 3 ft deep is about 1.6 cu ft, or three 80 lb bags; use the concrete calculator's round column option to check your size.