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.
Materials list
| Item | Quantity |
|---|
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
- 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).
- 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.
- 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.
- 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.
- 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.
| Size | Joists | Footings | Deck boards | Pressure-treated | Composite |
|---|---|---|---|---|---|
| 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
- 8x8 deck64 sq ft · wood vs. composite
- 8x10 deck80 sq ft · wood vs. composite
- 8x12 deck96 sq ft · wood vs. composite
- 10x10 deck100 sq ft · wood vs. composite
- 10x12 deck120 sq ft · wood vs. composite
- 10x14 deck140 sq ft · wood vs. composite
- 10x16 deck160 sq ft · wood vs. composite
- 10x20 deck200 sq ft · wood vs. composite
- 12x12 deck144 sq ft · wood vs. composite
- 12x14 deck168 sq ft · wood vs. composite
- 12x16 deck192 sq ft · wood vs. composite
- 12x20 deck240 sq ft · wood vs. composite
- 12x24 deck288 sq ft · wood vs. composite
- 14x14 deck196 sq ft · wood vs. composite
- 14x16 deck224 sq ft · wood vs. composite
- 14x20 deck280 sq ft · wood vs. composite
- 16x16 deck256 sq ft · wood vs. composite
- 16x20 deck320 sq ft · wood vs. composite
- 16x24 deck384 sq ft · wood vs. composite
- 20x20 deck400 sq ft · wood vs. composite
Deck building guides
- How to Build a Deck: Step-by-Step OverviewThe full sequence for building a wood deck, from permit and layout through footings, framing, decking, railing and stairs, with links to each detailed guide.
- Deck Joist Span Chart (IRC 2021) for 2x8, 2x10 and 2x12Maximum deck joist spans at 12, 16 and 24 inches on center for southern pine and fir, plus deck beam spans, from the IRC prescriptive deck tables.
- Deck Joist Spacing: 12, 16 or 24 Inches On Center?How far apart deck joists should be for wood, 2x6 and composite decking, straight or diagonal, and how many joists your deck needs.
- The 3-4-5 Rule: How to Square a Deck FrameUse the 3-4-5 rule (and its 6-8-10 and 9-12-15 versions) to make deck corners exactly 90°, then confirm with diagonal measurements.
- Deck Railing Height: Code Requirements (IRC 2021)When a deck needs a guard, minimum railing height, baluster spacing, stair rails and post spacing under the 2021 International Residential Code.
- Deck Board Spacing: How Big a Gap Between Boards?The right gap between deck boards for pressure-treated, kiln-dried, cedar, hardwood and composite decking, plus end gaps and how many boards you need.
- Deck Footings: Size, Depth and How Many You NeedHow deep and how big deck footings should be, how many footings common deck sizes need, and how much concrete to buy.
- Deck Ledger Board: How to Attach a Deck to a HouseLedger board size, fasteners, flashing and the mistakes that cause deck collapses, based on IRC 2021 Section R507.9.
- Deck Blocking: When You Need It and How to Install ItWhat deck joist blocking does, where it's required or recommended, spacing for mid-span blocking, and blocking for railing posts and decking.
- How Much Does It Cost to Build a Deck? (Materials by Size)Deck materials cost per square foot and for common sizes from 10x10 to 20x20 in pressure-treated, cedar and composite, plus what drives the price.
- Composite vs. Wood Decking: Cost, Lifespan and MaintenanceCompare composite, pressure-treated and cedar decking on upfront cost, maintenance, lifespan, heat, framing requirements and long-term value.
- How Far Can Deck Joists Cantilever? Rules and LimitsHow far deck joists and beams can overhang their supports, the one-quarter back-span rule, how code editions differ, and how to keep a cantilevered deck from bouncing.
- 4x4 vs 6x6 Deck Posts: Which Size Do You Need?When a 4x4 deck post is enough and when you need a 6x6, covering post height, notching for beams, code changes, wobble and cost.
- Freestanding Deck Next to a House: Rules and How to Build ItHow to build a freestanding deck beside a house without a ledger, covering the extra beam, footings in backfill, bracing, gaps at the wall, permits and setbacks.
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.