Fence post center layout calculator

Fence / Layout

Lay out post centers and face marks along a measured straight fence run, with end distribution and corner-return adjustments.

Enter your inputs

A worked project example is loaded and calculated automatically. Replace the values with your project inputs.

Input notes

Measure the straight run from its starting outside boundary, which is the origin for every mark. Enter the actual post width and your chosen maximum center spacing. A start corner moves the first post inward by the entered rail thickness; both corners also move the final post inward. First-center alignment applies only to Adjust last interval. It aligns the second post center to the entered spacing from the origin. These are horizontal geometry inputs, not prescribed structural spacings.

ft
Enter fence run length in feet.
in
Enter actual post width in inches.
in
Enter maximum post centers in inches.
Choose the option that matches your project.
Choose the option that matches your project.
in
Enter rail thickness in inches.
Choose the option that matches your project.

About this calculator

Post-center layout converts an outside run into center and face marks after deducting the actual post width and any entered corner returns.

Steps

  1. Fence run length

    Enter fence run length in feet.

  2. Actual post width

    Enter actual post width in inches.

  3. Maximum post centers

    Enter maximum post centers in inches.

  4. Center distribution

    Choose the option that matches your project.

  5. Corner returns

    Choose the option that matches your project.

  6. Rail thickness

    Enter rail thickness in inches.

  7. First-center alignment

    Choose the option that matches your project.

Formula

Convert run feet to inches. Center span = run − actual post width − corner returns × rail thickness. Start center = half post width + start-return thickness. Equal mode divides the span into ceil(span ÷ maximum centers) intervals. One-end mode retains full intervals and the final remainder; optional first adjustment aligns the second center to one maximum interval from the origin. Both-end mode splits the end remainder equally and retains half end intervals at exact division. Post faces must not overlap.

Notation: ceil rounds up to the next whole number.

Interpret the result

The marks follow the chosen equal, one-end, or both-end distribution. Coordinates use the stated run origin and display rounding; they are not a prescribed structural spacing.

Worked example

A 24-ft run is 288 in. Deducting one 4-in post width leaves a 284-in center span. ceil(284 ÷ 96) = 3 equal intervals, so the layout contains 3 + 1 = 4 posts.

Example result: 4 posts

Example inputs
Fence run length
24 ft
Actual post width
4 in
Maximum post centers
96 in
Center distribution
Adjust all centers equally
Corner returns
No corner returns
Rail thickness
1.5 in
First-center alignment
Keep first interval unchanged

FAQs

What is the mark-out origin?

Coordinates start at the run’s starting outside boundary; center, near-side, and far-side marks are reported separately.

What do the layout marks refer to?

Use the stated origin, centerline or face reference, and units shown with the result. Display rounding may differ from the internal coordinates.

Does this approve the selected dimensions or product?

No. It lays out the dimensions you enter and does not establish structural capacity, product cutting permission, or installation compliance.

Additional examples and limits

Post-center mark-out example

For a 24 ft outside run, 4 in actual post width, no returns and a 96 in maximum: the center span is 288 − 4 = 284 in. Equal mode gives 3 intervals and 4 posts at centers 2, 96.667, 191.333 and 286 in. Near-side marks are 0, 94.667, 189.333 and 284 in; far-side marks end at 288 in. Displayed marks round to three decimals; the calculation keeps unrounded coordinates.

For a 25 ft run with the same post width and maximum: adjust last gives centers 2, 98, 194, 290 and 298 in. Adjust both gives 2, 54, 150, 246 and 298 in. First-center alignment in adjust-last mode gives 2, 96, 192, 288 and 298 in. With two returns and 1.5 in rail thickness on the 24 ft run, first alignment gives 3.5, 96, 192 and 284.5 in.

Boundary: 17 ft, 12 in post width and 96 in maximum divide exactly. Equal mode gives 3 posts; adjust-both uses two half-size end intervals and gives centers 6, 54, 150 and 198 in. A 1 ft run with 2 in posts has centers 1 and 11 in in every mode. Overlapping post faces are rejected. Touching faces report a zero clear gap; they are not an installation recommendation.

Coordinates are measured along one level straight run only. Corner-return thickness is a declared geometric deduction, not a complete corner design. Gates, slopes, opening joins, post height, footings, rail cutting/material quantities, hardware, structural capacity and code spacing selection are excluded. The 1,000-post output limit controls display allocation.