Deck calculator
Enter the size of the deck and of the deck boards. The calculator counts the boards to buy with waste, the joists at their spacing, and the screws or hidden clips.
How the calculator works
- Rows of boards. The deck width plus one gap, divided by the board width plus the gap, rounded up. The last row is often cut narrower.
- Board length. The rows times the deck length. For diagonal boards, the deck area divided by the board width plus the gap.
- Waste. 10 % more for a straight layout and 15 % more for a diagonal one, for cuts, defects and errors.
- Boards to buy. The board length with waste, divided by the length of one board, rounded up.
- Joists. The deck length divided by the joist spacing, rounded up, plus one for the joist at the far end. Each joist is as long as the deck is wide. The rim joist across their ends and the ledger at the house are each as long as the deck.
- Joists under board ends. When you ask for them, the deck length divided by the board length, rounded up, less one: one line of board ends at each board length, each with a second joist. Only for straight boards.
- Fasteners. Two screws for each board at each joist, or one hidden clip. Diagonal boards cross a joist every 1.41 × (board width + gap). With a number per area, the deck area times that number, rounded up.
Worked example
A 16 × 12 ft (4.88 × 3.66 m) deck gets 5/4 × 6 wood boards, 5 1/2 in (140 mm) wide and 16 ft long, with a 1/8 in (3 mm) gap, on joists 16 in (406 mm) on center.
| Step | Calculation | Result |
|---|---|---|
| Rows | (144 in + 1/8 in) ÷ 5 5/8 in = 25.6 | 26 rows |
| Board length | 26 × 16 ft | 416 ft (126.8 m) |
| With waste | 416 ft × 1.10 | 457.6 ft (139.5 m) |
| Boards | 457.6 ft ÷ 16 ft = 28.6 | 29 boards of 16 ft |
| Joists | 192 in ÷ 16 in + 1 | 13 joists of 12 ft |
| Screws | 26 rows × 13 joists × 2 | 676 screws |
With 12 ft boards and a second joist under the board ends, the deck takes 457.6 ÷ 12 = 38.1, so 39 boards. The board ends meet in one line, 12 ft from one side (16 ÷ 12 = 1.33, rounded up to 2, less 1), so the deck gets 14 joists and 728 screws. Laid diagonally on joists 12 in on center, it takes 30 boards of 16 ft, 17 joists and 646 screws.
Joist spacing for deck boards
The decking sets the widest joist spacing. Thin boards and diagonal boards need closer joists. The calculator marks a spacing that is wider than these limits.
| Decking | Boards square to the joists | Boards at 45° | Source |
|---|---|---|---|
| Wood, 5/4 in thick | 16 in (406 mm) | 12 in (305 mm) | 2021 IRC, Table R507.7 |
| Wood, 2 in thick | 24 in (610 mm) | 24 in (610 mm) | 2021 IRC, Table R507.7 |
| Trex composite, 1 in boards | 16 in (406 mm) | 12 in (305 mm) | Trex installation guide |
The IRC values are for boards that lie on three or more joists. A board on only two joists needs them closer: 12 in for 5/4 in wood square to the joists. The Trex values are for the deck of a home; for other composite boards, follow the maker's guide. Metric spacings of 400 mm and 300 mm stay within 16 in and 12 in; 500 mm is wider than 16 in and only for thicker boards.
European makers give other limits, by the thickness of the board. GD Holz, the German timber trade association, allows 400 mm for solid wood boards 20 or 21 mm thick, 500 mm for 26 mm and 700 mm for 40 mm. Composite makers ask for 300 to 400 mm, and Neowood for 100 mm less at 45°.
Gaps, waste and fasteners
| Rule | Value | Source |
|---|---|---|
| Gap between wood boards | About 1/8 in (3 mm) | American Wood Council, DCA 6 |
| Gap between Trex boards | At least 3/16 in (5 mm) side to side, never more than 1/2 in (13 mm) | Trex installation guide |
| Waste | 10 % straight, 15 % at 45°, up to 20 % for complex patterns | Decks.com decking calculator |
| Screws in wood decking | Two No. 8 wood screws or two 8d threaded nails in each board at each joist | 2021 IRC, R507.7 |
| Screws in Trex decking | Two screws in each board at each joist | Trex installation guide |
| Hidden clips | One at every joist; the clip sets the gap | Trex installation guide |
| Board ends | Each end on its own joist: a double joist or a 2 × 4 nailer at butt joints | Trex installation guide |
| Gap between solid wood boards, Europe | 6 to 10 mm when laid; double joists 80 to 100 mm apart under board ends | Habisreutinger laying guide, after GD Holz |
| Clips per area | About 25 per m² (2.3 per sq ft) | Tarimatec, Ecodeck |
A nominal 6 in board is 5 1/2 in (140 mm) wide and a nominal 4 in board 3 1/2 in (89 mm). Wood decking comes in lengths of 8 to 20 ft in steps of 2 ft; composite boards commonly in 8, 12, 16 and 20 ft. Choose a board as long as the deck when you can, so that no row needs a joint.
What the calculator does not size
The sizes of the joists, beams and posts, the footings and the ledger connection depend on the spans, the loads, the wood species and your local code. This calculator does not size them. Use the tables of the code, and ask your building department which code applies and whether the deck needs a permit.
- 2021 International Residential Code, section R507. Footings (R507.3), posts (R507.4), beams (R507.5), joist spans (R507.6) and the ledger at the house (R507.9).
- American Wood Council, DCA 6. A free guide for a wood deck on one level that is attached to the house, with span tables for joists and beams, post heights, footing sizes and ledger fasteners. It needs posts of at least 6 × 6 and footings at least 12 in (305 mm) below undisturbed ground, or below the frost line where that is deeper.
Questions
How many deck boards do I need for a 12 × 16 deck?
With 5 1/2 in boards and a 1/8 in gap, the deck has 26 rows. With 16 ft boards and 10 % waste, buy 29 boards. With 12 ft boards, buy 39.
How many deck boards do I need for a 10 × 10 deck?
22 rows of 5 1/2 in boards with a 1/8 in gap. With 10 ft boards and 10 % waste, buy 25 boards. The deck has 9 joists at 16 in on center and takes 396 screws.
How far apart should deck joists be?
16 in on center for 5/4 in wood boards and for Trex composite boards, and 12 in when the boards run diagonally. Wood boards 2 in thick may span 24 in under the IRC.
How many screws do I need for a deck?
Two for each board at each joist. A 12 × 16 ft deck with 26 rows and 13 joists takes 676 screws, about 3.5 for each square foot.
How wide is the gap between deck boards?
About 1/8 in (3 mm) for wood, by the American Wood Council's deck guide. Trex asks for at least 3/16 in (5 mm) between its composite boards.
Does the calculator size beams, posts and footings?
No. Their sizes depend on the spans, the loads and your local code. The span tables are in section R507 of the International Residential Code and in the American Wood Council's DCA 6.
Sources
- International Code Council: 2021 International Residential Code, section R507, Exterior decks
- American Wood Council: DCA 6, Prescriptive Residential Wood Deck Construction Guide
- Trex: Decking installation guide (PDF)
- Trex: How to space deck boards
- Decks.com: Decking calculator
- Habisreutinger: Verlegeanweisung Holzterrassen 2024, joist spacing after GD Holz, gaps and double joists (PDF, in German)
- Neowood: Laying guide for composite decking on wood joists (PDF, in French)
- Tarimatec: Installation manual for composite decking, joist spacing and clips per m² (PDF, in Spanish)
- Santa Luzia: Ecodeck manual, 2024, joist spacing and clips per m² (PDF, in Portuguese)
- Patio size: how big a patio or deck should be
Checked on 16 November 2026. Local codes differ from the model code; ask your building department before you build.