This calculator estimates panels, posts, and rails for a straight fence run from its length, panel width, and post spacing. Use it while planning a level boundary fence or comparing pre-made panel systems before buying materials. It does not verify the legal boundary, design for wind load, count gates and corners automatically, size foundations, or include gravel boards, caps, fixings, concrete, delivery, and labour. US mode uses feet and common 6 or 8 ft bays, while UK mode uses metres and typical metric panel widths; the same whole-bay rounding applies. Site slope and manufacturer systems change the parts list, so take the result and a sketch to your fencing supplier or installer and ask them to confirm post type, bay spacing, gate hardware, and concrete.
How this is calculated
Panels are the fence length divided by panel width, rounded up. Posts are the length divided by post spacing, plus one end post. Most panel systems use two horizontal rails per section.
This assumes a straight run on level ground. Slopes, gates, and corner posts need extra parts the linear model does not add automatically.
Measure the run along the ground where the fence will sit, not the property line on a title plan if those differ. Inside corners and dog-legs should be split into straight segments and added.
Panel height changes wind load and post size more than panel count. A taller privacy fence on the same length still uses the same bay math only when panel widths match — the concrete and post section may not.
Enter your dimensions below. Results update as you type. Costs are planning ranges — confirm with a local supplier before you order.
Fence run
ft
ft
ft
Section between posts
ft
Add cost details
$
$
Results
Fence run
100 ft
6 ft high
Panels
13 panels
Posts
14 posts
Top and bottom rails
26 rail lengths
Two rails per panel section
Estimated materials
$1,221 – $1,493
Concrete for post holes and fixings are not included.
Frequently asked questions
Panel width vs post spacing?
They are often the same on pre-made panel systems. On post-and-rail builds you may set spacing independently — enter what matches your design.
Corner and gate posts?
Add one extra post per corner and two posts per gate opening beyond this straight-run count.
Concrete for posts?
Post hole concrete is not included. Use the Concrete Bag Calculator on each hole size or the main Concrete Calculator for a continuous footing.
Sloped ground?
Stepped or racked panels change panel count slightly. Order one extra panel on long runs with grade change.
Labour cost?
Materials only here. Installation is often priced per linear foot — add it through the Project Cost Estimator.
Metric fences?
Enter length and panel size in metres. Post spacing in metres works the same way.
Do I need gravel under post concrete?
Many installs put a little gravel in the hole for drainage before concrete. That volume is tiny compared with the fence panels — estimate it separately if your soil holds water.
Pickets vs panels?
If you are building from individual pickets, convert the run into panel-width bays or count pickets from spacing. This tool is aimed at panelised systems.
Last updated 2026-09-01. Formulas are planning methods — confirm with a supplier before you order. See how we calculate and the disclaimer.