Kairox DIY Calc

Landscaping materials

Fence Calculator

Count posts, rail pieces, and approximate pickets for one straight fence run. The run is measured between the first and last post centers; corners, gates, shared posts, and different fence systems need separate treatment.

Enter your measurements

ft
ft
in
in
%

Example estimate

Bays in one straight run
13
Posts including both ends
14
Equal bay width (ft)
7.6923
Rail pieces (one per bay at each level)
39
Pickets with allowance (approximate run coverage)
220

Estimates only. Whole purchase counts round up; displayed measurements round to four decimal places. The allowance is an editable planning assumption.

How the calculation works

Bays = ceiling(run length ÷ maximum post spacing). Posts = bays + 1. Equal bay width = run length ÷ bays. Rail pieces = bays × rails per bay. Pickets ≈ ceiling(run length(in) ÷ (picket width + gap) × (1 + allowance/100)).

Define one run before counting posts

Use a single uninterrupted straight length. Maximum spacing is the greatest center-to-center distance permitted by your chosen design, not a universal recommendation. The tool divides the run by that value and rounds up to obtain a whole number of bays. It then distributes those bays equally to report their average center spacing. Confirm that the actual system permits the resulting arrangement.

Why the post count includes both ends

A line of bays needs a post at its start and another at its finish. That is why posts equal bays plus one for this model. When you calculate adjoining runs separately, a corner post may appear in both results. Reconcile shared posts on a site sketch before summing the order. Gate posts and special end conditions should be identified individually rather than absorbed into a blanket percentage.

Rail pieces are counted by bay and level

The rails-per-bay field represents the number of horizontal rail levels in your design. The output assumes one rail piece at each level in every bay. It does not optimize stock lengths, allow for splices, or determine a rail’s structural capacity. Compare the equal bay width with actual rail lengths and connection details before treating the calculated piece count as a shopping list.

Picket coverage is an approximation

Picket count uses the full run length divided by the sum of actual picket face width and gap. The allowance then rounds the estimated order upward. Posts, end offsets, and bay-by-bay gap adjustments are not subtracted, so check visible infill separately. This is a useful rough count for uniform pickets, but it does not model alternating patterns, overlapping boards, or a final partial-width piece.

Resolve site and design questions independently

Property boundaries, utility locations, footing requirements, wind exposure, and local fence restrictions are outside this calculation. The default spacing, rail levels, and gap are example inputs, not approved construction specifications. Keep a run schedule with post types and gate openings, and ask the supplier to check it against the intended fence system before you order or excavate.

Worked example

The example straight run does not divide evenly into its maximum spacing, so another bay is required. The displayed equal spacing is therefore smaller than the maximum. Rails follow the entered number of levels, while pickets use a separate face-width-and-gap estimate with an explicit allowance.

Example inputs — Run length, first to last post center: 100 ft; Maximum post spacing, center to center: 8 ft; Rail levels per bay — planning input: 3; Actual picket face width: 5.5 in; Gap between pickets: 0.5 in; Extra material allowance (planning estimate): 10 %.

Calculated example

Bays in one straight run
13
Posts including both ends
14
Equal bay width (ft)
7.6923
Rail pieces (one per bay at each level)
39
Pickets with allowance (approximate run coverage)
220

Frequently asked questions

Can I add several runs together?

Calculate each run, then reconcile shared corner or intersection posts on a drawing. Adding every post total without that reconciliation can count the same physical post more than once.

Does the result include a gate?

No. A gate changes run geometry and may require different posts, hardware, and foundations. Split the fence at the opening and plan the gate assembly independently.

Are rail pieces the same as stock boards?

Only if one purchased board supplies one required rail. The tool counts installed rail pieces and does not optimize cutting several pieces from longer stock or account for connection allowances.

Sources and scope