Timber & Framing
Decking Board Calculator
Decking boards for a rectangular deck from its size, the board width and gap and the stock length, with wastage, a no-joint count and cost
Updated October 10, 2026 · Live
What this tool does
Counts the decking boards for a rectangular deck from its length and width, the board width and the gap between boards, and the stock length you can buy, rounding the rows up so the gaps are covered and the run up to whole boards after wastage. Shows the rows and covered width, the linear run, the count without joints, and the cost at your price, in both unit systems.
Rows across the width, times the deck length, plus wastage, divided by the stock board length.
People also use
Formula Used
Formula Used
How the decking board calculator works
Deck boards run the length of the deck, so the count is rows across the width times the length of each row, turned into stock boards. The rows come first: n boards and n minus 1 gaps have to cover the width, so the number of rows is the width plus one gap, divided by the board width plus one gap, rounded up. Each row is as long as the deck, which gives the linear run; a wastage allowance goes on top; and the run is divided by the stock length you can buy and rounded up to whole boards. That is how decking is bought, by the board with offcuts carried into the next row, and the If No Joints row gives the other answer, rows times whole boards per row, for a deck where every board is to run full length. The default board is the composite standard: Trex's installation guide gives its square-edge boards as "0.94 in x 5.5 in" (24 by 140 mm) in 12, 16 and 20 ft lengths, with "the minimum required width-to-width gapping" of 3/16 in (5 mm) and 3/8 in (10 mm) "for docks and heavily wooded areas". In the UK, deck boards come in finished widths from about 90 mm up and, to limit moisture movement, should not exceed 145 mm, according to Timbmet's decking brochure, written to the Timber Decking and Cladding Association's practice, which also puts the gap at "5mm min to 8mm max" for drainage and ventilation.
The US default is a 16 by 12 ft deck in 5.5 in boards with 1/4 in gaps from 12 ft stock. Across 12 ft (144 in) at a 5.75 in pitch, 26 rows cover 12.4 ft, since 25 would reach only 143.5 in; 26 rows by 16 ft is 416 ft of board, 457.6 ft with 10% wastage, so 39 twelve-foot boards at $28 is $1,092. Without joints it is 2 boards a row, 52 boards. The metric default is 5 by 3 m in 144 mm boards with 5 mm gaps from 3.6 m stock: 21 rows covering 3.12 m, 105 m of board, 115.5 m with wastage, 33 boards at £22 is £726, or 42 without joints.
Typical US timber and framing wastage
The 10% default covers the end cuts, the off-square ends of a real frame and the boards that turn out bowed or chipped in the pack. It sits on top of the offcut reuse that the linear method already assumes, so for a plain rectangle laid square it is usually enough. Diagonal decking and picture-frame borders cut every board at the edge and need 15% or more; a board run that is just over a stock length, 13 ft rows from 12 ft boards for instance, leaves offcuts too short to use and also wants more. The Not Counted row is the reminder that fascia boards, the border frame, stair treads and the joists are separate items.
The gap is not waste, but it moves the row count. On the US default, 1/4 in gaps give 26 rows; at Trex's 3/16 in minimum the pitch drops to 5.6875 in and 144.1875 divided by it is 25.35, so still 26, but at a 3/8 in dock gap the pitch is 5.875 in and 24.6 rounds to 25 rows. On timber, the brochure's 5 to 8 mm range on a 145 mm board changes a 3.6 m width from 24 rows at 8 mm to 25 at 5 mm. Enter the gap the board maker gives for the climate and the fastener, because hidden-fastener grooved boards set it for you.
What this tool does not do
It counts boards for a rectangle laid parallel to one side. It does not lay out diagonal or herringbone patterns, picture frames or breaker boards, and it does not plan where the joints fall, which on a long deck is a staggered pattern the installer sets out so no two joints line up. It does not count the joists, the fasteners or the fascia, and it does not check the span: the joist spacing the boards need is set by the board, not by this count.
On-site considerations for decking board
Boards and joists are bought together because one sets the other. In the United States the International Residential Code, as published on UpCodes (Virginia IRC 2021, R507.7), limits joist spacing by the decking: for 1 1/4 in (5/4) wood boards, 16 in on centre across the joists where a board spans three or more and 12 in where it spans two, and 12 in or 8 in when laid diagonally; for 2 in boards, 24 in; and each board is fixed to each joist with "not less than two 8d threaded nails or two No. 8 wood screws". Plastic composite boards carry their own allowable span on an ASTM D7032 label, and Trex's guide gives 16 in (406 mm) for its 1 in boards at residential loading, 12 in (305 mm) when laid at an angle. In the UK the Timbmet brochure gives a maximum span of 400 mm for 22 mm softwood boards and 500 mm for hardwood, a 5 mm minimum gap where a board end meets a post, and the 5 to 8 mm gap between boards.
Composite moves with temperature along its length, so Trex gaps board ends 1/8 in above 40°F (4.5°C) and 3/16 in below, and gaps a board that abuts a wall 1/4 to 1/2 in by the same rule. Timber moves with moisture across its width, which is what the 5 to 8 mm gap is for; a board fixed tight in a wet week closes up or cups in a dry one. Both are reasons to count a few spare boards: a replacement from a later batch of composite is a different shade, and a board cut short is a board gone.
Codes and compliance
The decking surface itself is lightly regulated; what is regulated is the frame under it, the ledger to the house, the guards and the stairs, and those sit with the deck framing design and the local building authority, in the United States under IRC section R507 and in the UK under the planning and building rules that apply to a raised deck or one attached to the house. A composite board sold in the United States is labelled with its ASTM D7032 span; a timber board is covered by the grading and preservative treatment on its stamp. Neither changes the count, but the span on the label decides the joists the count sits on.
Before you order
The stock length to enter is the one the supplier carries, and the longest that fits the rows is usually the cheapest per foot and the fewest joints: 16 ft rows from 16 ft boards have no joints, from 12 ft boards they have one in every row and a 4 ft offcut that the linear method assumes goes into the next. Where the If No Joints figure is much higher than the main count, the difference is the price of a deck with no butt joints. Grooved boards for hidden fasteners and square-edge boards for face screws are the same size but not interchangeable at the edges, so the border boards are often square-edge and counted separately.
Adjusting the defaults
Every input is editable. Deck length is the direction the boards run and deck width is across them; swap the two to compare layouts. Board width is the actual width, 5.5 in for a nominal 1 by 6 or 144 mm for a nominal 150 mm board, and the gap is the maker's figure. Board length is the stock you will buy, wastage runs from 0 to 30%, and the price per board can be left at zero to see the count only.
Using this decking board calculator alongside other BuildMetricLab tools
Size the frame under the boards with the deck framing calculator, count the timber for it with the lumber calculator, and finish a timber deck with the deck stain calculator. All BuildMetricLab tools run in your browser with no sign-up, and the formula is on the page so the maths can be checked.
Sources & methodology
Rows = ⌈(deck width + gap) ÷ (board width + gap)⌉, so that n boards and n − 1 gaps cover the width; covered width = rows × board width + (rows − 1) × gap. Linear run = rows × deck length; with wastage = run × (1 + wastage %); boards = ⌈with wastage ÷ stock length⌉. If no joints = rows × ⌈deck length ÷ stock length⌉. Cost = boards × price. US inputs in ft and in are converted to m and mm first. Defaults: Trex square-edge board 0.94 × 5.5 in (24 × 140 mm) in 12, 16 and 20 ft; Trex width-to-width gap minimum 3/16 in (5 mm), 3/8 in for docks; UK softwood boards 120 or 145 mm with a 5 to 8 mm gap (Timbmet, to TDCA practice). Joist spacing for wood decking from IRC Table R507.7; composite spans from the ASTM D7032 label.
- Trex, Decking Installation Guide (US): square-edge board 0.94 × 5.5 in (24 × 140 mm) in 12, 16 and 20 ft; width-to-width gap minimum 3/16 in (5 mm), 3/8 in for docks; end gaps 1/8 to 3/16 in by temperature; 16 in joist spacing for 1 in boards at residential load, 12 in at an angle
- UpCodes, International Residential Code 2021 (Virginia adoption), R507.7 Decking and Table R507.7: joist spacing for 1 1/4 in wood decking 12 or 16 in perpendicular, 8 or 12 in diagonal, 24 in for 2 in boards; two 8d nails or two No. 8 screws per joist; composite to ASTM D7032
- Timbmet, Bespoke Decking brochure (UK, to Timber Decking and Cladding Association practice): board widths from about 90 mm, not exceeding 145 mm; gap of 5 mm minimum to 8 mm maximum between boards; maximum span 400 mm for 22 mm softwood, 500 mm hardwood
Frequently asked questions
Are decking board calculator results accurate enough to order materials?
Yes, for a rectangular deck laid parallel to one side. The row count covers the width with the gaps included, the linear run is rounded up to whole stock boards after wastage, and the If No Joints row gives the count for full-length boards in every row. The things to check before ordering are the actual board width, the gap the maker specifies, and the stock lengths the supplier carries. Fascia, borders and stairs are separate.
What wastage percentage should I use?
10% for a plain rectangle laid square, on top of the offcut reuse the linear method assumes. Use 15% or more for diagonal decking, picture-frame borders or a row length just over a stock length, which leaves offcuts too short to reuse. Values below 5% leave no spares, and a composite board replaced later from another batch is a different shade.
Does this replace professional advice?
No. It counts boards. The joist spacing the boards need, the frame, the ledger and the guards are structural matters: in the United States IRC R507 and the board's ASTM D7032 label, in the UK the planning and building rules for a raised or attached deck and the board maker's span. For work that affects structure, gas, electrics, plumbing or drainage to a public sewer, use a suitably qualified professional.
Can I change the unit prices?
Yes. The price per board is an input, so enter what your supplier charges for the stock length you entered, and the cost is that price times the whole boards needed. Leave it at zero to see the count only.
Spotted something off?
Calculations or display — let us know.
Related tools
Calculators from other categories that planners often reach for next.













