How the deck calculator works
Enter the deck size, the width of the boards with their gap, the board length you can buy and the joist spacing. The calculator gives the deck boards, joists and screws to buy, and compares board lengths.
Formula
Rows = (deck width + gap) ÷ (board width + gap), rounded up. Boards = rows × (deck length ÷ board length, rounded up) × (1 + waste ÷ 100), rounded up. Joists = deck length ÷ joist spacing, rounded up, + 1. Screws = rows × joists × 2.
- 1
Count the rows of boards
A 12 ft (144 in) wide deck with 5.5 in boards and 3/16 in gaps: 144.19 ÷ 5.69 = 25.4, so 26 rows.
- 2
Count the boards
16 ft boards cover the 16 ft length in one piece: 26 boards, plus 10% = 29 boards.
- 3
Count the joists
192 in ÷ 16 in = 12 spaces, so 13 joists, each 12 ft long, plus 2 rim joists of 16 ft.
- 4
Count the screws
26 rows × 13 joists × 2 screws = 676 deck screws.
Worked example
The calculator opens with these values
- Units
- Feet and inches
- Deck length
- 16 ft
- Deck width
- 12 ft
- Board width
- 5.5 in
- Gap between boards
- 0.1875 in
- Board length
- 16 ft
- Joist spacing
- 16 in
- Extra for waste
- 10%
Deck boards to buy
29 boards
Boards, joists and screws for common deck sizes
Each row is the calculator run on that deck. The first number is the length along the house, the direction the boards run. The 24 ft and 32 ft decks use two boards per row, so their joints must land on a joist.
Joists and screws are counted for joists 16 in apart. The table does not size the joists, beams or posts.
| Deck (along the house × out) | Board length | Deck boards | Joists | Deck screws |
|---|---|---|---|---|
| 10 × 10 ft | 10 ft | 25 boards | 9 joists | 396 screws |
| 12 × 12 ft | 12 ft | 29 boards | 10 joists | 520 screws |
| 16 × 12 ft | 16 ft | 29 boards | 13 joists | 676 screws |
| 16 × 16 ft | 16 ft | 38 boards | 13 joists | 884 screws |
| 20 × 12 ft | 20 ft | 29 boards | 16 joists | 832 screws |
| 20 × 16 ft | 20 ft | 38 boards | 16 joists | 1,088 screws |
| 24 × 12 ft | 12 ft | 58 boards | 19 joists | 988 screws |
| 32 × 16 ft | 16 ft | 75 boards | 25 joists | 1,700 screws |
Deck rules in the 2021 IRC
Most US towns base their deck rules on the International Residential Code, often with local changes, and many require a permit for a deck attached to the house. These are the rules people most often miss.
- Guards are required where the deck surface is more than 30 in above the ground below (R312.1.1).
- Guards must be at least 36 in high (R312.1.2), and gaps between balusters must not let a 4 in sphere through (R312.1.3).
- Deck stairs follow the same riser, tread and handrail rules as indoor stairs (R311.7).
- Section R507 covers decks: footings, joist and beam spans, and how a ledger must be fastened to the house.
- Footings must reach below the local frost depth, which your building department sets.
Buying tips for deck materials
The hidden frame lasts only as long as the wood and metal you choose for it.
- Buy framing lumber rated for ground contact for posts, and for joists and beams close to the ground or hard to replace.
- Use screws, nails and joist hangers rated for pressure-treated wood: hot-dip galvanized or stainless steel.
- Put joist tape on the tops of joists and beams; it keeps water out of the screw holes.
- Flash the ledger board where it meets the house, so rain cannot run behind it and rot the house framing.
- Plan the last row before you start: rip the first board or adjust the gaps slightly so you do not end with a sliver.
Common questions
How far apart should deck joists be?
16 in (40 cm) on center suits most wood and composite boards laid straight. Many composite makers require 12 in for diagonal layouts; 24 in is allowed only for thick boards rated for it. Follow the board maker's guide.
What gap should I leave between deck boards?
About 3/16 in (5 mm) for dry wood and composite. Wet pressure-treated boards shrink as they dry, so they are often laid tight together. Follow the spacing printed on composite boards.
Which board length should I buy?
The table compares them. A length that divides the deck evenly wastes least; when a row needs more than one board, joints must land on a joist, and staggering them looks better.
Does this size the joists and beams?
No. It counts joists, not their size. The depth of joists and beams depends on the span, the wood species and the load: use the span tables in your local building code or ask a builder.
Related calculators
Lumber Calculator
Calculate board feet and lumber requirements
Fence Calculator
Posts, rails, pickets or panels and concrete bags for a straight fence
Concrete Calculator
Calculate concrete volume needed for projects
Stair Calculator
Steps, riser height, run, stringer length and angle with a US code check