LayoutMath

Deck Calculator: Decking Boards, Joists, Posts and Cost

Deck material inputs and result

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

You need 29 deck boards, 13 joist pieces and 3 posts for a 16 feet by 12-foot deck.

Boards to buy
29

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

Deck area
192 square feet

17.84 square meters

Joists
13 pieces

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

Beams and posts
1 beam line

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

Face screws
676

Two screws at every joist crossing.

Sample cost
$1,124

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

  • Passes: IRC R507.6 joist span: 12 feet span fits within 13 feet 7 inches limit
  • Passes: IRC R507.5 post spacing: 8 feet on center beam layout
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 deck calculator doubles as a deck board calculator, a deck material calculator and deck framing calculator and a deck cost calculator (or deck costs calculator) for pressure-treated or composite boards. Add the rise and run and it works as a deck stair calculator and deck stringer calculator too, so the whole material list is in one place.

  • Free
  • No signup
  • Reviewed 20 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 center, plus 3 posts on 1 beam line if it hangs off a ledger.

HouseDeckingLedgerJoistBeamPostFooting

How the deck material math works

Boards are counted in rows

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, beams and posts come from the span

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.

A materials list, not a beam design

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 rail

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. The concrete calculator sizes the footing pours, and the board foot calculator prices the framing lumber by the board foot. Thinking about a patio instead? The paver calculator counts pavers, base and sand for the same space, and the french drain calculator takes the water away from the footings.

Formula

The 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 %.

The same sums, step by step

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 centers. 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 centers 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 center 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 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 center. 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 center, by lumber

Maximum deck joist span at 16 in on center, 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

Douglas fir, hem-fir and SPF: maximum joist span by spacing
Joist size12 in on center16 in on center24 in on center
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 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

Deck estimating mistakes

Most wrong counts on a deck come from the layout, not the arithmetic. These are the ones to check before you order.

Counting the boards the wrong way

Boards run across the joists. The row count follows the width the boards cover and the pieces per row follow the length, so check which way they run before you count.

Ordering the net count

Every row ends in a cut, and each cut leaves an offcut. Ten percent covers a plain rectangle, while a picture-frame border or diagonal boards want 15 percent.

Forgetting the gap

The gap between boards is part of every row. Hidden fasteners on composite boards often want a wider gap than pressure-treated wood, so enter the gap from the maker's box.

Assuming one joist size fits every span

The span a joist can reach depends on its size, the species and the spacing. A 2×8 in Douglas fir reaches 11 ft 1 in at 16 in on center but only 9 ft 1 in at 24 in.

Skipping the beam

When one joist cannot reach across the deck, a beam goes under the middle. A freestanding deck needs a beam line at the house side as well, since there is no ledger to carry it.

Leaving out what is not on the list

Footings, beam sizes, the ledger connection, railings, stairs, permits and hardware are extra. They come from your plans and your building department.

Deck checklist before you order

Run through this once the deck building calculator has given you the lists.

Measure

  • Measure the length and width of the finished deck, not the frame.
  • Decide which way the boards run and which side the joists span.
  • Note whether the deck is attached to a ledger or freestanding.

Choose

  • Pick the board width and the gap from the decking maker's instructions.
  • Pick the joist lumber and the spacing: 16 in is usual, and 12 in suits thin composite or diagonal boards.
  • Set the waste at 10 percent, or 15 percent for borders and diagonals.

Order and check

  • Compare the board count with the stock lengths your yard sells.
  • Add footings, hardware, railing and stairs from your own list.
  • Check beam, post and ledger details against your plans and your building department.

Deck terms

The words that appear on a deck plan and a lumber list.

Joist
A horizontal framing member that the deck boards are fixed to.
Beam
A larger member under the joists that carries them to the posts.
Ledger
A board fixed to the house wall that carries the house end of the joists on an attached deck.
Post
A vertical support under a beam that carries the load to a footing.
Span
The distance a joist or beam crosses between its supports.
On center
The distance from the middle of one joist to the middle of the next.
Freestanding deck
A deck that stands on its own posts and beams instead of hanging from a ledger on the house.
Gap
The space left between deck boards so water drains and the boards can move.

Code notes

Where the joist limits come from

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.

What the span check leaves out

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.

Joist centers outside the US

In the UK and much of Europe, joist centers 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.

Boards and layout

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.

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 many deck boards do I need for a 12x12 deck?

A 12 × 12 ft deck is 144 ft². With 5.5 in boards (a 6 in nominal) and a 0.25 in gap, that is about 24 boards at 12 ft, or 288 linear feet. Add 10% for waste and buy 26 to 27 boards — or 24 if you can return the offcuts.

Materials and cost

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 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.

Is this a deck cost estimator?

It prices the counts it works out. Type the price of a board, a joist, a post and a beam and it multiplies each by its count, then adds an installer's labor rate if you enter one. Use the result as a planning figure and compare it with written quotes.

Can I use this as a Trex deck calculator?

Yes. Trex, TimberTech and other composite decking are sized the same way as wood — type the board width and the gap, and the calculator counts the boards. Composite is heavier and wants 12 or 16 in joist spacing (not 24), and the hidden fasteners add to the cost — enter the price per clip in the labor field. Use it as a composite deck calculator for any brand.

Is there a free deck calculator that doesn't need signup?

Yes, this one. It runs in the browser, saves nothing, and gives you the board count, joist count, beam count, post count, stairs and total cost for free. Bookmark the page and run it as many times as you want — there is no account and no email. We aim for it to be the best free deck calculator online for a quick count and cost, but run it alongside another tool if you want a second opinion.

Does this work as a deck stairs calculator?

For the stringer, yes. Add the total rise and the run, and the calculator works out the riser count, the tread count and the stringer length. The stair stringer calculator on this site does the same job with more detail, including IRC rise and run limits.

Is this like the Home Depot deck calculator?

The Home Depot deck calculator is a similar online tool that estimates boards and materials from a deck size. This page does the same sum in your browser with no signup, and adds joist, beam and post counts from IRC Table R507.6 plus a cost breakdown. Run both and compare if you like — the math is the same, so the counts should agree.

Can I use this as a deck materials calculator?

Yes. The calculator returns the board, joist, beam, post and stair counts in one run, so it works as a deck materials calculator for the whole lumber package. Add the fasteners, hardware and footing concrete from the related tools when you build the order.

Is this also a deck estimate calculator?

Yes. The calculator returns the board, joist, beam and post counts with a sample cost, which is the same as a deck estimate calculator. Type your local lumber prices to turn the estimate into a budget number for the lumberyard.

Can I use this as a deck lumber calculator?

Yes. The deck lumber calculator counts every board, joist, beam and post in the frame, plus the decking. The output is the lumber package, and the board foot calculator prices it by the board foot if you want to compare yards.

Joists, beams and posts

Should joists be 16 inches or 24 inches on center?

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.

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.

Can I use this as a deck joist calculator?

Yes. Pick the joist lumber and the spacing and it counts the joist lines and checks the span against IRC Table R507.6. When one joist cannot reach, it adds a beam line and splits the joists into equal bays. The joist spacing chart on this page lists how far each size can span.