Why post spacing decides the cost
Posts are the most expensive single item in a fence, and they are the hardest to change later. Moving from 8 ft spacing to 6 ft spacing increases the post count by about a third and the concrete by the same. Closer spacing gives a stronger fence with less sag, but every extra post also means another hole, another bag of concrete and another fastener. The calculator makes that trade-off visible so you can decide where the fence needs extra strength and where standard spacing is fine.
Concrete and hole depth matter just as much. A shallow footing in soft ground will let the post lean within a season. A footing that is too narrow lets water run down the post and rot it. Getting the hole diameter, depth and concrete volume right is what keeps a fence straight for twenty years. The calculator works these out from the hole diameter, depth and post size, and gives the bag count for the concrete you plan to buy.
What this fence calculator gives you
Enter the fence run, spacing and post sizes and the tool returns the number of bays, posts, rails and pickets, the volume of concrete per hole and in total, the number of bags by size, and the fasteners in screws or nails. It also gives chain-link fabric, top rail and tension wire if you choose a chain-link fence.
A fence elevation drawing shows the post spacing, post height above ground and the picket and rail layout. A table shows how the post and rail count changes at different spacings so you can compare 6, 8, 10 and 12 ft spacing at a glance. Copy the results, download a CSV, save the fence plan as an SVG or print a one-page report.
How to use the fence calculator
The seven steps below cover each input in order. In short: choose the fence type, enter the run length, set the spacing, add corners and gates, set the hole size, add prices and read the results. Because everything recalculates as you type, you can compare 6 ft and 8 ft spacing in a few seconds.
Formulas and worked examples
Every figure comes from a few simple formulas.
1. Bays and posts
Posts = bays + 1 + corners + gates + ends
2. Rails, pickets and fixings
Pickets = fence length / (picket width + gap) x (1 + waste)
Fixings = rails x 2 x screws per connection + pickets x rails x screws per connection
3. Concrete per post
Post volume = pi x (post width / 2)² x buried depth
Concrete = (hole volume - post volume) x post count
Concrete per post
Fast-setting concrete is the simplest option for fence posts: pour it dry into the hole, add water and let it set. The volume depends on the hole and the post. Use the table below as a quick guide, and enter your own hole size in the calculator for an exact figure.
| Hole diameter | Depth | Concrete volume | 50 lb bags | 80 lb bags |
|---|---|---|---|---|
| 6 in (150 mm) | 2 ft (600 mm) | 0.39 cu ft | 1 | 1 |
| 8 in (200 mm) | 2 ft (600 mm) | 0.70 cu ft | 1.5 | 1 |
| 9 in (230 mm) | 2 ft (600 mm) | 0.88 cu ft | 2 | 1.5 |
| 9 in (230 mm) | 2.5 ft (760 mm) | 1.10 cu ft | 2.5 | 1.5 |
| 10 in (250 mm) | 3 ft (900 mm) | 1.64 cu ft | 3.5 | 2 |
| 12 in (300 mm) | 3 ft (900 mm) | 2.36 cu ft | 5 | 3 |
Corner posts and gate posts carry more load and should be set in a larger hole, usually 10 to 12 in wide and 3 ft deep. On clay ground, slope the top of the concrete away from the post so water runs off. On sandy ground, use a wider collar to spread the load.
Rails and pickets
Rails are the horizontal members that carry the pickets. A 4 ft fence uses two rails, a 6 ft fence uses three, and an 8 ft fence uses four. Rails are sold in 8, 10, 12 and 16 ft lengths, and each bay usually uses one rail per level, cut to fit.
Pickets are the vertical boards or slats. The number you need depends on the picket width and the gap between them. Privacy fences use boards butted tight or with a small gap; picket fences use wider gaps for a classic look. The calculator uses the picket width and gap to work out the count.
- Wood privacy fence. 5.5 in dog-ear boards butted together or with a 1/4 in gap.
- Picket fence. 3 to 4 in pickets with a 1.5 to 2 in gap for a classic look.
- Shadowbox fence. Alternating boards on both sides, so the fence looks the same from either direction.
- Vinyl fence. Tongue-and-groove pickets that slot into the rails; no gap.
- Chain-link. Fabric comes in rolls of 50 or 100 ft; cut and stretch to fit.
Height, code and pool barriers
Fence height is usually limited by local code, especially in front yards and on corner lots. Even where a taller fence is allowed, wind load and fence strength must be checked. A 6 ft solid fence catches a lot of wind, and posts sized for a 4 ft picket fence may not be strong enough.
- Front yards. Often limited to 3 or 4 ft (900 to 1200 mm) so drivers can see over them.
- Side and rear yards. Often 6 ft (1800 mm), sometimes 8 ft (2400 mm) with a permit.
- Corner lots. Extra setback at the corner for sight lines, even at a lower height.
- Pool barriers. Usually 4 ft (1200 mm) minimum with self-closing and self-latching gates, non-climbable surfaces and no gaps larger than 4 in (100 mm). Check local code.
- Commercial and industrial. Often 8 ft (2400 mm) with heavier posts and mesh fabric.
Set fence lines back from the boundary by at least the required distance and confirm the boundary location with a survey before digging. Mark underground services before you start digging. Call the local utility locator service, which is free in most countries.
Common fence mistakes
- Posts too shallow. A 1 ft hole in soft ground will lean in a season. Bury at least 2 ft for a 6 ft fence and deeper than the frost line.
- Hole too narrow. A hole the same width as the post has no room for concrete, so the post moves. Use a hole at least 4 in wider than the post.
- Not treating cut ends. Every cut on pressure-treated timber should be re-sealed with preservative, otherwise the exposed end rots first.
- Ignoring the frost line. In cold climates the footing must reach below the frost line or the post will lift in winter.
- Uneven post height. Set a string line along the fence and mark every post to the same height before setting.
- Too few fasteners. Rails should be fixed with at least two screws or nails at each end. Pickets need two fixings per rail.
- No gate posts reinforcement. Gates swing, so their posts need bigger sizes and deeper footings, and often a diagonal brace.
- Forgetting the boundary and services. Check the boundary, code setbacks and underground utilities before digging.
- Wrong concrete. Use fast-setting post mix or general-purpose concrete. Do not use pure cement, and do not mix too wet.
Fence calculator: frequently asked questions
The most common questions are answered in short form in the FAQ section underneath, and the answers below cover three more.
Does the calculator work for chain-link and vinyl?
Yes. The post, concrete and fastener maths is the same for any fence. For chain-link, choose a chain-link type and the calculator adds fabric, top rail and tension wire. For vinyl, choose a vinyl type and the calculator uses the panel width as the post spacing.
Can I use it for a picket fence with decorative rails?
Yes. Set the picket width, gap and rails per bay to match your design, and the calculator returns picket and rail counts. For heavy decorative rails, raise the screws per connection so the fastener count is realistic.
Is my data stored?
No. All of the calculation runs inside your browser. Nothing you type is sent to a server.