This fence material calculator turns your fence length and height into the full shopping list β posts, rails, pickets, concrete and screws, with the total cost. No sign-up. The working is shown under every number, so you can check it yourself.
Quick example: a 50 ft, 6 ft high fence at the default settings needs 8 posts, 110 pickets, 21 rails and 8 bags of concrete β $800.00 at the example prices.

| Item | Buy | Cost |
|---|---|---|
| Estimated total | $0.00 |
Posts are counted for one straight run, including both end posts. Add extra posts for corners and gates.
Estimate only β not a guarantee. Mistakes are possible, so always check the quantities with your supplier or a builder before you buy or build.
Start with a string line, not a tape. Put a stake at each end of the fence line, pull a string tight between them, and measure along the string β that is the length this calculator wants. Measure every straight run separately. A fence that turns a corner is two runs, not one long one, because the post spacing restarts at the corner post: a 40 ft run and a 35 ft run need their own section counts, and adding them first (75 ft in one go) can leave you a post short. Walk the line before you order and mark three things: gates (a gate opening interrupts the picket count and needs its own posts and hardware), obstacles like trees and utility boxes, and slopes. On a slope, decide whether the fence steps down in flat sections or racks to follow the ground, because a racked fence on a steep slope uses more pickets than the flat math suggests. Finally, confirm the line is yours β check your plot plan or survey before a single post goes in, and follow any local setback or height rules and HOA requirements.
Posts come from sections. The calculator divides your length by the post spacing and rounds up: sections = βlength Γ· spacingβ, and posts = sections + 1, because every run has an end post that beginners forget. Rails are simply sections Γ rails per section. Pickets are worked out in inches: total length in inches Γ· (picket width + gap), rounded up, then 10% is added for warped and damaged boards. Concrete is one 80 lb bag per post hole, and screws are counted at 2 per picket per rail, sold in boxes of 350.
Say the run is 75 ft, 6 ft high, posts 8 ft apart, 5.5 in pickets with a 0.5 in gap and 3 rails per section. Sections = β75 Γ· 8β = 10, so posts = 11 and rails = 10 Γ 3 = 30. Pickets: 75 ft is 900 in, and each picket plus its gap takes 6 in, so 900 Γ· 6 = 150 pickets, and 165 to buy with the 10% spare. Screws: 150 pickets Γ 3 rails Γ 2 = 900 screws, which is 3 boxes of 350. Concrete: 11 bags, one per post. At this page's example prices that is 11 posts ($132) + 165 pickets ($660) + 30 rails ($180) + 11 bags ($66) + 3 boxes of screws ($135) = $1,173.00 β type 75 ft into the calculator above and you will see the same list.
Buy posts long enough for the fence height plus the buried part β a 6 ft fence on 8 ft posts leaves 2 ft in the ground. Pick through pickets at the store if you can: sight down each board and leave the twisted ones. If the yard delivers, have the pickets stacked flat and covered; sun and rain on an uncovered pile warp them in days. Keep the receipt and your spare boards until the last picket is screwed on β returns are easy with a receipt and a short drive, and impossible once the wood is cut.
The one part of a fence the calculator does not count is the gate, and it deserves its own line in the budget: a gate opening is framed by two posts set deeper and usually in concrete (the post-hole calculator on this site will count the bags), the gate itself wants diagonal bracing and hardware rated for its weight, and a 4 ft gate consumes 4 ft of fence line that needs no pickets. Work the gate's position out before you order posts β a gate post is not interchangeable with a line post, and discovering that at the hole-digging stage costs a second trip.
Read next: How to check a contractor's material quote β got a fence quote? Recompute its pickets, posts and concrete yourself in about twenty minutes.
At this calculator's default settings (5.5 in pickets with a 0.5 in gap), a 50 ft fence needs 100 pickets to fill the run, and the shopping list shows 110 pickets because it adds 10% spare for damaged or warped boards.
With posts spaced 8 ft apart, a 50 ft fence run works out to 7 sections, so this calculator counts 8 posts β one at the start of each section plus one end post.
At the default of 3 rails per section, a 50 ft fence with 7 sections needs 21 rails (7 sections Γ 3 rails).
This calculator allows 1 Γ 80 lb bag of concrete per post hole. A 50 ft fence with 8 posts therefore shows 8 bags on the shopping list.
At this calculator's example prices, the 50 ft, 6 ft high default fence totals $800.00 β 8 posts, 110 pickets, 21 rails, 8 bags of concrete and 2 boxes of screws. The prices are editable, so type in your store's prices for your own total.
| Fence length | Posts | Pickets | Rails | Concrete bags | Total |
|---|---|---|---|---|---|
| 25 ft | 5 | 55 | 12 | 5 | $427.00 |
| 50 ft | 8 | 110 | 21 | 8 | $800.00 |
| 100 ft | 14 | 220 | 39 | 14 | $1,546.00 |
Pickets are 5.5 in wide with a 0.5 in gap, with 10% spare included. Totals use the example prices in the calculator above.
These figures are planning estimates only β not a guarantee and not professional advice. Mistakes are possible, including through an error in this calculator. Always check the quantities, sizes, spacings and depths with your supplier, a licensed builder, and your local building code before you buy materials or start work. The owner of this site accepts no responsibility or liability for any loss, cost, damage, injury, wasted material or failed inspection that results from using these estimates. Prices are examples to start from, not live prices or quotes.