Deck Calculator

A deck calculator turns the size of the deck you want into the order you actually place: the boards on top, the frame under them, the posts under that, and the screws, railing and stain around the edges. Type the run along the house and how far the deck reaches out, pick a material, and the card counts rows, joists and hardware with a cutting buffer already in. The footings themselves are sized on the concrete footing calculator; the whole project budget sits on the construction cost calculator.

Quick Step-by-Step Guide: How to Use This Deck Calculator
1
Select Material & Unit: Choose Pressure-Treated, Cedar, Composite (Trex), or Ipe, and toggle Imperial or Metric.
2
Enter Dimensions & Framing: Input deck length, width, preferred board length, and 12″ or 16″ O.C. joist spacing.
3
Review & Copy Result: Get exact board counts, substructure joists, concrete footings, screws, and railing. Click “Copy Result”.
Treated Pine Standard economical exterior lumber. 16″ O.C.
Cedar / Redwood Natural rot-resistance & rich grain. 16″ O.C.
Composite (Trex) Splinter-free. Manufacturer requires 12″ O.C.
Exotic Ipe Ultra-dense ironwood lasting 40+ years. 16″ O.C.

Deck Dimensions & Substructure

Fields start empty for your site measurements

feet
feet
Framing & Railing Options
Project Cost Estimator (Optional)
Formula Used & Simple Explanation
Total Boards = ceil(Deck Area ÷ Board Coverage Area) × (1 + Waste%) | Joists = ceil(Run ÷ Spacing) + 1

Calculate total deck surface area (Length × Width). Divide total width by effective board width (5.5″ width + 3/16″ gap) to determine total linear board footage, factoring a 10% cutting and end-trim buffer. Joists are spaced 16″ on center for wood or 12″ on center for composite decking.

Total Deck Boards (16ft Length)
0 Boards
Total Linear: 0 ft · 0 sq ft
Board Quantities By Length
12ft Boards 0 Standard
16ft Boards 0 Most Popular
20ft Boards 0 Fewer Seams
Substructure Framing & Joists
Joists Required: 0 pieces (0 ft)
Rim Joists & Ledger: 0 linear ft
Joist Hangers & Brackets: 0 brackets
Support Posts & Footings: 0 posts
Fasteners, Railing & Sealer
Deck Screws (~3.5/sq ft): ~0 (0 boxes)
Railing (36″ Code): None
Stain / Protective Sealer: ~0 Gallons
Estimated Total Cost:
* Local lumber, composite & hardware rates vary.
$0.00
Deck Builder Pro-Tip:
When installing composite boards or laying decking on a 45° diagonal, building codes require 12″ on-center joist spacing. Apply joist flashing tape along the top of all framing joists to prevent water rot.
On this page18 sections
  1. What does a deck calculator count?
  2. How does the calculator work?
  3. How do you calculate deck boards?
  4. 3 worked examples
  5. How many boards for a 12 × 16 deck?
  6. What does a 5.5 inch board actually cover?
  7. Parallel, perpendicular or diagonal?
  8. Why does the order carry a cutting buffer?
  9. Joists, rims and hangers: the frame under the boards
  10. Posts, footings and concrete bags
  11. What does the cost line do?
  12. What the cost line does not include
  13. Treated pine, cedar, composite or ipe?
  14. How do you enter metres?
  15. How much should you order?
  16. What are the common mistakes on a deck order?
  17. How this calculator counts
  18. Frequently asked questions

What does a deck calculator count?

The whole material order, not just the walking surface. From two dimensions — the run along the house and the projection out from it — the card counts deck boards in four stock lengths, the joists and rim under them, hangers, support posts with a concrete bag allowance, deck screws by the box, a 36 in railing with posts and balusters, and the stain to finish it.

Four material presets sit at the top: treated pine, cedar/redwood, composite and ipe. The case this page follows throughout is a 20 × 16 ft treated-pine deck on a ledger, standard 5/4×6 boards laid parallel, 16 in joist spacing and the default 10% cutting buffer: 47 boards in 16 ft lengths, 749 linear feet of decking, 16 joists, 4 posts and about 1,120 screws for 320 sq ft of deck.

How does the calculator work?

Type the two dimensions and every line on the right is that one rectangle read a different way. The headline is the board count in the length picked in the Board Length menu; under it sit the buffered linear footage and the deck area. One quirk to know before it bites: the headline label always reads “(16ft Length)” whatever length you pick — the *number* follows your menu, and the three boxes underneath restate the footage as 12, 16 and 20 ft counts so you can sanity-check it.

