Deck Calculator
Work out the decking boards, joists, beam, posts and screws for a deck attached to a house, from its size, the board width and length, and the joist spacing.
How to Use
- Enter the deck length along the house and how far it projects out from the house.
- Choose the decking board width and the gap between boards, and the length you will buy them in.
- Choose the joist spacing: 16 in is standard for wood decking, 12 in for diagonal boards or some composites.
- Set the spacing between posts under the outer beam, usually 6 to 8 ft depending on the beam.
- Read the boards, joists, posts and screws; add a price per board for the cost.
Worked Example
A deck 16 ft along the house and 12 ft out, with 5½ in boards, 3/16 in gaps, 16 ft board lengths and joists at 16 in. Rows: 12 ft = 144 in, ÷ (5.5 + 0.1875) = 25.3, so 26 rows. Each row is one 16 ft board, so 26 boards; with 10% waste, 29 boards. Joists: 16 ft = 192 in, ÷ 16 = 12 spaces, + 1 = 13 joists, each 12 ft long. Posts under the outer beam at 8 ft: 16 ÷ 8 + 1 = 3 posts. Screws: 26 rows × 13 joists × 2 = 676.
The common mistake: forgetting the gap. Without it, 144 ÷ 5.5 = 26.2 rounds up to 27 rows, a board more than the deck takes; and a layout marked out without gaps leaves the last board in the wrong place, so the gaps end up uneven or the last row has to be ripped narrow.
Show Work
Formulas
How an Attached Deck Is Framed
An attached deck hangs its inner end on a ledger board bolted through the house rim joist, with flashing to keep water out of the wall. Joists run from the ledger out to a beam carried on posts and footings, and a rim joist ties their ends together. The decking runs across the joists, usually parallel to the house. A badly attached ledger is the most common cause of deck collapses, which is why codes specify the bolts and spacing in detail.
Pressure-treated lumber is stamped for ground contact or above-ground use; use ground-contact lumber for posts and anything close to the soil, and hot-dip galvanized or stainless fasteners, because the copper preservatives corrode ordinary steel.
About This Calculator
This calculator works out a rectangular attached deck: decking rows and boards from the board width, gap and length you buy, joists and their length, rim joists, the beam, posts at your spacing and the screws, with a plan view of the layout. It works in feet and inches or metres and millimetres.
Everything runs in your browser; nothing is sent anywhere. It is an estimating tool; joist, beam and footing sizes come from your local code’s span tables.
Related calculators: Lumber Calculator, Concrete Calculator, and Stair Calculator.
Frequently Asked Questions
How many deck boards do I need?
Divide the deck depth by the board width plus the gap to get the rows, then multiply by the boards needed per row. A 12 ft deep deck with 5½ in boards and 3/16 in gaps has 144 ÷ 5.6875 = 25.3, so 26 rows. If the deck is 16 ft long and the boards are 16 ft, that is one board per row: 26, or 29 with 10% waste.
How far apart should deck joists be?
Usually 16 in on centre for wood decking laid square to the joists, and 12 in when the boards run at a diagonal. Many composite and PVC boards specify 16 in, or 12 in for diagonal layouts and stairs. Check the decking maker’s span table; going too wide makes boards bouncy.
How many screws do I need for a deck?
Two screws per board at every joist it crosses. For a 16×12 ft deck with 26 rows and 13 joists that is 26 × 13 × 2 = 676 screws, about 2 boxes of 350. Hidden fastener systems use one clip per board per joist instead.
How many posts does a deck need?
It depends on the beam size: a doubled 2×10 beam typically spans 6 to 8 ft between posts. A 16 ft deck with posts at 8 ft needs 3 posts and 3 footings under the outer beam, plus the ledger bolted to the house. Footing size and depth come from your local code and frost line.
What gap should decking boards have?
About ⅛ to 3/16 in for dry wood and most composites, so water drains and debris falls through. Pressure-treated boards laid wet shrink as they dry, so they are often laid tight and the gap opens up over a few weeks.
How do I use the Deck Calculator?
Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.
Is it free? Does it work without internet?
Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.
Where does my data go?
Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.
Common Use Cases
Standard deck
16×12 ft, 5½ in boards, 16 ft lengths: 29 boards, 13 joists of 12 ft, 3 posts, 676 screws.
Longer than the boards
20×12 ft with 16 ft boards: 26 rows × 1.25 boards per row = 32.5, so 36 boards with 10% waste, joints staggered.
Composite at 12 in
14×10 ft composite with joists at 12 in: 15 joists instead of 12.
Narrow boards
12×10 ft in 3½ in boards with ⅛ in gaps: 34 rows.
Metric deck
4.8×3.6 m with 140 mm boards and 5 mm gaps: 25 rows of 4.8 m boards.
Last updated: