Deck calculator
calculate_deckUse this when someone plans a deck and asks how many deck boards, joists, posts or screws they need. Calculates the materials for a rectangular deck: the rows of boards ((width + gap) ÷ (board width + gap), rounded up), the length of all boards with waste, the boards of the given length to buy, the joists (length ÷ spacing, rounded up, plus one; each as long as the deck's width), and the screws (two for each board at each joist, IRC R507.7) or hidden clips (one for each board at each joist). Boards run straight or at 45°; diagonal boards take the deck area ÷ (board width + gap). It also returns the widest joist spacing for the decking and layout, and whether the spacing is within it (limit and ok are absent where the source gives no limit for the layout): 5/4 in wood 16 in straight and 12 in diagonal, 2 in wood 24 in (2021 IRC Table R507.7); composite 16 in straight and 12 in diagonal (Trex); GD Holz solid wood 400 mm for 20 or 21 mm boards, 500 mm for 26 mm, 700 mm for 40 mm (Habisreutinger laying guide 2024); Weldom 500 mm, 400 mm for softwood thinner than 27 mm; Neowood 350 or 400 mm by range, 100 mm less at 45°; Tarimatec 350 mm, 250 mm in a tropical climate; Déco 400 mm with visible screws (30 to 40 cm), 300 mm for ipê and 400 mm for teak with clips; Ecodeck 300 mm. doubled counts the second joists under board ends, which joists includes. Waste when not given: 10 % straight, 15 % diagonal. It does not size joists, beams, posts, footings or the ledger; those follow IRC R507 or AWC DCA 6 and the local code. The area is in square meters.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"length": "<length>",
"width": "<width>",
"decking": "<decking>",
"boardWidth": "<boardWidth>",
"boardLength": "<boardLength>"
},
"name": "calculate_deck"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap | No | Gap between boards, in millimeters; when left out 3.175 (1/8 in) for wood54 and wood2, 4.7625 (3/16 in) for composite, 6 for the gdHolz boards, 5 for weldom, weldomSoftwood and the deco boards. The other deckings have no gap of their own and need it. | |
| waste | No | Percent added to the boards; when left out 10 for straight and 15 for diagonal. | |
| width | Yes | Side of the deck along the joists, out from the house, in millimeters. | |
| layout | No | Boards square to the joists, or at 45° to them; straight when left out. | |
| length | Yes | Side of the deck across the joists; the boards of a straight layout run along it, and on a deck at a house it is the side along the wall, in millimeters. | |
| decking | Yes | wood54: wood boards 5/4 in thick; wood2: wood boards 2 in thick; composite: Trex composite boards 1 in thick; gdHolz21, gdHolz26, gdHolz40: solid wood boards 20 or 21, 26 and 40 mm thick (GD Holz); weldom: wood boards in France; weldomSoftwood: softwood boards thinner than 27 mm (Weldom); neowood350, neowood400: Neowood composite ranges; tarimatec, tarimatecTropical: Tarimatec composite in a temperate and a tropical climate; decoScrews: wood boards with visible screws, decoIpe and decoTeak: ipê and teak boards with clips (Déco); ecodeck: Ecodeck composite. | |
| spacing | No | Joist spacing on center, such as 406.4 (16 in) or 400; the widest the decking allows when left out, in millimeters. | |
| fastener | No | Two screws for each board at each joist, or one hidden clip; screws when left out. | |
| boardWidth | Yes | Actual width of one board, such as 139.7 (5 1/2 in) for a nominal 6 in board, in millimeters. | |
| boardLength | Yes | Length of the boards as sold, such as 4876.8 (16 ft), in millimeters. | |
| jointJoists | No | Adds a second joist under each line of board ends of a straight layout, (length ÷ boardLength, rounded up) − 1 of them, so that each end rests on its own joist (Trex at butt joints; GD Holz for solid wood). | |
| fastenerRate | No | Fasteners per square meter of deck as a maker states them, such as 25 clips (Tarimatec, Ecodeck); when left out they are counted at each board and joist. |