📍 Islamabad, Rawalpindi, Bani Gala & All Major Societies ⏱️ Mon - Sat: 8:00 AM - 8:00 PM
📞 Call 0335-5549384 💬 Chat on WhatsApp

Fence Calculator

Posts, bays, rails or pickets from your fence run — plus the concrete to set every post.

Enter your measurements

Every result updates as you type — there is no button to press. Use Reset values to start again.

Results

Fence quantities all follow from one decision: the post spacing. Set the posts and everything else is determined — the number of bays, the panels, the rails, the pickets, and the concrete for the holes. Change the spacing and every number changes with it.

This calculator handles panel fences, picket fences, post-and-rail and chain link. It also works out the concrete for the post holes, which is the quantity people most often forget and then guess at, usually low.

The formula

Posts = ⌈fence run ÷ post spacing⌉ + 1  ·  Bays = posts − 1

Rails = bays × spacing × rails per bay  ·  Pickets = run ÷ (picket width + gap)

Concrete per post = (π × hole radius² × depth) − (post section² × depth)

Post spacing sets everything else

Most timber and panel fences use bays of 8 feet, or about 2.4 metres. Chain link often stretches to 10 feet because the fabric is tensioned between posts rather than supported by them. Some decorative or lightweight fence styles go to 6 feet, which adds posts and cost but makes the fence noticeably more rigid.

The end post matters as much as the spacings. A run of 100 feet at 8 foot bays divides exactly into 12½ bays, so you need 14 posts — 12 full bays plus a shorter final bay, and an extra post to close it. Dividing the run by the spacing and rounding down will leave you one post short every time, which is why the calculator always adds the closing post.

Angles and ends need more substantial posts than the ones in between. A run of posts in a straight line only has to hold the fence up; an end post has to resist the entire fence pulling on it, and a corner post has to resist it from two directions. By tradition these are set deeper and frequently braced.

Post holes, depth and the one-third rule

A common rule is that a third of the post's total length goes into the ground. An 8 foot post becomes 2 feet 8 inches in the ground with 5 foot 4 inches above. At least 24 inches is usual for a 6 foot fence, and more in sandy or loose ground.

The depth should also reach below the frost line where ground freezing is a factor. Frost heave lifts an inadequately set post a little each winter, and after a few seasons the fence is visibly leaning. In cold climates this can mean a hole deeper than the one-third rule suggests — check your local building guidance.

Hole diameter should be about three times the post's width. For a 4 inch post that is a 12 inch hole, which is what the calculator defaults to. A hole that is too tight cannot take enough concrete to hold the post; a hole that is too wide simply uses more material for the same result.

Worked example

A 100 foot fence run at 8 foot spacing needs 14 posts and creates 13 bays. With two rails per bay that is 200 linear feet of rail — two runs of 100 feet, one per rail line.

Note that this is not 13 bays × 8 feet × 2, which would give 208 feet. The run is 100 feet, so the last bay is 4 feet rather than 8, and rails are cut to the run, not to the nominal bay width. Estimating rails from bays × spacing over-orders by 4% on this run, and by more whenever the run divides awkwardly by the post spacing. As a panel fence it needs 13 panels.

Post holes at 12 inches diameter and 24 inches deep, with a 4 inch post. Each hole is π × 0.5² × 2 = 1.571 cubic feet, less the 0.222 cubic feet occupied by the post, so 1.349 cubic feet of concrete — 0.038 cubic metres per post, or 0.535 cubic metres across all 14 posts. At a bag yield of 0.011 cubic metres per 25 kilogram bag, that is 49 bags.

That last figure surprises people. Setting 14 posts properly takes the best part of a pallet of post-mix, and discovering it halfway through is the difference between finishing the job and making a second trip.

Post-mix, dry mix and what actually holds a post

Fast-setting post-mix is the convenient option: pour it dry into the hole around the post, add water, and leave it. It is more expensive per kilogram than mixing your own, and its advantage is speed and no mess. Where you have many posts, a 1 : 4 cement-to-ballast mix is considerably cheaper.

