Fence Picket Calculator
Last updated: 2026-09-30
| Fence length | Picket width | Gap between pickets | Post spacing | |
|---|---|---|---|---|
| 10 | 9 | 2 | 2.4 | |
| 15 | 9 | 2 | 2.4 | |
| 20 | 9 | 2 | 2.4 | |
| 30 | 9 | 2 | 2.4 | |
| 50 | 9 | 2 | 2.4 |
TL;DR: To calculate the number of pickets for a fence, divide the total fence length (in inches) by the sum of one picket width plus the gap between pickets, then round up to the nearest whole number: Pickets = Fence Length ÷ (Picket Width + Gap), with the result rounded up.
What Is the Fence Picket Calculator?
The Fence Picket Calculator is a free online tool that determines the exact number of pickets, posts, and rails required for a horizontal fence section. Instead of manually sketching out spacing diagrams or making rough estimates, you input four basic measurements—fence length, picket width, picket gap, and structural dimensions—and the calculator instantly returns the three critical quantities: pickets needed, posts needed, and rails needed.
This tool is built for homeowners planning a DIY privacy fence, contractors preparing material bids, and landscapers estimating project costs. A common frustration with fence building is underestimating materials: you buy too few pickets, drive to the lumber yard twice, and end up with an awkward gap at the end of the run. Conversely, overestimating wastes money on unused lumber. This calculator removes that guesswork by applying a simple arithmetic formula to your specific measurements.
Because fencing lumber is typically sold in individual pieces, knowing your precise picket count before purchasing is essential. The calculator adjusts for the gap between pickets—the space that allows for air circulation and prevents wood from warping—and accounts for the fact that the last picket rarely sits flush against the end post. The result is a practical, build-ready number you can take directly to a supplier.
How to Use the Calculator
Using the Fence Picket Calculator requires only five inputs. Follow the numbered steps below to get your material count in under a minute.
- Select the calculation mode. The calculator offers two options: "Calculate from Fence Length" or "Calculate from Number of Pickets." For most projects, choose "Calculate from Fence Length" to determine how many pickets fit along your measured span.
- Enter the fence length. Input the total horizontal distance of your fence run in feet (e.g., 50 ft). If your fence has corners, measure each straight section separately, then add them together.
- Enter the picket width. Measure the actual width of a single picket in inches. Standard dog-eared pickets are 5.5 inches wide, but cedar or composite options may vary. Do not confuse this with the picket height, which is vertical.
- Enter the gap between pickets. This is the space between adjacent pickets in inches. A typical privacy fence uses a 0-inch gap (pickets touching), while a semi-private fence uses 0.5 to 1 inch. For a picket fence with space between boards, set this to 2–3 inches.
- Enter the section length between posts. Input the center-to-center distance between fence posts in feet. Common values are 6, 8, or 10 feet. This determines the number of posts required for your fence length.
- Enter the number of rails. Choose either 2 rails (for fences up to 4 ft high) or 3 rails (for fences 5–6 ft high). This input directly feeds into the rails-needed calculation.
- Click the Calculate button. The calculator processes your inputs and displays three results: total pickets needed, total posts needed, and total rails needed. If your inputs are in mixed units, the calculator will flag an error—double-check before adjusting.
Formula and Calculation Method
The core formula for determining picket count is straightforward arithmetic. The logic is that each picket occupies a horizontal space equal to its own width plus one gap, and this repeating unit is repeated across the entire fence length.
The formula is: Pickets Needed = Fence Length (in inches) ÷ (Picket Width + Gap), then round up to the nearest whole number.
Because fence length is entered in feet and picket width and gap are in inches, you must first convert all values to a single unit. The easiest method is to convert the fence length to inches by multiplying by 12. The formula then becomes:
Pickets Needed = (Fence Length in Feet × 12) ÷ (Picket Width in Inches + Gap in Inches) — round up.
Consider a concrete example. Suppose you have a fence length of 40 feet, pickets that are 5.5 inches wide, and you want a 0.5-inch gap between each picket for a semi-private look. Here is the step-by-step walkthrough:
- Convert fence length to inches: 40 ft × 12 = 480 inches.
- Add picket width and gap: 5.5 in + 0.5 in = 6.0 inches per picket unit.
- Divide: 480 ÷ 6.0 = 80 pickets.
- Because 80 is already a whole number, you need exactly 80 pickets. If the result were 80.3, you would round up to 81.
For posts, the formula is: Posts Needed = (Fence Length in Feet ÷ Section Length in Feet), rounded up, plus 1 for the starting post. For rails, multiply the number of rails per section by the number of sections. If you use a 3-rail system with 10-foot sections on a 40-foot fence, you have 4 sections, so you need 3 rails × 4 sections = 12 rail pieces.
Practical Examples
Below are three realistic scenarios demonstrating how the calculator handles different inputs and what the results mean for your material order.
| Scenario | Fence Length | Picket Width | Gap | Section Length | Rails | Pickets Needed | Posts Needed | Rails Needed |
|---|---|---|---|---|---|---|---|---|
| Privacy fence, boards touching | 60 ft | 5.5 in | 0 in | 8 ft | 3 | 131 pickets (60×12÷5.5 = 130.9 → 131) | 8 posts (60÷8 = 7.5 → 8 + 1 = 9) | 24 rails (3×8 sections) |
| Semi-private, small gap | 30 ft | 5.5 in | 1 in | 6 ft | 2 | 56 pickets (30×12÷6.5 = 55.4 → 56) | 6 posts (30÷6 = 5 → 5 + 1 = 6) | 10 rails (2×5 sections) |
| Picket fence, wide spacing | 45 ft | 3.5 in | 2.5 in | 8 ft | 2 | 91 pickets (45×12÷6.0 = 90.0 → 90, but 90×6=540 in = 45 ft exactly, so 90) | 7 posts (45÷8 = 5.6 → 6 + 1 = 7) | 12 rails (2×6 sections) |
In the first scenario, the 0-inch gap means each picket covers exactly 5.5 inches, which is why 131 pickets cover 720 inches (60 ft). The 6-foot sections in the second scenario require only 6 posts for a 30-foot run, which is easier to install with light 2-rail construction. The third scenario shows that with 3.5-inch pickets and 2.5-inch gaps, the math produces an exact whole number (90), so no rounding waste is present.
Tips for Accurate Results
Accuracy in this calculator begins before you enter a single number. The most frequent error is mixing unit systems: if you write down the fence length in feet but the picket width in millimeters, the result will be nonsensical. Always measure in the same unit (feet and inches are standard for US residential fencing), and if you use metric measurements, note that the calculator expects consistent units across all inputs.
Another critical tip is to add a waste allowance to your final picket count. Lumber is not perfectly straight, and cutting around knots or damaged ends can reduce usable material. The calculator returns an exact theoretical number, so add 5–10% to the result before ordering. For example, if the calculator says 131 pickets, order 138–144. This margin also covers a broken piece during installation or a last-minute design change.
Finally, verify the gap you intend to use. The gap between pickets is rarely zero in practice; even a "privacy fence" requires a small 1/8- to 1/4-inch gap to prevent moisture trapping and wood rot. Use a spacer block cut to your exact gap width to maintain consistency. Additionally, double-check that the picket width you enter is the true width of the board, not the nominal dimension (e.g., a 1×6 board is actually 5.5 inches wide). If you input 6 inches instead of 5.5, the calculator will underestimate pickets by over 9%.
Frequently Asked Questions
How many pickets do I need for a 100-foot fence?
For a 100-foot fence with standard 5.5-inch pickets and a 0.5-inch gap, the calculation is 100 ft × 12 = 1,200 inches. Divide by (5.5 + 0.5) = 6 inches, giving exactly 200 pickets. For a privacy fence with no gap, you would need 1,200 ÷ 5.5 = 218.2, which rounds up to 219 pickets. This demonstrates that the gap alone can change your material order by nearly 10%, so for a project this size, always account for the gap precisely.
What is the standard gap between fence pickets?
The standard gap depends entirely on your intended level of privacy. A true privacy fence uses a gap of 0 to 1/8 inch, just enough to prevent wood-on-wood contact and allow slight expansion. A semi-private fence uses 1/2 to 1 inch gaps, which still block most sightlines but allow airflow and reduce wind load. A decorative picket fence uses 2 to 3 inches (or even more), but note that with wide gaps, the visual spacing can make the fence appear less substantial. For code compliance, check local building regulations—some municipalities restrict gaps to a maximum of 4 inches to prevent children from squeezing through.
Do I need to account for the end posts in the picket calculation?
No, picket calculation does not include posts, but posts indirectly affect the picket count. The picket count is always based on the total fence length, not the number of posts. However, posts affect how many sections you have and, in turn, how many rails you need. The formula for pickets uses the full length with no subtraction for post widths because in most builds, pickets are installed on the outside face of the posts and run continuously, covering the post face. If you plan to wrap pickets around the post corners, add 1–2 extra pickets per corner post to your total. The calculator does not include this adjustment, so factor it manually for a perfectly finished corner.