Skip to content

Deck Board Calculator

Enter your deck and the board lengths your yard stocks. The calculator searches for the cheapest mix of lengths with every butt joint on a joist and the joints staggered, then gives the boards to buy, fasteners, board feet, cost and a row-by-row cut list. Free, no sign-up.

Deck
Along the house
Out from the house

An L-shaped deck is two rectangles. Each area is planned on its own; the buy list adds them up.

Decking
Board width5-1/2″ dressed

Wood boards go about 1/8″ apart (AWC DCA 6).

Joists

IRC Table R507.7 allows 5/4 decking up to 16″ on center when each board spans 3 or more joists, as every board here does. Joists run from the start end at this spacing, with a joist at each end; the offset shifts the grid to match framing that’s already built.

Stock lengths and prices

The plan already counts every offcut. Add extra only for boards you reject at the yard or mistakes; there’s no standard figure.

Prices are optional. With a price for every ticked length (or a price per linear foot), plans are compared by cost; otherwise by linear feet.

Cheapest plan: buy 31 × 20 ft.

Buy (cheapest plan)

31 × 20 ft

31 boards · 620 linear ft · 387.5 board ft

Compare plans

PlanBoardsLinear ftJointsWaste
31620267.7%
31620267.7%
31620267.7%

No prices entered, so cheapest means fewest linear feet. Every plan puts each joint on a joist, gives every board 3 or more joists and never puts joints on the same joist in neighbouring rows.

Fasteners
988 nails or screws: 2 per board at each joist (IRC R507.7).
Joints
26 butt joints, each centred on a joist, with the factory end trimmed up to 3/16″ (Trex). The joists they land on are listed per area below.
Waste
48′ of board (7.7%): offcuts too short to reuse, the end trims and a 3/16″ allowance for each saw cut between two pieces of one board (our allowance). Offcuts are reused within an area before new boards are bought.
Last row
rip to 3-3/8″ wide. It’s counted as a full board.

Your deck: 22′ board run × 12′

Your deck: cheapest plan, 26 rows, 26 jointsHOUSE
Heavy line: the house (top edge). 26 rows over 22′; dashed lines are joists, green lines carry joints, ink ticks are the joints.

Buy for this area: 31 × 20 ft

Joints land on joists at 2′ 8″, 4′ from the start of the run.

