Deck Calculator

A deck is five shopping lists wearing one project: decking boards, joists, support posts, fasteners, and the boxes those fasteners come in. Guess wrong on any one of them and you pay for it. Run short on boards mid-build and the second batch arrives a different shade of pressure-treated green. Overbuy and you've got $400 of 16-footers rotting behind the garage because nothing that long fits in the truck to take back. This deck calculator does the counting for you. It turns your deck's length and width into board courses (accounting for the standard 1/4-inch drainage gap), converts those courses into buyable lumber lengths, sizes the joist frame at your chosen spacing, and sets posts every 8 feet along the support beam. The screw math follows the trade pattern: two screws per board at every joist. Every unit selector is honored in the math, so feet, meters, inches, and centimeters all work.

Quick answer: A 20×16 ft deck needs 34 courses of 5.5-inch decking boards in 16-foot lengths — the calculator adds joists, screws and waste on top.
Key takeaways
  • A 20×16 ft deck needs 34 courses of 5.5-inch boards in 16-foot lengths — 43 boards, 16 joists, 3 posts, 1,088 screws.
  • A 12×12 ft deck needs 26 boards, 10 joists, 2 posts and 520 screws.
  • A 16×16 ft deck needs 34 boards, 13 joists, 3 posts and 884 screws.
  • Screws run two per board at every joist — 32 screws per course on a 20-foot deck at 16-inch joist spacing.
Longest side of the deck.
From the house wall (or inner edge) outward.
5.5 in for standard 5/4×6 decking.
Lumber lengths you will buy, e.g. 8, 12 or 16 ft.
16 in on centre is standard; 12 in for diagonal decking.
A 5 lb box of deck screws holds roughly 350.
Extra for cuts and bad boards — 10% is standard.

Planning this project? Save to Pinterest to find this calculator again later.

How to use the Deck Calculator

  1. Measure the deck's length — the longest side — corner to corner with a tape, not by pacing it off. Pacing is how 16-foot decks become 15-foot-4 decks, and that's a whole extra lumber run you'll wish you knew about at the store.
  2. Measure the width from the house wall (or the inner edge of a freestanding deck) outward. If the ground slopes, measure at the deck surface height you're planning, not at the dirt — widths read differently once you're standing on a framed platform.
  3. Enter the actual decking board width, not the nominal one. A '1x6' board is really 5.5 inches wide once it's dressed and dried. Typing 6 here is the single most common input error, and it undercounts your courses by a full row on anything over about 10 feet wide.
  4. Enter the lumber length you plan to buy — 8, 12, or 16 feet are what yards stock. Longer boards mean fewer butt joints, but every joint needs to land on a joist, so match this to your frame spacing.
  5. Set the joist spacing. 16 inches on center is standard for decking run straight across the joists. If you're running boards diagonally or using composite decking, switch to 12 inches — most composite manufacturers require it, and real wood sags on diagonals at 16.
  6. Check the screws-per-box number against what you're actually buying. A 5-pound box of #8 deck screws holds roughly 350, but 10-pound boxes and stainless lines differ. Count the box, not the guess.
  7. Press Calculate and let the deck calculator show you the breakdown: courses, boards to buy, joists, posts, total screws, and how many boxes. Then add roughly 10% to the board count before you head to the yard — culling warped and split boards is part of every deck build.

Deck Calculator formula

The deck calculator counts board courses as the deck width divided by (board width plus a 1/4-inch gap), rounded up — that gap is what lets rain through and gives boards room to swell in summer. Multiply courses by deck length to get total linear feet of decking, then divide by the board length you're buying and round up for the buy list. Joists equal deck length divided by joist spacing, plus one to close the far end — that last one is the rim joist people forget. Posts are deck length divided by 8 feet, plus one, along a single support beam. Screws are courses times joists times two: two fasteners per board at every joist crossing, which is the standard fixing pattern inspectors expect to see.

Worked example

Say you're building a 20 x 16 foot deck — 320 square feet, a solid backyard size — with standard 5.5-inch pressure-treated decking bought in 16-foot lengths, joists at 16 inches on center, and 350-count boxes of screws. First, the courses across the 16-foot width. 16 feet is 192 inches. Each course takes up one board plus its gap: 5.5 + 0.25 = 5.75 inches. 192 / 5.75 = 33.39, which rounds up to 34 courses. That rounding matters — 33 courses would leave you about two inches short of full coverage. Total decking: 34 courses x 20 feet = 680 linear feet. Divide by the 16-foot boards you're buying: 680 / 16 = 42.5, rounds up to 43 boards. You can't buy half a board, so the fraction becomes a full one. Joists run along the 20-foot length: 20 feet is 240 inches, 240 / 16 = 15 exactly, plus the closing joist gives 16 joists. Posts along the beam: 20 / 8 = 2.5, round down to 2, plus one = 3 posts. (If your yard needs the deck wider than about 12 feet from the house, you'd want a second beam — then double the posts.) Screws: 34 courses x 16 joists x 2 = 1,088 screws. At 350 per box that's 3.11 boxes, so 4 boxes. Buy the fourth box; running out of screws with three boards left is a special kind of misery. Got your board count? See what the whole project costs in our deck cost guide.

