Deck Calculator

Enter the deck size, board width, joist spacing and post spacing. Get a materials list of decking boards, joists, rim and beam lumber, posts, footings, concrete and screws.

Free · No sign-up · Runs in your browser

How to use the deck calculator

A deck is a small structure with a long materials list, and most of it follows from a few layout decisions: how big the deck is, which way the boards run, how far apart the joists are and how many posts hold up the beams. This calculator assumes the common layout where the boards run along the house, the joists run out from the house at right angles to the boards, and one or two beams on posts carry the joists.

  1. Choose units and the deck type. An attached deck hangs its joists from a ledger on the house and has one beam at the outer edge. A freestanding deck has a beam at each side.
  2. Enter the length along the house and the depth the deck projects from it.
  3. Enter the board face width, gap and stock length. A 5/4 × 6 deck board is about 5.5 in wide; many metric boards are 140 or 145 mm.
  4. Pick the joist spacing from the decking maker's instructions, and the maximum post spacing your beam can span.
  5. Enter the post height and footing size to get post lumber and concrete, then read the full list.

Deck framing formulas

Board rows = ⌈depth ÷ (board width + gap)⌉
Boards = ⌈rows × ⌈length ÷ board length⌉ × (1 + waste)⌉
Joists = ⌈length ÷ spacing⌉ + 1, each as long as the depth
Posts per beam = ⌈length ÷ max post spacing⌉ + 1
Screws = rows × joists × 2 × 1.05
Footing concrete = posts × π × (diameter ÷ 2)² × depth

Boards per row are counted without reusing offcuts, so a 20 ft deck with 16 ft boards needs two boards per row with a 12 ft offcut each. That is deliberate: offcuts are often too short to reach the next joist, and butt joints need to land on a joist, ideally a doubled one. Choosing a stock length that divides the deck length neatly is the easiest way to cut waste.

MemberTypical US size (estimate)Typical metric size (estimate)
Decking5/4 × 6 or 2 × 628 × 140 mm or 32 × 145 mm
Joists2 × 8 to 2 × 10 at 16 in47 × 150 to 47 × 200 mm at 400 mm
BeamDoubled 2 × 10 or 2 × 12Two 47 × 200 or 47 × 225 mm
Posts6 × 6 (4 × 4 on low decks)100 × 100 or 150 × 150 mm

These are common starting points, not a structural design. Sizes depend on span, species, grade, loads and local rules.

Worked examples

A 16 × 12 ft attached deck

With 5.5 in boards and 3/16 in gaps, each row takes 5.6875 in, so 144 ÷ 5.6875 = 25.3 means 26 rows of 16 ft boards, or 29 boards with 10% waste (416 linear ft). At 16 in centres the ledger carries 13 joists, each 12 ft long. One doubled beam needs 32 ft of lumber and three posts at 8 ft spacing. Three 12 × 36 in footings hold about 7.1 ft³ of concrete, or 12 bags of 80 lb, and the boards need about 710 screws.

A 4.8 × 3.6 m freestanding deck

With 140 mm boards and 5 mm gaps, 3,600 ÷ 145 = 24.8, so 25 rows of 4.8 m boards and 28 boards with waste. Joists at 400 mm centres come to 13, each 3.6 m long. Two doubled beams use 19.2 m of timber and six posts at 2.4 m spacing. Six 300 mm footings 600 mm deep take about 0.25 m³ of concrete, or around 20 bags of 25 kg, and the boards need about 683 screws.

Picking the board length for a 20 ft deck

A 20 × 10 ft deck with joists at 12 in centres has 22 rows and 21 joists. With 16 ft boards each row needs two boards, so 44 boards (49 with 10% waste) and 704 ft of decking. With 20 ft boards it is 22 boards (25 with waste) and 440 ft, which saves roughly a third of the decking cost even if 20 ft boards cost more per foot. Screws come to about 971 either way.

