Deck board calculator
Enter the deck's length and width, pick a board size and a stock length, and the calculator returns how many decking boards to buy, the deck area, and a face-screw estimate. It runs the same board math as the Deck calculator in the CutOnce app, which adds the railing posts and balusters.
By Scott Brady
Software engineer in Seattle and DIY builder who builds the CutOnce construction calculator.
Updated
Length runs along the joists and width is the direction the boards run. The count is rows times boards per row, rounded up after waste. Use 15% waste or more for a diagonal layout. Screws assume 2 face screws at every joist crossing.
- Deck area
- 192 sq ft
- Face screws
- 672
How the board count works
Decking runs across the joists, so the count is two numbers multiplied. Rows come first: the deck dimension measured along the joists, divided by the board's actual width and rounded up. A 5/4x6 covers 5-1/2 in, not 6. Boards per row come second: the dimension the boards run along, divided by the stock length and rounded up, because a run longer than one board needs a butt joint.
Rows times boards per row is the raw count. The waste factor is applied to that number, and the total rounds up to whole boards.
In the calculator, deck length is the dimension along the joists, where the rows stack up, and deck width is the direction the boards run. Swap the two numbers if your joists run the other way.
A worked example
A deck 16 ft long by 12 ft wide, decked in 5/4x6 with the boards running the 12 ft direction in 12 ft stock, joists at 16 in on center, 10% waste.
| Deck area | 192 sq ft | 16 ft x 12 ft |
|---|---|---|
| Rows of decking | 35 | 16 ft / 5-1/2 in = 34.9, rounded up |
| Boards per row | 1 | 12 ft run / 12 ft board |
| Raw board count | 35 | rows x boards per row |
| Linear feet of decking | 420 ft | 35 rows x 12 ft, before waste |
| Boards to buy | 39 | 35 x 1.10 = 38.5, rounded up |
| Face screws | 672 | area x 350 screws per 100 sq ft, at 16 in OC |
Board counts for common deck sizes
Each row below is 5/4x6 or 2x6 decking laid straight, with 10% waste and joists at 16 in on center. The first dimension runs along the joists and the second is the board run. Stock length is the shortest standard board that covers the run in one piece.
| Deck (ft) | Stock length | Rows | Boards to buy | Linear ft, no waste | Face screws |
|---|---|---|---|---|---|
| 10 x 8 | 8 ft | 22 | 25 | 176 | 280 |
| 10 x 10 | 10 ft | 22 | 25 | 220 | 350 |
| 12 x 10 | 10 ft | 27 | 30 | 270 | 420 |
| 12 x 12 | 12 ft | 27 | 30 | 324 | 504 |
| 16 x 12 | 12 ft | 35 | 39 | 420 | 672 |
| 20 x 12 | 12 ft | 44 | 49 | 528 | 840 |
| 16 x 16 | 16 ft | 35 | 39 | 560 | 896 |
| 20 x 16 | 16 ft | 44 | 49 | 704 | 1,120 |
| 24 x 16 | 16 ft | 53 | 59 | 848 | 1,344 |
| 20 x 20 | 20 ft | 44 | 49 | 880 | 1,400 |
A 12 x 16 deck and a 16 x 12 deck have the same area but different counts, because the row count and the stock length both change with the direction the boards run.
Nominal size, actual size, and joist spacing
The count uses the board's milled width, not the name on the tag. A 2x6 and a 5/4x6 both cover 5-1/2 in, so ten of them cover 55 in, not 60. Thickness does not change the count, but it sets how far apart the joists can be. The spacing columns are the IRC Table R507.7 maximums for wood decking that runs continuous over three or more joists. The 2021 and later editions set tighter limits for a short piece that spans a single joist bay, as at a border or beside a joint, so check the edition your jurisdiction has adopted.
| Nominal | Actual width | Actual thickness | Max joist spacing, straight | Max joist spacing, diagonal |
|---|---|---|---|---|
| 5/4 x 6 | 5-1/2 in | 1 in | 16 in OC | 12 in OC |
| 2 x 6 | 5-1/2 in | 1-1/2 in | 24 in OC | 16 in OC |
| 2 x 4 | 3-1/2 in | 1-1/2 in | 24 in OC | 16 in OC |
| 2 x 8 | 7-1/4 in | 1-1/2 in | 24 in OC | 16 in OC |
Composite and PVC boards are not in the IRC table. Their joist spacing comes from the manufacturer's installation sheet (IRC R507.2), and many call for 16 in on center straight and 12 in diagonal. Most are 5-1/2 in wide, so the 5/4 x 6 setting counts them correctly.
Choosing a stock length
Pick the shortest board that covers the run in one piece. Boards with no butt joints lay faster and leave no board ends to split over a joist. When the run is longer than the longest board you can get, every row needs a joint.
The calculator counts whole boards per row and does not carry an offcut into the next row, so the stock length changes the answer. Here is the same 16 x 20 ft deck in three stock lengths.
| Stock length | Boards per row | Boards to buy | Linear ft bought |
|---|---|---|---|
| 12 ft | 2 | 77 | 924 |
| 16 ft | 2 | 77 | 1,232 |
| 20 ft | 1 | 39 | 780 |
In 12 ft stock every row is a full board and an 8 ft piece cut from a second one, and the order comes to 924 linear ft. In 16 ft stock the calculator still counts two boards per row, 1232 linear ft, although the second board only has to supply 4 ft and its offcut could finish three more rows. When offcuts are that reusable, count the short pieces by hand. One 20 ft board per row needs no joint at all.
A butt joint has to land on a joist, and each board end needs its own bearing and its own pair of fasteners. Builders double the joist or add blocking under a joint line. The joint only lands on a joist when the piece length is a multiple of the joist spacing: at 16 in on center, 8, 12, 16, and 20 ft boards work, and a 10 ft board ends in the middle of a bay. Stagger the joints by alternating the lengths row by row, such as 12 ft then 8 ft in one row and 8 ft then 12 ft in the next.
Gaps, overhang, and the last row
The calculator lays the boards edge to edge with no gap, so on a gapped deck it runs slightly long, not short. On the 16 ft example a 1/8 in gap still takes 35 rows, and a 1/4 in gap takes 34.
Set the gap for the material. Pressure-treated lumber is often delivered wet and shrinks across its width as it dries, so many builders install it tight or nearly tight and let the gap open. Kiln-dried lumber, cedar, and composite hold their width, so they go down with the finished gap, usually 1/8 to 3/16 in. Composite also needs a gap at board ends that depends on the temperature at install, and the manufacturer's sheet gives it.
Enter the size of the decked surface, not the frame. If the boards overhang the rim or fascia by an inch, add that to the dimension. The row count rounds up, so the last row is usually ripped to width. Decide which edge gets the ripped board before you start. Most builders put it against the house, where it shows least.
Straight or diagonal
Most decks run the boards straight across the joists, and that is what the row count assumes. Turning the boards 45 degrees changes two things. The joists have to be closer, because a diagonal board spans farther between them: IRC Table R507.7 drops 5/4 decking from 16 in on center to 12, and 2x decking from 24 to 16, for boards continuous over three or more joists. Every board also meets the edge of the deck at an angle, so each one leaves a triangular offcut.
For a diagonal layout the calculator switches to an area count, deck area divided by the area of one board, because the angled offcuts cannot be laid out row by row. Use 15% waste or more with it. The 16 x 12 ft example comes to 41 boards on the diagonal at 15% waste, against 39 laid straight at 10%.
Square feet to linear feet
Composite and hardwood decking is often priced by the linear foot. To convert, divide the deck area by the board width in feet. For 5-1/2 in boards that is 2.18 linear ft per square foot of deck, so the 192 sq ft example needs about 419 linear ft before waste. Going the other way, one 16 ft board 5-1/2 in wide covers 7.33 sq ft.
Counting by rows gives nearly the same number: 35 rows of 12 ft is 420 linear ft. The row count is the one to order from, because boards come in fixed lengths and a row cannot be finished with the leftover area of another board.
Screws and hidden clips
The screw number is a face-screw estimate: two screws at every joist crossing, which is the IRC R507.7 minimum for wood decking (two 8d threaded nails or two No. 8 wood screws into each supporting member). It is figured from the deck area, at 350 screws per 100 sq ft with joists at 16 in on center.
You can check it by hand. A 12 ft board over joists at 16 in on center crosses 10 joists, so it takes 20 screws, and 35 rows take 700. The area estimate for the same deck is 672. The area rate is a rounded rule of thumb and runs a little under the joist-by-joist count here, so buy by the box and round up.
The area rate assumes 5-1/2 in boards. 2x4 decking has more rows over the same area and needs about 1.6 times as many screws, so count that one by hand: rows times joists times two.
Use fasteners rated for the lumber. IRC R317.3 calls for hot-dipped galvanized, stainless steel, silicon bronze, or copper fasteners in preservative-treated wood. Grooved boards on a hidden clip system are counted differently, one clip per joist crossing plus starter clips and a few face screws at the edges, and the clip box states its own coverage.
What the count leaves out
The board count covers the field of the deck. Add these separately:
- Fascia and rim boards around the outside of the frame.
- Stair treads, usually two boards per tread.
- A picture-frame border, which adds boards around the perimeter and blocking under them, and shortens the field boards.
- Railing posts, rails, and balusters.
- Joists, beams, posts, and footings. Joist and beam sizes come from span tables for your lumber species, spacing, and load (IRC R507.6 and R507.5). Post sizes follow R507.4, and footings follow R507.3 and the bearing capacity of the soil.
What the app adds
The Deck calculator in the CutOnce app runs this same board count and adds the railing. It works out which sides need rail for an attached or freestanding deck, takes the stair opening out, divides each side into equal sections no longer than 6 or 8 ft, and spaces the balusters to a maximum gap that starts at the IRC 4 in sphere limit (R312.1.3) and can be edited. It draws the deck and its railing, accepts feet, inches, and fractions, totals the cost from the prices you enter, and works with no signal.
Common questions
- How many deck boards do I need for a 16x12 deck?
- In 5/4x6 (5-1/2 in actual) with the boards running the 12 ft direction in 12 ft stock, it takes 35 rows of one board each, or 39 boards with 10% waste. Change the board width or the direction the boards run and the count changes, which is why the calculator asks for both.
- How many deck boards do I need for a 12x12 deck?
- In 5/4x6 or 2x6 with 12 ft boards, a 12 x 12 ft deck takes 27 rows of one board each. With 10% waste that is 30 boards and about 504 face screws with joists at 16 in on center.
- Should the boards run the long way or the short way?
- The boards run across the joists, so the framing decides it. Running the boards the short way often means no butt joints, because one stock length covers the run, and that wastes less. A run longer than your longest board forces a joint in every row, which you land on a joist and stagger.
- How much waste should I add for decking?
- Ten percent is the usual figure for a straight rectangular deck. Use 15% or more for a diagonal layout, a deck with angled sides or a picture-frame border, or short random-length stock. A simple deck in long uniform boards can run closer to 5%.
- Why use actual width instead of the nominal size?
- The actual width is what covers the deck. A 5/4x6 is sold as a six but mills out to 5-1/2 in, so ten of them cover 55 in, not 60. Counting on the nominal number leaves a wide deck short by a board or more.
- How big a gap should I leave between deck boards?
- About 1/8 to 3/16 in for kiln-dried lumber, cedar, and composite. Wet pressure-treated boards shrink as they dry, so they are often installed tight or nearly tight. For composite, use the side and end gaps on the manufacturer's installation sheet.
- How far apart should the joists be under deck boards?
- For boards continuous over three or more joists, IRC Table R507.7 allows 16 in on center under 5/4 wood decking laid straight and 12 in when it runs diagonally. 2x decking can go to 24 in straight and 16 in diagonal. Composite follows the manufacturer's spacing, which is often 16 in straight and 12 in diagonal.
- How many screws does a deck board take?
- Two at every joist it crosses. A 12 ft board over joists at 16 in on center crosses 10 joists, so it takes 20 screws. The calculator estimates the whole deck from its area at 350 screws per 100 sq ft for that spacing, or 3.5 screws per square foot.
- Does this work for composite decking?
- Yes. Most composite and PVC boards are 5-1/2 in wide, so choose the 5/4 x 6 size, and they are commonly sold in 12, 16, and 20 ft lengths. Check the product sheet for the exact width. If the boards are grooved for hidden clips, ignore the face-screw number and count clips from the box coverage.
- Does the calculator include the joists and framing?
- No. It counts the decking surface and the face screws. Joist and beam sizes come from span tables for your lumber species, spacing, and load (IRC R507.6 and R507.5), and footings depend on the soil and the load they carry (R507.3).
Count the boards, then the railing
CutOnce counts the decking the same way this page does, then lays out the railing posts and spaces the balusters within the 4 in limit, on your phone at the jobsite.
Free to download, with a 7-day trial of everything. The web calculator covers the board count, and the app adds the railing, the diagram, and the cost.
See also
