How to calculate lumber for a deck
This deck lumber calculator is a complete lumber calculator for deck building: tell it the size and height and it lists every joist, beam, post, ledger, deck board and hanger you need — the full deck building lumber list, priced.
A deck takeoff has five parts: the joists that carry the boards, the beams and posts that carry the joists, the footings under the posts, the hardware that ties it together, and the deck boards. These are the formulas the calculator uses:
joists = deck length (in) ÷ spacing (in) + 1
joist length = projection − ledger − rim
rows = (deck width + gap) ÷ (board width + gap), rounded up
beams = ledger + enough beams that no joist span exceeds the limit,
cantilever ≤ backspan ÷ 4
posts/beam = (beam length − 2 ft) ÷ max post spacing, rounded up, + 1
concrete = π × (hole diameter ÷ 2)² × depth ÷ bag yield, per hole
An attached deck hangs its joists from a ledger bolted to the house, so it needs one beam fewer than a freestanding deck. A freestanding deck needs at least two beams. Joists normally run away from the house and the boards run parallel to it; you can flip that with Joists run along the house.
The calculator does not look up span tables. It uses a conservative planning rule of thumb — about 1¼ ft of span per inch of nominal joist depth at 16″ on center, so roughly 10 ft for a 2×8 — to choose the number of beams, and warns you when a span is longer. Always check your real spans in IRC Table R507.6 (joists) and R507.5 (beams), which depend on species, grade and snow load.
Worked example: lumber for a 12×16 deck
A 16 ft × 12 ft deck attached to the house, 3 ft high, with 2×8 joists at 16″ on center, one 2-ply 2×10 beam, 6×6 posts at up to 8 ft, 5/4×6 deck boards with a 3/16″ gap and 12″ × 36″ footings:
| Part | Math | Buy |
|---|---|---|
| Joists | 192″ ÷ 16 + 1 = 13; 144 − 1½ − 1½ = 141″ | 13 × 2×8×12′ (15 with 10% waste) |
| Ledger and rim | one each, 16 ft | 2 × 2×8×16′ |
| Blocking | 12 blocks at mid-span | cut from 2×8 stock |
| Beam | backspan 9′ 10½″, cantilever 2′ (≤ ¼ backspan) | 2 × 2×10×16′ |
| Posts | (16 − 2) ÷ 8 → 2 spans → 3 posts, about 16½″ each | 1 × 6×6×8′ |
| Concrete | π × 6² × 36 = 4,072 in³ = 2.36 ft³ ÷ 0.6 = 4 bags per hole | 12 × 80 lb bags |
| Deck boards | (144 + 0.1875) ÷ 5.6875 = 25.4 → 26 rows | 26 × 5/4×6×16′ (28 with 7%) |
| Hardware | one hanger and one hurricane tie per joist | 13 hangers, 13 ties, 3 post bases and caps |
Change any input above and the numbers, the 3D model and the lumber list update together. Tap a row in the list to highlight those pieces in the drawing.
Deck board lengths and where the butt joints go
Most calculators stop at “26 boards”. The real question at the lumber yard is which lengths. When a row is longer than the boards you can buy, two boards meet end to end in a butt joint, and that joint must land on the centre of a joist so both ends are supported.
The calculator lays out every row the way a deck builder does:
- It finds every joist centre along the row — the only places a joint may fall.
- For each row it picks the joints that waste the least wood, preferring fewer joints, using the stock lengths you ticked.
- No joint may share a joist with the joints in the two rows before it, so the joints stagger across the deck.
- The pieces then go through the cut optimizer, which decides which stock lengths to buy and which offcuts to reuse.
The Deck board layout card shows the boards, the joists and every joint in blue, a table of which rows get which pieces, and the cut plan. If a 16 ft deck uses 16 ft boards there are no joints at all — untick 16′ in More options to see how it would be built from shorter boards.
| Pattern | What changes | Default waste |
|---|---|---|
| Straight | Rows run parallel to the house, across the joists | 7% |
| Picture frame | One border board around the open sides; end joists doubled for bearing | 12% |
| Diagonal 45° | About 1.4 × more rows, each board cut at 45° at both ends | 15% |
The waste percentage is extra on top of the cut plan, for split ends, culls and miscuts.
Beams, posts and footings
Beams sit under the joists and are built from two or three plies of 2× lumber nailed or bolted together. Joists may run past the outer beam — a cantilever — but no more than one quarter of the backspan (the span from the ledger or the previous beam). With a 2 ft cantilever the beam of a 12 ft deck sits just under 10 ft from the ledger.
Posts are spaced along each beam, starting about 1 ft in from each end. The allowed beam span between posts depends on the beam size and the joist span it carries — check IRC Table R507.5. Post size and maximum height are covered in IRC R507.4; many builders use 6×6 posts for any deck that is more than a few feet off the ground.
Each post stands on a footing. A round hole holds π × r² × depth of concrete; an 80 lb bag makes about 0.6 cubic feet. The footing must reach below your local frost depth, so the right depth comes from your building department, not from this page.
Buying tips for deck lumber
- Use pressure-treated lumber for the framing. Check the end tag: posts and framing that are close to the ground or hard to replace should be rated for ground contact.
- Use connectors and fasteners rated for treated wood — hot-dip galvanized or stainless steel hangers, ties, bolts and screws.
- Buy joists one length up when the cut length is within an inch of a stock length; treated boards are not always square on the ends.
- Pick deck boards by hand. Look for straight boards without large knots at the ends, where screws go in.
- Prices are editable samples. Enter your yard’s prices in the lumber list for a realistic total; they are saved on this device.
Planning shade over the deck? Price a pergola too and keep everything in one lumber list.
Frequently asked questions
How much lumber do I need for a 12×12 deck?
An attached 12×12 deck with 2×8 joists at 16″ on center needs 10 joists 12 ft long, a 12 ft ledger and rim, one 2-ply 2×10 beam 12 ft long on 3 posts, 12 bags of concrete and 26 rows of 12 ft 5/4×6 deck boards (28 with 7% waste).
How many deck boards do I need for a 12×16 deck?
With 5/4×6 boards (5½″ wide) and a 3/16″ gap, a 12 ft wide deck takes 26 rows. If the boards run the 16 ft length you need 26 boards 16 ft long, or 28 with a 7% waste allowance — no butt joints at all.
How many joists does a 16-foot deck need?
13 joists at 16″ on center (192 ÷ 16 + 1) and 17 at 12″ on center. A picture-frame border adds two more for the doubled end joists.
How far can a 2×8 deck joist span?
It depends on species, grade, spacing and snow load — look it up in IRC Table R507.6. For planning, this calculator assumes about 10 ft at 16″ on center, which is on the conservative side, and adds a beam when a span is longer.
How many bags of concrete per deck post?
A 12″ diameter hole 36″ deep holds about 2.36 cubic feet of concrete, which is 4 bags of 80 lb mix at 0.6 cubic feet each. A 10″ hole of the same depth takes 3 bags.
Where should deck board butt joints go?
Always on the centre of a joist, so each board end has bearing, and staggered so neighbouring rows do not break on the same joist. The calculator places every joint this way and lists the pieces per row.
Does a diagonal deck need more lumber?
Yes. Diagonal rows are longer and every board is cut at 45° at both ends, so plan on about 15% waste instead of 7%, and closer joist spacing — check IRC Table R507.7 and the decking maker’s instructions.