What this calculator is for
Wood picket and rail fences: turning a measured fence line into a shopping list of posts, rails and pickets. Gate openings are taken out of the run, and corners and gates are counted explicitly instead of being averaged away. It is a planning model — post placement, corner bracing and gate hardware follow your local code and site conditions, and gate posts should be heavier posts sized for the gate, not read off this page.
Formula and assumptions
The model is explicit, not a universal rule. Each corner forces one extra locating post, even where a real layout might share a post, and each gate forces one extra locating post while its opening is excluded from the net length. Rails are modelled as running the full net length at the rails-per-section you enter, converted to 8 ft boards with a plain round-up and no allowance for cuts or waste. Pickets cover the full net length at your picket width plus gap, also with no waste allowance — add your own margin when ordering. Fence height is used for the diagram and your post-length planning; the counts themselves come from the line length and spacing.
Reading your result
The big figure is the post count, locating posts at corners and gates included. Under it, the net fence line after gate openings and the number of bays (sections between posts) the spacing produces. Rail boards are the total rail length expressed as 8 ft boards. Pickets are a straight coverage count at your width and gap — remember it carries no waste allowance, unlike most of our other calculators, because the model it comes from is stated without one. If your fence has runs of different styles or heights, calculate each run separately and add the lists.
Worked example
A 100 ft fence line with one 4 ft gate and 2 corners: net length = 100 − 4 = 96 ft. Posts = ⌈96 ÷ 8⌉ + 1 + 2 + 1 = 16 posts, forming 12 bays. Rails: 2 per section over 96 ft = 192 ft of rail, which is 24 boards of 8 ft. Pickets at 5.5 in wide with a ¼ in gap: 201 pickets, before any waste margin you add yourself. These figures are computed by the same tested function the calculator above runs — change the inputs and they move together.
Common mistakes
Fencing across the gate in your head. If you count rails and pickets over the full line including gate openings, you over-order infill and under-order posts — the openings come out of the run, the gate posts go into the count. Forgetting corners. Every change of direction needs a post where the direction changes; a straight-line division of the total length misses them. Trusting the picket count as an order quantity. It has no allowance for the warped, split and knot-holed boards in every bundle — add a margin. Using one spacing for the whole yard when one run is exposed to wind or holds a gate; spacing is per-run judgement, and gate posts are their own, heavier line item.
Quick reference: common fence lines
Posts, rail boards and pickets for common line lengths, using the calculator's defaults (one 4 ft gate, 2 corners, 8 ft spacing, 2 rails per section, 5.5 in pickets with a ¼ in gap), computed by the same function:
| Fence length | Posts | Rail boards (8 ft) | Pickets |
|---|---|---|---|
| 50 ft | 10 | 12 | 96 |
| 100 ft | 16 | 24 | 201 |
| 150 ft | 23 | 37 | 305 |
| 200 ft | 29 | 49 | 410 |
Picket counts carry no waste allowance — add your own margin when ordering.
Common questions
How are the posts counted?
Posts = ⌈net length ÷ post spacing⌉ + 1 end post, plus one extra locating post for each corner and each gate. The net length is your total line minus the gate openings. Corners and gates each force a post in this model even where a real layout might share one — that is stated on the result, and it errs on the side of having a post where you need one rather than a gap in the list.
Why is the gate opening taken out of the length?
Because you do not fence across a gate: rails and pickets run only over the net length. The gate itself still needs its posts — each gate adds one locating post to the count — and gate posts should be heavier, upsized posts; the exact size is set by your local code and the gate's weight, not by this calculator.
Is there a waste allowance on pickets and rails?
No — and the result says so. Pickets are modelled as covering the full net length with no allowance for cuts, defects or waste, and rails are converted to 8 ft boards with a plain round-up and no cutting allowance. Add your own margin when you order; lumber always includes a few boards you will not want to use.
What post spacing should I use?
Spacing is an editable planning choice, not a standard this page sets. The default 8 ft is a common planning starting point for wood panel and picket fences. Your fence style, wind exposure and local code may call for closer spacing — enter the spacing you plan to build at and the post and bay counts follow.