Cut list, row by row (26 rows)
  1. Row 1: 4′ (#1, 20 ft) + 18′ (#2, 20 ft)
  2. Row 2: 2′ 8″ (#1, 20 ft) + 19′ 4″ (#3, 20 ft)
  3. Row 3: 4′ (#1, 20 ft) + 18′ (#4, 20 ft)
  4. Row 4: 2′ 8″ (#5, 20 ft) + 19′ 4″ (#6, 20 ft)
  5. Row 5: 4′ (#1, 20 ft) + 18′ (#7, 20 ft)
  6. Row 6: 2′ 8″ (#8, 20 ft) + 19′ 4″ (#9, 20 ft)
  7. Row 7: 4′ (#1, 20 ft) + 18′ (#10, 20 ft)
  8. Row 8: 2′ 8″ (#11, 20 ft) + 19′ 4″ (#12, 20 ft)
  9. Row 9: 4′ (#5, 20 ft) + 18′ (#13, 20 ft)
  10. Row 10: 2′ 8″ (#11, 20 ft) + 19′ 4″ (#14, 20 ft)
  11. Row 11: 4′ (#5, 20 ft) + 18′ (#15, 20 ft)
  12. Row 12: 2′ 8″ (#11, 20 ft) + 19′ 4″ (#16, 20 ft)
  13. Row 13: 4′ (#5, 20 ft) + 18′ (#17, 20 ft)
  14. Row 14: 2′ 8″ (#11, 20 ft) + 19′ 4″ (#18, 20 ft)
  15. Row 15: 4′ (#5, 20 ft) + 18′ (#19, 20 ft)
  16. Row 16: 2′ 8″ (#11, 20 ft) + 19′ 4″ (#20, 20 ft)
  17. Row 17: 4′ (#8, 20 ft) + 18′ (#21, 20 ft)
  18. Row 18: 2′ 8″ (#22, 20 ft) + 19′ 4″ (#23, 20 ft)
  19. Row 19: 4′ (#8, 20 ft) + 18′ (#24, 20 ft)
  20. Row 20: 2′ 8″ (#22, 20 ft) + 19′ 4″ (#25, 20 ft)
  21. Row 21: 4′ (#8, 20 ft) + 18′ (#26, 20 ft)
  22. Row 22: 2′ 8″ (#22, 20 ft) + 19′ 4″ (#27, 20 ft)
  23. Row 23: 4′ (#8, 20 ft) + 18′ (#28, 20 ft)
  24. Row 24: 2′ 8″ (#22, 20 ft) + 19′ 4″ (#29, 20 ft)
  25. Row 25: 4′ (#11, 20 ft) + 18′ (#30, 20 ft)
  26. Row 26: 2′ 8″ (#22, 20 ft) + 19′ 4″ (#31, 20 ft)

Stock boards

  • #1 (20 ft): 4′ for row 1, 4′ for row 3, 4′ for row 5, 4′ for row 7, 2′ 8″ for row 2; 1′ 2-5/16″ left
  • #2 (20 ft): 18′ for row 1; 1′ 11-13/16″ left
  • #3 (20 ft): 19′ 4″ for row 2; 7-13/16″ left
  • #4 (20 ft): 18′ for row 3; 1′ 11-13/16″ left
  • #5 (20 ft): 4′ for row 9, 4′ for row 11, 4′ for row 13, 4′ for row 15, 2′ 8″ for row 4; 1′ 2-5/16″ left
  • #6 (20 ft): 19′ 4″ for row 4; 7-13/16″ left
  • #7 (20 ft): 18′ for row 5; 1′ 11-13/16″ left
  • #8 (20 ft): 4′ for row 17, 4′ for row 19, 4′ for row 21, 4′ for row 23, 2′ 8″ for row 6; 1′ 2-5/16″ left
  • #9 (20 ft): 19′ 4″ for row 6; 7-13/16″ left
  • #10 (20 ft): 18′ for row 7; 1′ 11-13/16″ left
  • #11 (20 ft): 4′ for row 25, 2′ 8″ for row 8, 2′ 8″ for row 10, 2′ 8″ for row 12, 2′ 8″ for row 14, 2′ 8″ for row 16; 2′ 5-15/16″ left
  • #12 (20 ft): 19′ 4″ for row 8; 7-13/16″ left
  • #13 (20 ft): 18′ for row 9; 1′ 11-13/16″ left
  • #14 (20 ft): 19′ 4″ for row 10; 7-13/16″ left
  • #15 (20 ft): 18′ for row 11; 1′ 11-13/16″ left
  • #16 (20 ft): 19′ 4″ for row 12; 7-13/16″ left
  • #17 (20 ft): 18′ for row 13; 1′ 11-13/16″ left
  • #18 (20 ft): 19′ 4″ for row 14; 7-13/16″ left
  • #19 (20 ft): 18′ for row 15; 1′ 11-13/16″ left
  • #20 (20 ft): 19′ 4″ for row 16; 7-13/16″ left
  • #21 (20 ft): 18′ for row 17; 1′ 11-13/16″ left
  • #22 (20 ft): 2′ 8″ for row 18, 2′ 8″ for row 20, 2′ 8″ for row 22, 2′ 8″ for row 24, 2′ 8″ for row 26; 6′ 6-5/16″ left
  • #23 (20 ft): 19′ 4″ for row 18; 7-13/16″ left
  • #24 (20 ft): 18′ for row 19; 1′ 11-13/16″ left
  • #25 (20 ft): 19′ 4″ for row 20; 7-13/16″ left
  • #26 (20 ft): 18′ for row 21; 1′ 11-13/16″ left
  • #27 (20 ft): 19′ 4″ for row 22; 7-13/16″ left
  • #28 (20 ft): 18′ for row 23; 1′ 11-13/16″ left
  • #29 (20 ft): 19′ 4″ for row 24; 7-13/16″ left
  • #30 (20 ft): 18′ for row 25; 1′ 11-13/16″ left
  • #31 (20 ft): 19′ 4″ for row 26; 7-13/16″ left

How the boards are laid out

Each row runs the full board run. Where a row needs more than one board, the pieces meet at a butt joint centred on a joist, so both ends are fastened. The calculator tries every way to split a row at the joists and keeps the ones that follow these rules:

RuleFigureSource
Every board bears on at least 3 joists3 joistsAWC DCA 6 (applied to composite too)
Joints only on joistscentred on a joistIRC R507.7: fasteners at each supporting member
Factory ends trimmed square at a jointup to 3/16″Trex Academy; TimberTech
Joists under joints doubled (composite/PVC)where the fastening system asksTimberTech guide: always with its CONCEALoc and SIDELoc hidden fasteners; some codes require it
Allowance for each saw cut between two pieces of one board3/16″Our allowance; no source gives one
Joints staggeredneighbouring rows never have joints on the same joistOur rule. TimberTech says joints mustn't all fall on one joist but gives no distance.

Rows are the fewest boards whose widths and gaps cover the deck; the last row is ripped to fit and counted as a full board. Joists start at one end at the spacing you choose, with a joist at each end and a short last bay. Offcuts long enough for another piece are reused before a new board is bought, so the plan's waste is what's really left over.

Three plans: the cheapest mix of the ticked lengths (by cost when every length has a price, otherwise by linear feet), the plan with the fewest joints, and the best plan from a single length, which is what most deck calculators assume.

Worked example: a 12 × 22 ft deck

Boards run along the 22 ft side: Wood 5/4×6 (5-1/2″ wide, 1/8″ gaps), joists 16″ on center, stock12, 16, 20 ft, no prices. That's 26 rows, the last ripped to 3-3/8″, over 18 joists. No ticked length covers 22′, so every plan has joints.

PlanBoards to buyLinear ftJointsWaste
Cheapest31 × 20 ft620267.7%
Fewest joints31 × 20 ft620267.7%
One length (20 ft)31 × 20 ft620267.7%

By linear feet all three plans come out the same here: 31 × 20 ft, 26 joints over 26 rows, with the short pieces cut from offcuts.

Prices change the answer. With example prices of $18.00 for a 12 ft board, $32.00 for a 16 ft board, $50.00 for a 20 ft board (made up for illustration; enter your yard's), the cheapest plan is 56 × 12 ft for $1,008.00, against $1,550.00 for the 31 × 20 ft that's shortest in linear feet:

PlanBoards to buyJointsCost
Cheapest56 × 12 ft39$1,008.00
Fewest joints27 × 12 ft + 19 × 16 ft26$1,094.00
One length (12 ft)56 × 12 ft39$1,008.00

Fasteners for the cheapest plan: 988 nails or screws (2 per board at each joist). Board feet: 387.5 on the nominal 5/4×6 size.

Deck boards for common deck sizes

5/4×6 wood, 1/8″ gaps, joists 16″ on center, stock 12/16/20 ft, boards along the longer side. The cheapest plan by linear feet:

DeckRowsBoards to buyLinear ftJoints
10 × 10 ft2222 × 12 ft2640
12 × 12 ft2626 × 12 ft3120
12 × 16 ft2626 × 16 ft4160
16 × 16 ft3535 × 16 ft5600
16 × 20 ft3535 × 20 ft7000
20 × 20 ft4343 × 20 ft8600

Joist spacing for deck boards

Wood decking follows IRC Table R507.7 (2024; the 2021 table is the same). A board on two joists is a single span; on three or more, a multiple span.

DeckingSingle spanMultiple spanDiagonal, singleDiagonal, multiple
1-1/4″ wood (5/4)12″16″8″12″
2″ wood (2×)24″24″18″24″

Every board in these plans bears on at least three joists, so the multiple-span column applies: 5/4 up to 16″ on center, 2× up to 24″. Composite and PVC boards follow the maker's instructions (IRC R507.2). TimberTech's Advanced PVC guide, for example, allows 16″ on center on homes, a 1/8″–1/4″ gap, and no more than 1/2″ overhang past the framing (installation guide). Diagonal decking isn't in this calculator yet.

How many screws per deck board

Wood decking gets 2 fasteners per board at every joist: two 8d deformed-shank nails or two No. 8 wood screws (IRC R507.7; DCA 6 says the same). The calculator counts 2 for each board at each joist it crosses, so a joist under a joint gets 4. Hidden-fastener systems differ, so for composite it gives the joist crossings to count clips from, plus the face screws TimberTech asks for at board ends: at least 2 within 1/2″ of each end, at joints and at the deck's edges.

5/4 vs 2×6 decking

5/4×6 radius-edge decking is 1″ × 5-1/2″ dressed (SFPA); a 2×6 is1-1/2″ × 5-1/2″ dry (PS 20-25, Table 3). Both cover the same width per row. Board feet use the nominal size (PS 20-25, §2.2): 0.625 board feet per linear foot of 5/4×6 and 1 of 2×6. The thicker 2× boards can span joists up to 24″ apart; 5/4 needs 16″ or closer.

Pricing by the board foot? The linear feet to board feet calculator converts the yard's price, and the board foot calculator tallies a whole lumber list. Wood boards are spaced about 1/8″ apart (DCA 6).

Not covered yet: diagonal or herringbone layouts, picture-frame borders, stairs, railings and framing sizes. Joints sit only on joists; blocking between joists isn't modelled.

Stock lengths are planned at exactly their nominal length. Offcuts are matched to pieces after the row layout is chosen, trying each ticked length as the main board; a hand-tuned plan can occasionally save a board more.

Deck board FAQ

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

With 5/4×6 boards (5-1/2 inches wide, 1/8-inch gaps) running the 16 ft way: 26 rows, so 26 × 16 ft boards, 416 linear feet, no joints. Run them the 12 ft way and it's 35 rows of 35 × 12 ft. The last row is ripped to fit. Add any extra for boards you reject at the yard.

Do deck board butt joints have to land on a joist?

Yes: both board ends need fastening, and the code requires two fasteners per board at each supporting member (IRC R507.7). TimberTech calls for doubled joists under butt joints with its hidden fasteners, and notes some codes require them (installation guide), and Trex trims factory ends up to 3/16 inch before butting them (Trex Academy). This calculator only puts joints on joists.

How far apart should deck board joints be staggered?

The sources cited here don't give a distance. TimberTech says joints must not all fall on the same joist (TimberTech). This calculator's own rule: neighbouring rows never have joints on the same joist, and every board bears on at least 3 joists (AWC DCA 6). The rule is our layout choice, not a code requirement.

How many screws per deck board?

For wood, 2 at every joist: two 8d deformed-shank nails or two No. 8 wood screws (IRC R507.7). A 16 ft board over joists 16 inches on center crosses 13 joists, so 26 fasteners. Composite with hidden clips follows its maker's guide; TimberTech wants at least 2 face screws within 1/2 inch of each board end (guide).

What joist spacing do composite deck boards need?

What the board's installation guide says: the IRC sends plastic composite decking to the maker's instructions (IRC R507.2, R507.7). TimberTech's Advanced PVC guide allows 16 inches on center for homes and 12 for diagonal or commercial decks (guide). Wood follows IRC Table R507.7: 5/4 decking up to 16 inches, 2× up to 24, when each board spans 3 or more joists.

How much extra decking should I buy?

This calculator counts every offcut, so there's no hidden waste factor: the cheapest plan for the 12 × 22 ft example wastes 7.7% of the board it buys. Add extra only for boards you'd reject at the yard or for mistakes. None of the sources cited here gives a standard figure, so the extra boards field starts at 0.

Sources

  1. International Code Council. 2024 International Residential Code, Section R507 Exterior Decks. 2024 IRC (read on ICC Digital Codes, October 29, 2026). Used: R507.7 Decking: joist spacing for wood decking per Table R507.7; wood decking attached to each supporting member with not less than two 8d deformed shank nails or two No. 8 wood screws; plastic composite decking spacing per R507.2 (the manufacturer's instructions). Table R507.7 maximum on-center joist spacing, perpendicular (single span / multiple span): 1-1/4-in.-thick wood 12 / 16 in., 2-in.-thick wood 24 / 24 in.; diagonal (max 45°): 8 / 12 and 18 / 24 in..
  2. American Wood Council. DCA 6, Prescriptive Residential Wood Deck Construction Guide (2015 IRC version). DCA 6-2015, revised April 2018. Used: Decking requirements (for 2 in. nominal lumber or span-rated decking): attach decking to each joist with 2-8d threaded nails or 2-#8 screws; space boards approximately 1/8 in. apart; each segment of decking must bear on a minimum of 3 joists (or 3 supports). Readable copy.
  3. TimberTech (AZEK). TimberTech Advanced PVC Decking Installation & Maintenance Guide. REV 07/26. Used: Board widths 3-1/2, 5-1/2 and 7-1/4 in.; joist spacing never over 16 in. on center residential (12 in. diagonal or commercial); 1/8 to 1/4 in. gap between boards; some codes may require double joists at butt joints, and joists at butt joints must be doubled with the CONCEALoc and SIDELoc hidden fasteners; stagger splices so they don't all fall on the same joist; no more than 1/2 in. overhang beyond framing; cut factory ends square at butt joints; at least 2 screws within 1/2 in. of each board end. Trade guidance, not a rule.
  4. Trex Company. How to Install a Butt Joint/Seam with the Trex Hideaway Butt Joint Clip (Trex Academy). Web page, read October 29, 2026. Used: Step 3: trim factory ends of boards, up to 3/16 in., for a uniform butt joint; boards must span at least three joists. Trade guidance, not a rule.
  5. Southern Forest Products Association. Standard Sizing (Southern Pine lumber). Web page citing the SPIB Standard Grading Rules, read October 29, 2026. Used: Radius edge decking, dry, dressed: 5/4×4 is 1 × 3-1/2 in., 5/4×6 is 1 × 5-1/2 in.; 2×6 dimension lumber, dry, 1-1/2 × 5-1/2 in..
  6. National Institute of Standards and Technology. Voluntary Product Standard PS 20-25, American Softwood Lumber Standard. PS 20-25, January 2025. Used: §2.2 board measure computed from nominal size; Table 3 dry dressed sizes.