Deck material calculator: boards, joists, posts and screws

People search for a deck material calculator when they want the shopping list, not just the deck size — so here is everything this calculator counts, and how each count is rounded before you buy:

MaterialHow it is counted
Decking boardsCourses across the width (board width + 1/4 in gap), times deck length, divided by the board length you buy — rounded up to whole boards.
JoistsDeck length divided by joist spacing, plus one closing joist.
PostsOne post every 8 ft along the support beam, plus one — double it if your deck needs a second beam.
ScrewsTwo per board at every joist, converted to whole boxes at the box count you enter.

That is the platform. Railings, stairs, the ledger board that bolts to the house, and flashing are separate purchases on top — the factors and FAQ sections below cover what else to budget for.

Metric version: a 6.0 × 4.8 m deck (28.8 m²) with 140 mm boards bought in 4.8 m lengths, joists at 400 mm on centre, 350-count screw boxes. Courses across the 4.8 m width: 4.8 ÷ (0.14 + 0.006) = 32.88, rounded up to 33 courses. Total decking: 33 × 6.0 = 198 linear metres; boards: 198 ÷ 4.8 = 41.25, rounded up to 42 boards. Joists along the 6.0 m length: floor(6.0 ÷ 0.4) + 1 = 16 joists. Posts along the beam: floor(6.0 ÷ 2.44) + 1 = 3 posts. Screws: 33 × 16 × 2 = 1,056 screws, which is 3.02 boxes, so 4 boxes.

Deck layout diagram: where the boards, joists and posts go

The diagram below is the worked-example deck above — 20 ft long by 16 ft wide, 5.5-inch boards with a 1/4-inch gap, joists at 16 inches on centre — drawn as a plan view, looking down on the platform. Length is the longest side; width runs from the house outward.

HOUSE — ledger sideBoards run along the length20 ft — deck length (longest side)16 ft — deck width (from the house outward)

Reading the diagram: the horizontal strips are the 34 board courses across the 16-foot width; the vertical lines are the 16 joists at 16 inches on centre along the 20-foot length; the three dots on the dark far beam are the 3 posts, no more than 8 feet apart. The last course is trimmed to fit the remaining width on site — the calculator counts it as a full course, which is why the board count rounds up.

Board-length comparison — the same 20 × 16 ft deck

Board length changes how many pieces you buy and how many butt joints you live with — not the total footage, which stays 680 linear feet in every row. Counts below are at 0% waste, so they match the worked example; the calculator adds the waste percentage you enter on top.

Board length you buyBoards to buyButt joints in the field
8 ft8568 — 2 per course (8 + 8 + 4 ft per 20-ft course)
12 ft5734 — 1 per course (12 + 8 ft per course)
16 ft4334 — 1 per course (16 + 4 ft per course)

The surprise in that table: 16-foot boards do not cut the joint count on a 20-foot deck, because no single board spans the course. Joints only disappear when the board you buy is at least as long as the course it has to cover — which is exactly what happens in the direction comparison below.

Which way should the boards run?

Take a 20 × 12 ft deck with 5.5-inch boards bought in 12-foot lengths, joists at 16 inches on centre, 0% waste. Swap the length and width inputs in the calculator to flip the direction — the two runs below are that swap:

Boards run alongCoursesBoardsJoistsPostsScrewsButt joints
The 20-ft side (length)264416383226
The 12-ft side (width)42421028400

Running boards the short way saves 2 boards and every butt joint — a 12-foot board spans a 12-foot course exactly — and the screw count barely moves (832 vs 840), because more courses times fewer joists roughly cancel out. But the saving is not free: turned this way, the joists span the full 20 feet, well past the roughly 11–12 feet a 2×8 covers at 16 inches on centre (see the FAQ above), so that layout needs an intermediate beam or deeper joists. Direction is a framing decision first and a board-count decision second — check your span table before you flip a frame to chase two boards.

