KLM Labs

Deck board calculator

Type the deck as your tape reads it, pick the board, the gap and the lengths you can buy, and get the rows, the width of the last row (and whether it must be ripped), every row cut from your stock lengths with the joints landing on joists, the boards to buy and the joists. A 16' 3" x 12' 4-1/2" deck of 5/4x6 boards with a 3/16" gap is 27 rows, the last one ripped to 5/8"; it takes 36 boards. This sets the board count, not a price or a deck design.

Your deck

Type the deck the way your tape reads it: 16' 3" x 12' 4-1/2". It starts with that deck, 5/4x6 boards and a 3/16" gap: change them to yours. This works out the boards. It does not price or design a deck.

1 · The deck and the board

Boards run 16' 3", rows stack across 12' 4-1/2"

Inches. Your board maker's guide sets it; empty = 3/16".

2 · The layout and the lengths
%

Empty = 10% straight, 15% at 45°.

Board lengths you can buy

Your order list

Boards to buy: 36 boards

27 rows, 14 joists

Rows across the deck
27 (26 full boards and a ripped last row)
Last row
5/8" wide: rip a 5-1/2" board down to it
Boards to buy
36: 5 × 12', 31 × 16'
Cut plan, before spares
32 boards (27 butt joints, each over a joist)
Joists along the length
14

The last row would be a 5/8" sliver. A thin rip is hard to fasten and splits: rip the first and last rows to 3-1/16" each instead.

Your deck stays in this browser until you clear it. Nothing you type is sent to us unless you ask for the email.

What to buy

LengthIn the cut planSparesTo buy
12'505
16'27431

Every row: the cuts and the joints

Rows that are cut the same way are listed together. Cuts run left to right along the row, to the nearest 1/16". A joint is a butt joint over the middle of a joist; no row has one on the joist the row beside it uses.

RowsBoardCuts, left to rightJoints
1, 3, ... 25 (every other row)5-1/2"13' 8-3/8" + 2' 6-7/16"joist 12 at 13' 8-1/2"
2, 4, ... 26 (every other row)5-1/2"12' 5-1/2" + 3' 9-5/16"joist 11 at 12' 5-5/8"
275/8" (rip)13' 8-3/8" + 2' 6-7/16"joist 12 at 13' 8-1/2"

Rows top to bottom. Dashed lines are joists; each dark tick is a butt joint over a joist.

  1. Full rows: (148.5" + 0.1875") ÷ (5.5" + 0.1875") = 26.143, so 26 full boards
  2. Last row: 148.5" − 26 × (5.5" + 0.1875") = 0.625", or 5/8": ripped
  3. Joists: (195" − 1.5") ÷ 16" = 12.094, rounded up to 13 bays, so 14 joists, ≈ 14-7/8" on center

Same exact math as Fraction Feet Inch Calculator
The deck board order list PDF: a 16 foot 3 inch by 12 foot 4-1/2 inch deck, 27 rows with the last row ripped to 5/8 inch, 36 boards to buy, 14 joists and a plan drawing of the joints.
The order list this page emails you. US Letter, 1 page.

How many rows does my deck take, and how wide is the last one?

Boards run perpendicular to the joists, so the length is the way the boards run and the width is what the rows stack across (Decks.com). Each row takes one board plus one gap, except that the last row has no gap after it:

  1. Full rows = (width + gap) ÷ (board + gap), rounded down.
  2. Last row = width − full rows × (board + gap). Over zero, it is a board ripped to that width. At zero or under, the full boards fit.
  3. Rows = full rows, plus one if the last row is ripped.

The board is the actual width, not the nominal one: a nominal 6 is 5-1/2" wide, a nominal 4 is 3-1/2", a 2x is 1-1/2" thick and a 5/4 board is 1" thick (NIST, PS 20-20, Table 3: the minimum dressed sizes of dry lumber). Composite boards are made to their maker’s size: pick “Another board” in the calculator and type the actual width.

A worked deck: 16' 3" x 12' 4-1/2"

