Decking calculator

Wood Decking Calculator

This wood decking calculator counts exactly how many wood deck boards your deck needs, in pressure-treated pine, cedar or redwood, with the right gap for each species, the board count, the linear feet and the cost. Wood is not one material: wet treated pine is installed tight and shrinks open on its own, while dry cedar needs a real gap from day one. This calculator knows the difference.

  • Free to use
  • No sign-up
  • Formula and sources shown
Wood Decking Calculator

Got the number? Save it before it gets lost.

A result on a screen is easy to lose. Save this estimate in the app and it stays with the project, ready when you order.

Save this estimate in the app

The species sets the recommended gap and planning price automatically. Change them below if your yard's price differs.

5-1/2 in is the actual width of a 5/4×6 or 2×6 deck board.

1/8 in for dry wood. A 16d nail makes a handy spacer.

Buy the length that matches your deck. 16 ft boards leave no butt joints on a 16 ft deck.

10% for straight runs, 15% for diagonal boards or a picture-frame border.

Planning range for the species above. Check your yard for the real price.

Western red cedar: about $4.00 per linear foot, 15–20 year lifespan, seal every 2–3 years.

Boards to buy

29

Rows of decking

26

Linear feet (with waste)

458

Deck area

192 sq ft

Screws needed

676

Estimated cost

$1,830

Turn this result into a priced plan

Save it to a project, add the rest of your materials, and send a client-ready quote. No retyping, no spreadsheet, no lost numbers.

Open this calculator in the app

Formula

Boards = ceil[(Rows × Deck length × (1 + Waste%)) ÷ Stock board length]

Worked example. A 16 ft × 12 ft deck in western red cedar, 5-1/2 in boards, 1/8 in gap, 16 ft stock, 10% waste: 144 in ÷ 5.625 in = 25.6, so 26 rows. 26 rows × 16 ft = 416 linear ft; with waste, 458 linear ft, so 29 boards of 16 ft. At $4.00 per linear foot, the cedar decking costs about $1,830.

A 16 x 12 ft deck in western red cedar needs 26 rows of boards, 416 linear feet, and 29 boards of 16 ft with a 10% waste allowance, about $1,830 at $4.00 per linear foot. Wood decking is three different materials wearing one name: wet pressure-treated pine that shrinks as it dries, cedar that is light and naturally rot-resistant, and redwood, the durable one of the three. The gap is the one that catches people out, because the right gap for wet pine is no gap at all.

Key takeaways

  • •Formula (keep exact): Rows = ceil[Deck width in inches ÷ (Board width + Gap)]; Boards = ceil[(Rows × Deck length × (1 + Waste%)) ÷ Stock length].
  • •Default deck: 16 × 12 ft (192 sq ft), cedar, 5-1/2 in boards, 1/8 in gap, 16 ft stock, 10% waste = 26 rows, 416 linear ft, 29 boards, about $1,830.
  • •Wet pressure-treated pine goes in butt-tight (0 in gap) and shrinks open on its own. Dry pine, cedar, and redwood get a 1/8 in gap.
  • •Prices per linear foot (2026 US planning ranges): wet treated pine about $2.50, kiln-dried treated pine about $3.00, cedar about $4.00, redwood about $5.50.
  • •Lifespans with regular sealing: treated pine 10–15 years, cedar 15–20 years, redwood 20–25 years.
  • •A 5-1/2 in board is the actual width of a nominal 5/4×6 or 2×6 deck board. Measure the real board, not the name on the tag.
  • •Screws: two per board at every joist, about 3.5 per square foot. A 192 sq ft deck takes about 676 screws. Use coated or stainless screws rated for treated lumber.
  • •Waste: 10% for straight runs, 15% for diagonal boards or a picture-frame border.

