Civil & Structural Engineering

Deck Calculator

Calculate how many deck boards you need, with board spacing, waste factor, and optional cost estimate.

Formula N = ⌈Rows × BPR × (1 + W%)⌉Last updated Aug 19, 2026

Planning a deck? This calculator tells you exactly how many deck boards to buy. Enter your deck's length and width, the board's face width and purchasable length, and the gap you're leaving between boards for drainage and expansion - the calculator works out how many board rows span the deck's width, how many boards each row needs end-to-end, and the total board count. Add a waste factor for cuts and staggered seams, and a price per board to get a material cost estimate before you order.

Calculation Bench

Deck Dimensions

01

L · Direction the boards run along

02

W · Direction spanned by laying boards side by side

Board Dimensions

03

bw · Face width of one board, not including the gap

04

bl · Purchasable length one board comes in

05

g · Gap left between boards for drainage and expansion

Options

06

W% · 10% for a simple layout; more for borders or diagonals

07

$ · Optional - leave blank to skip cost estimate

Solution

Enter deck and board dimensions to calculate your board count.

N = ⌈Rows × BPR × (1 + W%)⌉

Formula Sheet

Rows=⌈W+gbw+g⌉\text{Rows} = \left\lceil \dfrac{W + g}{bw + g} \right\rceil
BPR=⌈Lbl⌉\text{BPR} = \left\lceil \dfrac{L}{bl} \right\rceil
N=⌈Rows×BPR×(1+W%)⌉N = \left\lceil \text{Rows} \times \text{BPR} \times (1 + \text{W\%}) \right\rceil
  • NTotal Boards
  • LDeck Length
  • WDeck Width
  • bwBoard Width
  • blBoard Length
  • gGap Spacing
  • W%Waste Factor

Variables & Units

SymbolVariableDescriptionCommon Units
NTotal BoardsTotal number of boards to purchase, rounded up and including the waste allowance.
LDeck LengthThe direction deck boards run along their length.ft, m, in
WDeck WidthThe direction spanned by laying boards side by side.ft, m, in
bwBoard WidthThe face width of a single deck board, not including the gap.in, mm, cm
blBoard LengthThe purchasable length a single board comes in.ft, m
gGap SpacingThe gap left between adjacent boards for drainage and thermal expansion.in, mm
W%Waste FactorA decimal allowance for end cuts, staggered seams, and mistakes (e.g. 0.10 = 10%).

How to Use This Calculator

  • 01Measure or plan the deck length and width - boards are assumed to run the full length direction, laid side by side across the width.
  • 02Enter the board's face width (not including the gap) and its purchasable length (the length boards come in from the supplier, e.g. 12 ft or 16 ft).
  • 03Set the Gap Spacing between boards - typically 1/8 in (3 mm) for wood decking and slightly more for composite, to allow for drainage and thermal expansion.
  • 04Set the Waste Factor (%) to account for end cuts, staggered seams, and mistakes. A standard allowance is 10%; increase for complex layouts, picture-frame borders, or diagonal patterns.
  • 05Optionally enter the price per board to calculate your total material cost.
  • 06The calculator instantly shows the number of rows, boards per row, and the total board count rounded up to the nearest whole board.

How the Formula Works

The calculator first finds how many board rows are needed to span the deck's width. N boards laid side by side have only N − 1 gaps between them, not N, so the width Rows = ⌈(W + g) / (bw + g)⌉ - adding one gap width to the deck width before dividing - is what correctly accounts for that missing final gap; dividing width by coverage width alone would under-count by one board in some deck-width and gap combinations.

It then finds how many boards each row needs end-to-end by dividing the deck length by the purchasable board length, again rounding up - a row longer than a single board needs more than one, joined at a seam.

Total boards is the product of rows and boards per row. The waste factor adds a percentage buffer before a final round-up, ensuring you order enough material to cover end cuts and seam offcuts.

Cost is simply the total board count multiplied by the price per board.

