Free to use No registration 100% private Instant results Metric & Imperial

Deck Calculator

Estimate the number of boards, joists, beams, posts, and concrete needed for your deck project. Get a cost breakdown by material type and category.

Free to useNo registrationInstant resultsSVG diagram
Dimensions
ft
ft
Board & Joist Config
in
in
ft
Options
Material & Waste
10-15 yearsMost affordable option. Chemically treated to resist rot and insects. Requires regular maintenance to prevent warping and cracking.
%

Enter deck dimensions

Fill in the form and click Calculate to see your material estimates and cost breakdown.

How to Use This Deck Calculator

Our deck calculator helps you estimate all the materials needed for your deck building project. Enter your deck dimensions, choose your material type, and get instant estimates for boards, joists, beams, posts, concrete, and total cost.

  1. Enter deck dimensions — Measure the length and width of your deck area in feet. Include the full footprint including any overhangs.
  2. Set board width — The default of 5.5 inches works for standard 5/4x6 or 2x6 decking boards. Adjust for wider or narrower boards.
  3. Configure joist spacing — 16 inches OC is standard for most decking. Use 12 inches for composite boards or heavier loads.
  4. Set beam spacing — 8 feet is typical. Beams run perpendicular to joists and support the deck structure.
  5. Choose options — Toggle railing and stairs on/off. If you need stairs, specify the number of steps.
  6. Select material — Choose between pressure treated pine, cedar, composite, or ipe hardwood.
  7. Adjust waste factor — Add 10-15% for simple decks, 15-20% for complex shapes with many angles.

Deck Material Comparison

MaterialCost/sq ftLifespanMaintenanceBest For
Pressure Treated Pine$2-410-15 yearsHigh (annual)Budget-friendly builds
Cedar$4-715-25 yearsMediumNatural beauty, moderate budget
Composite$6-1025-30+ yearsVery lowLow maintenance, families
Ipe Hardwood$10-1540-50+ yearsLowPremium, maximum longevity

Joist Spacing Guidelines

Proper joist spacing is critical for deck structural integrity and the longevity of your decking boards. The International Residential Code (IRC) provides specific guidelines for deck construction.

Board TypeMax Joist SpacingNotes
5/4x6 PT Pine16" OCStandard residential use
2x6 PT Pine24" OCHeavier duty option
5/4x6 Cedar16" OCMay need 12" for high traffic
Composite (varies)12-16" OCCheck manufacturer specs
Ipe 1x616" OCVery rigid; 24" possible with 2x joists

Load-Bearing Calculations

Understanding deck load requirements ensures your structure is safe and code-compliant. The IRC specifies two types of loads:

  • Dead load — The weight of the deck itself (materials, typically 10-15 psf for wood, 12-20 psf for composite).
  • Live load — The weight of people and furniture. Residential decks require a minimum of 40 psf; commercial decks require 100 psf.
  • Total design load — Typically 50-60 psf for residential decks. Your joist size and spacing must support this combined load.
  • Beam capacity — Beams must be sized to span between posts while supporting the joist load. A doubled 2x10 beam can typically span 8-10 feet.

Permits and Building Codes

Most jurisdictions require building permits for deck construction. Here are key code requirements to be aware of:

  • Permits — Required for most decks, especially those attached to a house or over 200 sq ft. Cost: $50-200.
  • Frost footings — Footings must extend below the frost line to prevent heaving. This varies from 12" in the south to 48" in the north.
  • Post-to-beam connections — Must use approved hardware (post caps, joist hangers). Nails alone are not sufficient.
  • Deck railing — Required when the deck surface is more than 30 inches above grade. Must be at least 36" high (42" in some jurisdictions).
  • Lateral load connections — Decks attached to houses must resist lateral loads using approved hardware or through-bolts.
  • Setback requirements — Check local zoning for required distances from property lines and easements.

Cost Ranges by Deck Size

Here are typical total costs (materials and installation) for common deck sizes using different materials:

Deck SizePT PineCedarCompositeIpe
100 sq ft (10x10)$1,500-2,500$2,500-3,500$3,000-4,500$4,500-6,000
200 sq ft (10x20)$3,000-5,000$5,000-7,000$6,000-9,000$9,000-12,000
400 sq ft (20x20)$6,000-10,000$10,000-14,000$12,000-18,000$18,000-24,000
600 sq ft (20x30)$9,000-15,000$15,000-21,000$18,000-27,000$27,000-36,000