The deck is 195" long (the way the boards run) and 148.5" wide. The boards are 5/4x6, 5-1/2" wide, with a 3/16" (0.1875") gap and 12' and 16' boards to buy. The calculator above holds exactly this deck.

Step The sum Result
Full rows (148.5 + 0.1875) ÷ (5.5 + 0.1875) = 148.6875 ÷ 5.6875 = 26.143, rounded down 26
Last row 148.5 − 26 × 5.6875 = 148.5 − 147.875 = 0.625" 5/8", ripped
Rows 26 full boards + the ripped one 27
Joists (195 − 1.5) ÷ 16 = 12.094, rounded up to 13 bays, so 14 joists 14, about 14-7/8" on center
Cuts odd rows: 13' 8-3/8" + 2' 6-7/16"; even rows: 12' 5-1/2" + 3' 9-5/16" each row in two pieces
Joints odd rows over joist 12, at 13' 8-1/2"; even rows over joist 11, at 12' 5-5/8" no joint on its neighbour’s joist
Boards 32 in the cut plan (27 of them 16', 5 of them 12'), 10% spares: 3.2, rounded up to 4 36: 5 × 12', 31 × 16'

The 5/8" last row is a sliver, and the calculator says so: a strip that thin is hard to fasten and splits. The fix is arithmetic, not a code rule: rip the first and the last row to (5-1/2" + 5/8") ÷ 2 = 3-1/16" each, so neither is a sliver. The rows and the gaps still add up to 148-1/2".

Why two pieces a row? A 16' 3" deck is 3" longer than a 16' board. The planner puts every butt joint over the middle of a joist, stops each board end half a gap (3/32") short of it, and never uses the joist the row beside it uses. Offcuts of 12" or more start later rows, which is why the plan needs 32 boards, not 54. If you buy only 16' boards the same deck takes 31 boards (35 with spares); only 12' boards, 41 (46 with spares). The calculator gives that comparison for the lengths you tick, so you see what each yard’s stock costs you in boards, not in dollars: it gives no prices.

What do the joints go over, and how far apart are the joists?

A butt joint, where two boards meet end to end, goes over a joist. Trex’s installation guide is plain: where boards meet over a single joist, use its butt joint clip, or add a 2x4 nailer at the joist and two hidden fasteners, and the end of a deck board must always rest on a framing member (Trex 2026 guide, page 19). The joint is a gap too: Trex wants 1/8" end to end when you install above 40°F and 3/16" below. The calculator uses your one gap for both, so set it to the bigger one if the weather is cold.

A board also has to rest on enough joists. Trex says its decking must span at least three joists (2026 guide, page 22), and the model code (IRC 2021 Table R507.7) treats a board on three or more joists as a “multiple span”. The planner never leaves a piece on fewer than three joists, and it spaces the joists evenly between the two end joists, no farther apart than you choose.

Board Straight (90° to the joists) Diagonal (45°) Source
5/4 wood (1-1/4" nominal) 16" on center 12" on center IRC 2021 Table R507.7, board on three or more joists
2x wood (2" thick) 24" on center 24" on center IRC 2021 Table R507.7
Trex 1x6 16" on center 12" on center (4" less than the chart) Trex 2026 guide, page 22
Trex 2x6 16" or 24" on center, by the load rating 4" less than the chart Trex 2026 guide, page 22
Other composite the maker’s guide the maker’s guide the model code defers to the maker (R507.2)

The calculator warns you when your joist spacing is wider than the wood table allows. Joist size and span come from your plan or your building department, not from this page: the table above is the spacing a deck board can span, not a design of the framing, and the codes in your town may differ from the model code.

How wide should the gap between deck boards be?

Gaps let water drain and the boards swell and shrink. Trex says the same of its boards (2026 guide, page 24), and that the gap also allows for shrinkage of the wood joist system. The number is the board maker’s:

Gap Number Source
Trex, side to side, minimum 3/16", all temperatures Trex 2026 guide, page 24
Trex, heavily wooded areas 3/8" recommended; never over 1/2" Trex 2026 guide, page 24
Trex, end to end 1/8" above 40°F, 3/16" below Trex 2026 guide, page 24
Trex, against a wall 1/4" above 40°F, 1/2" below Trex 2026 guide, page 24
Composite with hidden fasteners about 3/16" to 1/4" Decks.com
Pressure-treated wood some installers use about 1/8" Decks.com

The calculator starts at 3/16", Trex’s minimum, and takes any gap you type, like 1/8 or 1/4. A bigger gap means fewer rows: on the worked deck, a 1/4" gap gives 26 rows, not 27. Check the maker’s guide for the board you chose: a hidden-fastener clip may fix the gap for you.

What changes at 45°?

Pick 45° diagonal and the rows run corner to corner. Four things change, and the calculator handles them:

  • The rows are counted square to the boards: (length + width + gap × √2) ÷ ((board + gap) × √2). On the worked deck that is 43 rows, and you mark the deck edge every ≈ 8-1/16" (a board plus a gap, times √2). The √2 is rounded up to 1.41422 so the count never comes up short.
  • Every cut is a 45° cut, so each piece needs its center-line length plus one board width of stock. The corner rows are small triangles cut from offcuts.
  • The joists have to be closer for 5/4 wood and for Trex: 12" on center (IRC Table R507.7; Trex: 4" under its chart). Pick 12" and the calculator will not warn you about 5/4 wood.
  • The waste goes up. Decks.com adds 10% at 90° and 15% at 45°, and Google’s AI Overview says 15% to 20%. The calculator starts the spares at those numbers, 10% and 15%, on top of the cut plan, and you can type your own.

The worked deck at 45° with 12" joists and the same 12' and 16' boards takes a plan of 36 boards and 42 to buy (17 × 12', 25 × 16'). That is more than the area rule gives, because the rule does not count the offcut of every angled cut. The 45° count is deliberately cautious. If you build a pattern with a picture frame, a border or a divider board, subtract their widths from the deck’s length and width first and add their boards to the list: Decks.com says the same.

How many deck boards do I need by hand?

For a quick check: rows = (width + gap) ÷ (board + gap); boards per row = length ÷ the board length you buy; add 10% for a straight layout or 15% to 20% for a diagonal one. That is the formula in Google’s AI Overview, and it is a fair first count. It does not say that a leftover strip must be ripped, where the joints of a deck longer than your boards go, or that the offcut of one row can start the next.

What this page does not do

  • It does not price a deck or design one. “Deck calculator” also means cost estimators and 3D designers. This is the board part: the rows, the cuts, the joists and the order list. Ask your yard for prices.
  • Joist size, span, beams, footings and the ledger are not here. They come from your plan or your building department.
  • One rectangle at a time. For an L-shape or a wrap-around, work each rectangle and add the lists, the way Decks.com does.
  • No fasteners, fascia, stairs or railing. For the rail see the baluster spacing calculator; for the steps, the stair calculator.
  • The deck length is the length of the boards, flush to the end joists, with the first joist 3/4" in from the end (a 1-1/2" joist flush with the end). Saw kerf and defective boards are not counted: that is what the spares are for.

What does the order list show?

One US Letter page, as in the picture above: the deck, the board and the gap, the rows with the last row’s width, each cut and each joint over a joist grouped by the rows that share it, the plan drawing, the boards to buy by length and the joists. Press Email me the order list (PDF) and it comes to your inbox, or Print the order list and your browser prints it. Everything is on this page too, so the file is optional.

What do the other deck calculators leave out?

We read the results on 2026-11-18 and 2026-11-19. The first, bsw.co.uk, is a UK timber supplier’s decking calculator: pick a product, a thickness, a width and a length, give the deck as dimensions or as an area, and it shows the quantity of boards. wrg.ie is an Irish composite decking maker’s page; its calculator did not load in a plain fetch, so we could not read what it gives. windeck.ca is a Canadian deck builder’s cost form that asks for square footage, piles and stairs. Decks.com, which Google’s AI Overview cites, is the best of them: feet and inches, board size, 12, 16 or 24" joists, 90 or 45°, and a board count by length with a 10% or 15% waste factor. Its own text says it uses the nominal board width and adds one extra board, and that you should add another on a deck wider than 22 feet with 6" boards. None of the ones we could read draws the rows, names the width of the last row or says it must be ripped, plans the joints over joists, or gives you the list on a page. This page does.

Do it on your phone with the calculator app

The same sums run in Fraction Feet Inch Calculator, and the app does not have a deck tool: the page does the deck arithmetic, the app does the feet-inches-fractions arithmetic. Type the lines for the worked deck’s last row:

12' 4-1/2" - 26 x 5-11/16"

The 26 boards each take 5-11/16" (the board and one gap), so the answer, 5/8", is what is left for the last row. The app multiplies lengths for square feet, cubic feet and cubic yards, adds, subtracts, multiplies and divides feet, inches and fractions exactly and answers to the nearest 1/16", keeps the history of every answer, and works offline: so you can check a cut at the saw with no signal.

People also ask

How many deck boards do I need?

Rows × boards per row, plus spares. Rows = (width + gap) ÷ (actual board width + gap), rounded down, plus one ripped row if anything is left. For a 16' 3" x 12' 4-1/2" deck of 5/4x6 boards with a 3/16" gap that is 27 rows, and with 12' and 16' boards 32 boards in the plan, 36 with 10% spares.

How much space should I have between deck boards?

Your board maker sets it. Trex’s minimum is 3/16" side to side, with 3/8" recommended in heavily wooded areas and never more than 1/2". Decks.com says composite with hidden fasteners is about 3/16" to 1/4" and that some installers use about 1/8" for pressure-treated wood. The gap is for drainage and the boards’ swelling and shrinking.

Can you use 2 by 4 for decking?

Yes: Decks.com’s calculator takes 2x4 and 5/4x4 boards, and the model code’s table for wood decking lists 2-inch-thick boards with joists up to 24" on center. A 2x4 is 1-1/2" thick and 3-1/2" wide. Pick “Another board” in the calculator and type 3-1/2 as the width.

How much lumber for a 10x10 deck?

For decking, with 10' boards, a 3/16" gap and 5-1/2" boards: 21 full rows and a 9/16" ripped row, so 22 boards (220 lineal feet) in the cut plan and 25 to buy with 10% spares. The joists are 9 (8 bays of about 14-13/16"). That is the surface only; the frame, footings and fasteners are not in the count.

Does the deck calculator give a price?

No. This page gives the boards, the cuts and the joists, and no prices or deck designs. Take the order list to your yard and ask them to price it.

All 25 charts and guides

Summarize this page with ChatGPTSummarize this page with ClaudeSummarize this page with Perplexity

Last updated .

Get the PDF by email

We'll email you the file, so check the address.

We'll also send you new templates and charts now and then. Unsubscribe anytime.

How we use your email