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.

Your deck
Units
Board layout
Joist spacing, on center
Joist spacing, on center
Fasteners
Fasteners per area
Deck boards to buy
Deck area
Rows of boards
Board length with waste
Joists
Rim joist and ledger
Deck screws
  • Joist spacing for this decking and layout: at most on center
The deck from above. Thin lines are the gaps between the boards; dashed lines are the joists under them.

The calculator counts materials. It does not size the structure: beams, posts, footings and the ledger depend on the spans, the loads and your local code. See what it does not size.

How the calculator works

  1. 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.
  2. Board length. The rows times the deck length. For diagonal boards, the deck area divided by the board width plus the gap.
  3. Waste. 10 % more for a straight layout and 15 % more for a diagonal one, for cuts, defects and errors.
  4. Boards to buy. The board length with waste, divided by the length of one board, rounded up.
  5. 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.
  6. 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.
  7. 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.

StepCalculationResult
Rows(144 in + 1/8 in) ÷ 5 5/8 in = 25.626 rows
Board length26 × 16 ft416 ft (126.8 m)
With waste416 ft × 1.10457.6 ft (139.5 m)
Boards457.6 ft ÷ 16 ft = 28.629 boards of 16 ft
Joists192 in ÷ 16 in + 113 joists of 12 ft
Screws26 rows × 13 joists × 2676 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.

DeckingBoards square to the joistsBoards at 45°Source
Wood, 5/4 in thick16 in (406 mm)12 in (305 mm)2021 IRC, Table R507.7
Wood, 2 in thick24 in (610 mm)24 in (610 mm)2021 IRC, Table R507.7
Trex composite, 1 in boards16 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

RuleValueSource
Gap between wood boardsAbout 1/8 in (3 mm)American Wood Council, DCA 6
Gap between Trex boardsAt least 3/16 in (5 mm) side to side, never more than 1/2 in (13 mm)Trex installation guide
Waste10 % straight, 15 % at 45°, up to 20 % for complex patternsDecks.com decking calculator
Screws in wood deckingTwo No. 8 wood screws or two 8d threaded nails in each board at each joist2021 IRC, R507.7
Screws in Trex deckingTwo screws in each board at each joistTrex installation guide
Hidden clipsOne at every joist; the clip sets the gapTrex installation guide
Board endsEach end on its own joist: a double joist or a 2 × 4 nailer at butt jointsTrex installation guide
Gap between solid wood boards, Europe6 to 10 mm when laid; double joists 80 to 100 mm apart under board endsHabisreutinger laying guide, after GD Holz
Clips per areaAbout 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.

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

Embed this calculator

Add this calculator to your website. Copy the code and paste it into your page.

<iframe src="https://simplehouseplanner.com/tools/deck-calculator/?embed" title="Deck calculator" width="100%" height="760" style="border: 1px solid #d9d9d9; border-radius: 12px" loading="lazy"></iframe>
<p><a href="https://simplehouseplanner.com/tools/deck-calculator/">Deck calculator</a> · Simple House Planner</p>

Checked on 16 November 2026. Local codes differ from the model code; ask your building department before you build.