Fences & decks · free calculator

Free Fence Calculator

Build a preliminary count for one straight fence run.

Plan your material order

Your measurements

ft
ft
Use your selected system specification.
in
in

%
Editable planning input; not a recommendation.
USD
per purchase unit. Optional; no market price assumed.
USD
USD
USD
Added once; tax and labor excluded.

Estimate one straight, open run without gates. Check corners, openings and panel details separately.

Estimate posts, rails and pickets for a single straight, open-ended fence run without gates. Enter the run length, intended maximum post spacing, rails per section and actual picket dimensions. The resulting count is a planning starting point, with corners, gates and special details handled separately rather than hidden in a generic total.

Define one simple run before counting materials

Measure the length of a continuous straight run. The base model assumes one starting post and one ending post, no gates, no shared corners and a full set of pickets across that run. If your layout changes direction or contains openings, draw those sections before applying a materials estimate.

The entered spacing sets a maximum section length for the arithmetic. The calculator rounds the number of sections up, so a final section may be shorter. It does not decide whether that spacing is appropriate for the product, wind exposure, local rules or the fence height.

Calculate posts and rails by section

For a single open run, the number of sections is the run length divided by spacing, rounded upward. The post count is one more than the section count. Multiply the number of sections by the entered rails per section for a preliminary rail count. These are counting relationships, not a construction specification.

Use manufacturer instructions for compatible posts, rails, fasteners and installation details. When using prefabricated panels, check actual panel dimensions; a panel system can need a different takeoff from site-built rails and pickets.

Count pickets using actual width and the chosen gap

A nominal lumber label is not necessarily the physical width of a picket. Enter its actual measured or manufacturer-stated width, then include the planned clear gap between adjacent pickets. The calculator estimates the number required across the run and rounds to a whole piece.

The picket allowance applies to pickets only. It does not automatically add posts, rails or concrete. Board-on-board, shadowbox, overlapping and decorative patterns are outside this single-row model because their coverage differs. For those designs, use the manufacturer layout or a separate takeoff.

Adjust the base count for the real fence

Gates may require different posts, hardware and framing; corners can share a post between runs. Adding independent straight-run estimates without checking those shared details can overcount posts. Conversely, simply subtracting a gate's width can omit the extra materials that support it.

This calculator does not set footing dimensions, check property boundaries or estimate permit requirements. Resolve the actual layout and installation plan before purchase. If calculating concrete for selected post holes separately, use the specified hole geometry and product yield rather than a universal bags-per-post assumption.

Worked example

Inputs: A 100 ft straight gate-free run, 8 ft maximum spacing, 3 rails per section, 5.5 in actual picket width, no picket gap and 10% picket allowance.

Result: 13 sections, 14 posts, 39 rails, 219 base pickets and 241 pickets after allowance.

ceil(100/8)=13; 13+1=14; 13x3=39; ceil(1200/5.5)=219; ceil(219x1.10)=241. Gate and corner adjustments are excluded.

Formula & assumptions

Sections = ceiling(run length / maximum spacing). Posts = sections + 1. Rails = sections x rails per section. Pickets = ceiling((run length in inches + gap)/(actual picket width + gap)); apply selected waste to that base picket count.
  • One straight open run without gates or shared corners.
  • Pickets form a single non-overlapping row.
  • Spacing and component specifications are supplied by the user.

Frequently asked questions

Does this calculator include gates?

No. Its base count covers a straight gate-free run. Gates require a separate adjustment for openings, posts, framing and hardware.

Why are there more posts than sections?

An open straight run has a post at both ends. Ten sections therefore need eleven posts before any site-specific changes.

Does waste apply to all fence components?

The chosen waste allowance applies to pickets. Posts and rails remain explicit counts, so you can adjust them deliberately.

Can I estimate a shadowbox fence?

Not with the single-row coverage formula alone. Overlapping or two-sided patterns need a different layout and coverage calculation.

Does the tool choose post spacing or hole depth?

No. Those are design and installation inputs. Follow the relevant product instructions and project requirements.

Sources & technical references

  1. NIST Handbook 44, 2026 edition, Appendix C: Units of MeasurementReference reviewed October 31, 2026. Exact US customary and metric unit conversions; not material densities or construction design.

Scroll to Top