Fence calculator

Estimate posts and boards for connected, closed, or separate fence runs.

Measurement system

Changing units clears dimensions and coverage rates.

Separate lengths with commas, spaces or newlines. Up to 20 segments; a closed loop needs at least 3.

Shared corners depend on layout. No gates or post-width deductions.

Assumptions & limits

Enter one length per straight segment. Each segment is divided into equal bays no longer than maximum post spacing. Connected open runs share corner posts and have two ends; a closed loop needs at least three segments and shares every corner; separate runs each have two ends. Board infill uses each full bay length without deducting post width. Boards per bay = ceil((bay length + gap)/(board width + gap)), allowing the last board to be trimmed. Waste applies only to the combined board count. No gates, rails, holes, opening deduction or offcut reuse; no structural sizing. Closed-loop lengths are assumed to describe your chosen boundary.

Dimensions and rates: up to 1,000,000, with at most 6 decimal places. Dimensions must be positive except openings, area, gaps, trim, repeat and slope rise/run; only rise may be negative. Waste: 0–100%. Counts are whole numbers; coats: 1–20. Lists: 1–20 lengths, up to 2,000 characters. Optional prices: 0–999,999,999.99; costs up to 999,999,999,999.99 round to cents in your currency.

YOUR ANSWER

Posts needed

11 posts

Boards with waste
187
Boards before waste
170
Bays
10
Straight segments
1
Layout
Connected open
How it’s calculatedCalculated on your device

Bays = Σ ceil(segment ÷ max spacing). Posts = bays + 1 (connected open), bays (closed), or bays + runs (separate). Boards/bay = ceil((bay length + gap)/(board width + gap)).

Displayed values may be rounded. Calculations keep the underlying precision.

Enter one length per straight segment. Each segment is divided into equal bays no longer than maximum post spacing. Connected open runs share corner posts and have two ends; a closed loop needs at least three segments and shares every corner; separate runs each have two ends. Board infill uses each full bay length without deducting post width. Boards per bay = ceil((bay length + gap)/(board width + gap)), allowing the last board to be trimmed. Waste applies only to the combined board count. No gates, rails, holes, opening deduction or offcut reuse; no structural sizing. Closed-loop lengths are assumed to describe your chosen boundary.

The formula, made simple

Estimate posts and vertical infill boards for connected open fencing, a closed loop or independent straight runs. Enter each straight segment separately to account for corners.

Bays per segment = ceil(segment length ÷ maximum spacing). Equal bay length = segment length ÷ bays. Boards per bay = ceil((bay length + gap)/(board width + gap)). Posts = total bays + 1 for connected open fencing, total bays for a closed loop, or total bays + run count for separate runs. Board purchase count = ceil(base boards × (1 + waste/100)).

A worked example

One 20 m open run with maximum spacing 2 m needs 10 bays and 11 posts. With 0.1 m boards and 0.02 m gaps, each bay needs 17 boards: 170 total or 187 with 10% board waste.

A few useful answers

How are corner posts counted?

Connected open segments share one post at every join. A closed loop also shares the last-to-first corner. Independent runs each need their own two endpoints. A closed loop requires at least three entered segments.

Are gates and rails included?

No. The model counts posts and vertical boards only, uses the full bay width for infill, and permits trimming the last board. It does not deduct post widths or design structural spacing.

Back to calculator ↑