Decking Calculator Explained: How to Estimate Boards, Joists and Screws
Estimating a deck materials list looks like simple arithmetic and almost is — once you know that board pitch is the board width plus a 5 mm thermal gap, joist count is one more than the spacing fit, and wastage exists because real cuts are not perfect. This guide walks through the math, where each default comes from, and the common mistakes that turn a confident materials order into a second delivery charge.
What a decking calculator actually does
A decking calculator turns a deck plan — length, width, board size, joist spacing and a wastage allowance — into a materials list: how many deck boards to order, how many joists, the linear metres of joist timber, and a sensible screw count. The math is not difficult, but the small choices underneath each input do most of the work. The decking calculator uses the same defaults that appear in the International Residential Code section R507 and in the Trex composite installation guide, so the numbers you get are aligned with the standards building inspectors and material suppliers expect.
This guide walks through what every input means, the formulas behind each output, a fully worked 5 m × 4 m example, the factors that move the totals up or down, the common mistakes that cause re-orders, and when a paper estimate is no longer enough and you need a structural engineer in the picture.
The math behind the materials list
Every output reduces to four formulas. They are intentionally plain — the goal is for any DIY builder to be able to redo the sum on the back of an invoice and spot a mistake before the delivery truck pulls away.
Board pitch = board width + gap Rows = ceil(deck width / board pitch) Boards per row = ceil(deck length / board length) Total boards = ceil(rows x boards-per-row x (1 + wastage)) Joists = ceil(deck length / joist spacing) + 1 Linear metres of joist = joists x deck width Screws ~ rows x joists x 2
Board pitch is the single most important number on the page. A 140 mm composite board with a 5 mm gap occupies 145 mm of deck width, not 140 mm. Forgetting the gap when ordering is a textbook DIY error: a four-metre-wide deck planned at 140 mm per board calls for 4000 / 140 = 28.6 rows, which rounds up to 29. The same deck planned at 145 mm per board calls for 4000 / 145 = 27.6 rows, which rounds up to 28. One row out either way translates to about 4% of the total board cost — a deck that costs $1,500 in materials moves by $60 on that single rounding choice.
The "plus one" on the joist count is the second detail to watch. A five-metre deck with joists at 400 mm centres needs joists at 0, 400, 800, … , 4800 mm, which is 12 positions if you count one end and 13 if you count both. The standard residential framing convention is to count both ends and pick up the explicit calculation in the formula above — a five- metre deck length is ceil(5.0 / 0.4) + 1 = 14 joists. The end joist runs along the open edge and serves as the rim joist unless you spec a separate one. Drop the +1 and the deck will be one bay short of the plan, which is the most common reason an inspector flags a deck for re-framing.
The screw count is an approximation rather than an exact figure. The Trex face-fix installation pattern calls for two deck screws at every board-joist intersection, which gives the rows × joists × 2 figure. Hidden-clip installations work out roughly the same: one clip per joint per joist, with each clip serving as a fixing on both sides of the seam. The approximation breaks down on the rim joist, where you may need 3–4 screws per board end into the fascia, and on diagonal layouts, where some boards intersect joists at an angle and need a different fixing pattern. Add 5–10% on top of the calculator figure to cover the rim and trim work, and order a full extra box to keep on hand — running out of screws mid-job is the most universal of all deck-building complaints.
Worked example: a 5 m by 4 m back garden deck
Run the standard inputs through the formulas to see how the outputs fall out. Deck dimensions: 5 m long by 4 m wide. Board: 140 mm wide, 3.6 m long. Joist spacing: 400 mm centre to centre. Wastage allowance: 10%. These are the calculator's own defaults and represent the most common back-garden deck in both the US and the UK.
Board pitch = 140 + 5 = 145 mm = 0.145 m Rows = ceil(4.0 / 0.145) = ceil(27.59) = 28 rows Boards per row = ceil(5.0 / 3.6) = ceil(1.39) = 2 boards Boards before wastage = 28 x 2 = 56 Boards including 10% wastage = ceil(56 x 1.10) = ceil(61.6) = 62 Linear metres of board = 62 x 3.6 = 223.2 m Joists = ceil(5.0 / 0.4) + 1 = 13 + 1 = 14 Linear metres of joist = 14 x 4.0 = 56 m Screws ~ 28 x 14 x 2 = 784
Cross-check against the trade rule of thumb: roughly 3.5 boards per square metre for 140 mm boards on 3.6 m lengths, wastage included. Twenty square metres × 3.5 = 70 boards. The calculator returns 62 boards including wastage, which sits within rounding of the rule of thumb once you account for the fact that a 5 m deck splits a 3.6 m board with very little offcut. The rule of thumb is calibrated for the average shape; the calculator is calibrated for the actual deck. Both should agree to within 10–15% — if the decking calculator ever returns a figure more than 20% away from the rule of thumb, recheck the board width and the units (millimetres versus metres is the most common slip).
Factors that move the materials list
Board width
Narrower boards mean more rows, which means more linear metres of timber and more screws. A 120 mm board on the same 4 m deck width gives ceil(4.0 / 0.125) = 32 rows instead of 28 — a 14% jump in board cost. Wider boards run the opposite way: a 180 mm board on the same deck gives ceil(4.0 / 0.185) = 22 rows, which is 21% fewer boards. The downside of wider boards is rigidity — boards over 150 mm wide need joists closer together (typically 300 mm centres) to avoid cup-shaped warping. Most decks settle on 140 mm as the compromise between cost and span.
Joist spacing
The standard is 400 mm in metric or 16 inches imperial. Dropping to 300 mm increases joist count by about a third and linear-metre cost in the same proportion. The reason to drop spacing is bounce — a deck on 400 mm centres with thin boards will flex underfoot and the boards will eventually develop a permanent cup. Increasing spacing to 600 mm halves the joist count but is only safe with thicker hardwood boards and a structural sign-off; most building inspectors reject 600 mm on a residential deck without engineering calculations attached.
Wastage
Ten percent is the default for a clean rectangular deck. Push to fifteen for diagonals, picture-frame edging, or anything with a bay window cutout. Push to twenty-five for octagons and curves. Wastage is the single safest number to round up — the cost of one extra box of boards is around 2–5% of the materials budget, and the cost of being one board short mid-job is a second delivery charge, a few days of lost progress, and a high risk of colour mismatch on composite boards from a different production batch.
Board length
Boards come in fixed lengths — 3.0, 3.6, 4.2, 4.8 and 5.4 metres are the standard composite sizes; pressure-treated softwood is sold in 2.4, 3.0, 3.6 and 4.8 metre lengths. Pick the shortest length that fully spans your deck without a join. A five-metre deck on 3.6 m boards has a join in every row, which is acceptable but doubles the number of cuts. A five-metre deck on 4.8 m boards has no joins but 0.2 m of offcut per row, which is more expensive per metre of finished deck. Stagger the joins across rows by at least one joist bay — if every join lands on the same joist, that joist becomes a visible seam line down the length of the deck.
Deck shape
Rectangular decks are the calculator's home territory. L- shaped decks should be split into two rectangles and totalled — there is no shortcut. Octagonal and curved decks use the bounding rectangle as the input and a higher wastage figure to absorb the diagonal cuts. Multi-level decks are summed rectangle by rectangle, with the connecting steps priced separately at about one deck board per linear metre of step nosing.
How to keep the materials order tight
- Measure the actual deck, not the plan drawing. Concrete pads are rarely square; fences are rarely plumb. Measure the four sides and the two diagonals of the finished frame before ordering boards. A 50 mm difference in diagonal measurements means the deck is out of square and will need extra wastage to absorb the angled cut along one edge.
- Lock the board width and gap before you run the calculator. Switching from 140 mm to 145 mm board pitch is a 4% cost swing. Pick the board first, check the manufacturer's installation guide for the specified gap, and then run the decking calculator once with the final pitch.
- Calculate the area separately as a sanity check. Use the square footage calculator to get the deck area, then divide by your board's square- metre coverage (a 140 mm × 3.6 m board covers 0.504 m²). The two numbers should agree to within 15% once wastage is included.
- Plan joist hangers and rim joists separately. The decking calculator handles the field joists only. Rim joists run along the perimeter and add roughly 2 × (deck length + deck width) of linear metres. Joist hangers are one per joist end, so 14 joists need 28 hangers and the structural screws to fix them.
- Budget for footings before boards. A timber deck is no stronger than what it sits on. Use the concrete calculator to size the post footings — most residential decks need 0.05–0.10 m³ of concrete per post, with posts at 1.8–2.4 m centres along the rim joists.
- Order one extra box of screws. Screw count is an approximation. The marginal cost of one extra box is around 1–2% of the materials budget; the cost of stopping work mid-job to drive to the merchant is half a day.
Common mistakes
Forgetting the gap between boards. A 140 mm board takes up 145 mm of deck width on composite, 143 mm on treated softwood. Planning the deck on the bare board width always underestimates the row count by one row in three or four — guaranteed on any deck wider than two metres.
Dropping the +1 on the joist count. The joist at the open end is structural and exists in every approved deck plan; it is missed because the spacing math gives the count between joists, not the joist count itself. Re-framing the end of a deck to add a missing joist after boards are down is one of the worst jobs in residential carpentry.
Underestimating wastage on diagonals. A deck laid at 45 degrees needs about 15% more board length than a parallel layout to cover the same area, because every board has a diagonal cut at each end. Use 15–20% wastage on a diagonal layout, not the 10% default.
Mixing composite production batches. Composite colour varies slightly from batch to batch. Order all the boards in one delivery, from one production run, and store the offcuts for any future repairs. A second delivery to make up a shortfall almost always produces a visible colour line on the finished deck.
When to bring in a professional
The decking calculator is a materials estimator, not a structural engineer. The math behind board counts and joist spacing is well within DIY territory, but several situations push the work into the professional bracket and a paper estimate is no longer enough.
Decks above 600 mm off finished ground in most jurisdictions require a guard rail of 900–1100 mm and structural sign-off on the post footings. Decks attached to the main structure of the house need a ledger board lagged into the rim joist of the house with bolts specified by an engineer — incorrectly fixed ledger boards are the leading cause of catastrophic residential deck failures. Decks on sloping ground need stepped footings calculated for the soil bearing capacity. And any deck inside a flood zone, near a property line, or over a public right of way needs the relevant building permits before the first joist is cut. Run the materials calculation yourself, then bring an engineer or a registered deck builder in for the structural work.
Related calculators
Use the decking calculator to produce the materials list, then move outward to the rest of the build. The concrete calculator sizes the post footings; the fence calculator handles any railing or perimeter fencing around the deck; the stair calculator sizes the rise, run and stringer length for steps down to ground; and the square footage calculator gives the bare deck area for tile, paint or stain quotes.
Frequently asked questions
What is the standard joist spacing for a residential deck?
Sixteen inches on centre — about 406 mm, rounded in metric to 400 mm — is the residential default under the International Residential Code section R507 and matches the Trex composite decking installation guide. Step down to 300 mm if you are laying boards diagonally or using a thinner board profile under 25 mm. Wider spacing is the single most common cause of bouncy decks and should only be used with thicker hardwood boards and structural sign-off.
Why does the decking calculator add a gap between boards?
Composite manufacturers (Trex, TimberTech, Millboard) all specify a 4–6 mm gap to allow thermal expansion in summer and to let rainwater drain. Five millimetres is the universal default. Pressure-treated softwood is fitted tighter, around 3 mm, because the timber shrinks as it dries and the gap opens up naturally during the first season. Fitting treated softwood with no gap at all drops the board count by roughly 3–4% on a typical deck.
How much wastage should I add when ordering deck boards?
Ten percent for a clean rectangle, fifteen for diagonals and picture-frame edging, twenty to twenty-five for curves and octagons. The wastage figure covers offcuts that are too short to reuse, the occasional warped or split board, and the inevitable measurement error. Underestimating wastage means a second delivery charge and a high risk of colour or batch mismatch on composite, where boards from a different production run rarely match exactly.
Does the headline board count include wastage?
Yes. The "boards needed" figure in the calculator is what you order from the supplier — boards after wastage, rounded up to a whole board. The "boards before wastage" line is the bare-minimum count assuming every cut is perfect. Use the wastage-included number for ordering; the pre-wastage number is useful for cross-checking the math and for understanding how much margin you actually have.
How does the calculator estimate the number of screws?
Two deck screws per board per joist intersection, which is the standard Trex face-fix pattern and equivalent to one hidden clip serving as fixings on both sides of a board joint. A 28-row deck on 14 joists therefore needs about 28 × 14 × 2 = 784 screws. That figure covers the structural fixings only; rim joist, joist hanger and trim screws typically add another 5–10% to the total.
What board length should I pick for my deck?
Pick the shortest stock length that fully spans your deck without a join in any row. For a five-metre deck, a 3.6 m board needs a join in every row, which is acceptable but doubles the cuts. A 4.8 m board would leave a 0.2 m offcut per row, which is cleaner but more expensive per linear metre. Composite boards cannot be spliced end-to-end without a joist underneath, so any join must land on a joist centre — plan the layout before ordering.
Does this work for L-shaped, octagonal or multi-level decks?
Not directly. The math assumes a single rectangular plan. For an L-shape, treat each rectangle as its own calculation and add the totals. For octagonal or curved decks, use the bounding rectangle and bump wastage to 20–25% to allow for diagonal cuts. Multi-level decks are simply two or more rectangles plus the steps between them; budget separately for step boards at roughly one board per linear metre of step nosing.
Informational only. Not personalised financial, legal, or tax advice.