# Deck calculator > How many deck boards do I need? Decking boards, joists and screws or clips for a simple rectangular deck. How many decking boards, joists and screws or hidden clips a rectangular deck needs from its size, the board width and gap and the joist spacing. - Page: https://how.box/deck/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/deck/?l={l}&w={w}&u={u}&bl={bl}&bw={bw}&g={g}&su={su}&js={js}&f={f}&x={x} - `l` (number 0 to 1000): Deck length in u (boards run along it). Example: `4`. - `w` (number 0 to 1000): Deck width in u. Example: `3`. - `u` (m or ft): Length unit: m or ft. Example: `m`. - `bl` (2.4m, 3m, 3.6m, 4.2m, 4.8m, 8ft, 10ft, 12ft or 16ft): Board length: 2.4m, 3m, 3.6m, 4.2m, 4.8m, 8ft, 10ft, 12ft or 16ft. Example: `4.2m`. - `bw` (number 0 to 1000): Board width in su. Example: `140`. - `g` (number 0 to 100): Gap between boards in su. Example: `5`. - `su` (mm or in): Board size unit: mm or in. Example: `mm`. - `js` (number 0 to 1000): Joist spacing, centre to centre, in su. Example: `400`. - `f` (screws or clips): screws or clips. Example: `screws`. - `x` (number 0 to 50): Extra for cuts, percent. Example: `10`. Example answer: https://how.box/deck/?l=4&w=3&u=m&bl=4.2m&bw=140&g=5&su=mm&js=400&f=screws&x=10 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `deck_calculate`: Decking boards, joists and fasteners for a simple rectangular deck (a materials estimate, not a structural design: span, footings and fixings need local code). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"deck_calculate","arguments":{"length":4,"width":3,"unit":"m","board_length":"4.2m","board_width":140,"gap":5,"size_unit":"mm","joist_spacing":400,"fastener":"screws","waste":10}}}` - GET: https://how.box/mcp/run/deck_calculate?length=4&width=3&unit=m&board_length=4.2m&board_width=140&gap=5&size_unit=mm&joist_spacing=400&fastener=screws&waste=10 ## How it works The boards of a deck lie side by side across its width. The number of rows is the width divided by the board width plus the gap, rounded up. Each row is as long as the deck, so it takes the length divided by the board length, rounded up, boards laid end to end. The joists run across the width: one every joist spacing along the length, plus the last one. Every board is fixed to every joist it crosses. Example: a deck 4 m long and 3 m wide with 140 mm boards and 5 mm gaps needs ⌈3 ÷ 0.145⌉ = 21 rows. With 4.2 m boards each row is one board, so 21 boards, or 24 with 10 % extra. Joists every 400 mm along 4 m make ⌊4 ÷ 0.4⌋ + 1 = 11 joists of 3 m. There are 21 × 11 = 231 crossings, and two screws at each, with the extra, are about 510 screws. Hidden clips use one clip at each crossing. This is a materials estimate for a simple rectangle. It does not include the posts, beams, ledger, fascia, rails or stairs, and it does not check whether the joist size can span the distance or carry the load. Joist size, span, footings and fixings depend on the wood, the load and local building rules, so follow your board maker's installation guide and local code, or ask a builder. ## FAQ **How many deck boards do I need?** Divide the deck width by the board width plus the gap to get the rows, then multiply by the boards each row needs, and add about 10 % for cuts. The calculator does this for you. **How far apart should deck joists be?** Usually 400 mm (16 in) between centres for wooden decking, 300 mm (12 in) for composite boards or diagonal boards. Check the board maker's guide. **How big a gap should I leave between deck boards?** About 5 mm (1/4 in) for most boards, so water drains and the wood can swell. Follow the maker's guidance, which depends on the material and on whether the boards are dry when laid. **How many screws do I need for a deck?** Two screws at every crossing of a board and a joist, so the number depends on the rows and joists. The calculator adds your extra and rounds to ten. **Do I need a permit to build a deck?** Often, if the deck is raised, attached to a house or above a certain size. The rules vary by place, so ask your local building authority before you start. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)