Maintenance Tips

Proper maintenance extends the life of your deck significantly. Here are material-specific recommendations:

  • Pressure-treated pine — Apply a water-repellent sealer or stain annually. Inspect for cracks and splinters each spring. Replace damaged boards promptly to prevent rot spread.
  • Cedar — Apply UV-protective stain every 2-3 years to maintain color. Without treatment, cedar will weather to a silver-gray color, which some homeowners prefer.
  • Composite — Clean annually with soap and water or a composite deck cleaner. Avoid pressure washing above 1500 PSI. Most stains and spills can be removed with household cleaners.
  • Ipe — Can be left untreated to develop a silver patina, or oiled annually to maintain the rich brown color. Sweep regularly to prevent debris buildup.
  • All materials — Keep gutters directed away from the deck. Ensure proper drainage underneath. Trim nearby vegetation to allow airflow and prevent moisture buildup.

Building a Deck That Lasts: From Code to Finish

A well-built deck is one of the most valuable additions a homeowner can make, returning an estimated 60-75% of project cost in resale value according to Remodeling Magazine's Cost vs. Value Report. Yet thousands of decks fail prematurely every year — not because the materials were bad, but because the structural design ignored moisture management, code requirements, or load path continuity. Understanding the engineering principles behind deck construction is the difference between a 10-year deck and a 30-year deck.

Structural Load Paths and the IRC

