How to use the deck calculator
- Measure the deck length along the house. Deck boards run this way, parallel to the house wall. If you want the boards to overhang the rim, include the overhang.
- Measure the width out from the house. Joists run this way, from the ledger at the house to the rim at the outer edge.
- Pick the decking material and board length. Pressure-treated 5/4x6, 2x6 and most composite boards are all 5.5 in wide. Choosing the material sets a typical gap and an example price.
- Check joist spacing, waste and prices under “Materials and prices”. The material list updates as you type, and the copy link saves your inputs.
How the numbers are worked out
The calculator assumes a rectangular deck with boards laid straight across the joists, joists hung from a ledger at the house and a rim joist at the outer edge, and board joints landing on joists.
linear feet = rows × length
deck no longer than a board: boards = ⌈rows ÷ ⌊board length ÷ length⌋ × (1 + extra %)⌉
deck longer than a board: boards = ⌈linear feet ÷ board length × (1 + extra %)⌉
joists = ⌈(length × 12) ÷ spacing⌉ + 1, each as long as the width
ledger and rim = 2 × length
joist hangers = 2 × joists
screws = rows × joists × 2
The board count avoids two common mistakes. When the deck is shorter than a board, a board only gives as many rows as fit whole, so a 10 ft deck gets two rows from a 20 ft board but only one from a 16 ft board; short offcuts are not counted as usable. When the deck is longer than a board, the count uses total linear feet, so offcuts fill in the joints instead of buying two full boards for every row.
Example: a deck 16 ft along the house and 12 ft out covers 192 sq ft. The width is 144 in, and 144 ÷ 5.625 = 25.6, so it takes 26 rows, or 416 linear ft of decking. With 16 ft boards that is one board per row, plus 10% extra: 29 boards. Joists at 16 in on center: 192 ÷ 16 + 1 = 13 joists, 12 ft long, plus a 16 ft ledger and a 16 ft rim. That needs 26 joist hangers and 26 × 13 × 2 = 676 screws, about two 5 lb boxes. At the example prices the materials come to about $994 for pressure-treated decking, or about $1,759 for composite.
Cut list: under the calculator, the cut list lays out every row and shows how to cut each board, with butt joints on joist centers and alternate rows starting with a shorter piece so joints never line up on neighboring rows. For a 20 × 16 ft deck with 16 ft boards, rows alternate 16 ft + 4 ft and 8 ft + 12 ft, which takes 44 boards with under 1% waste because most 4 ft pieces come out of the offcuts left by the 12 ft pieces.
Deck board and joist quick reference
Deck boards for common deck sizes
Pressure-treated 5/4x6 boards, 1/8 in gaps, joists 16 in on center, 10% extra. Size is length along the house × width out from the house.
| Deck size | Area | Board rows | 12 ft boards | 16 ft boards | 20 ft boards | Joists |
|---|---|---|---|---|---|---|
| 10 × 10 ft | 100 sq ft | 22 | 25 | 25 | 13 | 9 |
| 12 × 12 ft | 144 sq ft | 26 | 29 | 29 | 29 | 10 |
| 16 × 12 ft | 192 sq ft | 26 | 39 | 29 | 29 | 13 |
| 20 × 16 ft | 320 sq ft | 35 | 65 | 49 | 39 | 16 |
The cheapest board length is usually the one that divides evenly into the deck length: 12 ft boards for a 12 ft deck, 20 ft boards cut in half for a 10 ft deck. The calculator points this out when another length saves at least 5% of the decking.
Joist spacing by decking material
| Decking | Boards straight across joists | Boards at 45° |
|---|---|---|
| 5/4 wood (pressure-treated 5/4x6) | 16 in on center | 12 in on center |
| 2x wood (2x6) | Up to 24 in; 16 in feels stiffer | 16 in on center |
| Composite and PVC | Typically 16 in on center | Typically 12 in on center |
The wood figures follow the decking table in recent editions of the International Residential Code (Table R507.7). Composite spacing is set by each manufacturer, so follow the installation guide for your exact board. This calculator offers 12 or 16 in spacing.
Tips before you buy
- Size the structure from code, not from this list. Footings, posts, beams, ledger flashing and fasteners, blocking, stairs and railings are not included. Joist and beam spans come from IRC span tables (Table R507.6 for joists) and your local building department, which may also require a permit.
- Plan the footings separately. Footings must reach below your local frost line. The concrete calculator works out bags or yards for footing holes and piers.
- Guards are required above 30 in. Under the IRC, a deck surface more than 30 in above the ground needs a guard (railing), which this list does not cover.
- Flash the ledger. A ledger attached to the house needs flashing and through-bolts or structural screws; a poorly attached ledger is a common cause of deck failure.
- Use the right fasteners. Pressure-treated lumber needs hot-dip galvanized or stainless screws and hangers rated for treated wood. Composite boards usually need the maker’s color-matched screws or hidden clips.
- Mind the gap. Wet pressure-treated boards shrink as they dry and are often laid tight; kiln-dried boards get about 1/8 in; composite gets the gap in its installation guide.
- Stagger the joints. On decks longer than your boards, land every butt joint on a joist and avoid lining joints up on neighboring rows.
- Call 811 before you dig footing holes. It is free in the US and marks buried utility lines.
Fencing the yard around the new deck? Use the fence calculator for posts, rails and pickets, and the concrete calculator for the deck footings.
Last updated November 30, 2026.