PLANKMATH

Guides

Deck and fence material lists, from first principles.

How the counts are derived, and the questions a material list deliberately leaves to your building department.


Decks and fences are the two projects on this site where the estimate is a list of distinct parts instead of a quantity of one thing. The arithmetic is more involved and the caveats matter more.

Deck boards: it starts with a course width

A nominal “5/4 × 6” deck board is not 6 inches wide. It measures 5.5 inches, and boards are laid with a gap between them. The gap is typically 1/8 inch for pressure-treated lumber, which shrinks as it dries, and closer to 1/4 inch for composite and kiln-dried material, which does not.

The effective width each board occupies, the course width, is therefore 5.625 inches at a 1/8-inch gap.

Rows = ⌈ (deck width in inches) ÷ 5.625 ⌉

The gap lets water drain, lets air circulate underneath, and gives wood somewhere to go when it swells. Butt the boards tight and a pressure-treated deck will cup and buckle within two seasons.

Boards run across the joists. Which way that is depends on the framing, so the calculator asks which side the boards run along. Take a 12 × 16 deck with the boards running the 16-foot direction:

Deck boards: cut from a stock length

Dividing 416 by the board length is where estimates go wrong, because it assumes every offcut gets used. A butt joint has to sit on a joist, and a leftover is only worth keeping if it spans two joist bays and is long enough for a piece still needed.

Sixteen-footers win here, and they look better than a seam in every row. It does not always come out that neatly. A 20 × 10 deck is 440 linear feet, and 440 ÷ 12 suggests 37 twelve-footers. It takes 44, because each row is a 12-foot board plus 8 feet of a second one, and the 4 feet left over fills nothing.

Then add waste on top for culls and miscuts. At the calculator’s default 10%, the 26 sixteen-footers become 29.

Decking is commonly sold in 8, 10, 12, 16 and 20-foot lengths. The calculator tries all five and names the one that buys the fewest feet of lumber.

Deck screws: two per board per joist

Joists sit at 16 inches on centre in standard residential framing. Over a 16-foot run that gives:

Each board is fastened at every joist it crosses with two screws, one near each edge, to hold the board flat and stop it cupping.

Screws = rows × joists × 2

For our deck: 26 × 13 × 2 = 676 screws. Every butt joint adds a pair, since both board ends are fastened to the same joist, so the 12-foot layout with one joint a row comes to 26 × 14 × 2 = 728. Screws are sold by the pound. At about 100 to the pound, 676 is 7 pounds, and you will drop some, strip some, and want spares.

Hidden fastener systems for grooved boards use one clip per joist crossing, 338 here, plus the starter clips and edge screws their instructions call for.

Fence posts: sections, not spacing

Elevation of a 24-foot, 6-foot-tall fence: three 8-foot sections need four posts, three rails per section, and posts set 2 feet into concrete.
Count sections first. Posts are always one more than sections on a straight run.

People get the post count wrong by one, every time.

Posts go at 8-foot spacing for a typical wood fence, because rails come in 8-foot lengths. A 100-foot run is 12.5 sections, which rounds up to 13 sections.

Thirteen sections need 14 posts, because both ends are closed. This is the fencepost problem in its original form: each section has a post at each end, adjacent sections share one, so you always need one more post than sections.

Sections = ⌈ linear feet ÷ spacing ⌉, Posts = sections + 1

Add a post for a corner that falls between posts, and two for every gate, one each side. The calculator adds the gate posts when you give it a gate count. A gate needs heavier posts than a run does, since it carries a swinging load that a line post never sees.

Rails and pickets

Rails are the horizontals. Three levels (top, middle, bottom) is standard for a 6-foot privacy fence, and two is common for a 4-foot fence.

Rails = sections × rail levels

Our 13-section run at three levels needs 39 rails.

Pickets are the vertical boards. A standard picket is 5.5 inches wide. A privacy fence butts them tight, and a spaced picket fence leaves a gap between them.

