Deck Calculator
Calculate deck easily with our free tool. Get practical results, tips, and comparisons for everyday decisions. Enter your values for instant results.
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer
Deck Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: Boards = (Deck Width / (Board Width + Gap)) x (Deck Length / Board Length) x Waste Factor
Worked example — Total: $8,120 | 31 deck boards | 16 joists | 8 posts | 144 balusters
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 Decking boards (5.5 in wide): 280 / (5.5/12) = ~610 lin ft of decking With 10% waste: ~31 boards at 16 ft length Joists at 16 in OC: (20 x 12) / 16 + 1 = 16 joists Posts: 2 beams x 4 posts = 8 posts Railing posts: 48 / 6 + 1 = 9 posts Balusters: 48 x 3 = 144 Material cost: 280 x $8 = $2,240 Labor cost: 280 x $15 = $4,200 Railing: 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 Joists at 12 in OC: (24 x 12) / 12 + 1 = 25 joists Posts: 3 beams x 4 posts = 12 posts Railing posts: 56 / 6 + 1 = 11 posts Material cost: 384 x $18 = $6,912 Labor cost: 384 x $18 = $6,912 Railing: 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.
How much does it cost to build a deck professionally versus doing it yourself?
Professional deck construction typically costs $25 to $50 per square foot for a basic pressure-treated deck and $45 to $75 per square foot for composite materials including labor, materials, and permits. A DIY approach can save 40 to 60 percent by eliminating labor costs, bringing a basic deck down to $8 to $15 per square foot for materials alone. However, DIY savings must be weighed against tool purchases or rentals, the time investment which can be 3 to 6 weekends for an average-sized deck, and the risk of costly mistakes. A typical 300 square foot deck might cost $7,500 to $15,000 professionally installed versus $3,000 to $5,000 for materials if built yourself.
What is the expected lifespan of different deck materials?
Pressure-treated lumber decks typically last 15 to 25 years with proper maintenance including annual cleaning, sealing, and periodic stain application to prevent rot, warping, and insect damage. Cedar and redwood decks can last 20 to 30 years when properly maintained, as their natural oils provide inherent resistance to decay and insects. Composite decking has an expected lifespan of 25 to 50 years with minimal maintenance beyond occasional cleaning, and most manufacturers offer 25-year or lifetime limited warranties. Premium hardwoods like ipe can last 40 to 75 years, often outlasting the structural framing beneath them, making them the most durable decking surface available despite their higher upfront cost.
How do I calculate the amount of railing material needed for my deck?
To calculate railing materials, first measure the total linear feet of railing needed, which is typically the deck perimeter minus any sides attached to the house and minus stair openings. Railing posts should be spaced every 6 feet maximum, so divide the total railing length by 6 and add 1 to get the number of posts required. For balusters, building code requires gaps of no more than 4 inches, so you need approximately 3 balusters per linear foot of railing. Top and bottom rails are calculated by the total linear footage, accounting for standard section lengths of 6 or 8 feet. A 48 linear foot railing run would need approximately 9 posts, 144 balusters, and 96 linear feet of top and bottom rail material.
What structural considerations matter for building a deck over uneven ground?
Building a deck over uneven ground requires adjustable post heights to create a level deck surface, which means some posts will be significantly taller than others and may require additional bracing for lateral stability. Posts taller than 4 feet typically need cross-bracing to resist lateral movement from wind loads and occupant movement, and very tall posts may require larger dimensions such as 6x6 instead of 4x4 lumber. The grading beneath the deck should slope away from the house at a minimum of 1/4 inch per foot to ensure proper drainage and prevent water from pooling under the structure. Consider adding landscape fabric and gravel beneath the deck to suppress weed growth and improve drainage, and maintain at least 12 inches of clearance between the ground and the bottom of the joists for adequate airflow.
References
Background & Theory
History
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer · Editorial policy
Related Calculators
🧮Life Percentage Calculator
Calculate what percentage of your expected life you have lived and how much remains.
🧮Bag Volume Calculator
Calculate bag volume with inputs, formulas, and instant results.
🧮Belt Size Calculator
Calculate belt size with inputs, formulas, and instant results.
🧮Bikini Size Calculator
Calculate bikini size with inputs, formulas, and instant results.
🧮Circle Skirt Calculator
Calculate circle skirt with inputs, formulas, and instant results.
🧮Cross Stitch Thread Calculator
Calculate cross stitch thread with inputs, formulas, and instant results.
🧮Curtain Panel Calculator
Calculate curtain panel with inputs, formulas, and instant results.
🧮Curtain Size Calculator
Calculate curtain size with inputs, formulas, and instant results.