VroxifyProject Math for Home & Yard

Fence Calculator

Count the posts, rails, pickets and concrete bags for a fence, including corners, gates and post holes.

Fence materials calculator

One run, or several separated by commas, e.g. 40, 60, 40
UK panels: often 1.83 m (6 ft)
0 for panel fencing
0 to skip pickets
A 4×4 is 3.5 in actual
About 3× post width
For soil/sod

Results appear here as you type.

How it works

Estimate only. Check product labels, your supplier and local rules before you buy or build.

How the fence calculator works

A post-and-rail fence breaks down into repeating sections (bays). Each section spans the gap between two posts, carries a set number of rails, and is covered by pickets or boards (or one panel). The calculator divides each run by your post spacing, rounding up, to count sections. It then adds the posts at the ends, the rails, the pickets, and the concrete to set every post.

How the runs connect changes the post count. Runs joined end to end share their corner posts, so a chain needs one more post than it has sections. A fully enclosed loop needs exactly as many posts as sections. Separate runs each need their own end posts. Each gate adds one post, a simple allowance for the extra post a gate opening needs. Check this against your own layout, because gate hardware and opening widths vary.

The formulas

Sections per run = run length ÷ post spacing   (round up)
Posts            = sections + 1 (joined) | sections (closed loop) | sections + runs (separate), + gates
Rails            = sections × rails per section
Pickets          = (total length − gate widths) ÷ (picket width + gap)
Concrete / post  = π × (hole Ø ÷ 2)² × fill depth − post width² × fill depth
Fill depth       = hole depth − gravel layer − unfilled top

Post-hole guidance from the manufacturer

The default hole numbers follow QUIKRETE’s published post-setting instructions. Make the hole about three times the post’s width. Make it 1/3 to 1/2 of the post’s above-ground height deep, plus 6 in. Put 6 in of gravel in the bottom, and fill the concrete to 3–4 in below ground so soil or sod can finish the top. QUIKRETE’s Fast-Setting data sheet also gives a check figure: two 50 lb bags set a 3 in square post in a 9 in hole that is 30 in deep. Filled all the way, that hole works out to about 2.5 bags by geometry. So expect real-world use to land near the calculator’s figure, and keep a spare bag.

In the UK, products such as Blue Circle Postcrete come in 20 kg bags. Their bag yield isn’t listed on the product page, so check the bag or the technical data sheet before using it here.

Worked examples

100 ft of picket fence with one gate

100 ÷ 8 = 12.5, so 13 sections and 14 posts, plus 1 for the gate: 15 posts. Two rails per section is 26 rails. With 5.5 in boards butted together over 96 ft (100 ft less a 4 ft gate): 1,152 ÷ 5.5 = 209.5, so 210 pickets. With 10.5 in holes 30 in deep, 6 in of gravel and 3 in left at the top, each post takes 0.90 ft³ of concrete. That is 2.4 bags of 50 lb fast-setting mix, or 37 bags for all 15 posts.

Three sides of a garden in 1.83 m panels (metric)

Runs of 10, 15 and 10 m joined at the corners: 6 + 9 + 6 = 21 panels and 22 posts. With 100 mm posts in 300 mm holes 750 mm deep (150 mm gravel, 75 mm top), each hole takes about 32 litres of concrete, or 2.75 bags of 25 kg. That comes to about 61 bags in total.

Before you dig

  • Find buried services. In the US, contact 811 a few days before digging; utilities will mark their lines for free. Elsewhere, check with your utilities and use a cable detector.
  • Check the rules. Height limits, permits, boundary lines, frost depth and HOA rules vary by place. Confirm them with your local authority before buying materials.
  • Brace posts while the concrete sets. QUIKRETE says to wait 4 hours before putting strain on posts set with fast-setting concrete.
  • Buy a few spare boards. Lumber includes the odd warped or split piece.
Estimates only. Post size, depth and spacing for tall, heavy or wind-exposed fences (and anything structural like deck posts) should follow local code and a qualified professional.

Frequently asked questions

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

With posts every 8 ft, 100 ft makes 13 sections, so 14 posts for a single straight run. Add posts for gates and separate runs.

How far apart should fence posts be?

For wood privacy and picket fences, 6–8 ft is common in the US. UK panel fences use the panel width, often 1.83 m (6 ft). Follow the fence product’s instructions and local wind and soil conditions.

How much concrete do I need per fence post?

It depends on the hole. For a 4×4 post in a 10.5 in hole 30 in deep, with 6 in of gravel and 3 in left at the top, it’s about 0.9 ft³, or 2.4 bags of 50 lb fast-setting mix.

How big should a post hole be?

QUIKRETE’s guidance is a hole about three times the post’s width, 1/3 to 1/2 of the above-ground post height deep plus 6 in, with 6 in of gravel at the bottom. Local frost depth and codes may require more.

How many pickets do I need?

Divide the fence length (minus gates) by the picket width plus the gap. With 5.5 in boards and no gap, 96 ft needs 210 pickets. Add a few spares.

Sources

  1. QUIKRETE: Setting posts in concrete (hole size and depth guidance)
  2. QUIKRETE Fast-Setting Concrete Mix (No. 1004) data sheet: yields incl. 25 kg / 30 kg bags, post-setting method
  3. Tarmac Blue Circle: Postcrete product page (UK, 20 kg bag)
  4. Call 811 (US): contact before you dig
  5. NIST Office of Weights and Measures: Unit conversion

Last reviewed 2026-10-27. Found a mistake? Tell us and we will fix it.