Deck, stair and post calculators
Outdoor structures are where a quantity mistake can become a safety problem, so these calculators work from code limits as well as material counts. A US stair riser may not exceed 7.75 in (196 mm) and a tread must be at least 10 in (254 mm). Composite decking needs joists no wider apart than 16 in (406 mm), and each board takes 2 screws at every joist. Choose the build below for the matching tool.
Which outdoor calculator do I need?
Work from the ground up. A deck or a set of steps starts with footings or posts set in concrete, then framing, then the walking surface. Each layer has its own tool. The concrete per fence post calculator counts bags of post mix for each hole. The stair rise and run tool divides a total rise into equal steps that meet code. The decking boards and screws calculator counts the boards across the deck and the fasteners that hold them.
Framing itself, meaning joists, beams and ledger, is sized from published span tables rather than calculated. The deck framing and board takeoff guide shows how to read those tables and count the joists.
| Project | Calculator | What it gives you |
|---|---|---|
| Wood or composite deck surface | Deck board calculator | Boards by length, screws or hidden clips, allowance |
| Deck steps, porch steps or a basement stair | Stair calculator | Number of risers, riser height, tread depth, stringer length |
| Deck posts, fence posts, mailbox or sign posts | Post hole calculator | Bags of fast-setting or standard mix per hole and in total |
| Fence line with panels or pickets | materials for a wood fence | Posts, rails, panels or pickets |
| Concrete pad for a hot tub or stair landing | concrete needed for a slab | Cubic yards, cubic metres and bags |
Deck, stair and post pages
What stair dimensions does code allow?
A stair must have equal steps within a narrow tolerance, and the limits differ between the US and the UK. IRC: largest and smallest riser (and tread) in a flight may differ by no more than 3/8 in. That tolerance is why the stair calculator divides the total rise into equal risers instead of using a fixed step height: an odd last step is a trip hazard and falls outside the tolerance.
A common belief is that a short or tall final step can be fixed by eye when the stair is built. It cannot: the variation limit applies to every riser in the flight, including the one at the bottom where the ground may not be level. Measure the total rise from the landing point, not from the deck edge to an assumed ground line. Deck stairs also have structural rules for their stringers. DCA 6: deck stair stringers must be at least 2x12. DCA 6: cut stringers at 18 in o.c. max; at least 3 for a 36 in stair. DCA 6: a cut stringer may span at most 6 ft 0 in horizontally. UK stairs are checked with a comfort formula as well as limits. Approved Document K: twice the rise plus the going must be 550 to 700 mm. A private stair may not be steeper than 42 degrees.
| Rule | US | England |
|---|---|---|
| Riser height | Max 7.75 in (196 mm) | 150–220 mm (private stair) |
| Tread depth or going | Min 10 in (254 mm) | 220–300 mm (private stair) |
| Headroom | 80 in (2,032 mm) | 2,000 mm |
| Handrail height | 34 to 38 in (864 to 965 mm) | 900 to 1000 mm |
| Handrail needed from | 4 risers | Both sides from 1,000 mm wide |
| Guard needed when deck or landing is above | 30 in (762 mm) | 600 mm drop |
| Guard openings | 4 in (102 mm) sphere | 100 mm sphere (open risers) |
How are deck boards and fasteners counted?
Across the deck, by board width plus gap, and then along it, by board length. Actual widths are smaller than the names suggest. A 5/4x6 wood deck board is about 1 in thick and 5-1/2 in wide (dry, dressed). Trex Signature, Transcend and Enhance boards measure 0.94 in x 5.5 in (24 x 140 mm). TimberTech Composite Prime/Prime+ boards are 0.94 in thick and 5.36 in wide. Gaps add up across a wide deck, so the calculator includes them. Trex boards need a 3/16 in (5 mm) side-to-side gap at any temperature. DCA 6 says to space wood deck boards about 1/8 in apart.
Board layout changes framing. Diagonal (45 degree) composite decking needs joists at 12 in on center maximum. Each length of decking must bear on at least three joists. Allowances differ by maker and pattern: Trex suggests ordering 5% extra decking. TimberTech's install guide suggests about 10% extra for scrap. TimberTech suggests 30% extra for diagonal or elaborate patterns. Fastener packs are sold by area. CAMO sells EDGE screws as 350 per 100 sq ft (9.29 m2) of decking. A Trex Hideaway Universal Fastener box covers 50 sq ft; the bucket covers 500 sq ft.
How deep and wide should post holes be?
Deep enough to reach firm soil below frost, and about three post-widths across. Dig the hole about three times the post width (4 in post -> 12 in hole). Put about 6 in of gravel in the bottom of each hole for drainage. For decks the rule is set by DCA 6. Footings must bear on undisturbed soil at least 12 in below grade or below the frost line, whichever is deeper. Deck footings closer than 5 ft to the house foundation must bear at the same elevation as the house footing. Fence posts follow a proportion of their height. Concrete makers say to dig about one-third (up to one-half) of the post's above-ground height. In the UK, UK guidance: set posts at least 600 mm deep; a 1.8 m fence needs a 2.4 m post.
The post hole calculator gives the concrete for the hole size you choose. It does not size a deck footing for load; DCA 6 sizes those from beam span and soil bearing, and your building department may set its own minimum. For fence lines and garden walls, the landscaping calculators cover the rest of the job, and slabs and footings sit with all concrete tools.
How many decks are built, and how many people are hurt on them?
Patios now far outnumber decks on new US homes. About 625,000 of 1,005,000 new US single-family homes completed in 2025 (roughly 62%) included a patio, versus 180,000 with a deck and 84,000 with no patio, porch or deck (Census Bureau). About 180,000 of the 1,005,000 new US single-family homes completed in 2025 (roughly 18%) were built with a deck, alone or with a patio or porch, per the Census Bureau. On existing homes the work is steady: About 1.93 million US homeowners added a porch, deck, patio or terrace in 2023, spending about $16.0 billion in total (Harvard JCHS Table A-1, 2023 AHS). Lumber prices, which drive deck costs, have swung widely. US producer prices for softwood lumber rose 14.2% in the year to September 2026 but were still 50.4% below the May 2021 peak and only 3.0% above the 2020 average (BLS PPI).
Stairs are among the most common sources of injury in any home. An estimated 1,310,287 people (95% CI 1,082,129–1,538,444) were treated in US hospital emergency departments in 2025 for injuries involving stairs or steps (product code 1842), per our analysis of CPSC NEISS data. People aged 65 and over made up 32.3% of stair and step injuries treated in US emergency departments in 2025 (423,006 of the national estimate, 95% CI 346,762–499,249), per our analysis of CPSC NEISS 2025 data. Decks and fences appear in the same data. An estimated 151,403 people (95% CI 121,876–180,930) were treated in US hospital emergency departments in 2025 for injuries involving porches, balconies, open-side floors or floor openings (code 1817), per our analysis of CPSC NEISS data. An estimated 115,803 people (95% CI 98,955–132,650) were treated in US hospital emergency departments in 2025 for injuries involving fences or fence posts (code 1871), per our analysis of CPSC NEISS data. These estimates count emergency visits where the product was involved, not only building accidents, and they come from a sample of hospitals. CPSC's 2024 NEISS estimates come from a redesigned sample of 100 hospitals, of which 77 reported, while 2023 estimates used the older 96-hospital sample, so 2023-to-2024 changes are not clean trends (the all-product estimate jumps from 12.74 million to 15.07 million).
The how many people are hurt falling off ladders page has the full tables and confidence intervals. For prices and debris, see construction material price changes and C&D debris figures by material.
Where do these calculators stop?
They count boards, bags and steps. They do not design structure, check soil or approve a permit. DCA 6 itself has limits: DCA 6 span tables assume a 40 psf live load and a 10 psf dead load. DCA 6 limits joist span to 18 ft 0 in for its footing design. Decks outside those limits, such as roof decks, very tall decks or decks with heavy planters, need an engineer.
Stair results assume a straight flight on level ground. Winders, spiral stairs and steps that land on a slope need extra checks, and the UK has separate limits for utility and general access stairs. Read our calculation methodology for how code values are sourced and when a single source is named. A printable stair rules card for US and UK and reusable stair and deck diagrams are free to download.
Deck, stair and post questions
How many stringers does a deck stair need?
DCA 6: cut stringers at 18 in o.c. max; at least 3 for a 36 in stair. Wider stairs need more, spaced evenly.
When does a deck stair need a landing partway up?
DCA 6: stairs taller than 12 ft 0 in total need an intermediate landing. The IRC sets a similar limit for any flight. CRC/IRC: a flight may not rise more than 151 in (12 ft 7 in) between floors or landings.
How far can composite decking overhang the rim joist?
Trex decking may overhang the rim by at most 3/4 in. Other brands set their own limit, so check the install guide.
Can a deck post be a 4x4?
Not under DCA 6 for a deck that carries its frame on posts. Deck posts must be at least 6x6 nominal; 8x8 may substitute up to 14 ft high. Smaller posts appear in guards, not as support posts.
Sources (24)
- American Wood Council
- DCA 6 - Prescriptive Residential Wood Deck Construction Guide (2015 IRC version, (c)2018, incl. Commentary), checked
- Barrette Outdoor Living
- Wood Fence Installation Instructions (BOM-WOODFENCE), hosted by The Home Depot, checked
- CAMO Fasteners (National Nail Corp.)
- CAMO Product Catalog 2025, checked
- City of Boise Building Division
- IRC Code Handout #437 - IRC Section R311.7.5 Stair Treads & Risers (02/2022), checked
- City of Gilroy Building Division
- Residential Stairways, Handrails and Guards handout - California Residential Code R311.7 and R312 (rev. 03/03/2025), checked
- Jacksons Fencing
- How to Dig Post Holes: Expert Tips, checked
- Joint Center for Housing Studies of Harvard University
- Improving America's Housing 2025, checked
- LABC Warranty (MD Insurance Services)
- Technical Manual Version 11 - Section 9: Stairs, checked
- NIST / American Lumber Standard Committee
- Voluntary Product Standard PS 20-20, American Softwood Lumber Standard, checked
- QUIKRETE Companies
- Setting Posts (QUIKRETE at-home project instructions), checked
- Sakrete (Oldcastle APG)
- Pro Tips: How To Set Posts & Poles, checked
- The Home Depot (manufacturer not named on document)
- Wood Fence Kits Installation Instructions, checked
- TimberTech (The AZEK Company)
- Decking Installation & Maintenance Guide - TimberTech Composite and Specialty Decking (REV 09/23), checked
- How to Calculate How Much Decking You Need, checked
- Trex Company
- 2024 Trex Decking Installation Guide, checked
- How Many Deck Boards Do I Need?, checked
- UK Government (MHCLG)
- Approved Document K: Protection from falling, collision and impact (2013 edition, online version), checked
- US Bureau of Labor Statistics
- Producer Price Index by commodity (series WPU0811, WPU083, WPU137, WPU1322, WPU1333, WPU1321, WPU1342, WPU1344, WPU1361, WPU1392, WPU0621, WPU1231, WPU1232, WPUIP2321001), checked
- US Census Bureau
- Characteristics of New Housing 2025: Presence of Outdoor Features in New Single-Family Houses Completed, checked
- US Consumer Product Safety Commission
- NEISS Data Highlights – Calendar Year 2023, checked
- NEISS Data Highlights – Calendar Year 2024, checked
- NEISS annual data files 2015–2025 (neiss<year>.xlsx, NEISS_FMT code sheet), checked
- US Consumer Product Safety Commission (Federal Register)
- Agency Information Collection Activities; NEISS — FR Doc. 2021-23302, Docket CPSC-2009-0102, checked
- USDA Forest Service, Forest Products Laboratory
- Wood Handbook (FPL-GTR-282), Chapter 6: Commercial Lumber, Round Timbers, and Ties, checked
Every number on this page is taken from these documents. How we choose and check sources.