Fence Calculator
Posts, rails, pickets, panels or chain-link parts, concrete and cost for your fence.
Wood fence posts go at most 8 ft apart: 100 ft of fence takes 13 sections and 14 posts, plus one post for each gate.
Pickets side by side on 2x4 rails.
Each run starts at the last one’s end post, so corners share a post.
Common: 39 in, 42 in and 48 in
Double gates: 10 ft and 12 ft
6 to 8 ft; at most 8 ft for 8 ft rails
The width on the panel’s label. Posts go one panel apart.
1x4: 3.5 in, 1x6: 5.5 in
Privacy 1/8 in. Spaced pickets: keep gaps under 4 in where kids or pets play
Your overlap: 1/2 in to 3 in
Run 2
Common: 39 in, 42 in and 48 in
Double gates: 10 ft and 12 ft
Run
Common: 39 in, 42 in and 48 in
Double gates: 10 ft and 12 ft
Post holes 12 in wide and 30 in deep, with 6 in of gravel in the bottom. 15 holes: 21.01 cu ft of concrete (0.78 cu yd), 1.4 cu ft each before extra. Bags: 36 of 80 lb mix, or 57 of 50 lb fast-setting mix. Posts 8 ft long: 6 ft above ground, 2 ft in the ground. Gate posts carry the gate's weight: use a bigger post and more concrete there. This calculator does not size them. Installed: about $2,400 ($1,440 to $3,360) for 96 ft of fence, gates extra. This estimates quantities, not structural design. Check your local building code. HOA and permit rules often limit fence height, style and placement, so check them before you buy.
- Run 1: 60 × 6 ft (length × height)
- Run 2: 40 × 6 ft (length × height)
- Fence: wood pickets, connected end to end
- Gates: 1 walk gate, 4 ft
- Posts: 8 ft apart, 4x4
- Pickets: 5.5 in wide, 1/8 in gaps
- Extra: 0%
- Installed price: $25 per ft
Chain-link fittings
Prices & extras
Auto: 2 rails up to 4 ft tall, 3 above
Sets the hole: 3 × the post width
Added to pickets, rails, panels and concrete.
Hired out, per foot of fence: $15 to $35
A 100 ft wood picket fence, 6 ft tall, in two connected runs with one 4 ft walk gate needs about 15 posts, 39 rails and 214 pickets, plus 36 bags of 80 lb mix to set the posts.
How to use the fence calculator
- Measure each straight run of fence, corner to corner, and enter its length and the fence height. Add another run for every change of direction.
- Pick the fence type: wood pickets, wood board-on-board, vinyl panels or chain link. The form asks only for what that type needs.
- Say how the runs meet. Runs connected end to end share the post at each corner. Separate runs each get two end posts. A closed loop, such as a yard fenced all the way around, has no end posts.
- Enter the gates in each run’s own fields. A walk gate and a drive gate each take one post more than the fence would without them.
- Open Prices & extras to set the rails per section, the post size, an extra for cuts and bad boards, and the installed price per foot.
- Print the slip. For chain link it carries the full list of fittings.
How the fence calculator works
Posts come first. Along each run the calculator places a post at each end and as many between as it takes to keep them no more than your spacing apart: the run length divided by the spacing, rounded up, plus one. Where runs meet, the shared corner post is counted once. Each gate then adds one post, because a gate needs a post on both sides and one of them is already in the count. The result lists end, corner and line or gate posts to check against your sketch.
Wood rails are 8 ft 2x4s, cut from post center to post center, so each section takes one rail per row. A fence up to 4 ft tall gets two rails; anything taller, up to 6 ft, gets three. Pickets are figured per run: the run in inches divided by the picket width plus the gap, rounded up. Board-on-board pickets cover their width minus the overlap. The gate openings are included, since a wood gate is usually built from the same pickets.
Vinyl panels sit one per section. The calculator spaces posts one listed panel width apart. Real post spacing is the panel plus the post, so the count never comes up short. A gate as wide as a panel takes that panel out of the order.
Chain link follows the parts tables from Master Halco and Lowe’s. Fabric and top rail cover the fence less the gate openings: fabric in 50 ft rolls, top rail in 10 ft 6 in sticks, one stick for every 10 ft because the swedged ends overlap. Terminal posts stand at every end and corner and on both sides of every gate; line posts go at most 10 ft apart. Each end and gate post takes a tension bar, and each corner takes two. Tension bands run 3 per bar up to 4 ft tall, then one fewer than the height in feet: 4 at 5 ft and 5 at 6 ft. Every bar also gets a rail end band and a rail end cup, every band a carriage bolt, every post a cap, and the fabric gets a tie every 2 ft along the top rail and every foot down each line post.
Call 811 before you dig the post holes: it is free and gets buried lines marked. Post concrete uses the same rule as the concrete calculator: a hole about 3 times the post’s width, deep enough to bury at least 2 ft of post or a third of the height, with 6 in of gravel in the bottom. Chain-link holes are round: 8 in wide and 30 in deep for terminal posts, 6 in wide and 24 in deep for line posts. An 80 lb bag of mix makes 0.6 cu ft. Use the gravel calculator for the gravel.
The installed cost multiplies the fenced length, gates left out, by a price per foot from 2026 cost guides.
This estimates quantities, not structural design. Check your local building code. Many towns and HOAs also set the height, style and placement of a fence, and some want a permit, so check those before you buy.
Fence types at a glance
| Fence | Posts apart | Installed per ft |
|---|---|---|
| Wood privacy, 6 ft | 6 to 8 ft | $15 to $35 |
| Wood picket, 3 to 4 ft | 6 to 8 ft | $15 to $35 |
| Board-on-board | 6 to 8 ft | $15 to $35 |
| Vinyl | one panel, 6 or 8 ft | $15 to $40 |
| Chain link | line posts 10 ft max | $12 to $40 |
What goes between the posts:
| Fence | Between the posts |
|---|---|
| Wood privacy | 3 rails of 8 ft 2x4, 5.5 in pickets with 1/8 in gaps |
| Wood picket | 2 rails of 8 ft 2x4, 3.5 or 5.5 in pickets |
| Board-on-board | 3 rails, 5.5 in pickets overlapping 1.5 in |
| Vinyl | 6 or 8 ft panels with their rails inside |
| Chain link | fabric in 50 ft rolls on a top rail of 10 ft 6 in sticks |
Worked example
- Runs: 60 ft and 40 ft, 6 ft tall, connected end to end
- Run 1: 60 ft ÷ 8 ft post spacing = 7.5, round up to 8 sections and 9 posts
- Run 2: 40 ft ÷ 8 ft = 5 sections and 6 posts
- Posts: 9 + 6 − 1 shared corner + 1 for the gate = 15 posts, each 8 ft long (6 ft above ground, 2 ft in the ground)
- Rails: 13 sections × 3 rails (over 4 ft tall) = 39 rails, 8 ft 2x4s
- Pickets, run 1: 720 in ÷ 5.625 in (5.5 in picket + 1/8 in gap) = 128
- Pickets, run 2: 480 in ÷ 5.625 in = 85.33, round up to 86; 128 + 86 = 214 pickets, the gate opening included
- Concrete: 12 in holes (3 × the 4 in post), 30 in deep with 6 in of gravel, so 24 in of concrete around a 3.5 in post = 1.401 cu ft per hole
- Bags: 15 holes × 1.401 cu ft = 21.01 cu ft ÷ 0.6 cu ft per 80 lb bag = 35.02, round up to 36 bags
- Cost: 100 ft − 4 ft of gate = 96 ft × $25 per ft = $2,400 installed (at $15 to $35: $1,440 to $3,360)
Questions people ask
How many fence posts do I need for 100 feet?
At 8 ft spacing, 100 ft of fence takes 13 sections and 14 posts, since every section needs a post at both ends. Add one post for each gate. Where two runs meet at a corner they share a post, so take one off for each shared corner. A closed loop has no end posts at all.
How far apart should fence posts be?
Wood posts go 6 to 8 ft apart, center to center, and no more than 8 ft when you use 8 ft rails. Vinyl posts go one panel apart, usually 8 ft, with 6 ft panels in some kits. Chain-link line posts go no more than 10 ft apart, with a heavier terminal post at every end, corner and gate.
How many rails does a 6 foot privacy fence need?
Three rails per section, top, middle and bottom, each an 8 ft 2x4 cut from post center to post center. A 3 to 4 ft picket fence usually has two. The example fence above has 13 sections at 6 ft tall, so it takes 39 rails.
How deep should a fence post hole be?
At least 2 ft, or a third of the post's height above ground if that is deeper, plus 6 in of gravel under the post. The hole is about 3 times the post's width: 12 in for a 4x4. A 6 ft fence uses 8 ft posts with 2 ft in the ground. In frost country, go below the frost line.
How many pickets do I need per foot of fence?
A 5.5 in picket with a 1/8 in gap covers 5.625 in of fence, so 60 ft, or 720 in, takes 128 pickets. Board-on-board with a 1.5 in overlap covers only 4 in per board, so a foot of fence takes 3. If you build the gate from the same pickets, count the gate opening as fence.
How much does a fence cost per foot?
Hired out, wood runs about $15 to $35 a linear foot, vinyl $15 to $40 and chain link about $12 to $40 in 2026 cost guides. Gates are priced on their own.