Menu

Fence Calculator

Work out how many posts, rails, pickets, screws and bags of concrete you need for a wood, vinyl, picket or chain-link fence. Get materials and total cost for any fence run.

Fence Estimating Guide

Post spacing, hole depth, concrete, rails, pickets and cost advice behind every number the calculator shows.

  • Updated December 2026
  • About 10 min read
  • Metric and imperial
  • Wood, vinyl, picket and chain-link
Quick answer: posts = bays + 1 + corners + gates + ends. A 100 ft fence at 8 ft spacing has 13 bays and 13 to 14 posts on a straight run. Each 9 in wide, 2.5 ft deep hole holds about 1.5 bags of 50 lb concrete. A 6 ft wood fence uses 3 rails per bay and about 5.5 in pickets with a 1/4 in gap.
13-14posts for 100 ft at 8 ft spacing
1.5 bags50 lb concrete per 9 x 30 in hole
3 railsper bay for a 6 ft fence
2 ft+minimum hole depth

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

Bays = ceil(fence length / post spacing)
Posts = bays + 1 + corners + gates + ends

2. Rails, pickets and fixings

Rails = bays x rails per bay x (1 + waste)
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

Hole volume = pi x (hole diameter / 2)² x hole depth
Post volume = pi x (post width / 2)² x buried depth
Concrete = (hole volume - post volume) x post count
Example: a 100 ft wood privacy fence at 8 ft spacing has 13 bays and 14 posts (13 bays + 1 end + 0 corners + 0 gates + 0 extra ends). Each 9 in wide, 2.5 ft deep hole holds pi x 0.375² x 2.5 = 1.10 cu ft of concrete. With 4 x 4 in post volume of 0.22 cu ft, net concrete per hole is 0.88 cu ft. At 1.5 bags per hole, buy 21 bags of 50 lb mix.

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 diameterDepthConcrete volume50 lb bags80 lb bags
6 in (150 mm)2 ft (600 mm)0.39 cu ft11
8 in (200 mm)2 ft (600 mm)0.70 cu ft1.51
9 in (230 mm)2 ft (600 mm)0.88 cu ft21.5
9 in (230 mm)2.5 ft (760 mm)1.10 cu ft2.51.5
10 in (250 mm)3 ft (900 mm)1.64 cu ft3.52
12 in (300 mm)3 ft (900 mm)2.36 cu ft53

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.

How to Use the Fence Calculator

Seven quick steps from fence run to a shopping list.

  1. Measure the fence runMeasure the total length of the fence line, then split it into straight runs, corners and gate openings. For an irregular boundary, use the Several runs option.
  2. Choose the fence typePick wood privacy, picket, split rail, vinyl, chain-link or a custom fence. Each one loads typical post spacing, rails per bay and picket width.
  3. Set the post spacing and heightType the post spacing and the above-ground post height. The calculator works out how many posts, how deep to bury them and how many bags of concrete you need.
  4. Add corners and gatesEnter the number of corners, gate posts and end posts. Each one adds a post and often needs a larger post size or a stronger footing.
  5. Choose the rails, pickets and fixingsSet rails per bay, picket width and gap, and screws or nails per connection. The calculator returns rails, pickets, screws, and (for chain-link) fabric and top rail.
  6. Add concrete, gravel and pricesEnter the post hole diameter and depth, concrete bag size, and prices for timber, concrete, screws and labour.
  7. Read, copy or print the resultsCheck posts, rails, pickets, concrete, screws and cost, then copy the results, download a CSV, save the fence plan as SVG or print a PDF.

Tip: use the fence type chips to load typical post spacing, rails and picket sizes, then adjust them for your design.

Frequently Asked Questions

Short answers about posts, spacing, concrete, rails, pickets and cost.

How many fence posts do I need?

Divide the total fence length by the post spacing, then add 1 for the end post and 1 more for each corner, gate or end. A 100 ft fence with 8 ft spacing needs 13 posts on a straight run, plus extra for corners and gate posts.

How deep should fence posts be?

Posts should be buried 1/3 of their above-ground height, or at least 2 ft (600 mm) for a 6 ft fence. In frost-prone areas, bury deeper than the local frost line, often 3 ft (900 mm) or more.

How much concrete per fence post?

A 6 in (150 mm) diameter post hole, 2 ft (600 mm) deep, holds about 0.85 cubic feet (24 litres) of concrete, or roughly 1.5 to 2 bags of 50 lb (22 kg) fast-setting mix. The calculator gives the exact number based on hole diameter, depth, post size and the number of posts.

How many bags of concrete for 10 fence posts?

At one 50 lb bag per post, 10 posts need 10 bags. If each hole needs 1.5 bags, buy 15 bags and keep one spare. Fast-setting concrete is mixed in the hole, so bag count matters more than mixing ratio.

How many pickets do I need?

Divide the fence length by the picket width plus the gap. A 100 ft fence with 5.5 in pickets and a 1.5 in gap (7 in module) needs 100 x 12 / 7 = about 172 pickets. Add 5 to 10% for cuts, breaks and waste.

How many rails do I need?

Use 2 rails for a 4 ft fence, 3 rails for a 6 ft fence, and 4 rails for an 8 ft fence. Multiply the number of bays (spacing between posts) by the number of rails per bay, then add 10% for waste and cuts.

How far apart should fence posts be?

Wood posts are usually 6 to 8 ft apart. Vinyl and composite panels come in fixed widths, often 6 or 8 ft. Chain link posts are 8 to 10 ft apart. Closer spacing gives a stronger fence but costs more in posts and concrete.

How much does a fence cost?

Wood privacy fence costs 15 to 30 per linear foot installed. Vinyl costs 20 to 40. Chain link costs 10 to 20. Split rail costs 8 to 15. Material is about half the cost, with posts, concrete and labour making up the rest. Enter your own prices in the calculator.

What size post for a 6 ft fence?

Use 4 x 4 in (100 x 100 mm) posts for a 6 ft fence with 8 ft spacing. Use 6 x 6 in (150 x 150 mm) for corner posts, gate posts and any post holding a gate. Longer spans or heavier wind loading need bigger posts.

How do I stop wood fence posts rotting?

Use ground-contact rated pressure-treated timber, set the post base in gravel for drainage, and use a concrete collar that slopes away from the post so water runs off. Some installers use post savers or wrap the base in bitumen tape.

How many fence posts per metre?

At 2.4 m (8 ft) spacing, you need 0.42 posts per metre of fence. At 1.8 m (6 ft) spacing, 0.55 per metre. Multiply the fence length in metres by that figure and add 1 for the end, plus 1 for each corner or gate.

Can I use the calculator for chain-link and vinyl?

Yes. The post and concrete calculations work for any fence. For chain-link, adjust post spacing to 8 to 10 ft and add tension wire, top rail and fabric to the material list. For vinyl, use the panel width as the post spacing.

Do I need to notch the posts for rails?

For wood fences, rails are usually face-nailed or set into notches cut into the posts. Notching is stronger but slower. Metal brackets and face-screwing are quicker and easier to repair. The calculator counts rails and screws regardless of how they are fixed.

What is the best fence for privacy?

A 6 ft solid wood privacy fence with dog-eared or flat-top boards is the most common. Vinyl privacy fence with tongue-and-groove pickets costs more but needs less maintenance. Add a lattice or shadowbox top for airflow, and check local height limits before building.

Related Calculators and References

Order the concrete and surrounding hard landscaping, then verify your fence choices against trusted sources.