Nails & Numbers

Home › Deck, Fence & Patio Calculators

Deck, Fence & Patio Calculators

Everything outside the house and on the ground: decks have their own chapter in the code, fences mostly do not, and the difference decides where each answer comes from.

The order a deck actually gets built

  1. FootingsSize and depth. Everything above sits on these, so they are laid out first.
  2. PostsHow tall a post may be for the span it carries, and why a 4x4 rarely qualifies.
  3. BeamsHow far the beam can span between those posts.
  4. JoistsSpan from ledger to beam, and how far they may cantilever past it.
  5. Decking boardsBoard rows, linear feet and the gap that depends on how wet the timber is.
  6. FastenersScrew and hanger counts, and which coating the code requires against treated wood.
  7. RailingsBaluster spacing against the three different sphere limits.
  8. StairsRiser, tread and stringer, checked against every dimension in R311.7.

The calculators

IRC Section R507 exists because decks fail more often than the rest of the house. They are exposed to weather on every face, they are frequently built without permits, and when they collapse they do it while loaded with people. So the code treats a deck as its own structure with its own tables, R507.5 for beams, R507.6 for joists, R507.4 for posts, rather than borrowing the interior floor framing tables.

The wet service assumption is the reason. Deck lumber is designed damp, which costs about 15% of its allowable bending stress, and that is why the same 2×10 spans further inside a house than it does outside. Any calculator that gives you one span figure for both has quietly used the wrong one.

Guards are a separate chapter

Guard requirements live in R312, not R507, and they carry three different opening limits depending on where you are standing: a 4 in sphere on a level guard, 4⅜ in on the open side of a stair, and 6 in for the triangular gap between riser, tread and bottom rail. Most tools report only the first. The trigger is height rather than area: more than 30 in above the grade below, measured at any point within 36 in horizontally of the edge, which is a different question on a sloping lot.

Fencing has almost no code behind it, and the pages say which do

This is the part worth knowing before you trust any fencing number. Chain link has a real published standard: the CLFMI product manual caps line posts at 10 ft on center and gives footing depth as a formula, 24 in at a 4 ft fence plus 3 in for every foot above. Vinyl has a manufacturer's wind table, where a deeper footing buys wider spacing and exposure D at 30 in caps out below a standard 6 ft section. Split rail and farm wire have neither, so those pages work from the rail you are buying and the spacing you choose, and say so rather than inventing a specification.

Surfaces, and the manufacturers who set the rules

Composite decking is the clearest case. R507.7 is titled for wood decking and hands plastic composite to R507.2, which routes to ASTM D7032 and the manufacturer's own instructions. There is no code spacing for it, the published figures run from 8 in to 24 in depending on brand and layout, and the composite page carries eleven product lines with the document revision each was read from.

Patio covers have their own appendix, AH, which sets a 10 psf live load unless snow governs and says a cover may not be a carport or a habitable room. Paving, flagstone and sod have no code at all: those pages are quantity takeoffs with the supplier's published coverage, and the coverage is a range because natural materials are.