Fence Post, Panel & Picket Calculator

Plan posts, whole bays, rails and pickets from separate solid fence runs, then compare two maximum post spacings.

Enter your values

Calculations run on your device; inputs are not sent to our server.

Enter each continuous solid run separately. A gate between runs needs a post on each side.

Core result

Split the run where gates interrupt it

Enter only solid fence lengths, one continuous run per value. For a 64 ft line with a 4 ft gate, 36 ft on one side and 24 ft on the other becomes “36, 24”. Treat a corner as a new segment when it needs its own terminal or corner post.

Formula and purchase result

For each segment, bays = ceiling(segment length ÷ maximum post spacing), and posts = bays + 1. Totals add each segment separately so gate boundaries keep both posts. Rails = bays × rails per bay. Pickets = the sum of ceiling(segment length ÷ (picket width + gap)) after converting to inches or centimetres.

Three independent checks

36 ft and 24 ft with an 8 ft limit require 5 + 3 = 8 bays and (5 + 1) + (3 + 1) = 10 posts. The same runs at 6 ft require 6 + 4 = 10 bays and 12 posts. A 10 m single run at a 2.4 m limit needs 5 bays and 6 posts; at 1.8 m it needs 6 bays and 7 posts. A 16 ft run with 5.5 in pickets and 0.5 in gaps needs ceiling(192 ÷ 6) = 32 pickets.

Interpretation, input mistakes and limits

A maximum spacing is a planning input, not a universal recommendation. Do not enter gate widths as solid fence. Whole-bay rounding happens per segment, so combining separated runs understates end or gate posts. The comparison helps reveal the material effect of tighter spacing; it does not choose a safe structure.

Sources and field checks

NRCS Fence Standard 382 requires plans to show layout, gate locations, post spacing, bracing and material quantities, and directs users to local specifications. This calculator therefore leaves spacing to the user and excludes footing concrete, post depth, bracing, fasteners, terrain, wind, frost, soil, code and product-system rules. Source: USDA NRCS Fence (382).

Unexpected result? Tell us the inputs and what you expected.