How to use the wood decking calculator

  1. Measure the deck in feet, length along the boards, width across them, and enter both above.
  2. Pick the wood species. The calculator sets the recommended gap and the planning price for that species automatically. Change them if your yard's price differs.
  3. Check the gap: 0 in for wet pressure-treated pine, 1/8 in for kiln-dried pine, cedar, and redwood. The gap note under the species box explains why.
  4. Pick the stock board length you will buy. 16 ft is the common choice for a 16 ft deck, because it leaves no butt joints.
  5. Keep the 10% waste allowance, or raise it to 15% for diagonal boards or a picture-frame border.
  6. Read the board count, the linear feet, the screw count, and the cost. Compare species in the table below before you commit. The cheapest board is not always the cheapest deck.
  7. For the whole deck build, use the deck cost calculator, and for a store-priced estimate, use the Lowe's decking calculator.

Wood species comparison

The species decides four things at once: the price, the gap, the lifespan, and the maintenance. Pressure-treated pine is southern yellow pine soaked in preservative under pressure. The treatment is what keeps it from rotting, not the wood itself, and the treatment leaves it soaking wet. Cedar is naturally rot-resistant thanks to the oils in the wood, so it needs no chemical treatment, and it is lighter, straighter, and better looking than pine. Redwood is the premium native softwood: deep colour, tight grain, natural rot resistance, and the longest life of the three, but it is increasingly expensive and hard to find outside the West Coast.

SpeciesPrice per linear footGap at installationLifespanMaintenanceJoist spacing
Pressure-treated pine, wetAbout $2.500 in | butt tight10–15 yearsClean and seal every 2 years16 in on centre
Pressure-treated pine, kiln-driedAbout $3.001/8 in10–15 yearsClean and seal every 2 years16 in on centre
Western red cedarAbout $4.001/8 in15–20 yearsSeal every 2–3 years16 in on centre
RedwoodAbout $5.501/8 in20–25 yearsSeal every 2–3 years16 in on centre
Composite (for comparison)About $5.50–$9.001/4 in25–50 yearsWash annually12 in on centre

Prices are 2026 US planning ranges per linear foot for 5/4×6 boards, not quotes. Lifespans assume regular cleaning and sealing; an unsealed wood deck lasts years less. Composite is shown for comparison only. It is not wood, and it needs tighter joist spacing.

The cost gap between species is smaller than it looks once you count the whole deck. On a 192 sq ft deck, treated pine decking costs about $1,144, cedar about $1,830, and redwood about $2,517, a difference of $1,373 from cheapest to dearest. But the decking is only part of the build: framing, footings, railing, and labour cost the same whichever surface you choose, so the species premium is a small share of the total. If you will look at the deck every day for fifteen years, the cedar premium works out to about $45 a year. That is the number to weigh, not the price per board.

The wet-board rule: why treated pine gets no gap

This is the single most misunderstood rule in deck building, and it is the reason this calculator treats pressure-treated pine differently from every other wood. Treated pine leaves the plant soaking wet. The preservative is forced in under pressure dissolved in water, and the board can hold a third of its weight in water. As it dries on your deck, it shrinks: a 5-1/2 in board can lose a quarter of an inch of width in the first month. If you install wet boards with a 1/8 in gap, the gaps end up 3/8 in wide. Wide enough to catch heels, drop cutlery through, and look like a mistake.

So wet treated pine is installed butt-tight, board against board, with no gap at all. The boards shrink, the gaps open on their own, and a month later the deck looks exactly like one that was gapped correctly. The calculator does this automatically: pick wet pressure-treated pine and the gap is zero, the row count rises by one (27 rows instead of 26 on a 12 ft wide deck), and the board count follows. Kiln-dried treated pine (KDAT) is different. It has been dried after treatment, so it behaves like cedar and gets a 1/8 in gap. If you are not sure whether your boards are wet or dry, pick one up: a wet board is heavy, cool, and damp to the touch, and water beads on a fresh cut.

Cedar and redwood are sold much drier, so they shrink far less and get a real 1/8 in gap from day one. The gap is drainage and movement in one: rain and snowmelt fall through instead of pooling, leaves wash out instead of rotting in the joint, and the boards have room to swell in wet weather without buckling against each other. A 16d nail is the classic spacer; its shank is about 1/8 in, and a carpenter's pencil is close enough. Whatever you use, use the same spacer on every joint, or the deck will look wavy from across the yard.

