HOME & GARDEN

Fence calculator

Estimate bays, posts, panels or rail pieces, and material costs for one straight open fence run.

Calculated on your device

Enter your values

YOUR ANSWER

Results

Results appear here after calculation.

Calculation steps

Calculate to see the steps for your inputs; the worked example below is available without JavaScript.

Formula and method

Bays = ceiling(length ÷ maximum spacing). Posts = bays + 1 for an open run. Rail pieces = bays × rail rows.

Worked example

For 20 m of fence with a maximum spacing of 2.5 m, allow 8 bays and 9 posts. At $25 per post and $80 per panel, panel-mode materials cost $865.

Inputs, assumptions, and limitations

Equal spacing is calculated across the run. Actual panel widths, post thicknesses, end clearances, and ground conditions affect the installation.

The estimate assumes one open straight run with no gates. Closed boundaries, shared corner posts, multiple runs, slopes, and gates need separate accounting.

Rail mode prices posts and rails only; it does not include pickets, mesh, footings, fasteners, labour, or taxes. Confirm structural and local requirements independently.

Related calculators

INTERPRET THE ANSWER

Corners and openings affect the layout

A straight 24 m run with maximum 3 m bay spacing needs 8 bays and 9 posts when both ends need posts.

Assumptions and common mistakes

Separate runs may share corner posts. Gates, slopes, foundations, and local placement requirements are not captured by a simple straight-run count.

Use the worked example above to check the input convention before entering your own values. Displayed decimals are rounded; extra digits do not increase the precision of your measurements. Read about calculation accuracy and corrections.