Fence Calculator

Plan a wood privacy, picket, vinyl panel or chain link fence in one place. Enter the length, height, corners and gates. You get posts, boards or panels, rails, chain link fabric, hardware, post-hole size and bags of concrete.

6 fencing calculatorsUpdated Free, no sign-upInstant results

Everything is calculated in your browser. Nothing you type is sent or stored.

Quick answer

Posts = (fence length ÷ post spacing) + 1, plus one for every corner and gate. A 150 ft, 6 ft tall wood privacy fence with 8 ft spacing, 2 corners and one 4 ft gate needs 23 posts, 57 rails, about 335 1×6 boards and 60 bags of 80 lb concrete.

How to use this fence calculator

  1. Pick the fence type. Wood privacy (boards butted tight), picket (boards with gaps), pre-made vinyl or wood panels, or chain link.
  2. Enter the total length of every run added together, the height, the number of corners and the number of gates.
  3. Set post spacing for wood and chain link, or panel width for panel fences.
  4. Read the order list: posts with the length to buy, boards or panels, rails, concrete, and hardware for chain link.

How many fence posts do I need?

posts = ⌈ length ÷ spacing ⌉ + 1 + corners + gates
Straight fence lengthPosts at 6 ftPosts at 8 ftChain link at 10 ft
50 ft1086
100 ft181411
150 ft262016
200 ft352621
300 ft513931

Spacing resets at every corner and gate, which is why each one adds a post. Wood privacy and picket fences use 6–8 ft spacing. Shorter spacing makes a stiffer fence in high-wind areas. Chain link line posts should never be more than 10 ft apart.

Post hole size and concrete per post

Make the hole about three times the post width and dig it to half the above-ground height (never less than 2 ft, and below your frost line). Put 4–6 in of gravel in the bottom for drainage.

Fence heightPostHoleConcrete per post80 lb bags
4 ft4×410–12 in × 2 ft~1.0 ft³2
6 ft4×410–12 in × 3 ft~1.5 ft³3
6 ft (gate post)6×616 in × 3 ft~3.6 ft³6
8 ft6×616–18 in × 4 ft~5.1 ft³9

These figures subtract the volume of the post itself. For an exact count per hole, including fast-setting mixes, use the fence post concrete calculator.

How many boards, pickets and rails?

boards = ( length × 12 ) ÷ ( board width + gap ) × 1.05
StyleBoard (actual)GapPer 8 ft sectionPer 100 ft
Privacy, 1×65.5 in018219
Privacy, 1×43.5 in028343
Picket, 1×43.5 in2.5 in16200
Shadowbox, 1×65.5 in, both sides—~27~330

Rails: two per section up to 4 ft high, three for 5–6 ft fences and four for 8 ft fences. Use pressure-treated 2×4s rated for ground contact near the soil.

  • Terminal postsHeavier posts (often 2⅜ in) at each end, every corner and both sides of each gate.
  • Line postsLighter posts (often 1⅞ in) between terminals, no more than 10 ft apart.
  • Fabric and top railFabric is sold in 50 ft rolls at the fence height. Top rail comes in roughly 10½ ft swedged sticks that slip together.
  • HardwareOne tension bar per fabric end, tension bands about every foot of height on terminals, and ties every 12–24 in on line posts and rail.

For a full hardware list, use the chain link fence calculator.

FenceTypical lifespanMaintenanceBest for
Pressure-treated wood15–20 yearsStain or seal every 2–3 yearsPrivacy on a budget, easy DIY
Cedar15–30 yearsOptional sealingNatural look, less warping
Vinyl20–30+ yearsWash occasionallyLow maintenance, clean look
Galvanized chain link15–20+ yearsVery littleSecurity, pets, large areas

Worked example

150 ft, 6 ft privacy, 1 gate, 2 corners
146 ft of boards (gate removed)
Sections at 8 ft
⌈146 ÷ 8⌉ = 19
Posts
19 + 1 + 2 + 1 = 23
Rails (3 per section)
57
1×6 boards (+5%)
146 × 12 ÷ 5.5 × 1.05 = 335
Concrete (1.55 ft³ per hole)
60 × 80 lb bags

All 6 fencing calculators

Detailed calculators for each part of a fence project.

Frequently asked questions

How many fence posts do I need?

Divide length by spacing, round up, add one, then add one per corner and gate. A straight 100 ft fence at 8 ft spacing needs 14 posts.

How far apart should fence posts be?

6–8 ft for wood privacy and picket fences, the panel width for vinyl (6 or 8 ft), and at most 10 ft for chain link line posts.

How many bags of concrete per fence post?

About 2–3 bags of 80 lb concrete for a 4×4 on a 6 ft fence in a 10–12 in hole 3 ft deep. An 8 ft fence on 6×6 posts needs about 8–9 bags per post.

How deep should fence posts be?

Half the above-ground height, never less than 2 ft, which means 3 ft for a 6 ft fence. In cold climates, go below the frost line.

How many fence boards do I need?

Length in inches ÷ (board width + gap). With 1×6 boards butted tight, an 8 ft section needs about 18. Add 5% for splits and culls.

How many rails does a fence need?

Two per section up to 4 ft, three for 5–6 ft fences and four for 8 ft fences.

Fence post guides

What this calculator assumes

  • Each gate opening is 4 ft and is subtracted from boards and rails. Gate posts are counted separately.
  • 4×4 posts (3.5 in actual) up to 6 ft high, 6×6 posts (5.5 in) for 8 ft fences. Hole diameter is 3× post width, depth is half the fence height (min 2 ft).
  • Concrete is 80 lb bags at 0.60 ft³ each, with the post volume subtracted. Boards include 5% spare.
  • Check local code, HOA rules and utility locations (call 811 in the US) before digging.