Decks & Fences: Calculators, Diagrams & Guides
3 calculators · 9 diagrams · 5 guides
Outdoor framing fails in public: a sagging deck or leaning fence is visible from the street, and both usually trace to the takeoff stage — joists spanned too far, posts set too shallow, or footings sized by optimism. The calculators here produce the full structural list for a deck (joists with hangers, beams, posts, footing concrete, decking boards with fastener counts) and a fence (posts by spacing, rails, pickets, gate hardware, and concrete per post hole), plus the stain and sealer gallons to finish either one.
The diagrams show the anatomy: ledger flashing and fastening (the detail behind most deck collapses), joist span and spacing relationships, post-to-beam connections, frost-depth footing sections, fence post depth at one-third of exposed height, and gate bracing geometry that keeps a gate square through years of daily swinging and seasonal wood movement.
Span tables and fastening schedules follow the IRC and the American Wood Council’s DCA 6 deck guide; stain coverage follows the manufacturers’ published rates by wood porosity and coat count. The deck, fence, and deck-stain calculators are all free with no signup, and each one links to its full construction guide plus video tutorials covering wood privacy, chain-link, and split-rail fence builds from layout to gate hanging.
Decks & Fences calculators
- Deck CalculatorCode-compliant deck framing, decking, footings, ledger, stairs & railing — built on 2021 IRC R507 and AWC DCA 6 tables. Free, no signup.
- Deck Stain CalculatorInstantly calculate deck stain gallons by wood type—cedar, pine, composite. Covers surface, railings & stairs separately. Free, fast, no signup needed.
- Fence CalculatorInstantly calculate fence posts, rails, pickets & concrete for wood, vinyl & chain link fences. Follows IRC post-spacing standards. Free, no signup.
Guides & references
Decks & Fences · 9 diagrams
- Decks & Fences
How deep a fence post goes — below the frost line, on a gravel base, set in crowned concrete
A fence post needs more than a couple feet of concrete: dig below the frost line so it can’t heave, set the post on a 6″ gravel drainage base, and crown the concrete above grade to shed water. About ⅓ of the post is buried.
- Decks & Fences
Fence post spacing — 8 feet on-center maximum, measured center to center
Fence posts sit a maximum of 8 ft on-center because rails come in 8-ft lengths — and that span is measured center-to-center, not gap-to-gap. Sections = length ÷ 8 ft, rounded up; corner and end posts are heavier than line posts.
- Decks & Fences
Which way a fence gate brace goes — bottom hinge corner up to the top latch corner
The #1 gate mistake: a wood brace only works in compression. Run it from the bottom hinge corner up to the top latch corner so the weight loads into the bottom hinge. Run it the other way and the brace is in tension — the gate sags and won’t latch.
- Decks & Fences
Parts of a deck frame — how load travels from the decking down to the footings
How a deck carries its load to the ground: decking → joists → the ledger (at the house) and the beam → posts → footings below the frost line. The joist can cantilever past the beam up to about ¼ of its span.
- Decks & Fences
Deck joist span vs. spacing — how far each joist size reaches at 16″ and 24″ on-center
Span and spacing are different measurements: spacing is center-to-center across the joists; span is how far each joist reaches from ledger to beam. A bigger joist — or tighter spacing — spans farther (IRC R507.6, Southern Pine #2).
- Decks & Fences
Deck ledger flashing and lateral connection — how to attach a deck so it cannot rot or pull off
A rotted or under-fastened ledger is the #1 cause of deck collapses. Flash it in order — membrane behind the ledger, ledger through-bolted to the band joist, then cap flashing tucked behind the house wrap so each layer laps the one below — and add the lateral ties that resist pull-off.
- Decks & Fences
Deck stain opacity — clear to solid, and the grain-versus-protection trade-off
Picking a deck stain is really picking opacity, and opacity is a trade-off. Clear and semi-transparent stains show the wood grain but fade in ~1–3 years; semi-solid and solid stains hide more grain but carry the most UV pigment, so they last ~3–5 years between recoats.
- Decks & Fences
Why a gallon of deck stain covers less than the label says — wood, age, and texture
The label coverage rate is only the best case — new, smooth wood. Real coverage = label rate ÷ (surface texture × wood condition). Weathered gray wood and rough-sawn boards drink far more; a previously stained maintenance coat covers more. A second coat covers ~2× the first.
- Decks & Fences
A deck is more than its floor — railings, stairs, posts, and the underside all add up
The floor is only the start. A spindled railing coats every side of every baluster (~1.8× its face), stairs add a tread plus a riser per step, posts get all four sides, and staining the underside + joists roughly doubles the floor. Measure only the floor and you under-buy.
Frequently Asked Questions
How far apart should deck joists be?
Sixteen inches on center is the standard for wood decking; 12 inches for diagonal decking or many composite products (check the brand’s span chart). Joist size then sets the allowable span — a 2×8 southern pine joist at 16 inches on center spans about 11 feet 10 inches per DCA 6. The deck calculator pairs spacing and span automatically.
How deep should fence posts be set?
One-third of the above-ground height, minimum 24 inches, and below frost line where the ground freezes — a 6-foot privacy fence wants posts about 3 feet down in a hole three times the post width. The fence calculator figures both the digging and the concrete bags per hole from those rules.
How much stain do I need for my deck?
Divide the total square footage — deck surface plus railings, stairs, and skirting, which people forget — by the product’s coverage rate, typically 150 to 300 sq ft per gallon depending on wood porosity and whether it is a first or second coat. The deck stain calculator itemizes each surface so the rail linear footage does not ambush you mid-project.
Do deck footings need to be below frost line?
Yes, anywhere the ground freezes — frost heave will lift a shallow footing and rack the whole structure. Frost depth is set by your local code (from 12 inches in the South to 48 or more in the far North; your building department publishes the number). Diameter then comes from tributary load, which the deck calculator works out per post.