Measurement tips

  • Buy your decking from a real lumber yard if you can, not just the big box. Yards let you hand-pick boards, and their pressure-treated stock is usually fresher — Home Depot and Lowe's are fine for screws and hardware, but culling boards matters more than saving a dollar a stick — work out the board-foot totals first with the lumber calculator.
  • Check the crown on every joist before you fasten it. Sight down the edge like a rifle barrel and set the crown (the slight arch) facing up. A joist installed crown-down becomes a permanent dip in your deck floor.
  • Stagger your butt joints across the deck and never let two land on the same joist in a row. A straight line of joints looks amateur and weakens the surface where traffic hits it.
  • Use a 16d nail as a spacer for the 1/4-inch board gap instead of eyeballing it. Consistent gaps drain water evenly; wandering gaps make the whole deck look homemade.
  • If your deck is more than 30 inches off the ground, many local building codes require a permit and railings — check with your city before you buy lumber, not after the inspector shows up.
  • For composite decking, drop to 12-inch joist spacing and budget for hidden fasteners instead of face screws. Composite expands and contracts more than wood, and face-screwed composite shows every seasonal move.
  • Order one extra box of screws beyond what the math says. Screws get dropped in grass, driven into knots that eat the heads, and used on the fascia boards you forgot to count.

Common mistakes

  • Typing 6 inches for a '1x6' board instead of its actual 5.5-inch width. It happens because the nominal name feels like the truth. The result: your course count comes up one row short on wide decks, and you're 40 feet of decking short at the store.
  • Forgetting the 1/4-inch gap between boards. It looks negligible per board, but across 34 courses it adds up to 8.5 inches — a full extra course of lumber you didn't budget for.
  • Counting joists without the +1. The math gives you the number of gaps; the frame needs a joist at both ends. Forget it and your order is one joist short, which is exactly one too few to finish the rim.
  • Specifying posts for a single beam on a deck that's too wide for one. Anything much past 12 feet of span from the house wants a second support beam with its own posts and footings. One beam on a wide deck sags, and sagging decks bounce.
  • Ordering the exact calculated board count with nothing for waste. Between split ends, knots you don't want on a walking surface, and cuts that eat length, plan on culling 5 to 10 percent. The yard is not coming to you.
  • Mixing board lengths randomly to 'save money.' Different lengths mean butt joints landing in different places, which means more joists to catch them and a patchwork look. Pick one length and commit.

Factors that affect accuracy

  • Board width. A 2x6 (5.5 inches actual) and a 2x4 (3.5 inches actual) produce very different course counts and screw counts on the same deck. Narrower boards mean more courses, more screws, and more labor per square foot.
  • Decking pattern. Boards run straight across need the fewest cuts. Diagonal patterns look sharp but waste roughly 15 to 20 percent more lumber and demand tighter 12-inch joist spacing.
  • Deck height and beam layout. Low decks can sit on a single beam near the house; high decks need bigger beams, cross-bracing, and footings below the frost line. Tall posts also mean more concrete and more money per post — size the footings with the concrete calculator.
  • Board direction relative to the house. Boards usually run perpendicular to the house, which decides which dimension is 'length' in this calculator. Flip the direction and every number changes — measure and enter accordingly.
  • Stairs, railings, and fascia. This estimator covers the deck platform only. Stairs, railing posts and balusters, and the fascia boards that hide the rim joists are separate shopping lists. For the stairs themselves, the stair calculator works out risers, treads and stringer length.
  • Lumber availability. Yards stock 8, 12, and 16-foot boards reliably; odd lengths like 10 and 14 exist but vary by region and species. If your plan depends on a length the yard doesn't carry, the whole board count shifts.

Sources & assumptions

  • Boards: courses = deck width ÷ (board width + ¼-inch gap), rounded up; boards = total board length ÷ board length.
  • Joists = deck length ÷ joist spacing + 1; posts = one per 8 feet along the support beam, plus one per extra beam.
  • Screws = courses × joists × 2 (two per board at every joist).
  • Joist spans and framing must meet local code — check spans with the American Wood Council span calculator.

Figures checked on 28 November 2026 as part of the site-wide test run (3239 automated checks, all passing). See how we calculate and test.

How this calculator was checked

Figures checked 18 November 2026. Each case below was recomputed from the calculator's own formula and matched the tool's output.

Test inputsExpected result
16×12 ft deck, 5.5 in boards in 16 ft lengths, 16 in joist spacing, 350 screws per box26 boards, 13 joists, 3 posts, 676 screws, 2 boxes
Metric deck, 5×4 m, 14 cm boards in 5 m lengths, 40 cm joist spacing, 350 screws per box28 boards, 13 joists, 3 posts, 728 screws, 3 boxes
12×12 ft deck, 5.5 in boards in 12 ft lengths, 16 in joist spacing, 350 screws per box26 boards, 10 joists, 2 posts, 520 screws

What this check does not cover

  • Board cases use the standard 1/4-inch gap between boards; composite brands may specify a wider gap.
  • Post cases assume a single support beam; decks wider than about 12 ft from the house need a second beam.
  • Screw cases follow two screws per board at every joist — hidden-clip fasteners follow their own spacing.

