Home › Decking › Deck Size Calculator
Deck Size Calculator
Area and perimeter, plus the IRC R312.1.1 guard trigger
Deck size calculators give you an area. The useful question is what your dimensions and your height actually oblige you to build, and the answer is that the IRC sets no size limit for a deck at all. What it does set is a height at which a guard becomes mandatory, and the wording of that rule is more subtle than the number suggests.
Deck size and what it obliges
Guard trigger and dimensions quoted from IRC R312.1.1 through R312.1.3.
Specification summary
Generated from on . Reopen that address to reproduce these figures exactly.
Entered
Result
Worked example
- Area. 192 sq ft. This is the number everybody wants and the one the code has no opinion about.
- Open perimeter. 56 ft total less the 16 ft against the house = 40 ft of open edge.
- Guard. 36 in is more than 30, so R312.1.1 requires a guard along all 40 ft, 36 in high, passing no 4 in sphere.
- Drop the height to 30 in and the guard requirement disappears, which is why so many low decks are built at exactly 30.
- The catch. The rule measures to the grade at any point within 36 in of the edge. On a falling lot, 30 in at the house can be 34 in three feet out.
The formula
- A
- deck area, sq ft
- L, W
- length and width, ft
- attached
- the edge against the house, which needs no guard
- h
- height from the walking surface to the grade below, measured at any point within 36 in horizontally of the edge
There is no maximum deck size in the IRC
The 30 inch rule, and the half of it everybody drops
Frequently asked questions
- Is there a maximum deck size in the building code?
- No. The IRC limits joist and beam spans, footing depth and ledger connections, but it does not cap deck area. What your deck size changes is quantity, and what your deck height changes is whether a guard is required.
- At what height does a deck need a railing?
- More than 30 inches above the floor or grade below, per IRC R312.1.1, measured at any point within 36 inches horizontally of the open edge. A deck at exactly 30 inches does not require one; a deck at 31 does.
- How is deck height measured for the guard rule?
- Vertically from the walking surface to the floor or grade below, and critically, at any point within 36 inches horizontally of the edge. On a sloping lot the governing measurement is at the low point within that 36 inch band, not at the house.
- How tall does a deck guard have to be?
- Not less than 36 inches above the walking surface, per R312.1.2. On the open sides of stairs it may be 34 inches measured from a line connecting the nosings, and where the top of the guard doubles as the stair handrail it must be between 34 and 38 inches.
- What is the maximum gap in a deck railing?
- No opening may allow a 4 inch sphere to pass, per R312.1.3, from the walking surface up to the required guard height. That is what fixes baluster spacing.
- Does a screened porch need a guard?
- Yes, if the walking surface is more than 30 inches above grade. R312.1.1 says explicitly that insect screening is not a guard.
- How many joists does a 16x12 deck need?
- Thirteen at 16 inches on centre, including the closing joist at the far end. Whether a joist can span 12 ft at that spacing depends on species and size and is set by IRC Table R507.6.
Check these numbers yourself
- IRC R312 Guards, Code and CommentaryRoutt County, Colorado reproduction of the 2021 IRC Code and Commentary. Used because codes.iccsafe.org returns HTTP 403.
- IRC R507 Exterior DecksUpCodes. Joist and beam span tables. Confirm the edition and jurisdiction it serves you.
- AWC DCA 6: Prescriptive Residential Wood Deck Construction GuideAmerican Wood Council, free PDF.
How every figure here is verified: Sources & Method. Who builds this: About. Found something wrong? Tell us and it gets fixed or removed.
Figures on this page last checked against the source documents on 2026-09-07. Codes are amended locally; confirm against the edition your jurisdiction enforces.
Related calculators
- Deck Railing Calculator IRC R312
- Joist Calculator IRC Table R507.6
- Deck Lumber Calculator board & joist takeoff
- Flagstone Patio Calculator Coverage per ton from a supplier's own sheet, published as a
- Deck Materials Calculator the whole deck
- Chain Link Fence Calculator Post spacing and footing depth from the CLFMI product manual
- Composite Decking Calculator Spacing read from each manufacturer's own guide. The IRC set
- Deck Construction Cost Estimator Quantities from IRC R507.6, R507.5(1) and AWC DCA 6 Table 4
- Deck Fastener Calculator IRC R317.3.1 · connectors ASTM A653 G185 · ASTM A153
- Deck Footing Calculator AWC DCA 6 Table 4 · footing depth per IRC R403
Height is the code question, not area. Guard figures are from the 2021 IRC as reproduced above; confirm the edition your jurisdiction has adopted. This page does not size joists, beams, posts or footings.