Deck calculator

Enter the size and height of the deck. You get the full materials and lumber list, from deck boards to hurricane ties, with an estimated cost for materials and labor.

Size

Along the house

Out from the house

Ground to the top of the deck

12 ft36 inFootingRailingJoistsStairsBeamPost
Side view, to scale. It follows your size, height, railing and stairs.

Decking

Material
Board length
Joist spacing

Railing and stairs

Your deck estimate

Estimated total

$7,317.54

  • Materials$3,042.54
  • Labor$4,275.00

Materials list

2x10 joists at 16 in, 1 beam, 3 posts on 14 and 18 in footings

  • Pressure-treated deck boards, 16 ft29 boards
  • Joists, 2x10 × 12 ft13 pcs
  • Rim joist and ledger, 2x10 × 16 ft2 pcs
  • Beam boards, 2-ply 2x12 × 16 ft2 pcs
  • 6x6 posts, 8 ft2 pcs
  • Concrete for footings, 80 lb21 bags
  • Post bases and caps3 sets
  • Joist hangers13 pcs
  • Ledger fasteners24 pcs
  • Hurricane ties13 pcs
  • Deck screws, box of 3502 boxes
  • Pressure-treated railing46 ft
  • Stair stringers, 2x12 × 8 ft4 pcs
  • Pressure-treated tread boards, 16 ft2 boards

Framing sizes are estimates for pricing, based on IRC tables for southern pine. Prices are samples; set your own in the deck cost calculator.

Parts of a deck

12 ft36 in12345678910
  1. Ledger. The board fastened to the house. The joists hang from it.
  2. Joists. The frame the decking sits on, every 12, 16 or 24 in.
  3. Beam. Two boards fastened together, carrying the outer ends of the joists.
  4. Post. Holds up the beam. Usually a 6x6.
  5. Footing. Concrete in the ground under each post, below the frost line.
  6. Decking. The boards you walk on.
  7. Railing. Required where the deck is over 30 in above the ground. At least 36 in high.
  8. Balusters. The upright pieces in the railing, less than 4 in apart.
  9. Stringer. The notched board the stair treads sit on.
  10. Handrail. Required on stairs with four or more risers, 34 to 38 in high.

How the deck calculator works

It frames the deck the way most builders do: joists run out from the house, deck boards run along it, and a beam on posts carries the outer end of the joists. The rules come from the deck section of the International Residential Code (IRC), which most US towns use.

  • Deck boards. The width is split into rows of 5 1/2 in boards with 3/16 in gaps. Every row needs a full run of boards along the length, and 10% is added for cuts and bad boards.
  • Joists. One every 12, 16 or 24 in along the length, plus one at the end. The size is the smallest that spans the width under IRC Table R507.6 for southern pine. If even a 2x12 can't, a second beam goes in the middle.
  • Rim joist and ledger. A rim joist along the outer edge, and a ledger board fastened to the house. A freestanding deck gets a second rim instead of the ledger.
  • Beam and posts. A doubled 2x10 beam (2x12 for joist spans over 10 ft) on 6x6 posts no more than 8 ft apart. Depending on the span, your beam may need to be bigger or the posts closer; IRC Table R507.5 sets the limits.
  • Footings. One under each post, sized by the deck area the post holds up, at 50 lb per sq ft on average soil (IRC Table R507.3.1), then rounded up to a hole you can dig, 36 in deep. In the 16 × 12 ft example that's two 14 in footings of 6 bags each and one 18 in footing of 9 bags. The footing calculator shows how.
  • Hardware. A hanger for each joist at the ledger, a hurricane tie where each joist sits on a beam, two ledger fasteners every 16 in, and two deck screws per joist crossing, or one hidden fastener for composite boards.
  • Stairs. Risers up to 7 1/2 in and treads of two deck boards (11 1/4 in), with stringers every 16 in, or 12 in for composite. See the deck stair calculator.
  • Railing. Along the open sides, minus the stair opening, plus a handrail on both sides of stairs with four or more risers. The deck railing calculator counts the posts and balusters.

Materials for common deck sizes

Deck size Boards Joists Posts Concrete Estimated total
10 × 10 ft 16 9 × 2x8 3 14 bags $4,693
12 × 12 ft 22 10 × 2x10 3 15 bags $6,023
16 × 12 ft 29 13 × 2x10 3 21 bags $7,318
16 × 16 ft 38 13 × 2x12 3 25 bags $9,267
20 × 12 ft 36 16 × 2x10 4 22 bags $8,653
20 × 16 ft 47 16 × 2x12 4 30 bags $11,001
20 × 20 ft 60 32 × 2x8 8 58 bags $13,164

Length along the house × width out from it. Attached, pressure-treated, 36 in high, joists 16 in apart, 16 ft boards, railing and 4 ft stairs. Concrete in 80 lb bags. Sample prices.

What the estimate includes

The total uses sample 2026 prices: material costs with a 20% markup, as a contractor would charge, and labor at $16 per sq ft for framing and decking, $18 per foot of railing and $75 per step. It doesn't include permits, removing an old deck, delivery, sales tax or design. Prices vary a lot by region and supplier, so treat it as a starting point.

Before you build

  • Permit. Under the IRC, a deck needs a permit unless it is 200 sq ft or less, no more than 30 in above the ground, freestanding, and not serving the house's required exit door (Section R105.2). Many towns are stricter.
  • Utilities. Call 811 a few days before digging footings.
  • Frost depth. Footings go below your local frost line; your building department can tell you how deep that is.
  • Ledger. The ledger is where attached decks most often fail. Flash it, and fasten it with bolts, lag screws or approved structural screws, never nails.

Questions

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

About 29 boards 16 ft long. The 12 ft width takes 26 rows of 5 1/2 in boards with 3/16 in gaps, and each row runs the full 16 ft, so that's 416 linear feet before 10% for waste. The deck board calculator works it out for other sizes and board lengths.

What size joists do I need for a 12 ft deck?

At 16 in spacing, 2x10 southern pine joists span up to 14 ft 0 in, so they cover 12 ft. 2x8s only reach 11 ft 10 in. The joist span calculator has the full table for other woods and spacings.

Do I need a railing on my deck?

Under the IRC, any deck surface more than 30 in above the ground below needs a guard at least 36 in high (Section R312.1), and stairs with four or more risers need a handrail (Section R311.7.8). The calculator turns the railing on for you above 30 in.

How much does a 16 × 12 deck cost?

With the sample prices here, including labor, railing and stairs: about $7,318 in pressure-treated wood, $9,438 in cedar and $10,619 in composite. Local prices vary a lot; put in your own in the deck cost calculator.

How far apart should deck posts be?

The posts under the beam are usually 6 to 8 ft apart; this calculator keeps them at 8 ft or less. How far a beam can really reach depends on its size, the wood and how far the joists span, so check IRC Table R507.5 or your building department. Railing posts are a separate thing, usually no more than 6 ft apart.

How far apart should deck balusters be?

Close enough that a 4 in ball can't pass between them (IRC Section R312.1.3). With 2x2 balusters that means gaps of about 3 1/2 to 3 3/4 in. The deck railing calculator spaces them evenly for any length.

Is this a building plan?

No. It is an estimate for planning and pricing. The framing follows common IRC rules, but your design, soil, snow load and local code can change the sizes. Your building department reviews the actual plan.

Estimated total

$7,317.54

See the list