Deck Calculator
Calculate deck easily with our free tool. Get practical results, tips, and comparisons for everyday decisions. Enter your values for instant results.
Formula
Boards = (Deck Width / (Board Width + Gap)) x (Deck Length / Board Length) x Waste Factor
Where Deck Width and Length are in feet, Board Width is in inches (typically 5.5 in), Gap is 1/8 inch for drainage, Board Length is the available lumber length, and Waste Factor is typically 1.10 to 1.15 (10-15% extra). Joists are calculated as (Length x 12 / Spacing) + 1.
Worked Examples
Example 1: Standard Backyard Deck
Problem: Build a 20 ft x 14 ft pressure-treated deck with 16-inch joist spacing and 48 linear feet of railing.
Solution: Area: 20 x 14 = 280 sq ft\nDecking boards (5.5 in wide): 280 / (5.5/12) = ~610 lin ft of decking\nWith 10% waste: ~31 boards at 16 ft length\nJoists at 16 in OC: (20 x 12) / 16 + 1 = 16 joists\nPosts: 2 beams x 4 posts = 8 posts\nRailing posts: 48 / 6 + 1 = 9 posts\nBalusters: 48 x 3 = 144\nMaterial cost: 280 x $8 = $2,240\nLabor cost: 280 x $15 = $4,200\nRailing: 48 x $35 = $1,680
Result: Total: $8,120 | 31 deck boards | 16 joists | 8 posts | 144 balusters
Example 2: Composite Entertainment Deck
Problem: Build a 24 ft x 16 ft composite deck with 12-inch joist spacing and 56 linear feet of railing.
Solution: Area: 24 x 16 = 384 sq ft\nJoists at 12 in OC: (24 x 12) / 12 + 1 = 25 joists\nPosts: 3 beams x 4 posts = 12 posts\nRailing posts: 56 / 6 + 1 = 11 posts\nMaterial cost: 384 x $18 = $6,912\nLabor cost: 384 x $18 = $6,912\nRailing: 56 x $35 = $1,960
Result: Total: $15,784 | 384 sq ft | 25 joists | 12 posts | $41.10/sq ft
Frequently Asked Questions
How do I calculate how many deck boards I need for my project?
To calculate deck boards, first determine your deck's total square footage by multiplying length by width. Then divide the deck width by the board width (typically 5.5 inches for standard lumber) plus a small gap of about 1/8 inch between boards for drainage and expansion. This gives you the number of board rows needed. Multiply by the number of boards per row based on your deck length and available board lengths. Always add 10 to 15 percent extra for waste from cuts, warped boards, and mistakes during installation. For a typical 20 by 14 foot deck using 5.5-inch wide boards, you would need approximately 30 to 35 boards depending on board length and waste allowance.
What is the proper joist spacing for a residential deck?
Standard joist spacing for residential decks is 16 inches on center, which provides adequate support for most decking materials and normal foot traffic loads. For composite or PVC decking, some manufacturers require 12-inch spacing to prevent sagging and flexing, so always check the specific product's installation requirements before framing. Diagonal decking patterns also require 12-inch joist spacing to ensure each board is adequately supported at multiple points. If you plan to install a hot tub or other heavy equipment on the deck, you may need doubled joists or 12-inch spacing in that area, along with additional posts and beams to handle the concentrated load.
What are the best materials for building a deck and how do they compare?
Pressure-treated lumber is the most affordable option at roughly $8 to $12 per square foot for materials, offering good durability with proper maintenance but requiring annual sealing and staining. Cedar and redwood are naturally rot-resistant and beautiful, costing $14 to $20 per square foot, but still require periodic maintenance to maintain their appearance. Composite decking made from recycled plastic and wood fibers costs $18 to $28 per square foot but is virtually maintenance-free with 25 to 50 year warranties and consistent color throughout its lifespan. Tropical hardwoods like ipe are the premium choice at $25 to $35 per square foot, offering extraordinary durability and beauty but requiring specialized fasteners and professional installation.
How deep should deck footings be and how many do I need?
Deck footings must extend below the frost line, which varies by geographic location from 12 inches in southern states to 48 inches or deeper in northern regions. Your local building code specifies the exact frost line depth for your area, and failing to dig deep enough will result in frost heave that can lift and shift your deck structure. Typically, you need one footing for every post, with posts spaced every 6 to 8 feet along each beam. A standard 20 by 14 foot deck with two beams might require 6 to 8 footings. Most residential deck footings use concrete tube forms (Sonotubes) that are 8 to 12 inches in diameter, filled with concrete and fitted with post anchoring hardware.
Do I need a building permit to build a deck and what codes apply?
Most jurisdictions require a building permit for deck construction, especially for attached decks, elevated decks, or decks exceeding a certain size threshold (often 200 square feet or 30 inches above grade). The permit process typically involves submitting a site plan showing the deck's location relative to property lines and the house, along with structural plans showing footing depths, beam sizes, joist spacing, and ledger board attachment details. Building codes specify requirements for railing height (typically 36 to 42 inches), baluster spacing (maximum 4 inches between balusters), stair dimensions, and structural load requirements. Failing to obtain a permit can result in fines, required removal, and complications when selling your home.
How do I properly attach a deck ledger board to my house?
The ledger board is one of the most critical structural components of an attached deck, as an improperly attached ledger is the leading cause of deck collapses in the United States. The ledger must be fastened directly to the house's rim joist or structural framing using lag screws or structural bolts spaced every 16 inches in a staggered pattern. Flashing must be installed above the ledger to prevent water from entering the house wall, with proper self-adhesive membrane flashing that extends up behind the siding and over the top of the ledger board. Never attach a ledger board to stucco, stone veneer, or brick veneer without through-bolting to the structural framing behind these materials.