Fence Calculator

Fence posts—
Fence panels—
Concrete bags (25 kg)—
Estimated panel cost—

How Fence Calculator is calculated: Posts = perimeter ÷ post spacing, rounded up (standard spacing 2.4 m); panels = posts; concrete = 1 bag per post, 2 for fences over 1.5 m high.

What is a fence calculator?

A fence calculator works out how many posts, panels and bags of concrete you need for a fence. You enter the total fence length, the spacing between posts, the fence height and the price per panel, and it gives you the post count, the panel count, the concrete bags and the estimated panel cost.

It is needed because a fence is bought in pieces — posts, panels and bags — while the boundary is measured as one length. A 40 m fence with posts every 2.4 m needs 17 posts and 17 panels, plus 17 bags of concrete at one bag per post. Guessing that count is how fences end up short by a panel or with posts spaced by eye.

The calculator uses the standard post spacing of 2.4 m, which matches the common 2.4 m panel width sold in most markets. It also assumes one 25 kg bag of concrete per post for fences up to 1.5 m high, and two bags per post for taller fences, because a taller fence catches more wind and needs a deeper, heavier footing.

The calculator is an estimator, not a site measurement. It assumes a straight run of fence on level ground, evenly spaced posts and the panel price you enter. Real boundaries have corners, slopes, gates and uneven ground, and panel sizes vary by supplier. A contractor's on-site measurement governs the final order.

How a fence calculator works

The first step is the post count: total fence length divided by the post spacing, rounded up. A 40 m fence with posts every 2.4 m is 40 ÷ 2.4 = 16.67, rounded up to 17 posts. Rounding up matters because the last bay is always shorter than the spacing, and it still needs a post at its end.

The second step is the panel count, which equals the post count in this calculator's method: one panel between each pair of posts, and one panel in the final short bay. Seventeen posts give 17 panels for a closed run, which is the standard way to count a fence that returns to its starting point.

The third step is the concrete. Each post needs concrete to hold it firm, and the calculator allows one 25 kg bag per post for fences up to 1.5 m high, and two bags per post for fences over 1.5 m high. Our 40 m fence at 1.5 m high needs 17 bags; the same fence at 1.8 m would need 34 bags, because taller posts need bigger footings.

The last step prices the panels. Panel count multiplied by your price per panel gives the estimated panel cost: 17 panels at ₹1,200 each is ₹20,400. That is the panel cost only — it does not include the posts, the concrete, the gates, the fixings or the labour, which vary by material and by site.

Post spacing: why 2.4 m is the standard

Post spacing is the distance between one fence post and the next, and 2.4 m is the standard because it matches the width of the common fence panel. When the spacing matches the panel, every bay takes one whole panel with no cutting, and the fence goes up fast and looks even.

Closer spacing makes a stronger fence. Posts every 2 m instead of 2.4 m add about a fifth more posts and panels to the same length, but the fence resists wind better and the panels sag less. In a windy spot, or for a tall fence, the extra posts are money well spent.

Wider spacing saves money but weakens the fence. Posts every 3 m need a third fewer posts, but the panels span further and can bow, and the fence leans sooner in soft ground. The calculator lets you try any spacing, but 2.4 m is the default for a reason — it is the spacing the panels are made for.

Whatever spacing you choose, keep it even. A fence with bays of different widths looks wrong and wastes panels, because each odd bay needs a panel cut to fit. Measure the total length, divide by the spacing, round up to whole posts, and let the last bay be the short one.

A worked example: a 40 m fence at 2.4 m spacing

Take a fence 40 m long, with posts every 2.4 m, a height of 1.5 m and panels at ₹1,200 each. Posts are 40 ÷ 2.4 = 16.67, rounded up to 17. Panels are 17 as well. Concrete is one bag per post at this height, so 17 bags. The panel cost is 17 × ₹1,200 = ₹20,400.

Now try closer spacing on a longer run. A 60 m fence with posts every 2 m needs 60 ÷ 2 = 30 posts and 30 panels. At 1.8 m high the concrete is two bags per post, so 30 × 2 = 60 bags. At ₹1,500 per panel the panel cost is 30 × ₹1,500 = ₹45,000. Closer posts and a taller fence together nearly triple the material of the first example.

And a short low fence: 24 m long, posts every 3 m, height 1.2 m, panels at ₹900 each. Posts are 24 ÷ 3 = 8, panels are 8, concrete is one bag per post at this height, so 8 bags, and the panel cost is 8 × ₹900 = ₹7,200. A small fence is a small job — but the same maths, and the same rounding up, applies.

Notice how the post count drives everything else. Panels follow posts one-for-one, concrete follows posts at one or two bags each, and the panel cost is panels times price. Get the post count right and the rest of the fence follows.

Who uses a fence calculator, and when

