Units

Deck Calculator

Boards, joists, fasteners, stain and cost for a deck.

With 5.5 in boards and 1/8 in gaps, a 12 ft wide deck takes 26 rows; fasten each board with 2 screws at every joist.

Pressure-treated 5/4x6. Finished width 5.5 in, like Trex and TimberTech.

The other lengths are listed under the result.

Boards run across the joists.

16 in is the usual maximum; 12 in feels firmer.

Boards · 16 ft

29boards

26 rows, 416 linear ft

Joists · 12 ft long

13joists

+ 2 rim joists, 16 ft

Face screws

676screws

2 at every joist crossing

Order 29 boards of 16 ft, 13 joists and 676 screws.

Other lengths: 8 ft 58 · 10 ft 46 · 12 ft 39 · 20 ft 29. Stain: 1.28 gal for 2 coats at 300 sq ft per gallon: 2 one-gallon cans. Deck materials: about $576 ($384 to $1,536) at 2026 prices, no labor.

This estimates quantities, not structural design. Check your local building code.

Prices & extras

Straight: 10%, up to 15% with many cuts.

Wood: 1/8 to 1/4 in.

Finished width, not the nominal 6.

Wood only. Behr calls for 2 coats; Cabot says 1 is often enough.

Cans list 250 to 500 sq ft per gallon; rough wood takes more.

Deck materials, no labor: $2 to $8 per sq ft.

Deck framing diagram: joists, rims and spacing for your deck

Joists run from the house to the outer rim, one at each end and the rest 16 in apart, so the last space is often shorter.

Deck framing diagram for section 1, seen from above

16 × 12 ft: 13 joists 12 ft long, 16 in on center from the left end; the last space is 16 in. Plus 2 rim joists 16 ft long.

HouseRim or ledgerRim joistBeam (dashed)16 ft16 in on center12 ft

This drawing is not a plan for a permit. Beam, posts, footings, joist size and span come from your code or plans.

  • Solid: counted, the joists and the 2 rim joists. A rim joist caps the joist ends along an outer edge. Against the house it is the ledger, and how it fastens (bolts, flashing) is a design question.
  • Dashed: not counted. Beam, posts and footings come from your plans or code; dig post holes only after an 811 call.
  • Where two board ends meet, add a doubled joist or blocking (not counted). Blocking between joists: your code decides (not counted).

Deck joist spacing chart by decking type

Composite and 5/4 wood boards need joists 16 in apart at most when laid straight and 12 in at 45 degrees.

Deck joist spacing by decking, inches on center: decking makers and IRC Table R507.7 (US residential code). Your local code governs.
Decking and sourceStraightAt 45°
CompositeTrex, TimberTech, Deckorators16 in12 in
Wood 5/4x6IRC R507.7, Millard Lumber16 in12 in
Wood 2x6IRC R507.7, Millard Lumber16 in, up to 2412 in*

Wood values assume each board crosses 3 or more joists. The decking sets the spacing; joist size and span come from your code, so no span table is shown. The maximum joist spacing for Trex decking is 16 in straight and 12 in at 45°, like TimberTech and Deckorators. *What this calculator uses for 2x6 at 45°; the IRC allows wider for 2 in boards.

A 16 by 12 ft deck takes about 29 boards of 16 ft with 10% extra, 13 joists and 676 screws.

How to use the deck calculator

  1. Type the deck’s length and width in feet. Length is the way the boards run, and width is the way the joists run. For an L-shaped or split deck, add a section for each rectangle. Call 811 before you dig post holes or footings.
  2. Pick the decking: pressure-treated 5/4x6, pressure-treated 2x6 or composite. All three finish about 5.5 inches wide.
  3. Pick the board length. The list under the result gives the count for every length, so you can see which one wastes least.
  4. Choose straight or diagonal boards, the joist spacing and the fasteners. Open Prices & extras to change the extra for cuts, the gap, the stain and your price.
  5. Read the order line, or print the slip and take it to the yard.

How the deck calculator works

Boards. A row of boards is 5.5 inches wide plus a gap. The rows across the deck are the width in inches plus one gap, divided by the board width plus one gap, rounded up. Rows times the length gives linear feet, and the boards of one length are counted row by row. A board longer than the deck makes whole rows only, so a 20 ft board on a 16 ft deck gives one row, not a row and a quarter. The extra for cuts is added and the total is rounded up once, at the end. Maker calculators ignore the gap, so they ask for about one row more.

Diagonal. Boards laid at 45 degrees take the deck area times 12, divided by the board width plus the gap. There are more cuts, so the extra starts at 15 percent, and most makers ask for joists 12 inches apart.