Result lineWhat it counts
Total boards + linear feetRows across the width × the run, buffered, rounded up to whole feet
12 / 16 / 20 ft boxesThe same footage cut three ways, for mixing lengths
Joists, rim, hangersThe frame: count from the spacing menu, perimeter for the rim
Posts (bags)A planning grid of posts, two 60 lb concrete bags each
Screws, railing, stain~3.5 screws a sq ft, open sides of railing, a gallon per 200 sq ft

There is no quantity box and no second-deck box. Two decks means two runs and adding the lists yourself — or one run per level of a multi-level deck.

How do you calculate deck boards?

Boards are counted by rows, not by area. Each row covers the board’s face width plus the 3/16 in gap the card leaves between boards:

row pitch = board face + 0.1875 in (a 5.5 in face pitches at 5.6875 in)
rows = ceil(deck width ÷ row pitch) — across the 16 ft here: 34 rows
linear feet = ceil(rows × run length × (1 + buffer %))
boards = ceil(linear feet ÷ board length)
joists = ceil(framing run ÷ spacing) + 1, then +5% on their linear feet
rim and ledger = perimeter + 5% · hangers = 1 per joist attached, 2 freestanding
screws ≈ 3.5 per sq ft (350 to a box) · stain ≈ 1 gal per 200 sq ft

On the 20 × 16: 34 rows × 20 ft is 680 linear feet bare. Buffer and round-up print 749 ft — a foot over the paper product, because the card rounds buffered footage up to the next whole foot and orders from that. 749 ÷ 16 ft, rounded up, is the 47 in the headline.

3 worked examples

Example 1 — the 20 × 16 ft ledger deck this page follows

Treated pine, parallel, 16 in spacing, 10% buffer: 47 boards (63 at 12 ft, 38 at 20 ft), 749 linear ft, joists 16 pcs (269 ft), rim 76 ft, 16 hangers, 4 posts (8 bags), screws ~1,120 (4 boxes), stain ~1.6 gal, railing 52 ft (10 posts, 156 balusters). At $25/sq ft + $100 delivery: $8100.00.

Real-world note: 47 sixteen-footers is a heavy cube. The 12/16/20 boxes exist so you can split the order — 20s for long middle rows, 12s where the run shortens.

Example 2 — a 12 × 16 ft deck off the back door

Same settings, 12 ft along the house: 29 boards, 449 linear ft over 192 sq ft, joists 10 pcs (168 ft), rim 59 ft, 3 posts (6 bags), screws ~672 (2 boxes), stain ~1.0 gal, railing 44 ft (9 posts, 132 balusters).

Real-world note: flip the same rectangle — 16 along the house × 12 out — and the board count holds at 29 but the frame changes: 13 joists, 164 ft of them, and 40 ft of railing. Length really is the house side on this card; type it that way.

Example 3 — the same 20 × 16 in composite

Click Composite and two things move: spacing is forced to 12 in and stain reads None (Composite). Boards stay 47; the frame grows to 21 joists (353 ft), 21 hangers. Switch back to cedar and your 16 in spacing returns.

Real-world note: the screw line still shows ~1,120 on composite. Most composite goes down on hidden clips, which this card does not count — treat that line as the face-screw number and price clips separately.

Deck width divided by the board face plus its gap gives the rows; rows times the run gives the order A 20 by 16 foot deck is 320 square feet. Against a 5.5 inch board face plus a 3/16 inch gap it takes 34 rows of decking, 680 linear feet exactly, 749 with the card’s 10 percent cutting buffer. That is 47 boards in 16 foot lengths, over 16 joists on 4 posts. ROWS × RUN × (1 + BUFFER) = LINEAR FEET 20 ft × 16 ft 5/4×6 boards, parallel 320 sq ft deck 20 ft along the house 16 ft out 16 ft ÷ 5.6875" pitch = 34 rows 34 rows × 20 ft = 680 linear ft + 10% cutting buffer = 749 ft 749 ÷ 16 ft boards = 47 boards ORDER 47 BOARDS (16 FT) 16 joists · 4 posts (8 bags) · ~1,120 screws · 1.6 gal stain
A 20 × 16 ft deck is 320 sq ft: at a 5.5 in face plus a 3/16 in gap it takes 34 rows and 749 buffered linear feet — 47 boards in 16 ft lengths, over 16 joists on 4 posts.

How many boards for a 12 × 16 deck?

