Post-center layout and panel bays
This tool plans one straight level run between the centers of its endpoint posts. Enter a verified maximum post-center span S for the panel system. For a positive panel segment of length L, bay count N = ceil(L/S), then redistribute that segment uniformly with actual spacing L/N. A zero-length segment has no panel bays. Without a gate, distinct posts = N + 1.
Panel bay count assumes one trim-to-fit or site-built section per bay. It is not confirmation that a fixed-width kit fits the calculated spacing or may be trimmed. Post-center spacing is different from a clear gap between post faces; panel widths, brackets and attachment details must be converted to the correct basis from the product instructions. No post size is inferred.
Optional gate location
Let total run be R, gate-post center span G, and distance from the start-post center to the first gate-post center be O. Left panel segment = O; right panel segment = R − O − G. Calculate each segment’s bays separately, then add them. With a gate, total distinct posts = left bays + right bays + 2. The two gate posts are counted once, including when the gate is at an endpoint. A gate occupying the entire run has two posts and no panel bays.
Gate span is not the gate leaf’s nominal width or a clear pedestrian opening. Use the required post-center measurement after allowing for the product’s post widths and hardware. The calculator counts one gate opening; it does not choose single/double leaves, frame components, hinges, latches, reinforcement or gate-post foundations.
US worked examples
A 96 ft run with maximum span 8 ft gives 12 panel bays at 8 ft and 13 distinct posts: two ends and eleven intermediate posts. These values are arithmetic examples, not a universal spacing recommendation.
Add a gate with centers 4 ft apart starting 32 ft from the first endpoint center. The left segment is 32 ft: four bays at 8 ft. The right is 60 ft: eight bays at 7.5 ft. Total = 12 panel bays and 14 posts, comprising two gate posts, two non-gate end posts and ten intermediate posts. With three separate rail rows per panel bay, count 36 rail pieces. Rails across the gate opening are excluded.
Moving that gate to the start gives no left panel segment and 92 ft of right segment. The result is 12 bays at 7.667 ft and 14 posts: two gate posts, one non-gate end and eleven intermediates. Shared endpoint/gate posts are not counted twice. Subtracting gate footage and dividing the combined remainder without splitting at the gate can produce a different, incorrect layout count.
Metric example and separate rails
A 30 m run at a maximum 2.4 m post-center span gives 13 bays at 30/13 m and 14 posts. For a 3 m gate-post span starting at 9 m, the segments are 9 m and 18 m. They need four and eight bays respectively, each at 2.25 m, giving 12 panel bays and 14 posts.
Optional separate rails = panel bays × whole rail rows per bay. This assumes one independent piece per bay per row and does not estimate stock lengths, splices or offcut reuse. Leave the option off when rails are already part of panel kits. Rail cut lengths cannot be inferred from center spacing alone without the attachment and post geometry.
Scope and validation
Only one straight level run and at most one gate opening are included. Corners, shared posts across runs, stepped/racked slopes, pickets, fence heights, soil, wind loads, post/footing sizing, concrete, hardware, spares and costs need separate takeoffs or specifications. Reconcile shared corner/end posts before combining multiple runs. This calculator does not establish legal fence location, allowable spacing or structural adequacy.
Positive run/span inputs must be 0.000001–1,000,000 ft after conversion; gate offset may be zero. Offset plus gate span must fit inside the run. At most 1 million panel bays are allowed; separate rail rows must be a whole number from 1 to 10. These are software limits. Gate and rail inputs are ignored when their options are off. Unit selectors retain the number you entered rather than automatically converting it; match each unit to its measurement. Exact decimal fractions determine bay and post counts before three-decimal display rounding, so a displayed spacing is not a construction tolerance.
Primary references
Lowe’s fence layout guide explains checking product-specific panel/post spacing, attachment differences and gate hardware allowances. NIST SP 811 conversion factors supports US/metric conversions. Sources checked 4 November 2026. The segment, post-classification and rail-count equations are original layout arithmetic; no manufacturer-approved system or structural review is claimed.
Related tools
Use the Fence Post Concrete Calculator separately with verified hole and embedded-post dimensions. For decking surface quantities, see the Deck Calculator. This fence layout tool does not infer concrete quantities or carry out a footing design.