Count posts, rails and pickets for a fence. Enter the fence length, post spacing and picket width to get every material — and size the post footings with the concrete calculator.
Pickets (waste included)
121 pickets
Sections
ceil(fence_length ÷ post_spacing)
= ceil(50 ÷ 8)
7 sections
Posts
sections + 1
= 7 + 1
8 posts
Rails
sections × rails_per_section
= 7 × 2
14 rails
Pickets (with waste)
ceil(ceil((fence_length × 12 + gap) ÷ (picket_width + gap)) × (1 + waste% ÷ 100))
= ceil(110 × (1 + 10 ÷ 100))
121 pickets
Board feet is the volume unit lumber is priced in. The formula is (thickness in inches × width in inches × length in feet) ÷ 12 per piece. A 2×4 that is 8 ft long works out to (2 × 4 × 8) ÷ 12 = 5.33 board feet. Multiply by the number of pieces for the order total, then by your price per board foot for the cost. Board-foot math uses the nominal size by convention, even though a 2×4 really measures 1.5 by 3.5 inches.
| Nominal | Actual (inches) |
|---|---|
| 1× | 0.75 |
| 2× | 1.5 |
| 1× / 2× width 4 | 3.5 |
| width 6 | 5.5 |
| width 8 | 7.25 |
| width 10 | 9.25 |
| width 12 | 11.25 |
| Wall length | Studs at 16" OC | Studs at 24" OC |
|---|---|---|
| 8 ft | 7 | 5 |
| 10 ft | 9 | 6 |
| 12 ft | 10 | 7 |
| 16 ft | 13 | 9 |
| 20 ft | 16 | 11 |
| 24 ft | 19 | 13 |
| Board width | Gap | Coverage per row |
|---|---|---|
| 5.5 in | 1/8 in | 5.625 in |
| 5.5 in | 3/16 in | 5.6875 in |
| 5.5 in | 1/4 in | 5.75 in |
| 3.5 in | 1/8 in | 3.625 in |
Posts = ceil(fence length ÷ post spacing) + 1. At the typical 8 ft spacing, a 50 ft fence needs ceil(50 ÷ 8) + 1 = 8 posts forming 7 sections.
Pickets = ceil(fence length × 12 ÷ (picket width + gap)). A 50 ft fence with butted 5.5 inch pickets needs ceil(600 ÷ 5.5) = 110 pickets before waste.
Board feet = (thickness in inches × width in inches × length in feet) ÷ 12. A 2×4 that is 8 ft long is (2 × 4 × 8) ÷ 12 = 5.33 board feet. Multiply by the number of pieces for the total order.
Board-foot pricing conventionally uses the nominal size. A 2×4 is figured as 2 by 4 inches even though it actually measures 1.5 by 3.5 inches. Switch on the actual toggle only when you need the dressed volume.
Studs = ceil(wall length ÷ spacing) + 1. A 20 ft wall at 16 inches on center needs 16 field studs before adding two per corner, one per partition tie-in, and about 10% waste.
Rows = ceil(deck width in inches ÷ (board width + gap)). Multiply rows by the deck length for total linear feet, then divide by the board length and round up. A 5.5 inch board with a 1/8 inch gap covers 5.625 inches per row.
Counts follow standard framing practice with full precision, rounding up to whole pieces and applying your waste factor. Board feet use the conventional nominal size. This tool counts pieces — it is not a structural span rating; size members from your local code span tables.
Last reviewed June 28, 2026. Estimates are indicative — verify against current product specs and local requirements before ordering.
We're committed to keeping these tools accurate and improving them over time. If you'd like to contribute to their accuracy, or you run into any issues or errors, please email us at info@tradesppl.com.