29 boards in 16 ft lengths — 38 in 12 ft, 23 in 20 ft — for the standard build: 5.5 in boards, parallel, 10% buffer. The sizes around it, same settings:

Deck (along house × out)AreaBuffered linear ftBoards (16 ft)
10 × 10 ft100 sq ft243 ft16
14 × 12 ft168 sq ft401 ft26
12 × 16 ft192 sq ft449 ft29
16 × 12 ft192 sq ft458 ft29
20 × 16 ft320 sq ft749 ft47
20 × 20 ft400 sq ft947 ft60

Every row: 5.5 in face, parallel layout, 10% buffer, buffer rounded up to whole feet. Note the 12 × 16 and 16 × 12 rows: same area, same board count, 9 ft apart in footage — rows are counted across the projection, so orientation moves the footage even when it spares the count.

What does a 5.5 inch board actually cover?

5.6875 inches of deck per row — face plus the 3/16 in gap. Skip the gap in your own math and you under-buy every deck by about 3%: face-only math squeezes 35 rows into this projection where the card lays 34 and covers, because the gaps are part of the coverage:

Board sizePitch per rowOn the 20 × 16 ft deck
3.5 in (2×4 / narrow)3.6875 in1,166 linear ft → 73 boards
5.5 in (5/4×6, default)5.6875 in749 linear ft → 47 boards
7.25 in (2×8 wide)7.4375 in572 linear ft → 36 boards

16 ft lengths, 10% buffer. Narrow boards nearly double the piece count and every screw row with it; the screw line does not follow — it stays at ~3.5 a sq ft whatever face you pick, so a 2×4 deck wants a second look at the fastener math.

Parallel, perpendicular or diagonal?

Parallel boards run along the house and the joists span the projection — the default, and the layout behind every number above. Perpendicular flips both: boards run out from the house, rows are counted along the house run, and the joists span the long way. Diagonal keeps the parallel row count but the card floors the waste at 15%, whatever the buffer menu says, because nearly every edge board ends in a 45° cut.

Layout (20 × 16 ft)Linear ftBoardsJoistsPosts
Parallel749 ft4716 pcs (269 ft)4
Perpendicular757 ft4813 pcs (273 ft)6
45° diagonal782 ft4916 pcs (269 ft)4

5.5 in boards, 16 in spacing, 10% buffer menu. The diagonal row runs at the forced 15% — set the buffer to 0% and a diagonal deck still prints 782 ft. The card does not tighten joist spacing for diagonal; most codes and brands want 12 in under a 45° layout, so set that menu yourself.

Why does the order carry a cutting buffer?

Because boards end. End trims, a split board, the row that lands 2 in short against the house — the buffer menu (0/5/10/15, opening at 10%) is the difference between the footage on paper and the footage on the truck:

BufferLinear ft (20 × 16)Boards (16 ft)
0% exact680 ft43
5%714 ft45
10% (default)749 ft47
15%782 ft49

The buffer multiplies decking footage only. Joists carry their own built-in 5% on linear feet, screws and stain ride on area, and none of them move when this menu does — watch the joist line hold at 269 ft across the whole ladder.

Joists, rims and hangers: the frame under the boards

Joists are counted across the framing run: ceil(run ÷ spacing) + 1, the +1 closing the far end, with 5% added to their linear feet for cuts. On the 20 ft run:

Joist spacingJoistsJoist linear ftHangers (attached)
12 in O.C.21 pcs353 ft21
16 in O.C. (default)16 pcs269 ft16
24 in O.C.11 pcs185 ft11

20 × 16 ft deck, parallel, so each joist spans the 16 ft projection. Rim and ledger reads 76 linear ft at every spacing — the full 72 ft perimeter plus 5%, the house side included, because the ledger is a board too. Freestanding doubles the hangers (both ends bear on beams): 32 on this deck.

The card counts joists; it does not size them. Whether a 16 ft span wants a 2×8, a 2×10 or a mid-span beam is a span-table question — size picked, the lumber converts to board feet on the board foot calculator. The count settles the shopping list: pieces, footage, one hanger per end that hangs.

Posts, footings and concrete bags

Posts are a planning grid, not an engineered layout: a beam line about every 8 ft of joist span, posts about every 8 ft along the beam, and on a ledger deck the house-side line drops away because the ledger carries it. Each post carries an allowance of two 60 lb bags of concrete.

DeckPosts60 lb bags
20 × 16 attached48
20 × 16 freestanding1224
20 × 16 perpendicular, attached612
12 × 16 attached36
10 × 10 attached36