Whatever you use, the concrete's job is not to grip the post — it is to be a heavy, wide lump of mass that the post cannot move through. That is why the hole needs both depth and width, and why a wider hole with more concrete resists lateral load far better than a narrow one. Pack the concrete well as you fill; air pockets reduce the mass you are relying on.

Crown the concrete slightly above ground level so water runs away from the post rather than pooling at its base. And use posts rated for ground contact — timber that is only treated for above-ground use will rot at the soil line long before the rest of the fence fails.

Fence height, planing permission and neighbours

The default height is 6 feet, which is the common limit for a domestic boundary fence without planning permission in many jurisdictions — but the rules differ, and they differ again for a fence at the front of a property, on a corner, or next to a highway. Check locally before building. In many places a 6 foot fence is permitted at the rear but only 3 or 4 feet at the front.

Wind load rises steeply with height, and a solid 6 foot fence presents a great deal of it. In exposed locations, posts that are simply planted 2 feet into ordinary soil will not survive. Options are deeper holes, more posts, or a design that lets some wind through.

Finally, if the fence is on a boundary, talk to the neighbour first. It is cheaper and considerably more pleasant than a dispute, and in many places the fence becomes a shared asset with shared obligations.

Posts and bays by fence run (8 ft spacing, all four types)
Fence runPostsBaysRails at 2 per bayConcrete (24 in hole, 4 in post)
20 ft4340 lin ft0.15 m³
50 ft87100 lin ft0.31 m³
100 ft1413200 lin ft0.54 m³
150 ft2019300 lin ft0.76 m³
200 ft2625400 lin ft0.99 m³
300 ft3938600 lin ft1.49 m³

Frequently asked questions

How many fence posts do I need?
Divide the fence run by the post spacing, round up, and add one for the closing post. A 100 foot run at 8 foot spacing gives 12.5, which rounds to 13 bays, plus one post — 14 posts in total. Forgetting the extra post is the most common error in fence estimating.
How far apart should fence posts be?
8 feet (about 2.4 metres) for most timber and panel fences. Chain link often goes to 10 feet, since the fabric is tensioned between posts. Shorter spans of 6 feet add posts and cost but are noticeably more rigid, and are worth it in exposed or windy locations.
How deep should fence posts be set?
One third of the post's total length is a common rule, so an 8 foot post goes 2 feet 8 inches into the ground. At least 24 inches is usual for a 6 foot fence. The hole must also reach below the frost line, or frost heave will lift the post a little each winter.
How much concrete do I need per fence post?
About 0.038 cubic metres — roughly two 25 kilogram bags of post-mix — for a 12 inch diameter hole 24 inches deep with a 4 inch post. Across 14 posts that is 0.54 cubic metres, or about 49 bags. Many people underestimate this badly; it is worth ordering in one go.
How many pickets do I need for a picket fence?
Divide the fence run by the picket width plus the gap, and add one for the closing picket. At 4 inch pickets with a 2 inch gap each picket occupies 6 inches, so a 100 foot run takes 201 — 200 pickets would span 99 feet 10 inches and leave the last gap open. A tighter gap uses more pickets and blocks more wind, which matters on an exposed site.
How tall can I build a fence without permission?
It varies by country and by location within a country — often 6 feet at the rear and 3 or 4 feet at the front, with stricter limits on corners and next to highways. Check the current local rules before you build, and talk to neighbours if the fence is on a shared boundary.

Related tools

About the company that publishes these tools

Al Sadat Builders is a construction contractor based in Islamabad, Pakistan, led on site by Syed Mujtaba Shah. These calculators are free to use wherever you are — they print no currency and assume no country. If you are building in Islamabad, Rawalpindi or Bani Gala, we can survey the plot, price the job and hand you an itemised BOQ.

Chat with Syed Mujtaba Shah 💬