Deck Calculator

Enter the size of your deck, how high it is off the ground and what boards you want. The calculator sizes the joists and beams, counts posts, footings, hardware, railing and stairs, and gives you a materials list with cost, plus what a contractor would charge. Results update as you type.

Last updated December 2026 · How we calculate

Your deck

ft
ft
ft
To the top of the deck
Decking
$/ft
%
Railing & stairs
$/ft
Wood ~$30, composite or aluminum ~$60
ft
in
Below your local frost line: ask your building department
Materials, about
$0
0
deck boards
0
joists
0
posts and footings
$0
hired, installed

Materials list

ItemQtyEachTotal
Total materials$0

A planning estimate using common US deck rules and December 2026 prices. Joist and beam sizes follow the IRC deck tables for Southern pine. Your local code, wood species, snow load and inspector have the final say.

How to calculate deck materials

A deck is a floor on legs. Work from the ground up, and every part follows from the deck size:

  1. Joists run from the house out to the beam. Count them as the deck length in inches ÷ the spacing, plus one. Their size depends on how far they span (see the table below).
  2. Beams carry the joists. An attached deck has one beam near the outer edge and a ledger board bolted to the house. A freestanding deck has a beam at each end. Long spans need an extra beam in the middle.
  3. Posts and footings hold up each beam, usually no more than 8 ft apart. Each post sits on a concrete footing dug below the frost line. Planning a fence around the deck too? See the fence calculator.
  4. Deck boards run across the joists. Count the rows (deck depth ÷ board width plus gap), then the boards per row.
  5. Hardware: joist hangers at the ledger, hurricane ties where joists cross a beam, post bases and caps, and screws or hidden clips for the boards.
  6. Railing and stairs if the deck is high enough to need them.

For a board-by-board layout with the best board length and a cutting plan, use the deck board calculator.

Deck joist size and span

Maximum joist span from the IRC deck table for Southern pine #2 (40 lb per sq ft live load, no overhang):

Joist12 in on center16 in on center
2×69 ft 11 in9 ft 0 in
2×813 ft 1 in11 ft 10 in
2×1016 ft 2 in14 ft 0 in
2×1218 ft 0 in16 ft 6 in

Composite decking often needs 12 inch spacing, and diagonal boards almost always do. Check the board maker's instructions before you frame.

Deck material list

PartUsual material
Ledger, joists, rim and beamsPressure-treated 2×8 to 2×12, ground-contact rated
Posts6×6 pressure-treated (4×4 is no longer allowed for most new decks)
FootingsConcrete in a 10–12 in round form, or precast footings where allowed
ConnectorsGalvanized or stainless joist hangers, hurricane ties, post bases and caps
Ledger fasteners½ in lag screws or bolts, or rated ledger screws, plus flashing
Decking5/4×6 or 2×6 wood, or 1×6 composite or PVC
RailingPosts, top and bottom rails, balusters, 36 in high (42 in in some areas)

Composite vs wood deck cost

DeckingBoards per linear footInstalled deck, per sq ftLifespan
Pressure-treated pine$0.50–$0.80$25–$4515–25 years with upkeep
Cedar$2.25–$3.25$30–$5015–25 years with upkeep
Composite$2.25–$3.50$40–$7025–50 years, little upkeep
PVC$3.25–$4.50$50–$8030–50 years, little upkeep

Composite costs about twice as much up front, but it needs no staining or sealing. Over 15 to 20 years the gap gets much smaller. The frame under a composite deck is usually still treated wood.

Installed cost by deck size

DeckSq ftTreated woodComposite
10 × 10 ft100$2,500–$4,500$4,000–$7,000
12 × 12 ft144$3,600–$6,480$5,760–$10,080
12 × 16 ft192$4,800–$8,640$7,680–$13,440
16 × 16 ft256$6,400–$11,520$10,240–$17,920
16 × 20 ft320$8,000–$14,400$12,800–$22,400
20 × 20 ft400$10,000–$18,000$16,000–$28,000

Baluster spacing

A 4 inch ball must not fit between balusters. Plan the gap a little under 4 inches so the spacing still passes after the wood moves.

Balusters = (railing length in inches − gap) ÷ (baluster width + gap)
Example: 6 ft section, 1.5 in balusters, 3.5 in gap → (72 − 3.5) ÷ 5 = 13.7 → 14 balusters

Frequently asked questions

How much does a deck cost per square foot?

Built by a contractor, a pressure-treated wood deck usually costs about $25 to $45 per square foot, cedar $30 to $50, composite $40 to $70 and PVC $50 to $80. Building it yourself, materials alone run roughly $10 to $15 per sq ft for treated wood and $20 to $30 for composite. Height, stairs, railings and permits all add to the cost.

How much does a 12×12 deck cost?

A 12 × 12 deck is 144 sq ft. Hired out, that is about $3,600 to $6,500 in treated wood and $5,800 to $10,000 in composite. If you build a low, simple 12 × 12 deck yourself, treated lumber and hardware often cost $1,500 to $2,500. Use the calculator above for a list and cost for your own deck.

How far can a 2×8 deck joist span?

Under the US building code table for decks (Southern pine #2, 40 lb live load), a 2×8 joist can span about 11 ft 10 in at 16 inches on center and 13 ft 1 in at 12 inches on center. A 2×10 spans about 14 ft at 16 inches, and a 2×12 about 16 ft 6 in. Other wood species and local rules may allow less, so check with your building department.

How many balusters do I need per foot of railing?

Balusters must be close enough that a 4 inch ball cannot pass between them. With 1½ inch wide 2×2 balusters and gaps just under 4 inches, plan on about 2.2 to 2.5 balusters per foot of railing, or 27 to 30 balusters for a 12 ft section.

When does a deck need a railing?

Under the International Residential Code, a deck needs a guard (railing) when the walking surface is more than 30 inches above the ground at any point within 36 inches of the edge. Stairs with four or more risers need a handrail. Many towns also require a permit for any attached deck or one over 30 inches high.

Related calculators

Sources

Formulas, coverage rates and prices are explained on our How we calculate page.

Disclaimer

Results are estimates based on standard sizes and common rules of thumb. Prices are sample US averages (last updated December 2026) and change by store and location. Material needs vary by project and product. Check with your supplier or contractor before you buy. Read the full disclaimer.