The wood decking formula and board counts

Rows = ceil[Deck width (in) ÷ (Board width + Gap)], Boards = ceil[(Rows × Deck length × (1 + Waste%)) ÷ Stock length]

Count rows first, then linear feet, then boards. The deck width in inches divided by one board plus its gap gives the rows; the gap matters because every board carries one, and across a 12 ft deck the gaps add up to half a board. Rows times deck length gives linear feet, which is what the yard sells by. Waste comes next; 10% for straight runs, 15% for diagonal boards, and then the total is divided by the stock length and rounded up to whole boards.

Deck sizeSpecies and gapRowsLinear feetBoards of 16 ft (10% waste)Decking cost
16 × 12 ftCedar, 1/8 in gap2641629About $1,830
16 × 12 ftWet treated pine, no gap2743230About $1,188
16 × 12 ftRedwood, 1/8 in gap2641629About $2,517
12 × 12 ftCedar, 1/8 in gap2631222About $1,373
20 × 16 ftCedar, 1/8 in gap3570049About $3,080
20 × 16 ftWet treated pine, no gap3570049About $1,925

Costs use the planning prices in the species table: wet pine $2.50, cedar $4.00, redwood $5.50 per linear foot, applied to the linear feet with waste. Check your yard for real prices before you budget.

Notice how the wet-pine deck needs one more row than the cedar deck at the same size, 27 rows against 26, because the boards go in tight and there is no gap to absorb the width. That extra row is real wood and real money, and it is the reason a calculator that ignores the wet-board rule undercounts a treated-pine deck by a full row. The calculator also shows the screw count: two screws per board at every joist, which works out to about 676 screws on the 16 × 12 ft deck in either species.

Worked examples

Example 1, a 16 × 12 ft deck in western red cedar (the calculator default). Width 144 in ÷ 5.625 in = 25.6, so 26 rows. 26 rows × 16 ft = 416 linear ft; with 10% waste, 458 linear ft. In 16 ft boards: 458 ÷ 16 = 28.6, so 29 boards. At $4.00 per linear foot, the cedar costs about $1,830. Screws: 13 joists at 16 in on centre, two per board per joist, gives 26 × 13 × 2 = 676 screws.

Example 2, the same deck in wet pressure-treated pine. The gap is zero, so the rows are 144 ÷ 5.5 = 26.2, rounded up to 27 rows. 27 rows × 16 ft = 432 linear ft; with 10% waste, 475 linear ft. In 16 ft boards: 475 ÷ 16 = 29.7, so 30 boards. At $2.50 per linear foot, the pine costs about $1,188, about $640 less than cedar, for one more board and a deck that will need sealing sooner and more often.

Example 3, a 20 × 16 ft deck in redwood, diagonal layout. Width 192 in ÷ 5.625 in = 34.1, so 35 rows. 35 rows × 20 ft = 700 linear ft; diagonal boards need 15% waste, so 700 × 1.15 = 805 linear ft. In 16 ft boards: 805 ÷ 16 = 50.3, so 51 boards. At $5.50 per linear foot, the redwood costs about $4,428. The diagonal pattern is the expensive choice in the most expensive wood. Run the numbers before you commit to the pattern.

Example 4, a small 12 × 12 ft deck in kiln-dried treated pine with 12 ft boards. Width 144 in ÷ 5.625 in = 25.6, so 26 rows. 26 rows × 12 ft = 312 linear ft; with 10% waste, 343 linear ft. In 12 ft boards: 343 ÷ 12 = 28.6, so 29 boards. At $3.00 per linear foot, the pine costs about $1,030. Short boards suit a small deck; every row ends at the deck edge with no butt joint, but check the price per linear foot, because short boards sometimes cost more per foot than long ones.

How BuildCova compares with the rivals

The top results for wood decking calculator are all general deck calculators that happen to mention wood: calcady.com, buildcalchub.online, freedeckboardcalculator.com, diycalc.co, coolconversion.com, and bulkcalculator.com. None of them is a wood-specific calculator, and none of them treats the species as an input that changes the gap. They ask for a board width and a gap, and they leave the gap to you, which is exactly the input most people get wrong, because the right gap for wet pine is zero and the right gap for cedar is 1/8 in.

