Fence Calculator (Posts, Pickets and Rails)
Enter the total fence length, post spacing, number of gates and your picket width and spacing.
What to measure
Worked example: Lowe's worksheet: 120 ft at 8 ft spacing = 15 sections; posts = 15 + 1 + 1 gate = 17. Pickets: 1,440 in ÷ 5.5 in = 262 (289 with 10%). With 2 in spaces, 1,440 ÷ 7.5 = 192 pickets.
Posts and pickets for common fence lengths
| Fence length | Posts at 8 ft spacing | Posts at 6 ft spacing | Pickets (5.5 in, no gap) | Pickets with 10% | Rails at 8 ft, 3 per section |
|---|---|---|---|---|---|
| 50 ft | 8 | 10 | 110 | 121 | 21 |
| 100 ft | 14 | 18 | 219 | 241 | 39 |
| 150 ft | 20 | 26 | 328 | 361 | 57 |
| 200 ft | 26 | 35 | 437 | 481 | 75 |
One straight run with no gates, using the Lowe's worksheet method: posts = sections + 1; add 1 post per gate. Pickets = length in inches ÷ picket width, rounded up. Estimates only; your layout, gates and corners change the count.
Fence material list at 6 ft and 8 ft post spacing
Assumptions: one straight run with 1 gate; one post cap per post; 2 rails per section for a 4 ft fence, 3 for a 6 ft fence; 5.5 in pickets with 2 in spaces (the Lowe's worksheet example) plus 10%. Gate openings are not subtracted. Results are estimates.
| Fence length | Post spacing | Sections | Posts and caps (1 gate) | Rails, 4 ft fence | Rails, 6 ft fence | Pickets, 2 in spaces, +10% |
|---|---|---|---|---|---|---|
| 50 ft | 8 ft | 7 | 9 | 14 | 21 | 88 |
| 50 ft | 6 ft | 9 | 11 | 18 | 27 | 88 |
| 100 ft | 8 ft | 13 | 15 | 26 | 39 | 176 |
| 100 ft | 6 ft | 17 | 19 | 34 | 51 | 176 |
| 150 ft | 8 ft | 19 | 21 | 38 | 57 | 264 |
| 150 ft | 6 ft | 25 | 27 | 50 | 75 | 264 |
| 200 ft | 8 ft | 25 | 27 | 50 | 75 | 352 |
| 200 ft | 6 ft | 34 | 36 | 68 | 102 | 352 |
Lowe's worksheet method. Closer spacing adds posts, caps and rails but not pickets.
Concrete for fence posts
QUIKRETE's Fast-Setting Concrete data sheet says two 50 lb bags set a 4 in post in a 10 in hole 2 ft deep, with the hole 3 times the post diameter. Its post-setting guide puts the depth at 1/3 to 1/2 of the post height above ground, so about 2 to 3 ft for a 6 ft fence. A 4 × 4 is 3½ in actual (PS 20), so 3 × 3½ = 10½ in. Bigger holes take more; use the fence-post mode of the concrete calculator. Local rules may set post depth, so check them.
How it works
Sections = length ÷ post spacing, rounded up. Posts = sections + 1 to end the run + 1 per gate. Pickets = length (in) ÷ (picket width + space), rounded up, then the allowance. Rails = sections × rails per section. This follows the Lowe's fence worksheet method.
More worked examples
- 100 ft run, 8 ft post spacing, no gates, 5.5 in pickets with no gap, 3 rails per section, 10% allowance: 100 ÷ 8 = 12.5, so 13 sections; 14 posts; 1,200 in ÷ 5.5 = 218.2, so 219 pickets, 241 with 10%; 13 × 3 = 39 rails.
- L-shaped fence, 60 ft + 40 ft at 8 ft spacing: the 60 ft side is 8 sections and 9 posts, the 40 ft side 5 sections and 6 posts. They share the corner post, so 9 + 6 − 1 = 14 posts. Entering 100 ft as one run also gives 14 here; with odd lengths, count each side and subtract shared corners.
- The Lowe's 120 ft worksheet layout, 1 gate, as a 4 ft picket fence at 6 ft spacing, 5.5 in pickets with 2 in spaces, 2 rails per section, 10%: 120 ÷ 6 = 20 sections; 20 + 1 + 1 gate = 22 posts and 22 caps (5 more than the 17 at 8 ft spacing); 1,440 in ÷ 7.5 in = 192 pickets, 192 × 1.10 = 211.2, so 212; 20 × 2 = 40 rails. At QUIKRETE's two 50 lb bags per post (4 in post, 10 in hole, 2 ft deep): 44 bags.
- 75 ft straight run at 8 ft spacing, no gate, 5.5 in pickets with no gap, 3 rails (6 ft fence), 10%: 75 ÷ 8 = 9.375, so 10 sections; the calculator spreads them evenly at 75 ÷ 10 = 7.50 ft each. Posts: 10 + 1 = 11. Pickets: 900 in ÷ 5.5 = 163.6, so 164, and 164 × 1.10 = 180.4, so 181. Rails: 10 × 3 = 30.
How to measure
- Mark the fence line and measure each straight run in feet, from end post to end post.
- Note every corner, end and gate. Each gate needs its own post (the calculator adds one per gate), and runs that meet at a corner share a post.
- Measure the actual picket width (a 1 × 6 is about 5.5 in) and decide on any gap between pickets.
- Add up every side before you divide, the way Lowe's worksheet does (48 + 24 + 24 + 12 + 12 = 120 ft). Spacing is typically 6 or 8 ft.
- Measure your posts: a 4 × 4 is about 3½ in (PS 20), and post size sets the hole width.
- Contact 811 a few business days before digging, with the address, county, nearest cross street and the exact area you will dig.
Common mistakes
- Dividing length by spacing and forgetting the last post. A run of n sections needs n + 1 posts.
- Using the nominal picket width (6 in) instead of the actual width (about 5.5 in), which undercounts pickets.
- Counting a shared corner post twice when adding runs, or forgetting the extra post at each gate.
- Skipping the utility check. Call 811 before you dig post holes, and check property lines, HOA and local fence rules.
- Counting rails for the wrong height: 2 per section for a 4 ft fence, 3 for 6 ft (Lowe's). On 15 sections that is 30 versus 45.
- Assuming two bags of concrete for any post. QUIKRETE's figure is for a 10 in hole 2 ft deep.
- Digging as soon as you call. 811 says to wait until every utility has responded.
Assumptions
- One straight run measured end to end. For several sides, add the lengths; this may count a few more posts than you need where runs share a corner post.
- Gate openings are not subtracted from the picket count (Lowe's worksheet does not either), which leaves a little extra.
- Picket width is the actual width; Lowe's example uses 5.5 in. Allowance default 10%, which Lowe's worksheet recommends for pickets.
- Rails per section follow Lowe's: 2 for a 4 ft fence, 3 for a 6 ft fence. Post size, depth and concrete are not covered; see the concrete calculator for post holes.
- Fence height, setbacks, pool barriers and property lines are set by local rules and HOAs. Check local codes and call 811 before you dig.
Frequently asked questions
How many fence posts do I need?
Divide the fence length by the post spacing (rounded up) to get sections, then add 1 post to end the run and 1 per gate. Lowe's example: 120 ft ÷ 8 ft = 15 sections; 15 + 1 + 1 gate = 17 posts.
How many pickets do I need for 100 feet of fence?
With 5.5 in pickets and no gaps: 1,200 in ÷ 5.5 = 218.2, so 219 pickets, or 241 with a 10% allowance.
How many rails does a fence section need?
Lowe's worksheet uses 2 backer rails per 6 or 8 ft section for a 4 ft fence and 3 for a 6 ft fence.
Related calculators
- Concrete calculator (bags and cubic yards) – fence-post mode for bags of concrete per hole
- Deck board calculator – for a deck
- Board foot calculator – to price posts and rails sold by the board foot
- Paint calculator – to estimate paint by area (fence length × height for each side)
Sources
Formulas and reference values are from these sources. Page content last updated 2026-11-19.
- Lowe's: Fence calculator worksheet, building with pickets (posts, pickets and rails worked example)
- QUIKRETE Fast-Setting Concrete Mix (No. 1004) spec data sheet: 0.375 cu ft per 50 lb bag; two bags set a 4 in post in a 10 in hole 2 ft deep
- QUIKRETE: Setting posts in concrete (hole 3 × post width, 1/3 to 1/2 of above-ground height deep, 6 in gravel)
- NIST / ALSC: Voluntary Product Standard PS 20, American Softwood Lumber Standard (a dry 2 × 4 is 1½ × 3½ in)
- 811 (Common Ground Alliance): call or click before you dig
- NIST Guide to the SI (SP 811), Appendix B.9: conversion factors (foot = 0.3048 m, ton, pound)