Fence Material Calculator

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.

A wooden picket fence in warm evening light

Your project

ft

Total length of fence run. Gates are not included β€” add gate posts and hardware separately.

in

Use 0 for a no-gap privacy fence.

2 rails is common for 4–5 ft fences, 3 for 6 ft fences.

Your prices β€” put your store's prices here

These prices are examples to start from, not live prices. Type your store's prices and the total updates instantly.

Shopping list

ItemBuyCost
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.

Next step for this job

Planning a wood fence: measure the run, count the parts, skip the usual waste

Diagram of a wood fence from the front The parts of a wood fence: posts, two rails and pickets. Post spacing is typically 6 to 8 feet and a typical fence height is 6 feet. Post (4Γ—4) Pickets Rails (2Γ—4) Post spacing β€” typically 6–8 ft Fence height β€” typically 6 ft
A wood fence from the front: the posts carry the rails, the rails carry the pickets. Spacing and height shown are the typical figures the calculator plans around.

Measure the run, not the yard

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.

How the counts work

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.

Worked example: a 75 ft fence

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.

The mistakes that waste money

Buying tips

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.

A word about gates

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.

Quick answers

How many pickets do I need for a 50 ft fence?

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.

How many posts does a 50 ft fence need?

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.

How many rails does a 50 ft fence need?

At the default of 3 rails per section, a 50 ft fence with 7 sections needs 21 rails (7 sections Γ— 3 rails).

How much concrete do I need for fence posts?

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.

How much does a 50 ft fence cost in materials?

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.

Common fence sizes β€” 6 ft high, posts 8 ft apart, at the default settings

Fence lengthPostsPicketsRailsConcrete bagsTotal
25 ft555125$427.00
50 ft8110218$800.00
100 ft142203914$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.

More free calculators

Deck material calculator
Boards, joists, screws, posts and cost for any deck size.
Fence material calculator
Posts, rails and pickets for a wood fence, with cost.
Concrete slab calculator
Cubic yards of ready-mix, or how many bags, for any slab.
Gravel calculator
Tons, cubic yards and bags for driveways and paths.
Mulch calculator
Bags or bulk cubic yards for garden beds.
Roof pitch calculator
Pitch, angle, roof area and shingle bundles.
Patio paver calculator
Pavers, base gravel, bedding sand and edging for any patio.
Retaining wall block calculator
Wall blocks, caps, base and drainage gravel for any wall.
Sod calculator
Rolls or pallets of sod for any lawn, with cost.
Soil calculator for raised beds
Bags or bulk soil for raised beds and garden soil jobs.
Post hole concrete calculator
How many bags of concrete per fence or deck post hole.
Topsoil calculator
Cubic yards, tons and bags of topsoil for lawns and leveling.
Grass seed calculator
How much seed for a new lawn or overseeding, by grass type.
Deck & fence stain calculator
Gallons of stain or paint for decks and fences, by coverage and coats.
Sand calculator
Tons and bags of sand for sandboxes, patios and pools.
Deck stair calculator
Risers, treads, run and stringers for deck stairs, with materials.
Fire pit calculator
How many blocks for a round fire pit, plus base gravel.
12 Γ— 16 deck material list
The full precomputed shopping list and cost for a 12 Γ— 16 ft deck.
Roof pitch chart
Every pitch with its angle and multiplier, roof types and minimum pitches by material.

Disclaimer β€” please read before you build

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.