Joists. Joists run across the width and are spaced along the length, with one at each end: the length divided by the spacing, rounded up, plus one. Two rim joists run the length of the deck. A 16 ft deck at 16 inches takes 13 joists. Joist spans, beams and footings are not counted. A ledger fastened to the house with nails only is a known cause of deck collapses, so follow your local code for it, and a deck more than 30 in above grade needs a guard.

Fasteners. Two screws go at every place a board crosses a joist. Hidden clips use one clip and one screw per crossing, plus a few starter clips at the ends, so buy extra.

Stain. Gallons are the deck area times the coats, divided by the coverage per coat. One rate for every coat buys a little more stain than a thinner second coat needs.

Cost. The deck area times a 2026 price per square foot for the materials. It leaves out labor, footings and railings.

Deck board and joist quick facts

What Value
5/4x6 and 2x6 finished width 5.5 in
Board lengths 8, 10, 12, 16 and 20 ft
Gap, wood about 1/8 in, up to 1/4 in
Gap, composite 1/8 to 3/16 in
Joists, boards straight 16 in apart at most, 12 in firmer
Joists, boards at 45 degrees 12 in apart
Fasteners 2 screws per crossing, or 1 clip
Extra for cuts, straight 5 to 15 percent
Extra for cuts, diagonal 15 to 30 percent (calculator starts at 15)
Decking cost, wood $2 to $8 per sq ft
Decking cost, composite $4 to $20 per sq ft

What the deck calculator does not count: beams, posts, footings, railings

This page counts materials, not structure, and your local building code decides what is allowed. Beams, posts, footings, joist sizes, railings, stairs, ledger attachment and picture-frame borders are not counted here. No span table is shown, because your code sets those for your site. What size joist a deck needs depends on span, spacing and wood: use the IRC or AWC DCA 6 span tables, or ask your building department.

Worked example

  1. Deck area: 16 ft × 12 ft = 192 sq ft
  2. Rows: (12 ft × 12 in + 1/8 in gap) ÷ (5.5 in board + 1/8 in gap) = 25.62, round up to 26 rows
  3. Linear feet: 26 rows × 16 ft = 416 ft
  4. Boards: 26 rows × 1 per row × 1.10 = 28.6, round up to 29 boards of 16 ft
  5. Joists: 16 ft ÷ 16 in = 12 spaces + 1 = 13 joists, each 12 ft long, plus 2 rim joists of 16 ft
  6. Fasteners: 26 rows × 13 joists = 338 crossings × 2 screws = 676 screws
  7. Stain: 192 sq ft × 2 coats ÷ 300 sq ft per gallon = 1.28 gal, so 2 cans
  8. Cost: 192 sq ft × $3.00 = $576

Questions people ask

How many deck boards do I need for a 16 by 12 ft deck?

With 5.5 inch boards, a 1/8 inch gap and boards running 16 ft, the deck has 26 rows, or 416 linear feet. Add 10 percent for cuts and mistakes and you need 29 boards of 16 ft. TimberTech says to add roughly 10 percent and Trex says 5. The list under the result shows the count for 8, 10, 12 and 20 ft boards too.

How far apart should deck joists be?

Decking laid straight across the joists needs them no more than 16 inches apart, center to center, says TimberTech; 12 inches feels firmer. Composite and 5/4 wood boards laid at 45 degrees need 12 inches. 24 inches works only with some 2x6 boards, so check the maker and your local code before you pick it. Spans and ledger attachment are design questions: ask your building department or a pro.

How many joists does a 12 by 16 ft deck need?

13 joists 16 inches apart, each 12 ft long, plus 2 rim joists of 16 ft, when the boards run the 16 ft way: 16 ft at 16 inches is 12 spaces, plus one joist to close the last.

How many screws do I need for a deck?

About 350 screws per 100 sq ft for 6 inch boards on 16 inch joists: two screws at every place a board crosses a joist. The 192 sq ft example deck needs 676. Hidden clips take one clip and one screw per crossing, plus a few starter clips.

How much extra decking should I buy?

For straight boards, 5 to 15 percent, with 10 percent typical. For diagonal boards, 15 to 30 percent, and the calculator starts at 15. TimberTech says to add up to 30 percent for diagonal or herringbone patterns. Add more if the deck has many corners, stairs or short pieces.

How much stain does a deck need?

At 300 sq ft per gallon, two coats on the 192 sq ft example take 1.28 gallons, so buy 2 cans. Gallons equal the deck area times the number of coats, divided by the coverage per coat. Cabot lists 250 to 500 sq ft per gallon, depending on how rough the wood is. Composite needs no stain.

Related calculators