A deck is an order of boards, an order of joists and three boxes of screws
Most deck projects go wrong at the lumber desk rather than at the saw. The homeowner measures the deck, multiplies length by width, divides by the area of a board, and arrives at a number that is missing the gaps, the end cuts, the ripped last course and the fact that decking is sold in lengths the boards cannot be cut from without waste. The result is one more trip to the store in the middle of a Saturday, or six boards stacked in the garage for a year.
This calculator works the order the way a deck builder does: the deck area gives the decking linear feet, the waste gives the boards, the joist spacing gives the framing, and the fastening method gives the screws or clips. The defaults here are a 16 by 12 foot deck — 192 square feet — in $1.50-a-foot pressure-treated 5/4 by 6, with boards square to the joists, a 1/8 inch gap, 7% waste, 16 inch joist spacing and face screws. That comes to 28 boards of 16 ft (448 linear feet), 13 joists and 204 feet of framing, 702 screws, and $1,259.50 of material at $6.56 a square foot.
None of those numbers is a guess. Each one comes from a formula that is printed on the page and used by the tables at the top, so a figure you disagree with is a figure you can see and change.
Decking linear feet: the gap is part of the coverage
The arithmetic starts with how much deck one foot of board covers. A nominal 5/4 by 6 deck board measures 1 inch thick and 5-1/2 inches wide; a 2 by 6 deck board is 1-1/2 by 5-1/2. Add the gap the boards need for drainage and movement — 1/8 inch is the usual default for wood, 3/16 to 1/4 inch for composite and PVC — and one board occupies 5.625 inches of deck width. So one linear foot of board covers 5.625/12 = 0.4688 square feet, and a square foot of finished deck needs 2.133 linear feet of decking.
That is the figure the calculator uses: installed area divided by coverage. On 192 square feet it gives 410 linear feet. The same layout comes out the other way — the deck is 144 inches wide, and at 5.625 inches per course it takes 26 courses of 16 feet, which is 416 feet of full-width board. The two figures differ by the rip: the last course is cut lengthwise, so part of that board's width is never used even though every foot of it was bought.
The board count is therefore not area divided by board area. The rip is one reason; the other is the ends, because every course meets a rim, a fascia or a picture frame, where the saw kerf and a frame that is not square eat their share. Both are what the waste allowance covers, and both are why the linear-foot figure and the board count are not the same number.
Waste: 7% straight, 15% diagonal, and what each one really costs
Waste on a deck is not a reserve for a mistake; it is the material the layout consumes. A straight lay with the boards square to the joists cuts each course to the deck length and rips one course, so 5 to 10 percent is realistic, with 7 percent the working default. A diagonal lay cuts both ends of every course at 45 degrees, and the triangular offcuts at the perimeter are large, so 15 percent is the usual allowance. A herringbone or a bordered pattern with many miters sits at the top of that range.
The difference is easy to see on this deck. With no allowance the order is 26 boards, at 5 percent 27, at 7 percent 28, at 10 percent 29 and at 15 percent 30. That is $96 between the tightest and the loosest order on the same deck, which is the price of not running short at the last course. A diagonal lay on this deck takes 30 boards and $720, against 28 and $672 for the straight lay.
One practical rule sits above the percentage: buy the extra board rather than plan a second trip. A deck is built in a day or two, and a store that is out of the board you chose will cost a weekend, while a spare board is $24.00 that sits in the garage and becomes the repair piece in three years.
Stock length: 12, 16 or 20 feet, and the offcut it leaves
Decking is sold in 8, 10, 12, 16 and 20 foot lengths, and the length you buy decides how much of each board ends up in the scrap pile. A 16 foot deck in 16 foot boards is nearly ideal: one board per course, an offcut of inches. Change the stock to 12 feet and every course needs a board and a two-thirds piece, so the count climbs; go to 20 feet and each board leaves a four-foot offcut that may or may not be useful on the stairs or the bench.
| Stock | Boards | Linear feet bought | Offcut loss | Board cost |
|---|---|---|---|---|
| 12 ft | 37 | 444 | 8.4% | $666 |
| 16 ft | 28 | 448 | 9.4% | $672 |
| 20 ft | 22 | 440 | 7.4% | $660 |
On this deck the 12 foot stock needs 37 boards and leaves 8.4% more board than the deck takes; the 16 foot stock needs 28 and leaves 9.4%; the 20 foot stock needs 22 and leaves 7.4%. The 20 foot board is the cheapest order here — $660 against $672 — because it wastes the least, but it is also the heaviest to carry and the least forgiving of a deck that is not exactly the length of the board. The right answer is the stock whose length divides into the deck run, which is why this page shows the comparison instead of assuming one.
The board itself: six materials, one square deck
The decking is the largest single line on the order, and the material changes it by more than three times. Pressure-treated 5/4 by 6 is the volume seller at around $1.50 a linear foot in 2026; a 2 by 6 PT board costs about $1.60 and buys stiffness the thin board does not have; western red cedar is $4.20 and wants a finish; a mid-grade capped composite is about $3.30, a premium wide composite $4.80, and cellular PVC $5.40. Those are planning prices, and the page lets you replace any of them with the number on the tag.
| Board | Actual width | $ per LF | $ per sq ft | Boards | Board cost | Offcut loss |
|---|---|---|---|---|---|---|
| Pressure-treated 5/4×6 (SYP #1) | 5.5″ | $1.50 | $3.20 | 28 | $672 | 9.4% |
| Pressure-treated 2×6 | 5.5″ | $1.60 | $3.41 | 28 | $717 | 9.4% |
| Western red cedar 5/4×6 | 5.5″ | $4.20 | $8.96 | 28 | $1,882 | 9.4% |
| Composite, mid-grade cap (Trex Enhance class) | 5.5″ | $3.30 | $7.04 | 28 | $1,478 | 9.4% |
| Composite, premium wide 7-1/4 in (Trex Transcend class) | 7.25″ | $4.80 | $7.81 | 21 | $1,613 | 7.6% |
| Cellular PVC (AZEK class) | 5.5″ | $5.40 | $11.52 | 28 | $2,419 | 9.4% |
Two things in that table are worth more than the prices. The first is the square-foot column: at $3.20 a square foot the PT board is the cheapest way to cover the deck, but a 7-1/4 inch composite covers more area per foot, which is why its $4.80 per foot is not as far ahead of the 5-1/2 inch boards as it looks. The second is the board count: a wider board needs fewer courses, so the wide composite needs 21 boards against 28 for the narrow ones, which changes the handling, the number of clips and the number of gaps to keep straight.
What the table cannot tell you is how the material behaves. Pressure-treated lumber shrinks and checks as it dries, so it goes down wet, tight to a 1/8 inch gap, and it wants a sealer every year or two. Cedar is softer and more dimensionally stable but greys without a finish. Capped composite does not need a finish and does not splinter, but it expands and contracts with temperature, which is why the manufacturer's gap matters more than the installer's habit, and why most brands want 16 inches on centre. PVC behaves like composite with more movement and a higher price, and it stays cooler underfoot in full sun.
Joists: the decking decides the spacing, the span decides the size
Joist spacing is set first by the decking, not by the joist. IRC Table R507.7 limits 5/4 inch wood decking to 16 inches on centre when the boards run across the joists and 12 inches when they run diagonally; 2 inch wood decking is allowed at 24 inches. Composite and PVC follow the manufacturer's installation guide, which for most brands is 16 inches square and 12 inches diagonal. A tighter spacing than the table requires is common and reasonable: it makes the deck feel stiffer, it is required for some patterns, and it is what a picture frame usually wants.
The joist size then has to carry the span from the ledger to the beam. IRC Table R507.6 gives the maximum spans for 40 psf live load and 10 psf dead load: a southern pine 2 by 8 spans 11 ft 10 in at 16 inches on centre, a 2 by 10 spans 14 ft, and a 2 by 12 spans 16 ft 6 in. This deck is 12 feet out from the house, which is two inches past what a 2 by 8 reaches at 16 inches on centre; the same 2 by 8 reaches 13 ft 1 in at 12 inches, and a 2 by 10 reaches 14 ft at 16 inches. So a twelve-foot projection is a 2 by 10 at 16 inches or a 2 by 8 at 12 inches, and this page defaults to the 2 by 10. The choice itself is a code, species and grade question that a quantity calculator does not make — the spans above are southern pine No. 2, and Douglas fir and the cedars reach less.
| Spacing | Joists | Framing LF | Hangers | Fasteners | Framing + fasteners |
|---|---|---|---|---|---|
| 12″ o.c. | 17 | 252 | 17 | 916 | $567 + $96 |
| 16″ o.c. | 13 | 204 | 13 | 702 | $459 + $96 |
| 24″ o.c. | 9 | 156 | 9 | 486 | $351 + $64 |
On this deck, 12 inch spacing needs 17 joists and 252 feet of framing; 16 inch spacing needs 13 and 204; 24 inch spacing needs 9 and 156. The framing difference is $216 on this deck. It is also worth noting that closer joists add fasteners with every extra crossing: 12 inch spacing takes 916 fasteners against 486 at 24 inches, which is $32 more in screws.
The rest of the framing is simple arithmetic that is easy to forget. Two rim joists run the length of the deck at the outer edge and along the house side of the field, and the ledger is bolted to the house and carries the inner ends of the joists. On this deck that is 156 feet of joists plus 32 feet of rim and a 16 foot ledger, 204 feet in all, or about 13 sixteen-foot sticks. Every joist at the ledger needs a hanger: 13 on this deck at $2.50 each.
Ledger fastening, flashing and the lateral-load connection are the parts of a deck that fail, and none of them is a material count. The 2021 IRC requires the ledger to be flashed, the joists to be restrained against lateral movement, and the deck to be tied to the house in a way that is detailed in R507.9. If the deck is free-standing, there is no ledger and the framing changes; if the deck is above a certain height, the posts, beams and bracing are structural work that belongs to the code book and, in most jurisdictions, to a permit.
Fasteners: two screws per crossing, or one clip
Face screws are the default because they work on every board. The count is the number of places a board crosses a joist: a foot of decking crosses a joist every 1.33 feet of its run and picks up one more at the start of each course, so 410 feet of decking on joists at 16 inches makes 334 crossings; two screws at each, with 5% spare for a stripped head, gives 702 screws. That is about 3.7 screws a square foot, which matches the trade rule of thumb of three to four fasteners per square foot. Screws are sold by weight: a 5 pound box of 2-1/2 or 3 inch deck screws holds roughly 350, and the 1,750-count bucket is the cheaper way to buy once you pass about four boxes. On this deck the cheapest purchase is 3 x 5 lb boxes, $96.00.
Composite and PVC boards with a grooved edge can use hidden clips instead, which put the fastener between two boards and leave the face clean. One clip sits at each joist crossing of an interior board, so a 13 joist deck with 26 courses needs about 308 clips; the first and last courses are still face-screwed because there is no second board to clip to, which is why a hidden-fastener job still needs 55 screws. Clips are sold in 90-clip packs and 900-clip buckets, and the calculator tests both. On this deck the clip order is 4 x 90-clip packs and the whole fastener bill is $200.00 against $96.00 for face screws.
What the clip buys is appearance and a surface nothing catches on. What it costs is the clip itself, a grooved board that is often a few cents more, and a stricter installation: the clip has to be seated square, the gap has to be consistent, and a clip driven at an angle shows up as a wandering gap ten courses later. On a wide composite deck the hidden system is usually worth it; on a pressure-treated deck it is not available, because the boards are not grooved.
The picture-frame border
A picture frame is a border of boards laid around the perimeter at right angles to the field, mitered at the corners. It frames the deck, hides the cut ends of the field boards and gives the edge a finished look, and it is standard on a composite deck where the end grain cannot be sanded. The cost is extra material and extra care: the field is inset by one board width on every side, so a 16 by 12 deck has a field of 15.08 by 11.08 feet, and the border adds 56 linear feet of board before waste.
On this deck the frame adds 56 linear feet of border board and the order stays at 28 boards: the border takes the place of the field courses it displaces, so a mitered frame around a rectangle is almost free in decking — 413 linear feet against 410 without it, and about the same joist crossings, which is why the fastener count barely moves either. What the frame does cost is cutting and care. Every corner is a 45 degree miter that has to meet, the field courses are cut to a shorter length at both ends, and the frame has to be laid first and kept square, because a border that is out of square shows at all four corners and cannot be hidden under a fascia. On a composite deck the end grain cannot be sanded, which is why the frame is standard there even though it does not change the board count.
The order, checked against the deck
A 20 by 16 foot deck is 320 square feet and takes 46 boards (736 linear feet) against 28 on the 192 square foot deck. A 24 by 8 foot deck covers the same 192 square feet and takes the same 28 boards, but it is laid in 18 courses of 24 feet instead of 26 of 16, with 19 joists instead of 13 — the same linear footage in different pieces, which is the kind of difference the area alone hides.
The other check is the total. On the default deck the decking is $672, the framing and hangers $492, and the fasteners $96, for $1,259.50 and $6.56 a square foot. In a mid-grade composite the same deck is $1,478 of board, and in a 2 by 6 PT it is $717. The material is not the whole project — footings, posts, beams, railing, stairs and labour are outside this page — but it is the line that arrives on a truck, and it is the one worth getting right before the truck is ordered.
What the numbers do not cover
This page counts decking, joists, rim, ledger, hangers and the fasteners that go with them, at the prices you enter. It does not design the deck. Joist spans, beam size, post size, footing size, ledger fastening, flashing, lateral restraint and the guard and stair requirements come from the code and from the local building department, and a deck above a certain height or attached to a house needs a permit in most jurisdictions. It also does not count the fascia, the stair stringers, the railing, the post bases, the concrete in the footings, the joist tape that keeps water off the tops of the joists, or the labour, which for a deck is usually more than the material.
Frequently asked questions
How many deck boards do I need for a 16 by 12 foot deck?
With 5/4 by 6 boards at a 1/8 inch gap, laid square to the joists with 7% waste, a 16 by 12 foot deck takes 28 boards of 16 feet: 192 square feet divided by a coverage of 5.625 inches per board is 410 linear feet, laid as 26 courses of 16 feet, plus the waste. In 12 foot stock it is 37 boards; in 20 foot stock, 22.
What is the right joist spacing for deck boards?
For 5/4 inch wood decking, IRC Table R507.7 allows 16 inches on centre when the boards run across the joists and 12 inches on a diagonal; 2 inch wood decking is allowed at 24 inches. Composite and PVC follow the manufacturer, which is usually 16 inches square and 12 inches diagonal. A tighter spacing is stiffer and is often used on composite decks and around a picture frame.
How many screws does a deck take per square foot?
About three to four. Face screws at two per joist crossing, with 16 inch joist spacing and 5-1/2 inch boards, work out at roughly 3.7 per square foot — 702 screws on this 192 square foot deck. A 5 pound box holds about 350 screws, so this deck takes 3 x 5 lb boxes.
How much waste should I allow for a diagonal deck?
About 15%, against 7% for a straight lay. A 45 degree lay cuts both ends of every course, and the offcuts at the perimeter are large triangles that cannot be reused; the steeper the angle and the smaller the deck, the larger the share of waste. The calculator sets 15% when you choose the diagonal direction, and you can change it if your layout is unusual.