The freestanding version of the same deck triples the posts — both beam lines stand on their own footings and the count floors at four. Two bags a post is a register allowance for a typical tube footing; where a diameter and depth are specified, the pour itself is figured on the concrete calculator.

A tall deck, a hot tub corner or a roof load leaves this grid behind. It keeps you from forgetting footings; it does not stamp the layout.

What does the cost line do?

It multiplies the deck’s area by the rate you type, then adds the delivery fee: area × $/sq ft + fee, printed to the cent with no thousands separator. Both boxes open empty and the line reads $0.00 — the material presets name themselves and set spacing, but no preset carries a price.

On the 320 sq ft deckCost line reads
Both boxes empty$0.00
$100 delivery fee only$100.00
$25/sq ft + $100 fee$8100.00

Every dollar on the rate is $320 on this deck, so bring a rate that matches the quote you are testing: a boards-only rate against a boards-only question, an all-in installed rate against the whole job. The card cannot tell which you typed.

What the cost line does not include

  • Your labor or a crew’s. If the typed rate was materials-only, the build itself is still unpriced.
  • Stairs. No stringers, no treads, no stair railing anywhere on the card — a deck two steps up and a deck eight steps up read identical here.
  • Hidden fasteners. Clip systems replace the screw count with a clip per joist crossing; that box is not on this list.
  • Ledger flashing, tension ties and the permit. Small lines, real money, none of them counted.
  • Footings beyond the allowance. Deep frost or a specified diameter outgrows two bags a post fast.
  • Demolition and haul-off. The old deck coming out is a dumpster the card never orders.

Treated pine, cedar, composite or ipe?

On the counts, three of the four presets are the same deck. Treated pine, cedar/redwood and ipe return identical numbers everywhere — the preset records a name for the copied summary. Composite is the one that reaches into the math:

Preset (20 × 16)BoardsJoistsStain
Treated pine4716 pcs (269 ft)~1.6 gal
Cedar / redwood4716 pcs (269 ft)~1.6 gal
Composite4721 pcs (353 ft)None (Composite)
Exotic ipe4716 pcs (269 ft)~1.6 gal

Picking composite forces the spacing menu to 12 in — most manufacturers require it — and picking a wood again restores the spacing you had. If you set 12 in by hand for a diagonal wood deck, the card remembers and hands it back. Stain at a gallon per 200 sq ft is one coat on the deck face; rails, fascia and a second coat are yours to add.

How do you enter metres?

Tap Metric: dimensions in metres, converted to feet inside, priced by the square metre. A 6 × 5 m deck reads 48 boards, 232 m · 30 m², posts 8 (12 bags 40kg), stain ~6.1 L; at $270/m², $8100.00.

Two things stay imperial: framing lines keep their feet — this deck shows joists 16 pcs (276 ft), railing 53 ft — and the toggle converts nothing typed: leave 20 × 16 in the boxes and the card reads a 320 m² terrace needing 501 boards. Retype after switching. Metric stain converts from the rounded gallon figure, so it can sit a tenth of a litre off a from-scratch calc.

How much should you order?

The full list for the common backyard sizes — attached, 5.5 in boards in 16 ft lengths, parallel, 16 in spacing, railing on, 10% buffer:

DeckBoardsJoistsPosts (bags)Screws
10 × 10 platform169 pcs3 (6)~350 (1 box)
14 × 122612 pcs3 (6)~588 (2 boxes)
12 × 162910 pcs3 (6)~672 (2 boxes)
20 × 164716 pcs4 (8)~1,120 (4 boxes)
20 × 206016 pcs8 (16)~1,400 (4 boxes)

Boards are the buffered count; the buffer is your cutting allowance, not a spare-parts shelf. Add one extra board of the longest length on top as insurance against the split you find on the last row — on odd-shaped decks, measure each rectangle with the square footage calculator and run the card per rectangle.

