Fence Calculator

Estimate posts, rails and pickets needed for your fence.

Estimate material counts for one uninterrupted straight, open fence run with individual pickets. Enter the spacing and rail count from your approved layout, plus actual picket width and clear gap. A closed boundary, gate, shared corner or prefabricated panel system needs a separate layout. Changing units converts the same measurements. Defaults are worked examples; confirm product information and project requirements before ordering.

Measurement System

Estimate one straight, open fence run with individual pickets. Enter spacing and rail count from your approved product/layout. Closed loops, gates, shared corners, post width and prefabricated panels need a separate layout; do not treat the total as a structural design.

Your Estimate

Post Bays

19 bays

Posts Including Both Ends

20 posts

Rail Spans

57 spans

Pickets Before Allowance

328 pickets

Pickets Including Allowance

328 pickets

Bays = round up(length ÷ maximum spacing); open-run posts = bays + 1. Rails = bays × rails per bay, not stock-board count. Pickets = round up((length + gap) ÷ (actual width + gap)), then 0% extra is applied once and rounded up. A full-length picket is assumed; verify end trimming and actual board layout.

Results Actions

Fence Estimate Scope

Open straight runCounts both endpoint posts; no shared-corner or closed-loop adjustment
Maximum spacingEntered from the approved product/layout; not a structural recommendation
Rail spansOne span per bay per horizontal rail; stock-board lengths are not counted
Picket coverageActual width plus clear gap; last picket may need trimming

How to Use the Fence Calculator

  1. 1Measure one straight open run. Treat gates, corners and separate runs in a layout before combining orders.
  2. 2Enter the confirmed maximum post spacing and whole rails per bay.
  3. 3Enter actual picket width and the intended clear gap in the displayed units.
  4. 4Add an explicit extra-picket allowance if required, then verify endpoints, stock lengths and cuts before ordering.

How This Calculator Works

  1. 1Post bays = round up(run length ÷ maximum post spacing).
  2. 2Posts = bays + 1 for one open run, counting both ends.
  3. 3Rail spans = bays × rails per bay; one span is not necessarily one purchasable stock board.
  4. 4Pickets = round up((run length + gap) ÷ (actual picket width + gap)); apply the entered extra allowance once and round up.

Example Calculation

For a 150 ft open run with a confirmed maximum 8 ft post spacing, round 150 ÷ 8 up to 19 bays and add one endpoint for 20 posts. Three rails per bay gives 57 rail spans. With 5.5 in pickets and no clear gap, round 1,800 ÷ 5.5 up to 328 pickets. An illustrative 10% extra-picket allowance gives 361 pickets. Gates, post-width effects and shared corner posts have not been deducted or designed.

Accuracy & Assumptions

  • One straight open run only; no gates, closed loops, shared corners, panel systems, property boundaries or structural design.
  • Picket count uses full run length without deducting post widths. End cuts and the actual board layout can change quantities.
  • Rail results are spans. Stock length, splice details and material grade require a separate cut and purchase plan.
  • Spacing, rail count, connections, foundations, utilities and local requirements must be confirmed for the project.

Frequently Asked Questions

Does this work for a closed fence around a yard?

The post formula is for one open run with two endpoints. A closed loop and multiple connected runs need shared-corner and gate adjustments from a layout. Do not add independent open-run totals without checking duplicate posts.

Does picket width change the count?

Yes. Use the actual physical width, not the nominal lumber name. The entered clear gap also changes the repeating coverage. The final picket can need trimming; confirm layout and stock condition.

Are rail spans the number of boards to buy?

Not necessarily. A rail span is the horizontal rail length between two posts. Stock length, approved splices, cuts and reusable offcuts determine the board purchase count.

This calculator provides an estimate for planning purposes only. Material needs vary by site conditions, waste and supplier specifications — always confirm final quantities with your contractor or supplier before purchasing.