Worked Example 01

Standard backyard deck

Known

  • Deck Length (L): 20 ft
  • Deck Width (W): 12 ft
  • Board Width (bw): 5.5 in
  • Board Length (bl): 12 ft
  • Gap Spacing (g): 1/8 in
  • Waste Factor (W%): 10%

Formula

Rows = ⌈(W + g) / (bw + g)⌉

Substitution

Rows = ⌈(12 ft + 1/8 in) / 5.625 in⌉ = 26, BPR = ⌈20 ft / 12 ft⌉ = 2, N = ⌈26 × 2 × 1.10⌉

Result

58 boards

A 20 by 12 foot deck using 5.5-inch boards with a 1/8-inch gap needs 26 rows of 2 boards each - 52 base boards. Adding a 10% waste buffer gives 58 boards to order.

Worked Example 02

Metric composite deck, exact fit

Known

  • Deck Length (L): 6 m
  • Deck Width (W): 3 m
  • Board Width (bw): 15 cm
  • Board Length (bl): 3 m
  • Gap Spacing (g): 0 mm
  • Waste Factor (W%): 0%

Formula

Rows = ⌈(W + g) / (bw + g)⌉

Substitution

Rows = ⌈3 / 0.15⌉ = 20, BPR = ⌈6 / 3⌉ = 2, N = 20 × 2

Result

40 boards

A clean 6 m × 3 m deck using 15 cm wide, 3 m long boards with no gap requires exactly 40 boards with no waste, since both deck dimensions are exact multiples of the board.

Applications

  • 01Estimating the number of deck boards and material cost for a new residential deck build
  • 02Quick quantity takeoff for contractor bidding or homeowner budgeting
  • 03Comparing board quantity and cost between different board widths or lengths before ordering

Assumptions

  • 01The deck is a single straight rectangle. Deck boards run the full length direction, laid side by side across the width.
  • 02All boards are the same width and purchasable length throughout the deck.
  • 03Board rows are assumed to be seamed (joined end-to-end) when the deck length exceeds a single board's length, rather than using one long custom-length board.

Where This Model Stops

  • 01Does not calculate joists, beams, footings, or fasteners - only the decking (surface board) material. Framing must be sized separately by a structural calculation or local code table.
  • 02Does not account for picture-frame borders, diagonal or herringbone patterns, or curved deck edges - these need a materially higher waste factor and possibly manual takeoff for the border pieces.
  • 03Does not calculate hidden-fastener clip counts. Clip spacing varies by manufacturer; check your fastener system's spec sheet for clips-per-board-foot.

References

  1. [1]

    How to Calculate How Much Decking You Need

    TimberTech

    Manufacturer guidance on the area-and-coverage-width method for estimating deck board quantities, including a waste allowance.

  2. [2]

    Deck Construction Guide

    American Wood Council (AWC)

    Industry reference for residential wood deck construction practices, including board spacing and layout conventions.

Frequently Asked Questions

What waste factor should I use?

For a simple rectangular deck with boards running one direction, 10% is a reliable standard. Add 5–10% more for picture-frame borders, diagonal or herringbone patterns, or many staggered seams. When in doubt, round up - returning unused boards is easier than a second trip to the lumber yard.

Does this calculate joists or framing too?

No - this page is specifically a decking (surface board) material calculator. Joist size, spacing, and footing count depend on your span, species, load rating, and local code, and should be sized with a joist span table or a structural calculation, not this tool.

What gap spacing should I use between boards?

For wood decking, 1/8 in (about 3 mm) is a common standard to allow drainage and seasonal expansion. Composite decking often needs a slightly wider gap - check your specific product's installation guide, since gap requirements vary by manufacturer and board width.

Why does my deck need more than one board per row?

Because deck boards come in fixed purchasable lengths (commonly 12, 16, or 20 ft). If your deck's length exceeds the board length, each row needs two or more boards joined at a seam - this calculator accounts for that with the Boards per Row figure.