Pickets = ⌈ (linear feet × 12) ÷ (picket width + gap) ⌉

The count rounds up, because a run that ends mid-picket still needs that picket. Butted tight, a 100-foot run takes 1200 ÷ 5.5 = 218.2, so 219 pickets. With a 1.75-inch gap each picket covers 7.25 inches and the run takes 1200 ÷ 7.25 = 165.5, so 166.

A shadowbox fence hangs pickets on both faces of the rails, each face spaced at width plus gap, so it takes twice the spaced count: 332 at a 1.75-inch gap. The gap has to stay narrower than the picket or the fence is see-through.

Add about 5% for pickets you will reject or split. The 219 become 230.

Concrete for the posts

Half a bag per post is a common guess, and it is far too low for a hole filled with concrete. The volume is the hole less the post standing in it:

Concrete per hole = (π × (hole diameter ÷ 2)² − post width²) × depth

The fence calculator starts from a 10-inch hole. Two feet deep around a 3.5-inch post, that is 1.09 − 0.17 = 0.92 cubic feet. A 50-pound bag yields about 0.375 cubic feet, so one hole takes about two and a half bags, and the 14 posts of the 100-foot run take 12.9 cubic feet: 35 fifty-pound bags, or 22 at 80 pounds. A common rule makes the hole three times the post width instead, 12 inches for a 4×4, which raises the 50-pound count to 53.

What a material list cannot tell you

This is why the fence and deck calculators produce a shopping list and not a plan.

Post depth and footings depend on your frost line and your soil. The common guidance, and the fence calculator’s starting point, is a hole a third as deep as the fence is tall and never less than 2 feet, below the frost line, in concrete. It varies enormously by region, and in a cold climate it can mean 42 inches or more, which is why the calculator takes a depth of your own.

Span tables govern joist size and spacing on a deck, based on the species, the grade, the load and the span. A 16-inch joist spacing is the common case, not a universal one, and the framing under a deck is a structural question.

Permits: most jurisdictions require one for a deck above a certain height and for fences above a certain height. Many have setback rules controlling how close to a property line a fence can sit, and some say which side the “good” face must point.

Property lines: establish yours before you dig. A fence built a foot over a boundary is a legal problem that outlives the fence.

Utilities: call the national dig line before putting a post in the ground. In the United States that is 811, it is free, and most states require it by law.

Deck framing, stairs, railings and gate hardware are not in these estimates. The deck calculator counts the walking surface and its screws, nothing underneath. Stairs in particular are their own calculation and their own code section.

Buying notes

Buy long, cut short. Where a run is close to a standard length, taking the longer board and trimming beats seaming two shorter ones.

Order 5-10% over on lumber. Boards warp, split at the end, and occasionally arrive with a knot exactly where you needed to fasten. Lumber has no dye lot problem the way flooring does, so topping up later is easy, but a trip back mid-job still costs an afternoon.

Let pressure-treated lumber dry before staining or sealing. Fresh treated wood is wet with preservative and will not take a finish.

Check every board at the yard. Sight down its length for bow and crown. You are allowed to reject the bad ones, and the difference in a finished deck shows.

Formulas at a glance

Quantity Formula
Deck rows width in inches ÷ 5.625, rounded up
Deck boards rows cut from the stock length, joints on joists, plus waste
Deck screws rows × (joists + joints per row) × 2
Fence sections linear feet ÷ 8, rounded up
Fence posts sections + 1, plus 2 per gate
Fence rails sections × rail levels
Fence pickets (linear feet × 12) ÷ (picket width + gap), rounded up, plus waste
Post concrete (hole area − post area) × depth × posts ÷ bag yield

The deck board calculator and fence calculator run these and print the assumptions (board width, gap, stock length, joist spacing, post spacing, rail count, hole size), so you can set them to whatever your lumber yard actually stocks.