HomeMeasure Pro

Deck Calculator | Boards, Joists, Posts & Cost

Price your whole deck before you buy a single board. Enter your deck size for exact boards, joists, posts, footings, and cost, any material. Free, instant, no signup.

Quick answer

Divide the deck width (in inches) by (board width + gap) for boards. A 12 by 16 ft pressure treated deck with 5.5 inch boards needs 39 boards with waste, 13 joists at 16 inch spacing, 6 posts and 6 footings, and costs $4,800 to $9,600 installed.

A standard board sold as 6 inch is 5.5 inch wide. Boards run the length of the deck, so each board is deck length long.

Joist spacing
Material

Installed cost per sq ft, HomeGuide 2026: pine $25 to $50, cedar $30 to $47, composite $40 to $80. Those ranges include materials and labor.

Your deck estimate

Decking boards to buy

39

192 sq ft · 468 linear ft of decking

Boards before waste
35
Joists
13 · 156 linear ft
Beams
2
Posts and footings
6
Concrete (50 lb bags, about)
6
Estimated installed cost
$4,800 to $9,600

Includes 10 percent waste on boards. Check local code for footing depth and frost line before you dig.

How the calculation works

  1. Boards: deck width in inches ÷ (board width + gap), rounded up, then add 10 percent waste. A 5.5 inch board with a 0.125 inch gap covers 5.625 inches. Each board is deck length long.
  2. Joists: deck width in inches ÷ joist spacing, rounded up, plus 1. 192 ÷ 16 = 12, plus 1 = 13 joists. Each joist is deck length long.
  3. Posts and footings: posts every 8 ft along both sides, minimum 4. A 12 ft deck has 3 post positions per side, so 6 posts, 6 footings, and about 6 bags of concrete at one 50 lb bag per footing.
  4. Cost: deck area × installed cost per sq ft for the material. Pressure treated pine $25 to $50, cedar $30 to $47, composite $40 to $80, per HomeGuide 2026. Those ranges include materials and labor.

Common deck materials

MaterialInstalled cost per sq ftLifespanNotes
Pressure treated pine$25 to $5010 to 25 yearsLowest upfront cost, needs regular stain and seal
Cedar$30 to $4710 to 25 yearsNatural rot resistance, soft and dents easily
Composite$40 to $8025 to 50 yearsNo stain or seal needed, highest upfront cost

Installed costs and lifespans are from HomeGuide 2026. Wood decks last 10 to 25 years and composite decks last 25 to 50 years in that guide.

Tips from the pros

  • Call 811 before you dig. It's free, and hitting a gas line is not.
  • Measure the real board width. A board sold as 6 inch is often 5.5 inch wide, and that half inch changes the board count on a wide deck.
  • Use the spacing the board maker allows. Diagonal boards and many composite boards need 12 inch joist spacing, not 16 inch.
  • Set footings below the frost line. Check local code for the depth in your area before you pour.
  • Buy 10 percent extra boards. Warped and split boards are normal, and spares match later repairs.

Worked example: a 12 by 16 ft deck

Picture a 12 by 16 ft deck, 192 sq ft, pressure treated pine, 5.5 inch boards with a 0.125 inch gap, joists at 16 inch spacing:

  1. Area: 12 × 16 = 192 sq ft.
  2. Boards: 16 ft is 192 inches, and each board covers 5.625 inches: 192 ÷ 5.625 = 34.1, rounded up to 35 boards, plus 10 percent waste = 39 boards, each 12 ft long, 468 linear ft in total.
  3. Joists: 192 ÷ 16 = 12, plus 1 = 13 joists, each 12 ft long, 156 linear ft in total.
  4. Posts and footings: 12 ft at 8 ft spacing gives 3 post positions per side, times 2 sides = 6 posts, 6 footings, and 6 bags of concrete.
  5. Cost: 192 sq ft × $25 to $50 = $4,800 to $9,600 installed for pressure treated pine.

Swap in composite at $40 to $80 per sq ft and the same deck costs $7,680 to $15,360 installed. The material choice moves the total more than any other input on this page.

Mistakes that throw off the estimate

  • Using the nominal board width. A board sold as 6 inch is 5.5 inch wide in real life. Use the real width or the board count comes out low.
  • Ordering the exact board count. A few boards in every bundle are warped, split, or ugly. Order 10 percent extra, cull the worst ones, and keep the spares.
  • Spacing joists too wide for the board. Composite boards and diagonal layouts often need 12 inch spacing. Boards that span too far sag and feel bouncy under foot.
  • Counting post positions as posts. Post positions run along both sides, so a 12 ft deck needs 6 posts, not 3. Coming up short on posts and footings on build day stops the whole job.
  • Building without checking the permit and the frost line. Footings set too shallow heave in winter and leave the deck uneven. Check local code first.

Common questions

How many decking boards do I need?
Divide the deck width in inches by (board width + gap), round up, then add 10 percent waste. Example: a 16 ft wide deck is 192 inches, and 192 ÷ (5.5 + 0.125) = 35 boards before waste, or 39 boards to buy. Each board is deck length long.
How far apart should deck joists be?
16 inch on center is the standard for wood decking laid straight across the joists. Use 12 inch spacing for diagonal boards and for many composite boards, and always check the board maker guide for the spacing it allows.
How many posts and footings does a deck need?
Posts every 8 ft along both sides, with a minimum of 4 posts. A 12 ft deck has 3 post positions per side, so 6 posts and 6 footings. Allow about one 50 lb bag of concrete per footing, and set footings below the local frost line.
How much does a deck cost per square foot in 2026?
Installed, pressure treated pine costs $25 to $50 per square foot, cedar costs $30 to $47, and composite costs $40 to $80, per HomeGuide. A 12 by 16 ft deck is 192 sq ft, so pressure treated pine runs $4,800 to $9,600 installed.
Do I need a permit to build a deck?
Most attached and elevated decks need a permit, and a permit costs $50 to $150 per HomeGuide. In many states a floating deck under 200 sq ft that is not attached to the home needs no permit. Check with your local building department before you build.
How long does a deck last?
A wood deck lasts 10 to 25 years and a composite deck lasts 25 to 50 years, per HomeGuide. Life depends on design, material, install quality, and upkeep, and decks in rainy climates wear faster when water cannot drain away.

Want the full walkthrough? Read deck and patio cost guide and deck stain cost guide on the HomeMeasure Pro blog.