Homeowners use it first, usually when fencing a garden or a plot boundary and the supplier has quoted a price per panel. Knowing the post and panel count before you walk in stops the two classic mistakes: ordering too few panels and leaving a gap, or ordering too many and paying for panels that go back to the shop.

Fencing contractors use it to quote jobs. The post, panel and concrete counts are the material lines of the quote, and a quote built on these numbers is checkable — the client can see the fence length, the spacing and the price per panel, and verify every figure.

It also helps when comparing spacing options. Posts every 2 m cost more than posts every 2.4 m, but the fence is stronger; posts every 3 m cost less, but the panels span further. This calculator shows the count and the cost for each spacing, so the trade-off is visible before the posts go in the ground.

Farmers and plot owners use the same maths at a bigger scale. The formula does not change when the fence becomes a field boundary — only the numbers get bigger, and the panel count is replaced by rolls of wire or mesh measured in the same way.

Fence calculator vs a construction cost calculator

A fence calculator counts one structure for one boundary. A construction cost calculator prices a whole building by built-up area and finish level, and a boundary fence is only one line inside it. Use this tool when the question is 'how many posts for this fence', and the construction tool when the question is 'what will the house cost'.

The length maths is shared. The total fence length here is a length in metres, and if you measured it in feet a length converter will switch the units for you. The area of the plot the fence encloses is a different question — a square area calculator works that out, and the two numbers together describe the plot completely.

For the money side, the panel cost here is material only. Add the posts, the concrete, the gates, the fixings and the labour separately, and compare the total with the overall budget from a home renovation cost calculator if the fence is part of a bigger job.

One more comparison worth making: panels against close-board fencing built on site. Panels are faster and the count is simple — one per bay — while close-board needs boards, rails and more labour, and the material count is harder to estimate. This calculator is for panel fences; do not apply its one-panel-per-bay rule to a board-by-board fence.

Common fence mistakes

The first mistake is measuring the boundary once, on a map, and trusting it. Maps and old deeds are approximate, and a boundary that looks like 40 m on paper can be 43 m on the ground. Walk the boundary with a tape or a measuring wheel before you order.

The second mistake is forgetting the gates. A gate opening needs posts on both sides and no panel between them, so the panel count drops by one per gate and the post count stays the same. Measure each run between gates separately, and run the calculator on each run.

The third mistake is spacing posts by eye instead of by measurement. Posts that drift wider than the panel leave gaps that need cut panels, and posts that drift closer waste panels. Mark every post position with a string line before you dig the first hole.

The fourth mistake is skimping on concrete. A post set in loose soil with no concrete will lean within a year, and a leaning post pulls the panels with it. One 25 kg bag per post is the allowance here, two for fences over 1.5 m high — and in soft or sandy ground, allow more, not less.

The fifth mistake is forgetting the slope. A fence on a slope needs stepped panels or longer posts, and the post count is the same but the panel heights change. Walk the slope, note where it steps, and order the right panel heights for each bay.

How to use this fence calculator

Measure the total fence length in metres and enter it, then set the post spacing — 2.4 m is the standard, matching the common panel width. Pick the fence height: 1.2 m for a low fence, 1.5 m for a standard fence, 1.8 m for a tall one. Enter the price per panel from your supplier's quote.

The results update live: posts, panels, concrete bags and the estimated panel cost. Run it once per fence run — between corners and gates — and add the runs together for the whole boundary.

Remember the limits. The result is an estimate for a straight run on level ground, using the standard 2.4 m spacing, one 25 kg concrete bag per post up to 1.5 m high and two bags above that. Corners, slopes, gates and uneven ground all change the real need. A contractor's on-site measurement governs the final order.

Everything runs in your browser. No account, no sign-up, and nothing you type is sent anywhere. You can re-run it for every run of fence on the plot in a few seconds each.

Frequently Asked Questions

Divide the length by the post spacing and round up. At the standard 2.4 m spacing, 40 ÷ 2.4 = 16.67, rounded up to 17 posts. You need 17 panels as well, and 17 bags of concrete at one bag per post for a fence up to 1.5 m high.

The standard spacing is 2.4 m, because it matches the width of the common fence panel — every bay then takes one whole panel with no cutting. Closer spacing, such as 2 m, makes a stronger fence in windy spots; wider spacing, such as 3 m, saves posts but lets panels bow.

Allow one 25 kg bag of concrete per post for fences up to 1.5 m high, and two bags per post for taller fences, which catch more wind and need bigger footings. A 40 m fence with 17 posts at 1.5 m high needs 17 bags; the same fence at 1.8 m high needs 34 bags.

It assumes a straight run on level ground, the standard 2.4 m spacing, and one 25 kg concrete bag per post up to 1.5 m high, two above that. Real boundaries have corners, slopes, gates and uneven ground, and panel sizes vary by supplier. Measure each run on site; a contractor's measurement governs the final order.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.