Deck calculator

Rows of deck boards = deck width in inches ÷ (board width + gap), rounded up. A 16 × 12 ft deck in 5½ in boards takes 26 rows: 29 boards of 16 ft with 10% extra, and 676 screws. Enter your deck for boards, joists, stairs and stain.

16 ft deck boards31 boards

About 29 deck boards of 16 ft for a 16 ft × 12 ft deck (192 sq ft), including 10% extra, plus 2 for 3 stair treads, with 13 joists, 676 screws and 2 gallons of stain.

Length (the way the boards run)
Width (across the boards)

Boards are counted to run the long way, along the length. A 5/4×6 or 1×6 board is really 5½ in wide. Joists are often 16 in apart; composite and diagonal boards may need them closer: check the board maker’s guide.

Stairs

Measure the height from the top of the decking to the ground where the stairs land. Enter 0 for no stairs.

Stain

Stain labels give 100–350 sq ft per gallon; new or rough wood is at the low end. 200 is set to be safe: use the figure on your can.

Your prices

Home Depot prices, December 2026. Divide a board’s price by its length for the price per foot. Leave a box empty to skip it.

Working

  1. Deck 16 ft × 12 ft192 sq ft
  2. Rows of boards: 144 in ÷ (5.5 in + 0.125 in gap), rounded up26 rows
  3. 16 ft boards: one per row26 boards
  4. + 10% extra (cuts, ends, bad boards), rounded up29 boards
  5. Joists 16 in apart across 16 ft, plus one13 joists
  6. Screws: 26 rows × 13 joists × 2676 screws
  7. Or hidden fasteners, one per board at each joist338 clips
  8. Stairs: 30 in down, ÷ 7.75 in at most per step, rounded up4 risers of 7.5 in
  9. Treads (the deck is the top step): 3 × 11 in33 in of run
  10. Stringer along the slope: √(30² + 33²)44.6 in
  11. Stringers 12 in apart across 4 ft5 × 2×12, 8 ft
  12. Tread boards: 3 × 2 pieces, 4 from each 16 ft board2 boards
  13. Stain: 203.13 sq ft × 1 coat ÷ 200 sq ft per gallon1.02 → 2 gal
  14. 31 boards × 16 ft at $0.46 a foot$228.16
  15. 2 gal of stain at $38.98$77.96
  16. Boards and stain (framing and screws not included)$306.12
  17. Joist and beam sizes depend on the span, the wood and the load: size them from a span table (AWC DCA 6 or your local code), not from this count.

Shopping list

We may earn a commission if you buy through these links, at no extra cost to you. Affiliate disclosure

Report a problem with this calculator

How to work out deck boards

rows = width (in) ÷ (board width + gap), rounded upboards = rows × boards per rowscrews = rows × joists × 2

Deck boards usually run along the house, square to the joists. Count the rows across the width, then the boards each row takes: one when a board is as long as the deck, more when boards are joined over a joist. A 5/4×6 or 1×6 board is really 5½ in wide.

Worked example: a 16 × 12 ft deck

  1. Rows: 144 in ÷ (5.5 + 0.125) in = 25.62, rounded up to 26 rows.
  2. Boards: one 16 ft board per row = 26, + 10% extra = 29 boards.
  3. Joists 16 in apart across 16 ft: 192 ÷ 16 + 1 = 13 joists.
  4. Screws: 26 rows × 13 joists × 2 = 676 screws.
  5. Stairs for a deck 30 in high: 30 ÷ 7.75, rounded up = 4 risers of 7.5 in, 3 treads, 5 stringers 12 in apart, and 2 more boards for the treads.

Boards for common deck sizes

DeckBoard lengthBoardsScrews
10 × 10 ft10 ft25352
12 × 12 ft12 ft29520
16 × 12 ft16 ft29676
16 × 16 ft16 ft39910
20 × 16 ft20 ft391,120

5½ in pressure-treated boards with a ⅛ in gap, running the length of the deck, 10% extra boards, joists 16 in apart. Stairs not included.

Deck stairs

The International Residential Code (R311.7.5) allows risers up to 7¾ in and treads at least 10 in deep, and every riser in a flight should be the same height. The calculator finds the fewest risers that stay under 7¾ in and splits the height evenly. Stringers are cut from 2×12s; for 5/4 tread boards, Fine Homebuilding puts them no more than 12 in apart and Decks.com no more than 16 in. Measure the height where the stairs will land, because the ground is rarely level.

How much does a deck cost in materials?

A 16 ft pressure-treated 5/4×6 deck board is about $7.36, or $0.46 a foot; a 16 ft Trex Enhance composite board about $41.60, or $2.60 a foot. A gallon of semi-transparent stain is about $38.98. For the example deck, the boards and stain come to $306.12; framing, posts, footings and screws are on top of that.

Prices last updated: December 2026. From the Home Depot listings under Sources; enter your own prices for a real total.

Pressure-treated or composite?

  • Pressure-treated: the cheapest per foot. It is stained or sealed, and many builders lay wet boards tight because they shrink as they dry.
  • Composite: costs more per foot, needs no stain, and needs the gap and joist spacing its maker gives (Trex: at least 3/16 in between boards).

The joists, beams, posts and footings carry the deck: size them from a span table (AWC DCA 6 or your local code), and check whether your town needs a permit.

Estimates only, not a contractor quote. Check local codes and your supplier’s figures before ordering.

Sources

Questions people ask

How many deck boards do I need?

Divide the deck’s width by one board plus its gap to get the rows, then multiply by the boards each row takes. A 16 × 12 ft deck in 5½ in boards with a ⅛ in gap has 144 ÷ 5.625 = 25.62, so 26 rows; with 16 ft boards that is 26 boards, or 29 with 10% extra for cuts and bad boards.

How many screws do I need for a deck?

Two screws per board at every joist. The 16 × 12 ft example has 26 rows crossing 13 joists: 26 × 13 × 2 = 676 screws, about 3.5 per square foot, close to the 350 per 100 sq ft Hunker gives for 6 in boards on 16 in joists. Hidden fasteners take one clip per board at each joist instead.

How many steps do I need for my deck?

Divide the height from the top of the deck to the ground by 7¾ in, the tallest riser the International Residential Code allows, and round up. A deck 30 in high needs 4 risers of 7.5 in. The deck is the top step, so there are 3 treads, each at least 10 in deep. Your local code may differ: check before you build.

How much stain do I need for a deck?

Divide the area by the coverage on the can, times the coats. Labels give 100–350 sq ft per gallon; rough or new wood takes more stain. The example deck and stair treads are 203.13 sq ft: one coat at 200 sq ft per gallon is 1.02 gallons, so buy 2. Add the railings and stair sides if you stain them too.

Should deck boards be gapped?

Composite boards need the gap their maker gives: Trex asks for at least 3/16 in between boards. Pressure-treated boards are often sold wet and shrink as they dry, so many builders lay them tight or nearly tight. Enter the gap you will use: it changes the number of rows.

How far apart are deck joists?

Often 16 in on center for wood boards running square to the joists. Composite boards and boards laid on a diagonal may need joists closer together: the board maker’s installation guide gives the spacing. Joist size depends on the span, the wood and the load, so size them from a span table such as AWC DCA 6 or your local code.

Last checked December 4, 2026. See how we calculate and test our results.