What the calculator assumes
A rectangular deck attached to a house. Deck boards run along the house. Joists run out from the house, from a ledger board on the wall to a rim board at the outer edge. A beam near the outer edge sits on a row of posts. Deeper decks get a second beam near the middle.
How it works
- Rows of boards = deck width ÷ (board width + gap), rounded up
- Decking = rows × deck length, plus waste
- Boards to buy = decking ÷ board length, rounded up
- Joists = deck length ÷ joist spacing, rounded up, plus 1
- Screws = rows × joists × 2, plus waste
- Posts = deck length ÷ post spacing, rounded up, plus 1, for each beam
- Beam boards = 2 × deck length, for each beam
- Decking cost = boards × board length × price per foot
- Framing cost = feet of joists, ledger, rim and beam boards × price per foot
- Hardware cost = posts × post price + joists × hanger price + boxes of screws × box price
Example: a 16 by 12 foot deck with 5.5 inch boards and a 1/8 inch gap. Rows = 144 ÷ 5.625 = 25.6, so 26 rows. Decking = 26 × 16 = 416 feet, or 458 feet with 10 percent waste, which is 29 boards at 16 feet. Joists at 16 inches on center = 192 ÷ 16 + 1 = 13, each 12 feet long. Screws = 26 × 13 × 2 = 676, or 744 with waste.
The cost of that deck at the starting prices: decking is 29 × 16 × $0.95 = $441. The joists are 13 × 12 × $2.13 = $332. The ledger and rim board are 32 × $2.13 = $68, and the two beam boards are another 32 × $2.13 = $68. That makes $468 of framing lumber. Three posts are $127, 13 joist hangers are $44 and one box of screws is $41. The total is about $1,121.
What the cost covers
The cost is for the lumber and hardware in the list: deck boards, joists, ledger, rim, beam boards, posts, joist hangers and screws. Each line is rounded to the dollar. Clear a price or set it to 0 and that line drops out. Concrete, railing, stairs, ledger bolts, flashing, stain, delivery, tax and labor are not included.
The starting prices come from the store listings and cost guides under Sources, last checked in October 2026. Prices vary by region and season, so change any price to match your store or your quote. The deck board price is for pressure-treated pine. For cedar or composite, or for a deck built by a contractor, use the deck cost calculator.
Materials lists for common deck sizes
Each of these pages has a full list for that size, with the framing, railing and footings worked out.
8x1010x1010x1212x1212x1412x1612x2014x1614x2016x1616x2020x20
Joist spacing depends on board thickness
The International Residential Code limits how far apart joists can be under wood decking. Boards 5/4 thick need joists no more than 16 inches on center, or 12 inches when the boards run diagonally. Boards 2 inches thick can span 24 inches. Composite decking follows the maker instructions, which are often 16 inches or less.
This is a materials list, not a structural design
Joist size, beam size, post size, footing size and how far apart they can be all depend on your loads, lumber and local code. The beam count here assumes a typical beam made of two boards nailed together. The American Wood Council publishes a free guide, DCA 6, with span tables for wood decks. Most building departments will also tell you what they require when you apply for a permit.
Common questions
How many deck boards do I need for a 12x16 deck?
About 29 boards at 16 feet long, using 5.5 inch wide boards, a 1/8 inch gap and 10 percent waste. The boards run the 16 foot direction.
How much do the materials for a 12x16 deck cost?
About $1,121 in pressure-treated lumber and hardware at the starting prices: $441 for deck boards, $468 for framing lumber and $212 for posts, joist hangers and screws. Concrete, railing and stairs are extra, and prices vary by region and season.
How many screws do I need for a deck?
Two screws at every point where a board crosses a joist, which is also the building code minimum for wood decking. That works out to about 350 screws per 100 square feet with 5.5 inch boards and joists 16 inches on center.
What gap should I leave between deck boards?
Between 1/8 and 1/4 inch is typical for dry lumber. Wet pressure treated boards shrink as they dry, so they are often installed tight. Composite decking has its own required gap, so follow the maker instructions.
How much extra should I buy for diagonal decking?
Plan on about 15 percent waste instead of 10. Also check joist spacing. Under the International Residential Code, 5/4 wood decking laid at 45 degrees needs joists no more than 12 inches on center.
Does this calculator size my joists and beams?
No. It counts pieces. Sizes and spans come from your local building code or a span table such as the American Wood Council DCA 6 guide.
Tools for this job
Each link opens an Amazon search for that item. As an Amazon Associate I earn from qualifying purchases.
- Chalk line. Snaps a straight line for the first board and for trimming the board ends.
- Speed square. Marks square cuts on deck boards and joists.
- Deck board spacers. Keep the same gap between every board.
- Deck board straightening tool. Pulls a bowed board tight while you screw it down.
- Joist tape. Covers the tops of the joists so water does not sit on the wood.
- Driver bits. Spares for the drill, because deck screws wear bits out fast.
Put this calculator on your site
Paste this code into any web page to show the calculator there. It is free to use.
Sources
- International Residential Code 2021, Chapter 5: decks (R507)
- American Wood Council, DCA 6: Prescriptive Residential Wood Deck Construction Guide
- McCoy's Building Supply: deck board prices, treated pine and composite
- McCoy's Building Supply: pressure-treated lumber and post prices
- McCoy's Building Supply: Simpson Strong-Tie LUS210Z joist hanger
- McCoy's Building Supply: deck screws, #10 x 2-1/2 in, box of 1,000
Facts on this page were last checked against these sources in October 2026.