Who this calculator helps

  • Architects and landscape designers drawing up deck options and early cost estimates.
  • Deck builders and carpenters producing a quick takeoff for a quote or lumber order.
  • Builders' merchants and lumber yards turning a customer's sketch into a materials list.
  • Homeowners and DIY builders pricing timber against composite before committing.
  • Students learning how decking, joists, beams and posts fit together.

Practical tips

  • Check the joist span for the depth you've entered with the joist and rafter span calculator; a deep deck may need larger joists or a mid-span beam.
  • Get more detail on footing concrete, including waste and other bag sizes, from the concrete calculator, and convert timber quantities to board feet with the board foot calculator.
  • Add stairs with the stair calculator; most codes require guards once a deck is more than about 30 in (760 mm) above grade, but check your local rules.
  • Flash the ledger and bolt it to the house rim with through-bolts or structural screws; never nail a ledger.
  • Order joist hangers, hurricane ties and post bases in the same corrosion-resistant finish as your fasteners.

Want to show the client the deck before it's built? Add it to a photo of the garden with Landscape.

From numbers to pictures

See the space before it's built.

Once the plan works on paper, BasedFrame turns a sketch, a massing model or a site photo into a photoreal render in seconds. Try Sketch to Render or Room Redesign with free credits.

Try BasedFrame free

FAQ

Deck Calculator FAQ

How many deck boards do I need?

Divide the deck depth (the direction the boards are laid across) by the board width plus the gap to get the number of rows, and round up. Multiply by the boards needed per row, which is the deck length divided by the board length rounded up, then add 5–10% for waste. A 16 × 12 ft deck with 5.5 in boards and 3/16 in gaps needs 26 rows of 16 ft boards, or about 29 boards with 10% waste.

How many joists does a deck need?

Divide the length of the ledger or beam by the joist spacing, round up and add one. At 16 in on centre a 16 ft deck needs 13 joists, and at 12 in on centre it needs 17. Composite decking and diagonal boards often call for 12 in spacing, so check the decking maker's instructions.

What joist spacing should I use for decking?

16 in (400 mm) on centre is the usual spacing for 5/4 timber and many composite boards laid square to the joists. Thinner boards, diagonal layouts and some composites need 12 in (300 mm). 24 in (600 mm) spacing is only suitable for 2x decking or boards rated for it.

How many posts and footings does a deck need?

Each beam needs a post at each end and at intervals no greater than the beam can span, often around 6 to 8 ft (1.8 to 2.4 m) for a doubled 2x10 or 2x12 beam. An attached deck usually has one beam; a freestanding deck has two. The calculator counts posts per beam from the maximum spacing you enter, with one footing per post.

How many deck screws do I need?

With two screws per board at every joist, multiply the number of board rows by the number of joists and by two, then add about 5% for drops and mistakes. A 16 × 12 ft deck at 16 in centres takes roughly 700 screws. Hidden fastener systems use one clip per crossing instead.

How big should deck footings be?

Footing size depends on the load each post carries, the soil bearing capacity and the frost depth in your area, so local rules and the building department set the minimum. 12 in (300 mm) diameter piers are common on small residential decks, but larger decks and weaker soils need bigger footings. The concrete volume here is an estimate from the size you enter.

What gap should I leave between deck boards?

About 3/16 in (5 mm) is common for kiln-dried timber and many composite boards. Wet pressure-treated boards are often butted tight because they shrink as they dry. Follow the board maker's gapping chart, which may also set end gaps by temperature.

Does this calculator size the joists and beams?

No. It counts and measures members for the layout you choose. Check that your joists can span the deck depth with the joist and rafter span calculator, and confirm beam, post, ledger and footing sizes with your local deck code or a structural engineer.

Keep exploring

More free tools for architects

Turn any listing
into rooms that sell

Start with a Zillow link or a single photo. Redesign, stage, relight and walk buyers through every room, ready to list today.