Skip to main content

Deck Calculator

Estimate decking boards, joists, beams, posts, fasteners, railing materials, and costs for your deck project based on dimensions, material, and design choices.

Parallel to the house

Projecting out from the house

16" is standard; 12" for composite/diagonal

Height from ground to deck surface (1-8 ft)

Required by code if deck is 30"+ above grade

Deck Material List

Decking

Total Deck Area

240 sq ft

20 ft x 12 ft

Deck Boards Needed

27

5/4x6 x 20 ft boards

Total Board Linear Ft

540 ft

Includes 5% waste

Framing

Joists

10

2x10 x 20 ft each, 16" OC

Ledger Board

1

2x10 x 20 ft, pressure treated

Rim Joists

2

2x10 x 20 ft each

End Caps

2

2x10 x 12 ft each

Beams

4

Doubled 2x10, 12 ft span

Posts / Piers

12

4x4 x 8 ft, 4 beams x 3 posts

Concrete (60 lb bags)

24

2 bags per pier

Flashing

20 ft

Galvanized or aluminum, at ledger

Railing (3 sides)

Railing Linear Ft

52 ft

3 sides (excludes house side)

Railing Posts

10

Every 6 ft on center

Rails (linear ft)

104 ft

Top and bottom rails

Balusters

156

4" on center per code

Hardware Shopping List

ItemQtySpec
Joist hangers20For 2x10 joists
Post bases (Simpson PBS)12For 4x4 posts
Ledger lag bolts151/2" x 4" lag bolts
Carriage bolts (beam-to-post)241/2" x 6" with nuts/washers
Deck screws840~3 lb boxes
Structural screws/nails2563" and 3-1/2" structural
Flashing2020 linear ft galvanized
Concrete (60 lb bags)242 bags per pier

Lumber Shopping List

LumberQtyUse
5/4x6 x 20' Pressure-Treated Wood27 pcsdecking
2x10 x 20' Pressure-Treated10 pcsjoists
2x10 x 20' Pressure-Treated1 pcsledger board
2x10 x 20' Pressure-Treated2 pcsrim joists
2x10 x 12' Pressure-Treated2 pcsend caps
2x10 x 12' Pressure-Treated8 pcsbeams (doubled)
4x4 x 8' Pressure-Treated12 pcsposts
4x4 x 8' Pressure-Treated10 pcsrailing posts
2x4 x 8' Pressure-Treated Wood14 pcstop/bottom rails
2x2 x 8' Pressure-Treated Wood156 pcsbalusters

Estimated Cost (Pressure-Treated Wood)

Low Estimate

$3,600

$15/sq ft installed

Mid Estimate

$4,800

Materials + labor

High Estimate

$6,000

$25/sq ft installed

Code Compliance Notes

  • *Railing required if deck is 30"+ above grade (IRC R507.1)
  • *Balusters must be spaced so a 4" sphere cannot pass through (IRC R507.8.3)
  • *Ledger must be lag-bolted to rim joist, not nailed (IRC R507.2.1)
  • *Footings must extend below frost line (check local code)
Did this help?

How to Use This Calculator

Enter your deck dimensions (length and width in feet), select your decking material, board size, and layout direction. Choose joist spacing based on your material's span rating. Set the deck height for accurate post and pier calculations. Toggle railing on to get baluster, post, and rail estimates per building code. Enable stairs if your deck needs steps to grade. The calculator provides a complete material list, hardware summary, and lumber shopping list.

Formula Used

Deck Area = Length x Width. Deck Boards = (Width / (Board Width + Gap)) x Waste Factor. Joists = (Width / Joist Spacing) + 1. Posts = (Beams) x (Posts per Beam). Beams = (Length / 8) + 1. Posts per Beam = (Width / 8) + 1. Screws = Area / 100 x 350. Balusters = Railing Linear Ft x 3 (4 in. on center). Stair Stringers = 3 for 36 in. width + 1 per additional 16 in.

Best GC Software

Juggling estimates, schedules, and invoices across multiple projects? Contractor software keeps everything in one place — quotes, change orders, sub schedules, and payments.

Need to figure out what to charge?

All 10 pricing formulas + 18-trade gross margin benchmarks.

Contractor Pricing Formulas Cheatsheet

Starting or growing your carpentry business?

Our free startup guide covers licensing, LLC formation, insurance, pricing, and getting your first customers.

How to Start a Contracting Business

Free Software Guide for Carpentry Professionals

Get our free guide comparing the best software tools for carpentry businesses — with real pricing and honest recommendations.

No spam. Unsubscribe anytime.

Disclaimer

This calculator is for estimation purposes only. Results may vary based on local conditions, materials, and building codes. Always consult a licensed professional before making decisions based on these calculations. MyContractorTools is not responsible for any errors or omissions.