Safety note

Decks often need a permit and must meet local building codes (joist spans, railing height, footing depth below the frost line). Hire a licensed professional for elevated or attached decks — never guess at structural spans. Call 811 to mark buried utilities before you dig.
Please note: material estimates are approximate. Always confirm product coverage with the manufacturer and buy a little extra for cuts, waste and future repairs.

What this calculator doesn't do

  • This estimates materials, not structure — ledger attachment and footing depth must meet your local building code.
  • Railings, stairs and permits aren't included.
  • Lumber prices swing hard by region and season; the board counts are solid, the dollars aren't.

Deck Calculator — frequently asked questions

How many deck boards do I need for a 20x16 deck?

With standard 5.5-inch decking bought in 16-foot lengths: 34 courses across the width, 43 boards total, plus 16 joists, 3 posts, and about 1,088 screws (4 boxes of 350). The example above walks the full arithmetic.

Should I use 16-inch or 12-inch joist spacing?

16 inches on center is standard for wood decking run perpendicular to the joists. Go 12 inches for diagonal patterns, for composite decking (most manufacturers require it), or if your local code demands it for the span you're covering.

How many screws do I need per deck board?

Two screws per board at every joist the board crosses. On a 20-foot deck with joists at 16 inches on center, that's 16 joist crossings per course — 32 screws per course, times 34 courses.

How far apart should deck support posts be?

No more than 8 feet apart along the support beam, and the beam sits on footings that go below your local frost line. Decks wider than about 12 feet from the house usually need a second beam with its own posts.

Can I use this estimator for composite decking?

The board and joist math works, but change two inputs: use 12-inch joist spacing (composite sags at 16), and treat the screw count as a rough guide — most composite installs use hidden clip fasteners, whose count follows the clips' own spacing rules, not the two-screws-per-joist pattern.

Do I need to count the ledger board or rim joists separately?

Yes. This calculator sizes the field of decking and the joists, including the closing rim joist. The ledger board that bolts to the house, the second rim joist on the house side, and flashing are separate line items to add at the store.

What size joists should I buy for my deck?

2x8 joists cover most residential spans at 16 inches on center up to about 11 to 12 feet. Longer spans need 2x10s or an intermediate beam. Check your local span table — 'it feels strong enough' is not a structural standard.

How many footings does my deck need?

One footing per post — and every footing must go below your local frost line, or freeze-thaw heaving will lift the deck out of level. Use the post count from the calculator above, then multiply by the number of support beams: a deck up to about 12 feet out from the house usually has one beam, so footings = posts. A deeper deck with a second beam needs twice that — for example, the 20 × 16 deck in the first question has 3 posts on one beam, so 3 footings; with a second beam it would be 6. Check your local code for the exact footing depth and diameter before you dig, and call 811 to mark buried utilities first.

How big a gap should I leave between deck boards?

Leave a 1/4-inch gap between deck boards — that is the spacing this calculator uses. The gap lets rain drain, gives boards room to swell in wet weather, and keeps the deck from cupping. For composite decking, follow the manufacturer's gap spec on the box, since some brands need a wider gap for expansion.

How many deck boards do I need for a 12×12 deck?

With standard 5.5-inch boards bought in 12-foot lengths: 26 courses across the width, 26 boards total, plus 10 joists, 2 posts, and 520 screws. Enter your own board width and lumber length above — wider boards or longer lumber change the count.

Do I need a permit to build a deck?

Often, yes. Many towns and counties require a permit for decks, especially attached or elevated ones, and inspectors check footing depth, joist spans, and railing height. Check with your local building department before you buy materials — this calculator estimates quantities, not code compliance.

How many deck boards do I need for a 16×16 deck?

With standard 5.5-inch boards bought in 16-foot lengths: 34 courses across the width, 34 boards total, plus 13 joists, 3 posts, and 884 screws. Enter your own board width and lumber length above — wider boards or shorter lumber change the count.

How much does it cost to build a deck?

Plan on $25–$35 per sq ft installed for pressure-treated, $35–$45 for cedar, or $45–$60 for composite (the deck cost guide ranges for a straightforward rectangle) — then refine it, because size, material, height, stairs, railing and permits move the total a lot. Our deck cost guide walks through the full breakdown: framing, decking, footings, railing, stairs, and labor, so you can price your exact deck instead of guessing from an average. Run the deck calculator above first, then take your board, joist, and post counts to the guide.

Next step

Price the board, joist, and screw counts at your lumberyard, then compare the materials total against the deck cost guide before you decide between DIY and hiring out.

Save this estimate: use the Copy link button in the results box above to share these exact inputs, or Print results for a paper copy to take to the store.