Home › Outdoor Living
Deck Calculator
Formula verified · Updated Nov 2026
Results update as you type. Estimates only — confirm final quantities before ordering.
Enter your deck size to get the surface framing count: joists, decking boards and screws. Joists run across the deck's width, spaced along its length; boards run the deck's length, one row per board width plus gap. Beams, posts, footings and railing are structural items outside this count — size those separately. The same page also works out how many gallons of stain or sealer one coat needs for your wood condition, and — if you enter per-square-foot material and labor rates — an estimated cost to build the deck.
The formula
Joists = floor(Length in inches ÷ Spacing) + 1
Board rows = ceil(Width in inches ÷ (Board width + Gap))
Boards = Board rows × (1 + Waste)
Screws = Board rows × Joists × 2
Stain, 1 coat (gal) = ceil(Deck area ÷ Coverage)
Coverage = 300 ft²/gal new wood, 150 ft²/gal weathered wood
Sealer, 1 coat = same gallons as stain
Estimated material cost = Deck area × Material price per ft²
Estimated labor cost = Deck area × Labor price per ft²
Estimated total build cost = Material cost + Labor cost
Boards are counted as full deck-length boards — one board per row. If your boards come shorter than the deck length, count by total length instead: rows × row length ÷ stock length (see the FAQ below) — the waste allowance alone does not cover the extra joints. Screws assume two per board per joist crossing; hidden-clip systems use roughly one clip per crossing instead — halve the screw figure for clips.
Stain and sealer are counted in whole gallons to buy, for one coat over the deck floor only (not railing, steps or fascia). Coverage is the planning figure for the wood condition you pick — 300 ft² per gallon on new wood, 150 ft² per gallon on weathered wood — because weathered boards are more porous and soak up roughly twice as much. The coverage printed on your can beats any average, so use that figure if it differs. The cost figures are estimates only: both price fields default to $0, so they read $0 until you enter the per-square-foot material and labor rates from your own quotes.
Worked example
Example: a 16 ft × 12 ft deck, 16 in joist spacing, 5.5 in boards, 0.25 in gap, 10% waste.
- Area: 16 × 12 = 192 ft²
- Joists: floor(192 ÷ 16) + 1 = 13 joists
- Board rows: ceil(144 ÷ 5.75) = 26 rows
- Boards: 26 × 1.1 = 29 boards
- Screws: 26 × 13 × 2 = 676 screws
- Stain, 1 coat, new wood: ceil(192 ÷ 300) = 1 gallon (weathered wood would be ceil(192 ÷ 150) = 2 gallons); sealer is the same 1 gallon
- Build cost at $15/ft² materials + $8/ft² labor: materials 192 × 15 = $2,880, labor 192 × 8 = $1,536, total $4,416
Reference chart
| Deck size | Joists | Boards | Screws | Stain / sealer, 1 coat (new / weathered) |
|---|---|---|---|---|
| 12 × 12 ft | 10 | 29 | 520 | 1 / 1 gal |
| 16 × 12 ft | 13 | 29 | 676 | 1 / 2 gal |
| 20 × 16 ft | 16 | 38 | 1,088 | 2 / 3 gal |
Frequently asked questions
What joist spacing should I use?
Sixteen inches on center is standard for wood decking; twelve inches is used for diagonal boards, composite decking, or heavier loads. Composite makers publish their own spacing specs — follow yours.
What gap should I leave between boards?
About 1/4 in for wood boards, which shrink and swell with moisture; composite boards follow the maker's gap spec, which is often smaller and temperature-dependent.
How many boards do I need if I buy 12 ft boards instead of 16 ft?
The board count on this page assumes full deck-length boards — one board per row. Shorter stock needs more boards, because every row then needs a joint and the offcuts only partly get reused. Take the worked example, a 16 × 12 ft deck with 26 rows of 16 ft boards: 16 ft stock needs 26 boards, 29 with the 10% waste allowance. With 12 ft stock the same deck is 26 rows × 16 ft = 416 linear ft, so 416 ÷ 12 = 35 boards before waste, 39 with 10% — and if you cut each row fresh and throw the 4 ft offcuts away, it is 2 boards per row, 52 boards. With 8 ft stock it is 416 ÷ 8 = 52 boards, 58 with waste. The cheapest move is usually to design the deck around the board length you can buy — a 16 ft deck in 16 ft boards has no butt joints at all. Diagonal boards need about 41% more decking than straight boards, so the same deck takes about 41 boards instead of 29.
Screws or hidden fasteners?
This count assumes two screws per board per joist crossing. Hidden-clip systems use roughly one clip per crossing instead — about half the screw figure — plus starter and end clips.
Does this include beams, posts and railing?
No — this counts the deck surface framing only (joists, boards, fasteners). Beams, posts, footings, stairs and railing depend on height, span and local code, so size those separately.
How much stain does my deck need?
One coat over the deck floor: divide the deck area by the coverage for your wood condition — 300 ft² per gallon on new wood, 150 ft² per gallon on weathered wood — and round up to whole gallons. The example deck on this page (192 ft²) needs 1 gallon on new wood and 2 gallons on weathered wood. Two coats need twice as much. Those figures sit inside the ranges manufacturers publish — Sherwin-Williams lists 350–400 ft²/gal on new wood and 250–300 on weathered wood for its solid-color stain, and 150–350 ft²/gal for its semi-transparent stain depending on porosity; Behr lists 250–300 ft²/gal for a first coat of semi-transparent stain — so they are planning figures, not a promise for your can. Always read the coverage printed on the can you actually buy, and add railing, steps and fascia separately: they are not in this count.
How much does it cost to build a deck?
Enter the per-square-foot material and labor rates from your own quotes and this page multiplies them by the deck area — materials plus labor is the estimated total. The example deck on this page (192 ft²) at $15/ft² materials and $8/ft² labor comes to $2,880 + $1,536 = $4,416. Those rates are examples only: real prices vary widely by material (pressure-treated pine vs composite vs hardwood), deck height, railing and stairs, and your region — and this estimate covers the deck surface only, not beams, posts, footings, stairs or railing, so get 2–3 written quotes for the full job before you commit.
Related calculators
- Board Foot Calculator — Board feet and lumber cost from thickness, width, length and quantity.
- Fence Calculator — Posts, sections, rails and pickets for a wood fence.
- Concrete Calculator — Cubic yards and bag counts for slabs, patios and pads.
How we verify this
Standard deck framing practice (joists 16 in on center, 2 screws per board per joist crossing); board coverage from width + gap; composite makers' spacing specs vary — follow yours. Stock-length board counts verified against MeasureAndBuild's deck calculator and MaterialGuides' board-length table (Oct 2026); diagonal +41% decking figure from MeasureAndBuild. Stain coverage: Sherwin-Williams SuperDeck solid-color stain data sheet — 350–400 ft²/gal on new wood, 250–300 ft²/gal on weathered wood; SuperDeck semi-transparent stain — 150–350 ft²/gal depending on porosity and texture; Behr Premium semi-transparent stain — 250–300 ft²/gal first coat. This page uses 300 ft²/gal (new) and 150 ft²/gal (weathered) for one coat — inside the published ranges, toward the generous side for weathered wood; the coverage on your can is the figure to use. Build-cost figures are the deck area multiplied by the per-square-foot rates you enter — no published rate is assumed.