Fence Planner & Material List

Click the grid to sketch your fence line. The planner places posts, counts every rail, picket and bag of concrete, and turns it into a shopping list with prices you can edit.

Your fence line Click the grid to add a corner · 1 square = 1 ft
in
gates
ft
in
in
Dig 6 in deeper for gravel.
Prices (edit to match your store)
$
$
$
$
$
$

Default prices are typical US home-center prices for pressure-treated pine. Prices vary by region and season.

Estimated material cost$0
Fence length–
Sections between posts–
ItemQtyCost

Includes 5% extra pickets and 10% extra concrete for waste.

How to use the fence planner

  1. Sketch the fence line. Click the grid once for each corner. Each square is one foot, so a fence along a 50-foot property line is 50 squares long. Turn on “Close the shape” if the fence goes all the way around.
  2. Pick the fence style. Choose the height, the widest post spacing you want, and the picket size. Privacy fences usually use 1×6 pickets with a ¼ in gap to allow for wood shrinking and swelling.
  3. Add gates and post holes. Each gate adds one post and removes its width from the fence run. Set the hole diameter and how deep the posts go in the ground.
  4. Check prices. Open the price section and type in what your local store charges. The shopping list and total update as you type.

How the planner counts materials

Each straight run is split into equal sections no wider than your post spacing. A 50 ft run with 8 ft spacing becomes 7 sections of about 7 ft 2 in, with 8 posts. Corners share a post, so an L-shaped fence with two runs needs one fewer post than two separate fences.

sections per run = ⌈ run length ÷ max spacing ⌉ posts = total sections + 1 (or + 0 for a closed shape) + 1 per gate rails = rails per section × sections (one 8 ft rail per section) pickets = ⌈ fence length (in) ÷ (picket width + gap) × 1.05 ⌉

Rails per section follow common practice: two rails for fences up to 4 ft, three for 5–6 ft and four for 8 ft fences. Taller fences catch more wind and need the extra rail to keep pickets from bowing.

Post length is the fence height plus the depth in the ground, rounded up to the next standard lumber length (8, 10, 12, 14 or 16 ft). Each hole is dug 6 in deeper than the post goes, for a gravel base. Concrete fills the rest of the hole around the post, plus 10% extra.

Example: a U-shaped backyard fence

The plan loaded above is a common backyard layout: 30 ft down one side, 50 ft across the back and 30 ft down the other side, for 110 ft in total with one 4 ft gate. At 6 ft tall with 8 ft spacing that works out to 15 sections, 17 posts (including the extra gate post), 45 rails, 233 pickets with 5% extra and 36 bags of 80 lb concrete, which comes to roughly $1,700 in materials at the default prices.

Tips before you buy

  • Call 811 at least a few days before digging. Utility locating is free in every US state.
  • Check your HOA rules and local permit requirements. Many towns limit backyard fences to 6 ft and front-yard fences to 3–4 ft.
  • Find your property line from your plat or survey. Building a foot or two inside it avoids disputes with neighbors.
  • Use posts rated for ground contact (often labeled UC4A or “ground contact”). Standard above-ground lumber rots quickly in soil.
  • Buy all pickets from the same batch if you can. Color and width can vary between deliveries.

Common questions

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

With 8 ft spacing, a straight 100 ft fence has 13 sections and needs 14 posts. Add one post for each gate. Corners share posts, so draw your real layout in the planner for an exact count.

How far apart should fence posts be?

Most wood fences use 6 to 8 ft between post centers. Eight feet matches standard 8 ft rails, so it wastes the least lumber. Use 6 ft in windy areas or for heavy, solid privacy fences.

How many rails does a 6 ft privacy fence need?

Three rails per section: one near the top, one near the bottom and one in the middle. Fences 4 ft and lower usually need two, and 8 ft fences need four.

Does the material list include gates?

Yes. Each gate adds one post and a gate hardware kit (hinges and latch), and its width is taken out of the picket and rail count. The gate frame lumber is not included, since gate styles vary a lot.

Are the prices accurate for my area?

The default prices are typical US home-center prices for pressure-treated pine and will not match every store. Open the price section and enter your local prices for a reliable total.

Related calculators

Last updated November 2026. Results are estimates. Check product labels and your local building code before you buy or build.