What are the common mistakes on a deck order?

  • Swapping length and width. Length is along the house. Swap a 12 × 16 and boards hold at 29 but joists jump 10 → 13 — the frame ordered no longer matches the deck drawn.
  • Rows at face width, no gap. The 3/16 in gap is coverage; face-only math under-buys by about a row in thirty.
  • Buffer at 0% on a diagonal. The card refuses quietly: diagonal floors waste at 15% — 782 ft here, not 680.
  • Reading the label, not the menu. It always says 16ft; pick 8 ft boards and the headline 94 is an 8 ft count. Cross-check the three length boxes.
  • Composite at 16 in spacing anywhere else. This card forces 12 in and restores yours after; a diagonal in any material wants 12 in set by hand.
  • Screws for a hidden-clip deck. The ~3.5/sq ft line is face screws; clips are never counted here.
  • Forgetting the stairs. Stringers, treads, stair railing: absent from every line.
  • The post grid as engineering. Eight-foot planning spacing is a shopping count; height, snow and hot tubs need a drawing.
  • Metric with feet still typed. Nothing converts: 20 × 16 becomes 501 boards and 60 posts.
  • Reset keeping your material. It resets everything — treated pine, 16 in spacing — keeping only the unit.

How this calculator counts

Every rule, as the card applies it:

  • Rows/footage: pitch = face (3.5 / 5.5 / 7.25 in) + 3/16 in gap. Rows = ceil(width ÷ pitch); perpendicular counts across the length instead. Linear feet = rows × run × (1 + buffer), rounded up whole. Buffer 0/5/10/15% (10 default); diagonal floors it at 1.15.
  • Boards: ceil(linear ÷ picked length 8/10/12/16/20 ft); the headline label always says 16ft. The same footage restates at 12/16/20 ft below.
  • Frame: joists = ceil(run ÷ spacing) + 1 at 12/16/24 in; joist and rim footage +5%. Rim = full perimeter. Hangers = joist count attached, double freestanding.
  • Posts/bags: beam line per 8 ft of span, post per 8 ft along it; attached drops the house line (min 2), freestanding counts all (min 4). Two 60 lb bags a post; metric 1.5 × 40 kg bags, rounded up.
  • Screws/railing/stain: screws ceil(area × 3.5), 350 a box. Railing = open sides (length + 2 widths attached, perimeter freestanding), post per 6 ft + 1, balusters 3 a foot; off reads “None (Platform)”. Stain = area ÷ 200 gal, one decimal; “None (Composite)” on composite.
  • Materials: treated, cedar and ipe change nothing numeric. Composite forces 12 in spacing (yours is remembered, then restored) and clears stain.
  • Cost: area × typed rate + fee, to the cent, no commas; metric rates the m². Fee alone prints the fee; no dimensions print zeros regardless.
  • Units/reset: metres convert at ×3.28084; the toggle converts nothing typed; frame and railing lines print feet in both modes. Reset restores every menu and treated pine, keeping only the unit.

Frequently asked questions

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

29 boards at 16 ft — 449 buffered linear feet of 5.5 in decking at 10%: 38 at 12 ft, 23 at 20 ft.

How many boards for a 20×16 deck?

47 boards at 16 ft (749 linear ft), over 16 joists and 4 posts, ~1,120 screws — 4 boxes.

Why does the footage read 749 ft when 680 plus 10% is 748?

Buffered footage rounds up to the next whole foot and the card orders from that: 680 ft bare, 749 ft at 10%.

What is the actual width of a deck board?

A 5/4×6 face is 5.5 in; with the 3/16 in gap each row covers 5.6875 in.

How far apart should deck joists be?

12 / 16 / 24 in — 21 / 16 / 11 joists on a 20 ft run. Composite forces 12 in here; diagonal wants it set by hand.

How many joists do I need?

Run ÷ spacing, rounded up, +1: a 20 ft run at 16 in is 16 joists, 269 linear ft with the 5% allowance.

How many screws for a deck?

About 3.5 a sq ft: 320 sq ft reads ~1,120 screws, 4 boxes of 350.

How much stain does a deck take?

1 gal per 200 sq ft — 1.6 gal on 320 sq ft, one coat on the face. Composite: none.

Does a diagonal deck need more boards?

Yes: waste floors at 15% even at a 0% menu — 782 ft / 49 boards vs 749 / 47 parallel on a 20 × 16.

Does the material change the board count?

No. Composite only forces 12 in spacing (21 joists here) and clears the stain line.

How many posts and footings does a deck need?

An 8 ft planning grid: the 20 × 16 reads 4 posts attached, 12 freestanding, two 60 lb bags each.

Why does the headline say 16ft when I picked 8 ft boards?

The label is fixed; the number follows the Board Length menu — 94 at 8 ft here. The length boxes below are the check.

How much railing do I need?

The open sides: attached, length + both widths — 52 ft on the 20 × 16, 10 posts, 156 balusters at 3 a foot.

Can I enter metres?

Yes — retype after the toggle. A 6 × 5 m deck reads 48 boards, 232 m; frame lines still print feet.

Scroll to Top