Methodology & sources

Every structural number in our calculators comes from a published table or manufacturer guide. This page lists them, along with the assumptions we make, so you can check our work.

Assumptions

  • Design load: 40 psf live load plus 10 psf dead load, or the 50, 60 or 70 psf ground-snow tables when you choose one. Your building department publishes the ground snow load for your area.
  • No. 2 grade, preservative-treated lumber in wet service for framing.
  • Single-level rectangular deck; one dropped beam for an attached deck, two for a freestanding deck. With no overhang the beam sits under the rim, set in half a post width so posts stay inside the deck.
  • Joists are laid out at your spacing from one end; no bay is ever wider than the spacing.
  • Footings are sized from Table R507.3.1 for the soil bearing you choose so that one footing fits every post: the largest footing any post needs for the deck it carries, on either beam. Piers use stocked 10" and 12" form tubes. One home center lists them at 9-1/2" and 11-1/2" actual, so a tube counts only as a footing of that smaller size, while concrete is bought for the full nominal size; its 8" tube (7-1/2" inside) is narrower than a 6x6 post's 7.8" diagonal, so it is not used under one (IRC Table R507.3.1 note c: the footing must give the post full bearing). When the table needs a wider footing, it becomes a pad of that diameter (at least 14") and the table thickness at the bottom of the hole with a 12" tube pier above it. Concrete is poured 2" above grade and posts sit on standoff bases.
  • Beams are sized with the 2021 method: effective joist span = actual span × the Table R507.5(5) factor for your joist overhang (we use the next higher tabulated overhang ratio rather than interpolating, which is conservative), then the smallest built-up beam whose allowable span covers the post spacing. The beam overhangs the end posts by no more than a quarter of the post spacing.
  • Joists are picked as the smallest size that both spans from the ledger to the beam and allows your overhang past the beam (Table R507.6). Joists longer than 20' are flagged: a cantilevered joist can’t be spliced at the beam.
  • The ledger is at least a 2×8 (IRC R507.9.1.1), fastened with 1/2" lag screws through 1/2" or thinner sheathing at the Table R507.9.1.3(1) spacing, plus two 1,500 lb lateral load connectors (R507.9.2).
  • Every decking segment bears on at least three joists; seams land on joist centerlines, and each row avoids the seam joists of the rows next to it. With composite boards, the seam sits on the face between a joist and a sister joist so both board ends bear fully (TimberTech guide), and the first row starts 1/4" from the house wall (Trex, Fiberon).
  • A picture-frame border gets three extra plies nailed tight to each end joist, making a 6" built-up member that carries the border and every field board end; border boards that cross the joists are split over a joist like any row. Tight members share one multi-ply hanger and tie.
  • "Fix it" buttons are only offered when applying them clears that check without causing a new failure; a change that adds no new warning is preferred, and tips that would add one are not shown. The joist span, the cantilever and the one-third overhang limit all depend on the beam position, so when more than one of them is open the calculator looks for one change that clears them all and offers it on each card — or says that no single change it tried does.
  • Boards are cut to exact length from nominal stock lengths; the board-size tip leaves 1" to square the ends.
  • Hot tubs, roof-top and multi-level decks, steep slopes, ground snow over 70 psf and posts over 14' are outside these tables — have them designed.