Every deck is a structural system that transfers load from the decking boards down through the joists, beams, posts, and footings into the ground. The International Residential Code (IRC) Section R507 governs deck construction in most U.S. jurisdictions and specifies minimum sizes, fasteners, and connection details. Residential decks are typically designed for a 40 psf live load (people and furniture) plus 10 psf dead load (the deck's own weight), for a total design load of 50 psf.

The most critical — and most often failed — connection in a deck is the ledger-to-house attachment. Older decks were often nailed to the house's rim joist, a detail that is now prohibited by the IRC because nails pull out under cyclic loading. Modern codes require through-bolts or lag screws of 1/2-inch minimum diameter, spaced according to the IRC Table R507.9.1(3), with flashing installed behind the ledger to prevent water intrusion into the house framing. A ledger that has rotted the house's rim joist is the leading cause of catastrophic deck collapses.

Load path continuity also requires proper joist hangers at the ledger, hurricane ties or strap ties connecting joists to beams, and post-to-beam connections using notched posts with through-bolts or manufactured caps. Each connection must resist both gravity loads and uplift forces from wind. Skipping any one of these components creates a weak link that compromises the entire structure.

Joist Sizing and Span Limits

Joist size and spacing are determined by the span (distance between supports) and the wood species. Southern Pine, the most common deck framing lumber in the U.S., has different span capabilities than Redwood, Hem-Fir, or SPF. The IRC provides span tables that take the guesswork out of joist sizing — for example, a 2×8 Southern Pine joist at 16-inch OC can span up to 12 feet 6 inches, while a 2×10 of the same species can span 16 feet 1 inch.

Reducing joist spacing from 16 to 12 inches OC increases span capacity by 10-15% and creates a noticeably stiffer deck. This is especially important for composite decking, which sags between joists more than wood. Most composite manufacturers require 12-inch OC joist spacing for boards installed diagonally or for stair treads. Always verify joist spacing against the decking manufacturer's installation guide — failing to do so voids the warranty.

For longer spans or elevated decks, consider engineered lumber like LVL (laminated veneer lumber) or PSL (parallel strand lumber) beams. These materials have higher strength-to-weight ratios than solid sawn lumber and resist checking, warping, and twisting. They cost 2-3x more than dimensional lumber but enable longer spans that reduce the number of footings required.

Material Selection: Beyond the Surface

The decking surface is what homeowners see, but it's only one layer of a multi-component system. Pressure-treated southern yellow pine remains the most popular framing material because it's inexpensive, widely available, and code-compliant for ground contact when properly treated. Look for stamps indicating " Above Ground" or "Ground Contact" — the latter has higher chemical retention and is required for any wood within 6 inches of soil or in hard-to-dry locations.

Composite decking has evolved dramatically since the hollow, plastic-looking boards of the 1990s. Modern capped composites feature a PVC shell wrapped around a wood-flour core, providing superior stain, fade, and scratch resistance. Premium lines from TimberTech, Trex, and Fiberon offer 25-50 year warranties that cover both material and fade. However, composites expand and contract more than wood with temperature changes, requiring specific gapping and fastener systems.

Hardwoods like ipe, cumaru, and garapa are naturally dense (sinking in water rather than floating) and resist rot, insects, and fire without chemical treatment. They require pre-drilling for fasteners and stainless steel screws to prevent blackening from tannin reactions. With proper oiling every 1-2 years, a tropical hardwood deck can last 40-50+ years — outlasting the house it's attached to.

Moisture Management and Flashing Details

Water is the enemy of every deck, and moisture management separates professional builds from amateur ones. The most important detail — and the one most often botched — is the ledger flashing. A continuous Z-flashing must be installed behind the ledger and over its top edge, directing water away from the house's rim joist. Without this flashing, water runs behind the ledger, rots the house framing, and creates the conditions for the catastrophic ledger failures mentioned earlier.

For deck boards, proper gapping allows water to drain and prevents cupping. Pressure-treated pine should be gapped 1/8 to 1/4 inch because it shrinks as it dries; kiln-dried cedar and composite should be gapped 1/8 inch (they expand rather than shrink). Hidden fastener systems like Camo, Cortex, or Tiger Claw automate spacing but require compatible boards and joist spacing.

Below the deck, ensure positive drainage away from the house. The soil under the deck should slope at least 1/4 inch per foot away from the foundation. For low-clearance decks (less than 12 inches above grade), install gravel over landscape fabric to suppress weeds and improve drainage. Avoid installing decks over standing water — it accelerates rot in framing and creates mold issues in the home.

Footings and Frost Depth

Deck footings transfer the entire structural load to the earth. The IRC requires footings to extend below the local frost line — the depth to which soil freezes in winter. In southern states, this may be 12 inches; in New England, Minnesota, or mountain regions, it can be 48-60 inches. Footings that don't reach below frost are subject to frost heave, where freezing soil expands and lifts the footing, often cracking posts and beams.

Typical deck footings are 12-16 inches in diameter, poured to a depth of 6-12 inches below the frost line. For decks supporting heavy loads (hot tubs, multi-level decks), engineers may specify 18-24 inch diameter footings or helical piers. Helical piers are screwed into the ground with hydraulic equipment and can support 10-20 tons each — they're especially useful in poor soil or near existing foundations where digging is impractical.

Always check with your local building department for footing requirements. Many jurisdictions have published frost depth maps or require geotechnical reports for sites with known expansive soils. Skipping the permit and inspection process to save $50-200 in fees often results in much larger costs when the deck must be rebuilt or the house is sold and the buyer's inspector flags non-compliant construction.

Railings, Stairs, and Code Compliance

Decks more than 30 inches above grade require a code-compliant railing at least 36 inches tall. The IRC specifies that balusters must be spaced so a 4-inch sphere cannot pass through — a critical child-safety standard. Handrails on stairs must be 34-38 inches above the stair nosing and "graspable" — meaning 1-1/4 to 2-inch outside diameter for a circular profile, or an equivalent ergonomic shape for non-circular rails.

Stair geometry is also code-regulated: maximum riser height of 7-3/4 inches, minimum tread depth of 10 inches, and a maximum variation of 3/8 inch between the tallest and shortest risers in a flight. Landings are required every 12 feet of vertical rise. Stair stringers should be cut from 2×12 lumber with no more than 5 inches of uncut wood at the throat (the narrowest point) to maintain structural integrity.

Finally, document everything. Keep your permit, plans, inspection records, and material receipts. A documented deck is far easier to insure, sell with the house, and modify later. Most jurisdictions require a final inspection before the deck can be legally used — don't skip this step, as insurance claims for unpermitted decks are routinely denied.

Real-World Case Studies

See how our deck calculator performs in real-world scenarios. These case studies demonstrate how to estimate materials and costs for common deck building projects.

🏡
Case Study #1

Ground-Level Deck - 12ft × 16ft, Pressure-Treated

A ground-level patio deck using pressure-treated pine lumber. Includes decking boards, joists, beams, posts, and railing with 10% waste factor.

Deck Area
192 sq ft
Decking Boards
64 boards
Joists + Beams
15 pieces
Total Cost
$5,280
🌳
Case Study #2

Elevated Deck - 10ft × 14ft, Composite Decking

An elevated second-story deck with composite decking and aluminum railing. Includes stairs, hidden fasteners, and cost comparison with wood.

Deck Area
140 sq ft
Decking Boards
48 boards
Stairs + Railing
Included
Total Cost
$9,800

Frequently Asked Questions

How much does it cost to build a deck per square foot?

Deck costs range from $15-45 per square foot installed, depending on the material. Pressure-treated pine costs $15-25/sq ft, cedar runs $25-35/sq ft, composite is $30-45/sq ft, and premium hardwoods like ipe can exceed $45/sq ft.

How far apart should joists be spaced?

For most deck boards, joists should be spaced 16 inches on center (OC) for standard 5/4x6 or 2x6 decking. For composite decking or 5/4 boards, 12-inch OC may be required. Some heavy-duty applications use 24-inch OC with 2x8 or larger joists.

How many beams and posts does a deck need?

A typical deck needs one beam for every 8-10 feet of deck length. Each beam requires two posts (one at each end), typically spaced 8 feet apart. A 16-foot deck usually needs 2 beams and 4 posts, while a 24-foot deck needs 3 beams and 6 posts.

Do I need a permit to build a deck?

Most jurisdictions require a building permit for decks over 200 square feet or those attached to a house. Even freestanding decks may require permits. Contact your local building department for specific requirements. Permits typically cost $50-200.

What is the best material for a deck?

The best material depends on your budget and maintenance tolerance. Pressure-treated pine is the most affordable but requires annual maintenance. Cedar offers natural beauty with moderate upkeep. Composite provides the best balance of durability and low maintenance. Ipe hardwood offers the longest lifespan but at premium cost.

How deep should deck footings be?

Deck footings should extend below the frost line, which varies by region: 12 inches in the southern US, 24-36 inches in the north, and up to 48 inches in cold climates. Most codes require footings to be at least 12 inches in diameter and filled with concrete.

Related Calculators

Plan every component of your outdoor living space with these complementary construction calculators.

References & Sources

The information in this guide is based on industry standards, model building codes, and best practices from leading wood construction authorities.

  • International Code Council (ICC) — "International Residential Code (IRC), Section R507: Exterior Decks." ICC publishes the model residential code adopted by most U.S. states, with detailed provisions for deck framing, ledger attachment, and footings.
    iccsafe.org
  • American Wood Council (AWC) — "Design for Code Acceptance (DCA) 6: Prescriptive Residential Wood Deck Construction Guide." AWC is the wood products industry's technical authority, providing prescriptive deck designs that comply with the IRC.
    awc.org
  • North American Deck and Railing Association (NADRA) — "Deck Construction Best Practices and Material Selection Guide." NADRA represents professional deck builders and provides certified contractor training and consumer education.
    nadra.org
  • This Old House — "How to Build a Deck: Step-by-Step Guide." This Old House's contractor team publishes detailed, photo-illustrated guides vetted by licensed builders with decades of field experience.
    thisoldhouse.com
  • ASTM International — "ASTM D7031: Standard Guide for Evaluating Wood Plastic Composite Products" and "ASTM F1946: Standard Practice for Establishing Performance Capability of Plastic Lumber Deck Boards." Provides material performance standards for decking products.
    astm.org
  • Simpson Strong-Tie — "Deck Connection Technical Guide" and "Outdoor Living Products Selector." Industry-leading manufacturer of structural connectors, providing engineered solutions for deck ledger attachment, railings, and post bases.
    strongtie.com
Disclaimer: Deck material calculations estimate decking boards and fasteners. Structural members (joists, beams, posts) must be sized by a licensed engineer or per IRC Table R507. Verify local building code requirements for deck height, railing, and footing depth.
B
BuildFormulas Editorial Team
Construction Content Editors

The BuildFormulas Editorial Team comprises construction industry writers and estimation specialists who create practical, accurate building calculators and guides. Our construction content is reviewed by the BuildFormulas Construction Engineering Panel to ensure calculations align with current building codes and industry best practices.

Reviewed by BuildFormulas Construction Engineering Panel, Technical Review
Last updated: March 2025