LayoutMath

Deck Calculator: Boards, Joists, Posts and Cost

Calculator

Start here. Two numbers get you a board count: length and width. Everything else has a sensible default.

Try an example

Deck size

4.877 m
ft
3.658 m
ft
Board direction

Boards

139.7 mm
in
4.877 m
ft
More optionsGap between boards, waste, joist spacing, joist size, joist lumber, post spacing and support
3.2 mm
in
%
406.4 mm
in
2.438 m
ft
Support
Sample pricesPer board, per joist piece, per post, beam, per length and labor, per area
$
$
$
$/ft
$/ft²
Currency symbol

Result

Buy 29 deck boards, 13 joist pieces and 3 posts for a 16′ by 12′ deck.

Boards to buy
29

26 before 10% waste · 26 rows × 1 per row

Deck area
192 ft²

17.84 m²

Joists
13 pieces

13 lines × 1 bay, buy 12 ft. Each spans 12′; the IRC table allows 13′ 7″ for 2×10 at this spacing.

Beams and posts
1 beam line

16′ per line · 3 posts (3 per line).

Face screws
676

Two screws at every joist crossing.

Sample cost
$1,124

$5.85 per ft² of deck. Materials $1,124. Edit the prices. They are not a quote.

PlanBoards solid, joists dashed

Type the deck's length and width and get the board count, joist lines, beam lines, posts and a cost you can edit. This free deck calculator works for pressure-treated or composite decking. Run it before you order: boards are cheap to over-buy and a nuisance to re-order, because the second lot rarely matches the first.

  • Free
  • No signup
  • Reviewed 15 October 2026
  • Estimates only

Quick answer A 12 × 16 ft deck (192 ft²) in 5½ in boards, 16 ft stock, a ⅛ in gap and 10% waste takes 29 deck boards (26 before waste). Underneath: 13 joists at 16 in on centre, plus 3 posts on 1 beam line if it hangs off a ledger.

HouseDeckingLedgerJoistBeamPostFooting

How it works

Deck area is length times width, but boards are bought by the piece, so the calculator counts rows instead. It divides the width the boards cover by the board width plus the gap, rounds up, and multiplies by how many pieces one row needs. Then it adds your waste and rounds up to a whole board. Ten percent covers ordinary cuts. A picture frame border or diagonal boards want 15%.

Joists run across the boards, so the calculator needs to know which way the boards run. Joist lines are the spaces along the run, rounded up, plus one. Then it checks the joist against the span table in IRC R507.6 for the lumber and spacing you picked. If one piece cannot reach, it adds a beam line under the middle and splits the joists into equal bays. This is the check that catches a 2×8 on a 12 ft span before it turns into a bouncy deck. Posts go along each beam line at the spacing you set.

Between them, the board, joist and post counts cover the whole deck: a materials list you can paste into an order. It is a deck material calculator, not a beam design, so footings, beam sizes and the ledger connection still come from your plans and your building department.

A deck needs a way down and a railing. The stair calculator splits the deck height into equal risers, and the baluster spacing calculator spaces the railing along the edge. Thinking about a patio instead? The paver calculator counts pavers, base and sand for the same space.

Formula

N=⌈⌈W+gb+g⌉×⌈Ll⌉×(1+w100)⌉

N = boards to buy, W = distance the rows fill, L = length of one row, b = board width, g = gap, l = board length, w = waste %.

rows            = ceil( (across + gap) / (board width + gap) )
pieces per row  = ceil( along / board length )
boards to buy   = ceil( rows × pieces per row × (1 + waste/100) )
joist lines     = ceil( along / joist spacing ) + 1
bays            = ceil( joist span / IRC R507.6 span for size, lumber, spacing )
beam lines      = bays          attached to a ledger
                = bays + 1      freestanding
posts           = beam lines × ( ceil( beam length / post spacing ) + 1 )

Worked examples

12 × 16 ft rectangle

Show the working

Across 12 ft with a 5½ in board and a ⅛ in gap is 26 rows. One 16 ft board covers the length, so the net count is 26. Ten percent waste buys 29. Joists at 16 in along 16 ft make 13 lines. A 2×10 in Douglas fir, hem-fir or SPF may span 13′ 7″ at 16 in (IRC R507.6), which covers the 12 ft width in 1 bay. On an attached deck that is one beam line with 3 posts at 8 ft. Swap to 2×8 and the limit drops to 11′ 1″, so the calculator adds a beam in the middle.

20 × 14 ft, boards across, freestanding

Show the working

Boards run the 14 ft width in 12 ft stock with a 3/16 in gap and 15% waste for a picture frame cut: 43 rows × 2 pieces = 86 boards net, 99 to buy. Joists span the 20 ft length at 12 in centres. A 2×10 may span 15′ 8″ there, so the planner splits them into 2 bays of 10′, with 3 beam lines because the deck is freestanding.

UK deck, 4.8 × 3.6 m in 144 mm boards

Show the working

144 mm boards with a 5 mm gap in 4.8 m lengths running along the 4.8 m side: 25 rows, 25 boards net, 28 with 10% waste. Joists at 400 mm centres make 13 lines. A 2×10 may span 4.14 m at that spacing, so one bay covers the 3.6 m width. UK joists are sized to a different table, so use your decking maker's span chart for the real timber.

How many deck boards do I need?

Find your deck size and you have a board count before you open the calculator. Every row uses 5½ in boards, a ⅛ in gap and 10% waste, with the boards running the long side in the shortest stock that covers it, joists at 16 in on centre and a deck bolted to a ledger. Your deck will differ a little, so run the real numbers above before you order.