Deck stairs

  • One straight flight with the deck as the top landing. Risers are equal, no taller than 7-3/4" (the automatic layout aims for 7-1/2" or less), and treads are at least 10" deep nosing to nosing, with a 3/4"–1-1/4" nosing (IRC 2021 R311.7.5).
  • Cut 2x12 stringers (AWC DCA 6): at least three, spaced no more than 18" for wood 5/4 or 2x treads or the composite maker’s stair spacing; at least 5" of wood under each notch, measured square to the bottom edge; at most 6' of horizontal span, with a 4x4 post on its own footing under each stringer to shorten a longer span.
  • Stringers hang from the rim on sloped hangers rated at least 625 lb (DCA 6 Fig. 31). At the bottom each stringer bears on a 2x4 block fastened to a 4x4 post, and each post stands on its own 10" square, 6" thick footing at least 12" below grade and below the frost line (DCA 6 Fig. 34).
  • On sloped ground the landing point moves with the run, so the rise and the riser count are solved together. Heights for guard and open-riser checks are measured to the ground under each step.
  • Where DCA 6 is stricter than the IRC (open risers at any height, a nosing on every tread, a stair guard from a 30" total rise), the check shows a warning that names DCA 6.

Deck joist spans

  • Spans come from IRC 2021 Table R507.6 (the 2024 edition has the same numbers): No. 2 grade, wet service, 10 psf dead load, deflection L/360 on the span and L/180 at the cantilever with a 220 lb load at its end, for 40 psf live load or 50, 60 or 70 psf ground snow. Every table cell is checked by a test against the verified research table.
  • The calculator picks the smallest joist that spans your span at your spacing and whose cantilever at your back span covers your overhang. Cantilevers are interpolated between the table's back spans (4' to 18'), never past a quarter of the back span; the table lists none past an 18' back span, and does not allow extrapolation.
  • Allowed spans and overhangs are rounded down when shown, so a limit never reads longer than the table gives. Your span and overhang are checked exactly as shown: to the 1/16" in feet and inches, to the millimetre in metric. A value that is not on that step (entered in the other units, or in decimal feet) is rounded up or down, whichever gives the same result as the exact value. In the rare case that neither does (an overhang exactly at the peak of an interpolated limit, where rounding the span either way lowers the limit), the exact value is checked. Either way, switching units never changes the answer.
  • The decking sets the widest joist spacing (IRC Table R507.7 for wood boards that run over three or more joists; the makers' guides for composite). Where AWC DCA 6 is stricter — its Table 2 overhangs by spacing, limited to a quarter of the span; joists no longer than 18' (both at 40 psf, the load DCA 6 covers); 2x8 or deeper joists and rim joists where guard posts attach, with the IRC's 2x8 or deeper ledger — the check shows a warning or a note that names DCA 6.

Roof pitch

  • Whatever you enter — a rise in 12, an angle, or a rise measured over a run — becomes one pitch, rise in 12 to the hundredth, and every number and check uses it. The angle is the arctangent of pitch ÷ 12; the slope factor, √(12² + pitch²) ÷ 12, turns a level length or plan area into a length or area on the roof.
  • Gable, hip and shed roofs of one pitch. The run of a common rafter is half the building's width (the full width for a shed roof). Rafter lengths are the level run, less half of a 1-1/2" ridge board, plus the eave overhang, times the slope factor, measured from plumb cut to plumb cut. Hip rafters run on the 45° diagonal and lose half the 45° thickness of the ridge; jacks step down by the spacing times the slope factor and lose half the 45° thickness of the hip. The rafter size you pick sets the stock length: a board with a plumb cut at each end needs its depth times rise ÷ run more than its length along an edge (hips, one size deeper, and jacks also need 1-1/2" for the 45° cheek cut). Rafters are not sized — use IRC Table R802.4.1 (spans measured on the horizontal projection, R802.4.1; a ridge board at least 1" nominal and as deep as the rafter's cut end, R802.3).
  • Roof area: each plane's level area (with the overhangs) times the slope factor, rounded up to the whole square foot; the roof is the sum of the planes.
  • Minimum slopes from IRC 2021 Chapter 9 (unchanged in the 2024 edition): asphalt shingles 2 in 12 with two layers of underlayment below 4 in 12 (R905.2.2, Table R905.1.1(2): a 19" strip at the eaves, then 36" sheets lapped 19"); clay and concrete tile 2-1/2 in 12, two layers below 4 in 12 (R905.3.2); metal shingles, wood shingles and shakes 3 in 12; slate 4 in 12; roll roofing 1 in 12; lapped metal panels 3 in 12, or 1/2 in 12 with lap sealant, standing seam 1/4 in 12 (R905.10.2); built-up, modified bitumen and single-ply membranes 1/4 in 12. Where your area requires wind design, the IRC asks for two layers of underlayment at every slope.
  • Ice barrier (R905.1.2), where your building department requires it: from the eave edge to at least 24" inside the exterior wall line, and on slopes of 8 in 12 or more at least 36" up the slope. The code does not say which way the 24" is measured; we take it level from the outside of the wall, then up the slope, in 36" courses with 3-1/2" side laps.
  • Shingles: 3 bundles cover 98.4 sq ft (Owens Corning Duration, CertainTeed Landmark). Waste: 10% for gable and shed roofs, 15% for hip roofs, as CertainTeed's applicator's manual advises (it notes this is generous on large roofs; you can pick another figure). Starter strip at the eaves and rakes, 105 lin ft per bundle (Owens Corning Starter Strip Plus, the shortest of the three checked); hip and ridge cap 30 lin ft per bundle (CertainTeed Shadow Ridge). Underlayment: Owens Corning RhinoRoof U20, 42" × 286' rolls, lapped 2" for one layer. Ice and water barrier: 36" × 66.6' rolls with 6" end laps. Drip edge (R905.2.8.5) in 10' pieces lapped 2", counted edge by edge with no offcuts reused. Two layers of underlayment follow the IRC's method for 36" sheets, so they are counted as No. 15 felt (ASTM D226 Type I, TAMKO, 36" × 144' rolls); membrane roofs get no underlayment line. Fix it sets the pitch to your roofing's minimum; for shingles and tile below 4 in 12 that adds the two-layer underlayment the list then counts. Sheathing: 4×8 sheets with the same waste allowance.
  • OSHA's construction rules define a steep roof as one steeper than 4 in 12 (29 CFR 1926.500(b)); above 21 in 12 the IRC sends shingle fastening to the maker's instructions (R905.2.6).

Fences

  • One to three straight sides, each turning 90° from the last, or a closed rectangle. Posts stand at the ends, the corners and both sides of each gate (gates go on side 1, spaced evenly); between those fixed posts the bays are equal and no wider than your spacing, at most 8' (Simpson Strong-Tie and UFP lay fence posts out every 8'; Lowe's gives 6' to 8'; a convention, not a code rule). Each gate needs its opening, two posts and at least 1' of fence on each side.
  • Post depth: QUIKRETE's bag data sheets, its calculator, UFP, Sakrete's data sheet and Viance put a third of a post's overall length in the ground — half its height above ground — and Viance never less than 2'. That is the depth the page picks (or your frost depth, if deeper, rounded up to the whole inch). QUIKRETE's how-to pages allow as little as a third of the height above ground (Simpson gives 2' for a 6' fence); a depth between the two gets a tip, a shallower one a warning. UFP sets end, corner and gate posts at least 6" deeper; the list counts every post at one depth. The posts' tops are level with the pickets, and each post is the shortest length found in stock (4×4: 7', 8' or 10'; 6×6: 8') that holds height plus depth; a longer post is listed by its length, to order from a lumber yard.
  • Holes are three times the post's nominal width across (12" for a 4×4, 18" for a 6×6, as QUIKRETE's calculator and Lowe's take it; Sakrete also says three times the post's width), dug 6" deeper for gravel under the post (QUIKRETE). Concrete is the hole less the square post, from the gravel up: fast-setting mix to 3" below the ground with soil on top (QUIKRETE: 3" to 4"), concrete mix up to the ground and sloped (Viance), divided by the bag's yield and rounded up once for the whole fence. Gravel is counted at 0.5 cu ft per 50 lb bag (a dealer's listing; QUIKRETE publishes none). With a frost depth entered, the concrete reaches at least that deep and the hole 6" deeper (QUIKRETE asks for 6" below the frost line where a post carries a structure; Viance, a few inches). We found no fence-post rule in the IRC's contents, and the IRC has no national frost map: your building department sets the frost depth.
  • Rails: 2×4s between the posts. UFP uses two on shorter fences, three on a 6' fence and four on an 8' one; Viance asks for three once the pickets are 60" long, and Lowe's about one per 2' of height; so the page uses two up to 4', three up to 6' and four above, with the top and bottom rails 4" from the picket ends (UFP). Each rail is cut 1/2" shorter than the space between the posts, leaving 1/4" at each end for the screw heads of the Simpson FB24Z bracket that holds it (five fasteners per bracket: three into the rail, two into the post). Rails are packed into the 2×4 stock length (8' to 16') that needs the fewest feet, with a 1/8" saw kerf.
  • Pickets stop 2" above the ground (Simpson) with their tops at your fence height. Privacy pickets are butted edge to edge, the last one in each run ripped to fit; spaced pickets are spread evenly with no gap wider than yours; a shadowbox has pickets on both faces of the rails: the outer face has a picket centered on every post and spaced ones between, and the inner face covers every outer gap, slid clear of the posts, so nothing can be seen through while the gaps are narrower than a picket. At an end or gate post the pickets cover the post; at a corner one side wraps the corner post. Pickets are cut from the shortest length found in stock in their width (3-1/2" wide: 42" or 6'; 5-1/2" wide: 6' or 8'), two to a picket where two fit, plus the extra you choose — 10% by default, as UFP's worksheet recommends. Fasteners: one per rail for 1×4 pickets, two for wider ones (Viance), 8d hot-dip galvanized nails or 1-3/4" deck screws (Simpson); in treated wood the IRC wants hot-dip galvanized, stainless steel, silicon bronze or copper (R317.3.1).
  • Gates: a leaf about 2" narrower than the opening for the hinges and latch (Adjust-A-Gate), 1" at each post; a pool gate keeps 3/8" at the latch (the gap the Nationwide pool latch asks for), within the 1/2" the pool code allows near the latch. Framed with 2×4 rails at the fence's rail heights and a brace in each panel running from the bottom on the hinge side up to the latch side (Viance), two hinges near the top and bottom and a latch.
  • Pool barriers follow the 2021 International Swimming Pool and Spa Code, Section 305, where IRC 2021 R327.1 sends pools (IRC 2021 Appendix AG, often quoted for pools, is a piping appendix): at least 48" high measured on the side away from the pool (and for 3' out from it), no more than 2" between soil or grass and the barrier's bottom (4" over concrete), no opening that passes a 4" sphere; where the tops of the rails are less than 45" apart the rails go on the pool side and the gaps between pickets are at most 1-3/4" (4" where they are 45" or more apart); gates open outward and are self-closing and self-latching, with an ordinary latch release reached from outside at least 54" up (a self-locking key or code lock no higher than 54"), or the only release on the pool side at least 3" below the top of the gate — and then no opening in the gate, the fence or the gap between them within 18" of the latch over 1/2". The rails face the pool: the inside of a U or closed fence; build a straight or L fence with its rails on the pool side. Your town or state may add rules.
  • The 2021 IRC exempts fences up to 7' high from a building permit (R105.2, read in a county's reprint because ICC's site blocked automated reading); towns amend it (some to 6') and zoning can limit height, style and place; ask about a permit for a pool barrier. 811 asks to be contacted a few business days before any digging. The IRC and ISPSC wording on this page was read in local-government reprints of the 2021 codes. Lengths are checked on the step they are shown (1/16" or 1 mm), rounded up or down to match the exact result, so switching units never changes an answer.

Deck footings

  • The beams and posts are placed exactly as in the deck calculator. Along a beam each post carries the deck halfway to the next post, and the end posts carry out to the edge; across, the beam carries half the joist span plus the overhang past it. On an attached deck the strip next to the house is carried by the ledger.
  • Each footing is sized from IRC Table R507.3.1 for the area its own post carries (or, if you choose, one size for all: the largest footing any post needs, as on the deck page), with interpolation between rows. Past 160 sq ft per post the table ends and the calculator asks for closer posts. Where the posts are taller than 2', DCA 6 braces the corner posts and lets a corner footing drop only to 0.9 of the middle-post footing, so corner footings are held to that; on a beam with only two posts, to 0.9 of the footing a middle post at that spacing would need. The deck calculator applies the same rule.
  • Footings bear at least 12" below undisturbed ground (R507.3.2) and below the frost line your building department sets, whichever is deeper. The IRC requires the frost line (or solid rock, or another approved method) where the deck is attached to a house on frost-protected footings (R507.3.3); AWC DCA 6 asks for it on every deck, and the IRC does not clearly exempt freestanding decks: that is the building official's call. The IRC has no national frost map.
  • DCA 6 asks deck footings closer than 5' to the house foundation to bear at the same elevation as the house footing; the calculator warns when the near edge of a footing is that close. Freestanding decks of 200 sq ft or less, no more than 20" above grade, may sit on precast pier blocks with the joists bearing directly on them (R507.3, exception).
  • Concrete is the pad plus the pier to 2" above grade, by the nominal tube size, divided by the yield of your bag and rounded up once for the whole job. Short piers share 4' tubes. Each post gets a standoff post base (a deck too low for posts gets none); its anchor bolt is listed but not priced. No footing is listed until every post is inside the table, and the framing checks of the deck calculator are repeated here, because fixing the framing can move the holes.

Sources

Board counts and the cut list

Rows are laid from the house outward. A row longer than the longest stock board is split on joist centerlines, and the first joint moves back one or two joists on alternating rows so seams don’t line up. All pieces then go through a best-fit optimizer that tries to cut short pieces from earlier offcuts before opening a new board, and finally swaps each board for the shortest stock length that still holds its cuts. When a group has only a few different piece lengths, the calculator also solves it exactly and keeps whichever plan buys less. The ledger joint is placed on the joist that needs the least stock.