CalculatorSpecies pickerWet-board gap ruleSpecies price tableScrew countGuide depth
BuildCova (this page)Yes. PT wet/dry, cedar, redwoodYes | automatic 0 in gapYes | per linear footYes | per joistFull guide, species table, worked examples
calcady.comPartial. Material listYes | explained in textNoYes | 3.5 per sq ftLong | framing and fasteners
freedeckboardcalculator.comYes | presetsYes | explainedNoNoLong. Cut plans
diycalc.coYes | material tableNoYes. Cost per sq ftNoMedium
coolconversion.comYes | 2×6 and compositeNoYes | per linear footYesMedium
bulkcalculator.comYes | material typesYes | in textYes | per linear footYesLong | quick reference tables

What beats them here: this is the only page in the top results that makes the species the input and lets the species set the gap and the price. Pick wet treated pine and the gap drops to zero automatically, with the row count rising by one to match. The rivals either explain the wet-board rule in text and leave you to apply it, or they do not mention it at all. A calculator that asks you for the gap is a calculator that trusts you to know the answer; this one knows it for you.

Grades, knots and picking boards at the yard

Wood decking is graded, and the grade is stamped on the board, or should be. Pressure-treated pine is usually sold as #2 or better, which allows some knots and wane (missing wood at the edge) but nothing that weakens the board. Cedar is sold in grades from clear (knot-free, the most expensive) through select knotty to common, and the grade changes the look far more than the strength. Redwood grades run from clear heart (the best, all heartwood) down to construction common. For a deck surface, the face matters: knots on the face catch water, crack, and eventually fall out, leaving a hole.

At the yard, sight down every board before it goes on the cart. Reject boards that are bowed (curved along the edge), cupped (curved across the face), twisted, or split at the ends, the calculator assumed straight boards, and a bowed board wastes a row. For treated pine, pick boards that are heavy for their size: heavy means wet, and wet means it has not dried out and checked yet, but remember it will shrink, so install it tight. For cedar and redwood, pick boards with tight, straight grain and no knots on the face, and put the best face up: the bark side goes down on treated pine (it cups away from the bark side as it dries), and on cedar the best-looking face goes up regardless.

Buy your decking a few days before you install it and store it flat, stickered (on spacers), and out of the sun, so it acclimates evenly. Boards left in a sunny pile dry on one side and cup before you have even started. And order a few extra boards beyond the calculator, two or three for a small deck, five for a large one, because the yard's cull pile is full of boards somebody else rejected, and yours should not be.

Sealing, staining and keeping a wood deck alive

A wood deck is not finished when the last board is screwed down. It is finished when it is sealed. Bare wood greys in a season, checks in a year, and rots years sooner than sealed wood. The sealer keeps water out of the fibres, and water is what feeds rot, splits boards, and lifts the grain. For treated pine, wait for the wood to dry before sealing. The water test is the guide: sprinkle water on the deck, and if it beads, the wood is still too wet to take sealer; if it soaks in, seal it. That is usually four to twelve weeks after installation for wet pine, and days for kiln-dried pine and cedar.

Cedar and redwood need sealer too, even though they are naturally rot-resistant. The oils slow rot, they do not stop water, and unsealed cedar greys to silver within a year. A penetrating oil finish is the usual choice: it soaks in, does not peel, and is easy to recoat. Film-forming finishes (paint, solid stain) sit on the surface, look tidier at first, and peel when they fail, and peeling finish is far harder to fix than faded oil. Recoat every two years for treated pine and every two to three years for cedar and redwood, and clean the deck first: sealer over dirt seals the dirt in, not the wood.

Between sealings, keep the deck clean and dry. Sweep leaves off; wet leaves stain the wood and hold moisture against it, and wash the deck once a year with a deck cleaner and a stiff brush, not a pressure washer on full power, which tears the soft grain out of the boards and leaves them fuzzy. Fix a popped screw or a cracked board when you see it, not next year: a board that lifts catches a toe, and a screw that pops lets water into the joist below.

