Skip to content
LoveToCalc

Decking calculator

Boards, joists or posts, and screws counted from the size, the board width, the gap and the spacing you choose.

Your numbers

What you are building

The direction the boards run along.

The direction the boards are laid in rows across.

An example value – measure your board.

An example value, 5 mm. Your own plan and the board’s guidance decide it.

The length you buy. Example value 3.6 m.

Centre to centre. Example value 600 mm; your build and the board maker’s guidance decide it.

Screws where a board meets a joist or rail. Example value 2.

Extra boards for cuts and bad pieces. Example value 10 %.

Leave 0 if you do not want a cost.

Result

Number of boards

31

Put a second set of numbers beside this one and see the difference.

Number of joists
8
Number of screws
400
Board length to cover, m (before waste)
100
Cost
–

A deck of 4 × 3 m with 120 mm boards and a 5 mm gap takes 31 boards of 3.6 m, 8 joists and 400 screws.

Boards with a gap fill a width when n · board width + (n − 1) · gap is enough, so the number of rows is the width plus the gap divided by the board plus the gap, rounded up. On a deck, what is cut off one board is taken to start the next row, and the waste allowance covers what is lost. Posts are the sections plus one along a straight run. Joist and post spacing are your own choices: how close they must stand for a given load or height is for the build and the rules where you are, not for this page. The cost is only the prices you fill in.

What this answers

How many boards to buy for a deck or a fence, and how many joists or posts and screws go with them. You give the size, the width of a board, the gap between boards and the spacing you plan. The page counts; it does not tell you how far apart things have to be.

Boards

Boards of a width, laid with a gap between them, fill a width when n boards and n − 1 gaps are enough:

Rows = (width + gap) / (board width + gap), rounded up

On a deck the boards run along the length. The metres to cover are the rows times the length, plus the waste you choose, divided by the board length you buy and rounded up. The page assumes that what is cut off one board starts the next row. For a fence the same formula gives the number of boards along the run.

Joists, posts and screws

Worked example

A deck of 4 × 3 m, boards 120 mm wide, 5 mm gap, 3.6 m boards, joists at 600 mm, 10% waste:

What is not included

Common questions

Why is the cost empty? The prices are yours. Type the price of a board, and of a post for a fence, and the cost appears.

Last reviewed October 20, 2026 ·How pages are reviewed

All everyday calculators

Put this calculator on your site

Copy the code into your page where the calculator should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.