Deck board calculator: boards to buy by deck size
Deck sizeBoard lengthBoards to buyJoist linesPosts
8 × 8 ft8 ft2072
10 × 10 ft10 ft2593
10 × 12 ft12 ft25103
12 × 12 ft12 ft29103
12 × 16 ft16 ft29133
16 × 16 ft16 ft39136

Deck joist spacing chart: how far a joist can span

This is the span limit the calculator holds your joists to, taken from IRC Table R507.6 (40 psf live load, 10 psf dead load, #2 grade, no snow). If one joist cannot cover the deck, the calculator adds a beam line under the middle and splits the joists. The first table compares the three lumber groups the code prints at 16 in on centre. The second shows how closer or wider spacing changes the limit for Douglas fir, hem-fir and SPF. The code prints 12, 16 and 24 in only, so 19.2 in joists use the 24 in column and a spacing you type in between takes the wider column too. That errs on the short side. Heavy snow, a hot tub or a different edition need their own table.

Maximum deck joist span at 16 in on centre, by lumber
Joist sizeSouthern pineDouglas fir, hem-fir, SPFRedwood, western cedar
2×69′8′ 4″8′
2×811′ 10″11′ 1″10′ 7″
2×1014′13′ 7″13′
2×1216′ 6″15′ 9″15′ 1″
Douglas fir, hem-fir and SPF: maximum joist span by spacing
Joist size12 in on centre16 in on centre24 in on centre
2×69′ 6″8′ 4″6′ 10″
2×812′ 6″11′ 1″9′ 1″
2×1015′ 8″13′ 7″11′ 1″
2×1218′15′ 9″12′ 10″

Cost to build a deck: materials per square foot

Here is what the deck cost calculator says materials come to at its sample prices: $22 a board, $26 a joist piece, $28 a post and $4 a foot of beam. That is the lumber-yard part of what a deck costs. Think of it as a deck estimator for a first budget, not a quote, because permits, footings, railings and stairs all come on top. Want the installed number? Type an installer's rate per square foot into the Labor field and the calculator adds it, so deck installation cost and labor cost per square foot come from real quotes, not a guessed average.

Deck materials at sample prices, by deck size
Deck sizeMaterialsPer square foot
8 × 8 ft$710$11.09
10 × 10 ft$908$9.08
10 × 12 ft$942$7.85
12 × 12 ft$1,030$7.15
12 × 16 ft$1,124$5.85
16 × 16 ft$1,830$7.15

Code notes

Deck joists, beams, posts and ledger attachment live in IRC Section R507. The joist limits here are Table R507.6, which assumes 40 psf live load, 10 psf dead load, #2 grade lumber and no snow load, so a heavy-snow area, a hot tub or a different edition needs its own table. The American Wood Council explains the same rules in its DCA 6 deck construction guide, and the IRC text (R507) is in IRC 2021 Chapter 5, Floors.

The span is measured across the whole deck, with no cantilever. A beam set back from the edge so the joists overhang it (up to a quarter of the joist span in the code) can let a smaller joist reach in one span. This calculator does not model that, so it errs toward adding a beam line. It also does not size beams, footings or the ledger connection.

In the UK and much of Europe, joist centres are usually 400 mm or 600 mm and the decking maker, not the IRC, sets the span. Use the 400 mm and 600 mm chips, then check the manufacturer's table.

Section numbers refer to IRC 2021 section numbers; England Approved Document K. Local amendments are common, so confirm with your building authority.

FAQ

Hover a question to read the answer. Click to keep it open.Tap a question to open it.

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

29, with 5½ inch boards, 16 foot stock, a ⅛ inch gap, the boards running the 16 foot way and 10% waste. The count before waste is 26. Load the worked example to see the joists and posts too.

Should joists be 16 inches or 24 inches on centre?

16 inches is the usual for 5/4 wood and most composite. Use 12 inches for thin composite or diagonal boards. 24 inches only works where the decking maker allows it. Wider spacing also shortens the span a joist is allowed, so it can add beams. A 2×8 in Douglas fir spans 11 ft 1 in at 16 inches but only 9 ft 1 in at 24. The deck joist spacing chart on this page has every size.

Can I use this as a composite decking calculator?

Yes. Composite changes the count only if the real cover width or the gap changes. A 5½ inch composite board and a 5½ inch pine board with the same gap give the same count. Hidden fasteners often want a ⅛ to 3/16 inch gap, so enter the gap on the maker's box instead of guessing.

How are beams and posts estimated?

The calculator checks your joist against IRC Table R507.6 and, when one piece cannot span, splits the deck into equal bays. An attached deck counts the house ledger as one support, so beam lines equal the number of bays. A freestanding deck needs one more. Posts are spaced along each beam at the distance you set, 8 feet by default. It is a quantity estimate, not a beam design.

How much waste should I add?

10% covers ordinary cuts on a rectangle. Picture-frame borders, breaker boards and diagonal layouts usually want 15%. The buy count is the net count times one plus waste, rounded up.

Which way should the boards run?

Across the joists, always. Running them the long way uses fewer butt joints when your stock is as long as the deck. The toggle swaps which side the boards fill and which side the joists span.

How much does it cost to build a deck?

Lumber first. At the calculator's sample prices the 12 × 16 ft deck needs about $1,124 of boards, joists, posts and beam, roughly $5.85 per square foot. The calculator multiplies each price you type by its count. Labor, permits, footings, railings and stairs are extra, and prices swing a lot by region, so use today's tag prices and written quotes, not a rule of thumb.

How do I work out deck installation cost and labor per square foot?

Type an installer's quoted rate per square foot into the Labor field. The calculator multiplies it by the deck area, adds the materials and shows the installed total and the cost per square foot. The labor cost to build a deck per square foot depends on your region, the deck height and the decking, so use a written quote and not an average.