Common wood decking mistakes

  • •Gapping wet treated pine. It shrinks as it dries and the gaps end up twice as wide as planned. Install it butt-tight.
  • •Using the nominal board width (6 in) instead of the actual width (5-1/2 in). The count comes out short by a full row.
  • •Using ordinary screws in treated lumber. The copper in the treatment corrodes them. Use coated or stainless screws rated for treated wood.
  • •Sealing wet pine too soon. Sealer over wet wood peels off and traps moisture. Wait for the water test to pass.
  • •Skipping the sealer entirely. An unsealed wood deck greys, checks, and rots years sooner than a sealed one.
  • •Butt joints lined up in a row. Stagger them across the deck, or the joints become a visible stripe.
  • •Putting the bark side up on treated pine. Boards cup away from the bark side as they dry, bark side down, best face up.
  • •Forgetting waste on a diagonal layout. Diagonal boards cut more offcuts. Use 15%, not 10%.

Wood decking and the frame underneath

The boards are the part you see, but the frame decides whether they feel solid. Wood boards span 16 in on centre, that is the AWC DCA 6 rule for 5/4 boards, and it is the spacing this calculator assumes for its screw count. Go wider and the boards deflect underfoot, the gaps open, and the screws work loose. Composite boards are softer and usually need 12 in spacing, which is one reason a wood deck's frame costs less than a composite deck's frame.

The frame itself is pressure-treated lumber, joists, beams, and posts, and it lasts longer than the surface, which is why most wood decks are re-decked once on the original frame. When you re-deck, check the frame first: probe the joists with a screwdriver for soft spots, check the ledger bolts, and replace any joist that has rotted at the ledger. A new surface on a rotten frame is money thrown away. Use the deck cost calculator for the full build, and the lumber calculator for the framing quantities.

Assumptions

  • •A 5-1/2 in board is the actual width of a nominal 5/4×6 or 2×6 wood deck board. The gap is added to the board width before dividing the deck width.
  • •Wet pressure-treated boards are installed butt-tight (0 in gap) because they shrink as they dry and open their own 1/8 in gap within weeks. Dry (KDAT) treated pine, cedar, and redwood are installed with a 1/8 in gap.
  • •Prices are 2026 US planning ranges per linear foot for 5/4×6 boards: pressure-treated pine about $2.50 wet and $3.00 kiln-dried, cedar about $4.00, redwood about $5.50. They are not quotes. Check your yard before you buy.
  • •Screws are counted as two per board at every joist, with joists at 16 in on centre. Use coated or stainless screws rated for treated lumber.
  • •This calculator covers the wood decking surface only. It does not count joists, beams, posts, footings, railing, or stain and sealer.

Sources✓ Verified

  • American Wood Council, DCA 6 Prescriptive Residential Wood Deck Construction Guide. Joist spacing by species and board size, fastening requirements, and the wet-board installation rule for pressure-treated lumber.
  • Western Red Cedar Lumber Association, decking installation guidance. Gap, fastening, and finishing guidance for western red cedar decking.
  • California Redwood Association, decking guidance. Grades, gaps, and finishing for redwood decking.
  • International Residential Code (IRC) R507. Deck construction requirements, including joist spans and ledger attachment.

Formula reviewed November 2026.

Divide the deck width in inches by the board width plus the gap, round up for rows, then multiply rows by deck length. A 16 × 12 ft deck with 5-1/2 in boards and a 1/8 in gap needs 26 rows, 416 linear feet, and 29 boards of 16 ft with 10% waste. Wet pressure-treated boards go in tight, so the same deck needs 27 rows and 30 boards.

It depends on the wood. Wet pressure-treated pine is installed butt-tight with no gap. It shrinks as it dries and opens its own 1/8 in gap. Kiln-dried treated pine, cedar, and redwood are installed with a 1/8 in gap (a 16d nail as a spacer). Composite is different again at 1/4 in. Never gap wet treated pine, or the gaps will end up twice as wide as you planned.

