Lumber Calculator

Deck calculator

Enter your deck's size and height. You get joist and beam sizes from the IRC span tables, footing sizes and concrete, deck boards, railing, a framing plan and a printable materials list with a cost estimate.

ft in
Your building department sets the exact depth

    Materials list

    ItemQuantity

    Planning estimate only. Framing sized from IRC 2021 Tables R507.5 and R507.6 (40 psf live load, No. 2 lumber, no snow load); your city or county may amend them. Confirm with your local building department before ordering or building. Costs are materials only; lumber prices move weekly and vary 20–40% by region.

    How the deck calculator works

    1. Joist spacing starts at your choice and drops if the decking can't span it: 5/4 boards and most composites span 16" straight or 12" diagonal (IRC R507.7).
    2. Joist size is the smallest of 2x8, 2x10 or 2x12 whose allowable span (IRC Table R507.6) covers the distance from the ledger to the beam. Longer decks get intermediate beams.
    3. Beam size and post spacing come from IRC Table R507.5, starting near 8 ft between posts and choosing the lightest beam that spans it.
    4. Footings are sized for 50 psf (40 live + 10 dead) over each post's share of the deck, on 1,500 psf soil. Depth is the greater of 12" or your frost line.
    5. Deck boards are counted by rows across the joists, plus 10% waste (15% diagonal). Railing is added automatically when the deck is more than 30" above grade.

    The framing sizes are prescriptive minimums. Many builders go one size up for a stiffer deck. See the deck joist span chart for the tables.

    Deck materials and cost by size

    Attached deck, 3 ft high with railing, southern pine framing at 16" on center. Materials only.

    SizeJoistsFootingsDeck boardsPressure-treatedComposite
    8x8 7 × 2x8 2 20 × 8 ft $620–$1,110 $1,300–$2,340
    8x10 9 × 2x8 3 20 × 10 ft $710–$1,290 $1,500–$2,710
    8x12 10 × 2x8 3 20 × 12 ft $800–$1,470 $1,700–$3,080
    10x10 9 × 2x8 3 25 × 10 ft $850–$1,550 $1,800–$3,250
    10x12 10 × 2x8 3 25 × 12 ft $960–$1,760 $2,040–$3,680
    10x14 12 × 2x8 3 25 × 14 ft $1,070–$1,970 $2,280–$4,110
    10x16 13 × 2x8 3 25 × 16 ft $1,180–$2,180 $2,520–$4,540
    10x20 16 × 2x8 4 25 × 20 ft $1,400–$2,600 $3,000–$5,400
    12x12 10 × 2x10 3 29 × 12 ft $1,120–$2,050 $2,380–$4,280
    12x14 12 × 2x10 3 29 × 14 ft $1,240–$2,290 $2,650–$4,780
    12x16 13 × 2x10 3 29 × 16 ft $1,370–$2,540 $2,930–$5,270
    12x20 16 × 2x10 4 29 × 20 ft $1,620–$3,020 $3,480–$6,260
    12x24 19 × 2x10 4 58 × 12 ft $1,870–$3,500 $4,030–$7,250
    14x14 12 × 2x10 3 33 × 14 ft $1,410–$2,620 $3,020–$5,450
    14x16 13 × 2x10 3 33 × 16 ft $1,560–$2,890 $3,340–$6,000
    14x20 16 × 2x10 4 33 × 20 ft $1,840–$3,440 $3,960–$7,120
    16x16 13 × 2x12 3 39 × 16 ft $1,740–$3,250 $3,740–$6,740
    16x20 16 × 2x12 4 39 × 20 ft $2,060–$3,860 $4,440–$7,980
    16x24 19 × 2x12 4 77 × 12 ft $2,380–$4,470 $5,140–$9,220
    20x20 48 × 2x8 12 48 × 20 ft $2,500–$4,700 $5,400–$9,700

    Deck materials lists by size

    Frequently asked questions

    Do I need 2x8 or 2x10 joists for my deck?

    It depends on the span. At 16" on center, southern pine 2x8s span up to 11' 10" and 2x10s up to 14' 0" (IRC Table R507.6). For a deck that projects 12 ft from a ledger to a beam at the edge, 2x8s fall just short, so you need 2x10s.

    How large a deck can I build without a permit?

    The IRC exempts decks that are under 200 sq ft, no more than 30" above grade at any point, not attached to the house, and not serving the required exit door. Many jurisdictions are stricter, so check locally before you build.

    How do I calculate the square footage of a deck?

    Multiply width by depth: a 12x16 deck is 192 sq ft. For L-shaped decks, split them into rectangles and add the areas.

    How many screws do I need for my deck?

    Two per board at every joist: about 350–400 per 100 sq ft at 16" on center. A 12x16 deck takes about 735 including a few spares. The deck screw calculator counts them for your size, spacing and layout. To finish the deck, the deck stain calculator works out the gallons.

    What is the 3-4-5 rule for decks?

    It's a way to make the deck frame square: measure 3 ft along one side and 4 ft along the other; when the diagonal between those marks is exactly 5 ft, the corner is 90°. See how to square a deck with the 3-4-5 rule.