Deck board calculator with gaps, joists and fasteners
Rows of boards = (deck width + gap) ÷ (board width + gap), rounded up. Each row runs the length of the deck, so boards = rows × the boards each row needs at your stock length. The calculator adds joists, fasteners and border boards, and checks joist spacing against the code and the board makers.
Result
—
How it was worked out
Shopping list
Where there is a waste or overage setting, the main material line includes it; counts such as joists, fasteners and stringers do not. Type your supplier's prices; they are kept in this browser only.
| Item | Qty | Unit | Price per unit | Cost | Remove |
|---|
How to calculate deck boards
Rows = (deck width + gap) ÷ (board width + gap), rounded up
Boards = rows × boards per row (or rows ÷ rows per board)
Joists = deck length ÷ spacing, rounded up, + 1
Screws = rows × joists × 2
- Rows. Divide the deck width plus one gap by the board width plus one gap, and round up. A 12 ft (144 in) wide deck in 5 1/2 in boards with 3/16 in gaps needs (144 + 0.1875) ÷ 5.6875 = 25.3, so 26 rows.
- Boards per row. If your boards are at least as long as the deck, each row takes one, and a board twice the deck length gives two rows. If they are shorter, each row needs several, and every joint has to land on a joist.
- Waste. Add an allowance for cuts and defects, then round up.
On a 45° layout the rows change length, so the calculator measures every row. It gives a range: one board per piece if no offcut is reused, and lineal length ÷ board length if every offcut is. For the same 12 × 16 ft deck in 16 ft boards that is 27 to 51 boards over 42 rows, the longest 16.97 ft, so its middle rows need a joint.
For a 12 × 16 ft deck in 16 ft boards that is 26 rows and 26 boards before waste. TimberTech's guide gives a shortcut that ends up close: square footage ÷ 7.3 for 16 ft boards, so 192 ÷ 7.3 = 26.3, or 27 boards, plus roughly 10% for scrap. The row method above shows where the boards go, so you can check the count against your own layout.
Boards for common deck sizes
5 1/2 in boards with 3/16 in gaps, the shortest of Trex's 12, 16 and 20 ft lengths that spans the deck, joists at 16 in, before waste:
| Deck (along × across the boards) | Board length | Rows | Boards | Joists | Screws |
|---|---|---|---|---|---|
| 10 × 10 ft | 12 ft | 22 | 22 | 9 | 396 |
| 12 × 12 ft | 12 ft | 26 | 26 | 10 | 520 |
| 16 × 12 ft | 16 ft | 26 | 26 | 13 | 676 |
| 16 × 16 ft | 16 ft | 34 | 34 | 13 | 884 |
| 20 × 12 ft | 20 ft | 26 | 26 | 16 | 832 |
| 20 × 16 ft | 20 ft | 34 | 34 | 16 | 1,088 |
Gaps between boards
The gap changes how many rows fit. Trex's 2026 installation guide calls for a width-to-width gap of at least 3/16 in, recommends 3/8 in in heavily wooded areas, and says no gap should exceed 1/2 in. TimberTech's composite guide asks for 1/8 in to 3/16 in side to side. End-to-end gaps depend on the temperature when you install (Trex: 1/8 in above 40°F and 3/16 in below), but they do not change the board count, so the calculator leaves them out.
Joist spacing limits
| Decking | Straight | Diagonal | Source |
|---|---|---|---|
| 1 1/4 in wood (5/4) | 16 in (multiple span) | 12 in | IRC Table R507.7 |
| 2 in wood | 24 in | 24 in (multiple span) | IRC Table R507.7 |
| TimberTech composite | 16 in max | 12 in max | TimberTech guide |
For wood boards that rest on only two joists, the table's single-span column applies instead: 12 in for 5/4 boards laid straight. Composite decking follows the maker's rules, so check the guide for your product line; the calculator checks composite against TimberTech's limits. Trex reduces its listed spacing by 4 in at a 45° angle and says its decking must span at least three joists. The calculator counts joists as the deck length ÷ spacing, rounded up, plus one, and lists them as a line to price. It does not size them: joist size depends on span, species and load, which is what IRC Table R507.6 covers.
Fasteners
Face-screwed boards take two screws at every joist: the IRC (R507.7) requires two fasteners per support for wood decking, and Trex and TimberTech both specify two screws per joist. Trex says hidden fasteners must be used at every joist. So the count is rows × joists, times two for screws or once for clips. For the example deck at 16 in centers that is 13 joists, 338 crossings and 676 screws. Starter clips, end-joint screws and fascia fastening come from your product's guide and go in as extra lines.
Border boards
A picture-frame border is counted as one board per side when the side is no longer than your stock, and more for longer sides, without nesting mitred offcuts. TimberTech notes that a picture frame needs additional framing support beyond the 16 in joists.
Send it to your job cost worksheet
Once the list is priced, Add to my job cost worksheet opens the Dovrelio worksheet and adds the total as one cost code, as budget and as uncommitted cost to complete, in the job you last had open. Nothing is uploaded: the line travels in the link and is saved only in your browser. The cost to complete guide explains how that line moves as you buy the material.
Questions
How do I calculate how many deck boards I need?
Rows = (deck width + gap) ÷ (board width + gap), rounded up. Multiply by the boards each row needs at your board length, then add waste. For a 12 × 16 ft deck in 16 ft boards with 3/16 in gaps: 26 boards before waste.
How many deck boards do I need for a 12x12 deck?
26 boards of 12 ft, before waste, using 5 1/2 in boards with 3/16 in gaps (26 rows of one board each).
How much gap should be between deck boards?
Trex asks for at least 3/16 in side to side and never more than 1/2 in. TimberTech asks for 1/8 in to 3/16 in. Wood decking follows its supplier's advice.
How far apart should joists be for decking?
For 5/4 wood, IRC Table R507.7 allows 16 in on center when boards span three or more joists, 12 in on a diagonal. TimberTech allows 16 in for its composite boards, 12 in for angled installs.
How many screws per deck board?
Two at every joist the board crosses, per IRC R507.7 for wood decking and the Trex and TimberTech guides. A 16 ft board on 16 in centers crosses 13 joists, so 26 screws.
Do deck board ends have to land on a joist?
Yes. TimberTech says board ends must fall on a joist and to double the joists at butt seams.
Next step
- Deck stair calculatorBuilding steps down to the new slab or deck? Size the stringers and treads.
- Board feet calculatorPrice the lumber for the job by the board foot.
Also: roof pitch calculator · tile calculator · concrete slab cost calculator · shower tile calculator · concrete yards calculator
Reference tables: Deck joist span chart, iRC joist spans, decking joist spacing, board and screw counts, and stair stringers by deck height.
Sources
Read on 8 November 2026. Formulas without a source are plain arithmetic, shown in the working.