Cedar looks better, smells better, and needs less chemical treatment, but it costs about 60% more per linear foot and dents more easily under furniture. Pressure-treated pine is the cheapest wood deck, lasts 10–15 years, and takes stain well, but it arrives wet, shrinks, checks, and needs sealing every two years. For a budget deck, use treated pine; for a deck you will look at every day, cedar is worth the premium.

Pressure-treated pine lasts 10–15 years, cedar 15–20 years, and redwood 20–25 years, all with regular cleaning and sealing. Without sealer, any wood deck greys, checks, and rots years sooner. The frame usually outlasts the surface. Most wood decks are re-decked once on the original frame.

5/4×6 (about 1 in thick) is the standard deck board and suits joists at 16 in on centre. 2×6 (1-1/2 in thick) is stiffer, suits wider joist spacing, and feels more solid underfoot, but it costs more and is heavier to handle. For most residential decks, 5/4×6 is the right call; use 2×6 for commercial work, hot tubs, or spans over 16 in.

Yes. Pressure-treated pine shrinks the most, because it is sold soaking wet from the treatment plant. A 5-1/2 in wet board can lose 1/4 in of width as it dries, which is why it is installed tight. Cedar and redwood are sold drier and shrink far less, which is why they get a real gap at installation. Always buy wood decking a few days before you install it and keep it out of the sun, so it acclimates evenly.

Converters to use with the Wood Decking Calculator

Switch units, compare bulk and bagged quantities, or check coverage, without leaving BuildCova.

Browse all converters

More decking calculators

Lowe's Decking CalculatorDeckingLowe's Decking CalculatorThis Lowes decking calculator works out your decking quantities in the board lengths Lowe's actually stocks, with planning prices for the boards on its shelves: pressure-treated pine, Trex Enhance, TimberTech Edge and cedar. This is an independent estimator, not affiliated with or endorsed by Lowe's, and its prices are planning ranges, not shelf prices. Check lowes.com or your store before you buy.Baluster CalculatorDeckingBaluster CalculatorA baluster calculator that works out exactly how many balusters a railing needs and where each one goes. Enter the total rail length and the number of sections for the baluster count per section, the exact even gap between balusters, the on-center spacing to mark out on the rail and a check against the 4-inch sphere rule in IRC R312.1.3. A stair mode lays balusters out along the slope and checks the horizontal gap, which is the measurement the code actually tests.Deck Joist CalculatorDeckingDeck Joist CalculatorA deck joist calculator that works out how many joists a deck needs, and whether the joist size you picked can actually span the distance. Enter the deck length along the ledger, the clear span, the spacing and the joist size, and the calculator gives you the joist count, checks the span against the IRC Table R507.6 limits, and adds the blocking, the rim joists, the ledger and the total board feet. With a clear fail warning when the span is too long for the size.Deck CalculatorDeckingDeck CalculatorThis deck calculator works out exactly how many deck boards you need, the total linear feet to order, and the deck's square footage, so you buy the right amount the first time. Enter your deck dimensions and board width, then add a waste allowance and your board length to turn the result into a ready shopping list. A 16 ft by 12 ft deck with 5.5 in boards and a 1/4 in gap needs 26 boards, or 416 linear feet.Deck Railing & Baluster CalculatorDeckingDeck Railing & Baluster CalculatorA deck railing calculator that turns the clear length of a railing section and your baluster width into the baluster count you need to meet the standard 4-inch guard opening limit, and the actual spacing you will get. Gaps wider than the limit are a safety problem, and a wrong count shows up only after the rail is built. Enter the section length and get the spacing right.Trex Decking CalculatorDeckingTrex Decking CalculatorThis Trex decking calculator counts exactly how many Trex boards, hidden fasteners and joists your deck needs, and what the boards cost in Enhance, Select or Transcend. This is an independent estimator, not affiliated with, endorsed by, or sponsored by Trex Company, Inc. Enter your deck size, pick a Trex line and a board length, and get a full materials list with waste included.

Material requirements can vary based on product specifications and job conditions. Verify quantities with your supplier before ordering.