How do I calculate fence materials?
Divide a straight fence run by the maximum post spacing and round up to get sections. An open run needs one more post than sections. Count rails by section and pickets by actual face width plus gap. The example 60-ft run produces 9 posts, 24 rail pieces and 134 pickets including 10% picket waste.
Measure each straight fence run separately
Draw every endpoint, corner and gate opening before entering a length. This fence material calculator treats one open straight run at a time. A closed enclosure has a different post relationship from a single open line. Connected runs also share corner posts, so combining estimates requires a check for duplicates.
For a gate, remove the clear opening from the picketed run and plan its posts, frame and hardware separately. Avoid simply subtracting a few pickets from the answer. Gate supports and hinge clearances belong to the gate design, while this calculator counts a simple fence face.
Fence post spacing and the section count
Maximum spacing sets an upper limit on each modeled section. If a run does not divide evenly, the calculator adds another section and spreads the run equally across the resulting count. For example, 60 ft at an 8-ft maximum becomes eight sections averaging 7.5 ft. It does not create seven 8-ft sections followed by an unsupported remainder.
Post quantities include both endpoints. Rails are counted as pieces per section, so three rails across eight sections produce 24 rail pieces. Their required cut length still depends on the fixing detail and actual post positions. A rail count alone does not identify the stock length to buy.
Picket width, gaps and fence-face coverage
Use the actual picket face width, not a nominal label or fence height. Convert the run into the same unit used for picket width and gap. The model counts one layer across the full face without subtracting the widths of posts. That assumption makes the estimate easier to inspect but may differ from a particular installation.
Pickets = ceil((run length + gap) ÷ (picket width + gap)). The added gap in the numerator accounts for there being one fewer internal gap than pickets. A board-on-board or shadowbox design needs a separate layout because overlapping faces do not follow this single-layer equation.
Worked example: a 60-ft privacy fence run
With a maximum post spacing of 8 ft, ceil(60 ÷ 8) gives 8 sections and 9 posts. At three rails per section, the estimate is 24 rail pieces. For 5.5-inch pickets and 0.5-inch gaps, the 720-inch run requires ceil(720.5 ÷ 6) = 121 pickets before waste.
A 10% picket allowance gives ceil(121 × 1.10) = 134 pickets. At an example price of $3 each, the picket subtotal is $402. This price is not the total fence cost: posts, rails, concrete, fasteners, gate hardware, labor and delivery remain separate.
| Straight run | Posts | Rail pieces | Pickets with 10% waste |
|---|---|---|---|
| 40 ft | 6 | 15 | 90 |
| 60 ft | 9 | 24 | 134 |
| 80 ft | 11 | 30 | 178 |
Apply waste to the component it belongs to
The waste setting in this tool applies to pickets only. It does not automatically add spare posts or extra rails. That distinction matters when checking a materials list: a 10% setting should not be read as an allowance already applied to every component. Add spares for other items deliberately if your purchasing plan calls for them.
When several runs share the same picket product, you may choose to pool base quantities before adding an overall waste allowance. Calculating and rounding every small run separately can produce a different purchase count. Keep your rounding convention consistent and record which endpoints and corner posts are shared.
Complete your fence shopping checklist
Use the fence materials checklist to record caps, brackets, compatible fasteners and gate components beside the main counts. Mark actual section lengths before selecting rail stock. Sloping ground and stepped panels need their own layout rather than a flat-run assumption.
For specified hole dimensions, the concrete bag calculator for posts subtracts post displacement before estimating bags. The post-hole concrete guide explains why the mixed yield on the package matters. Confirm your boundary and installation requirements before turning the quantities into a build plan.
Lowe’s describes component fences in terms of posts, horizontal stringers and individual pickets. Our estimate counts those components; it does not provide an installation design. Lowe’s guidance on fence posts, rails and pickets.
Frequently asked questions
Are rails the same as stringers?
In a component fence, the horizontal members supporting the pickets are often called rails or stringers. This tool counts the entered number per section. Confirm the actual stock lengths and attachment details before ordering them.
Does the calculator include corners and gates?
No. Model each straight run separately and count shared posts once when combining lists. Remove gate openings from the picketed length, then add the gate assembly and supports separately.
Can this estimate a horizontal or overlapping fence?
The single-layer picket model is intended for a simple face of vertical boards. Horizontal stock lengths, overlapping pickets and decorative patterns need a layout-specific cut list. Changing the gap value alone does not fully describe those designs.
Written by Velour Trends · Updated 7 November 2026. Worked examples use the calculator’s stated formulas and rounding model. Our editorial approach · Report a calculation issue.