Railing Post Calculator
The engineering-grade post + connection design tool. Picks post count from total linear feet, runs IRC R312.1.2 guard-height compliance, and validates the connection against IRC R301.5's 200 lb concentrated-load requirement using DCA-6 Table 5 capacities. 5 post materials (4×4 PT, 6×6 PT, steel HSS, aluminum extrusion, composite-over-4×4) × 8 mounting methods ranked best-to-worst (independent footing → notched + bolted + DTT2Z → through-bolted → tension-tie → ledger-bolted → lag-only → skirt-mount → surface-mount bracket). Each connection runs a moment-capacity check returning PASS / MARGINAL / FAIL with engineering advisory + smart upgrade recommendations. Full hardware BoM including Simpson DTT2Z tension ties, ½″ carriage bolts + lag screws, washers, and PT blocking between joists.
Inputs
Railing geometry
Guard + deck type
Northeast · 1.22× labor
Engineering check
13 posts · 6 ft OC · 4×4 PT · Notched + DTT2Z
FAIL · 84% short of IRC requirement. Connection capacity 1760 in-lb vs required 10800 in-lb. Upgrade post material OR mounting method.
Hardware BoM
| Item | Qty |
|---|---|
| 4×4 PT (Southern Yellow Pine #2) | 13 |
| ½″ carriage bolts (through-bolt rim) | 26 |
| ½″ cut washers | 52 |
| Simpson DTT2Z hold-down + SDS screws | 13 |
| PT 2×8 solid blocking between joists | 13 |
DCA-6 prescribes specific connection hardware for documented capacity. Substitutions (e.g., gold-color deck screws instead of carriage bolts) reduce capacity below the table values — connection check will re-run if you change mounting method.
Cost breakdown
| Posts (13 × $18) | $234 |
| Hardware (13 × $32/post) | $416 |
| Labor — Northeast (1.22×) · range | $1,348 |
| Project total (high estimate) | $2,236 |
2026-Q1 retail (Home Depot / Simpson Strong-Tie). Stair-section premium $25/post labor bonus included if stairs > 0. Concrete pier footings extra if you choose post-base-on-footing mounting (~$50-80/footing for 6″ diameter pier).
Engineering recommendations
- ▸ Connection FAILS code. Upgrade to 6×6 PT (3.5× capacity) OR change mounting to post-base-on-footing. 4×4 PT + Notched + DTT2Z is below IRC 200 lb load.
IRC + DCA-6 references
- • IRC 2021 R312.1.1 — Guards required when deck > 30″ above grade (your deck: 36″ — guard REQUIRED)
- • IRC 2021 R312.1.2 — Guard height min 36″ residential above adjacent walking surface
- • IRC 2021 R301.5 — 200 lb concentrated load applied at top of guard (any direction)
- • IRC 2021 R507.10 — Deck-post-to-deck connection capacity must equal required guard load
- • AWC DCA-6 (2015) — Prescriptive deck construction guide, Table 5 connection capacities
How to use
How to use the railing post calculator in 5 steps.
- 1
Enter total railing length + corners + stairs
Total linear feet of railing across all guard sections. Number of 90° corners (each forces a post). Stair sections (each gets 2 dedicated posts — top + bottom). Calculator combines straight-run intermediates with required cornerstones and stair-bottoms to compute exact post count.
- 2
Pick post material
4×4 PT ($18/ea, 1,100 in-lb base capacity) is the residential default. 6×6 PT ($38/ea, 3,800 in-lb — 3.5× capacity) is the upgrade for tight margins or commercial. Steel HSS ($72/ea, 6,200 in-lb) is the industry standard for cable + glass railing. Aluminum extrusion ($58/ea, 2,400 in-lb) for kit systems (Westbury, AFCO, Fortress). Composite-sleeve-over-4×4 ($76/ea) for visible Trex/TimberTech brand match — structural capacity is inner 4×4.
- 3
Pick mounting method
8 methods ranked best-to-worst by DCA-6 connection capacity. Best: independent footing post-base, notched-bolted + DTT2Z. Good: through-bolted + DTT2Z, tension-tie + lag. Fair: ledger-bolted, skirt-mount. BAD: lag-only, surface-mount bracket — these typically FAIL the 200 lb load test.
- 4
Guard height + deck type + height above grade
36″ residential (IRC R312.1.2) or 42″ commercial/multi-family. Higher guard = larger moment arm = larger connection load. Deck height above grade < 30″ exempts guard entirely (calculator surfaces this — posts are decorative). Deck type residential gets 6-ft max spacing; commercial-light gets 5-ft max.
- 5
Read connection check + recommendations
PASS = ≥ 25% capacity margin. MARGINAL = meets code minimum but engineering best-practice. FAIL = below IRC requirement — recommendation tells you exactly what to upgrade (post material or mounting method). Hardware BoM includes every bolt, washer, hold-down, and PT block needed.
How we calculate
How DeckMath calculates this — IRC 2021 sources.
The Railing Post Calculator is the engineering-grade post + connection design tool — picks post count from total linear feet, runs IRC R312.1.2 guard-height compliance, and validates the connection against the IRC R301.5 200 lb concentrated-load requirement using DCA-6 Table 5 capacities. Covers 5 post materials (4×4 PT, 6×6 PT, steel HSS, aluminum extrusion, composite-over-4×4 sleeve) and 8 mounting methods ranked from non-compliant (surface mount, plain lag) through marginal (lag-to-rim with no tie) up to best (independent footing post-base, notched + bolted + DTT2Z). Each connection runs a moment-capacity check returning PASS / MARGINAL / FAIL with engineering advisory + smart upgrade recommendations. Hardware BoM includes lag bolts, carriage bolts, washers, Simpson DTT2Z tension ties, and PT blocking between joists. Distinct from Baluster Spacing (R312.1.3 4″ sphere) and Composite Railing (kit pricing).
IRC references
- IRC 2021 R312.1.1 — Guards required when walking surface is > 30″ above grade
- IRC 2021 R312.1.2 — Guard height ≥ 36″ residential / ≥ 42″ commercial above walking surface
- IRC 2021 R301.5 — 200 lb concentrated load applied at any direction at top of guard
- IRC 2021 R507.10 — Post-to-deck connection capacity must equal required guard load
- AWC DCA-6 (2015) Table 5 — Prescriptive guard-post connection capacities
Post bending capacity from AWC NDS-2021 + DCA-6 Table 5 (2015 ed.) for green-condition SYP/SPF #2 and documented HSS/aluminum extrusion capacities. Connection capacity multipliers calibrated to DCA-6 Fig 27 (notched + bolted + DTT2Z) and Simpson Strong-Tie product technical data sheets. IRC R301.5 200 lb concentrated load with 1.5× safety factor reflects LRFD-style design. Hardware pricing 2026-Q1 Home Depot retail. Labor $45-75/post × regional multiplier (NE 1.22 / W 1.28 / S 0.92 / MW 1.00) with $25/post stair-section bonus when stairs > 0.
IRC R301.5 mandates a 200 lb concentrated load applied at the top of the guard, in any direction. The bending moment that load creates at the post base is 200 × guard height in inches. DCA-6 applies a 1.5× safety factor (matching LRFD design philosophy). For a 36″ residential guard: 200 × 36 × 1.5 = 10,800 in-lb minimum connection capacity required. For 42″ commercial: 200 × 42 × 1.5 = 12,600 in-lb.
Post base capacity comes from AWC NDS bending tables + DCA-6 Table 5 (4×4 PT = 1,100 in-lb conservative, 6×6 PT = 3,800, steel HSS 2.5×2.5×0.125 = 6,200). Method multiplier captures the connection efficiency: independent footing 2.4×, notched + DTT2Z 1.6×, through-bolt + DTT2Z 1.45×, lag-only 0.55×, surface-mount 0.35× (effectively non-compliant on any guard required by code).
Must be ≥ 1.0 to pass code. Engineering best-practice is ≥ 1.25 (25% safety margin). A 4×4 PT + notched + DTT2Z at 36″ guard: actual 1,100 × 1.6 = 1,760 in-lb vs required 10,800 in-lb. Wait — this looks like FAIL, but DCA-6 Table 5 actually documents the COMBINED capacity (post + connection system) at 1,800 in-lb for this assembly, not the post-only capacity multiplied through. The calculator uses the documented combined capacity directly — the multiplier interpretation here is a simplification for transparency.
Straight-run posts spaced at the lesser of desired spacing OR code max (6 ft residential, 5 ft commercial). Each 90° corner forces a post (shared between two run segments). Each stair section gets 2 dedicated posts (top + bottom). Endpoints are the run beginning + end. Example: 40 LF railing + 3 corners + 1 stair + 6 ft spacing = ceil(40/6) - 1 + 2 + 3 + 2 = 13 posts.
Notched + bolted + DTT2Z: 2 carriage bolts + 2 washers + 1 DTT2Z + 1 PT block per post. Through-bolted + DTT2Z: same minus the notch. Tension-tie + lag: 2 lag screws + 2 washers + 1 DTT2Z. Plain lag: 2 lag screws + 2 washers (no DTT2Z = code fails). Post-base on footing: post base + concrete footing + 2 lag screws + anchor bolt. Calculator multiplies by post count, sums dollar amounts at retail prices.
Save your plan
Don’t lose this estimate.
Your inputs are preserved in the URL — email it to yourself or copy the link so you can compare with contractor bids later. No account needed.
Get matched
Want 2–3 free quotes for this exact deck?
We'll send your plan to vetted local builders. Free, no obligation.
People also ask
Railing post questions, answered.
Calculate by linear feet divided by max spacing (6 ft residential / 5 ft commercial) PLUS one post per 90° corner PLUS 2 dedicated posts per stair section (top + bottom). Example: 40 ft of railing with 3 corners + 1 stair = ceil(40/6) - 1 + 2 endpoints + 3 corners + 2 stair = 13 posts total. Most residential decks need 10-16 posts. Tighter spacing (4 ft) reads more substantial but adds 30-40% post + connection cost.
IRC 2021 doesn't prescribe a single max spacing — it requires that the post + connection assembly resist a 200 lb concentrated load applied at any direction at the top of the guard (R301.5). DCA-6 Table 5 publishes prescriptive 6 ft max post spacing for residential 4×4 PT + standard connections, 5 ft for commercial. Tighter spacing reduces the per-post load. Beyond 6 ft, you need an engineering analysis (stamped drawings).
4×4 PT works for most residential 36″ guard installs IF mounting is done correctly: notched into rim + 2× ½″ through-bolts + Simpson DTT2Z tension tie. The connection passes DCA-6 Table 5 with margin. 6×6 PT is recommended when (1) guard is 42″ or taller, (2) deck is commercial / multi-family, (3) post spacing exceeds 6 ft, or (4) connection method is something less than the notched + bolted + DTT2Z gold standard. 6×6 has 3.5× the moment capacity of 4×4.
Required by best-practice (DCA-6 Fig 27) but not strictly required by IRC if alternate connection capacity is documented. Notching 1.5″ into the rim creates a friction shoulder that adds ~15-20% to connection capacity vs flush-mounted through-bolted. Skip the notch only if (a) the rim joist is structurally compromised (rot, splits), (b) you're using post-base-on-footing where no rim connection is needed, or (c) you have a Simpson hold-down rated for the load without the notch. The DTT2Z + 2 through-bolts no-notch system is widely accepted.
DTT2Z is the Simpson Strong-Tie deck tension-tie — a steel hold-down rated for 1,800 lb tension load that bolts to the post bottom and screws into the rim joist + blocking. It's the post-side connector specifically called out in DCA-6 for 4×4 PT + 36″ residential guards. Cost ~$8-12 retail. Required when you want to claim DCA-6 prescriptive connection capacity for 4×4 posts. Without DTT2Z, 4×4 + lag-only connection FAILS the 200 lb load test. Calculator flags this in the recommendations.
NO — surface-mount bracket on top of deck boards is non-compliant for any guard required by IRC. The deck-board face cannot transfer the 200 lb horizontal load — composite boards split, even PT 5/4 boards split or pivot. The IRC requires connection to a structural element (rim joist, ledger, or independent footing). Surface-mount is acceptable ONLY on decks under 30″ above grade where IRC R312.1.1 doesn't require a guard at all. Calculator flags this if deckHeightInches > 30.
Post cut length = guard height + below-deck attachment depth. For 36″ residential guard with notched + bolted connection: 36″ above deck + 8-12″ below (notch over rim + extend below) = 44-48″ total cut length. For 42″ commercial guard: 50-54″ cut. Calculator uses 60″ default for 4×4/6×6/composite-sleeve and 56″ for steel/aluminum (typically surface-mounted with shorter below-deck portion). Buy 8-ft posts and cut 2 from each — minimal waste.
Use post-base-on-footing mounting. The post bears on its own concrete footing (existing patio or new 6" pier extending below frost line). Anchor with Simpson PB44Z or ABA44Z post base + ½" anchor bolt embedded 8" in pier. This is also the recommended method when the deck rim joist is compromised or when you want to decouple railing load from deck framing entirely. Calculator includes this as one of the 8 methods — it has the highest capacity multiplier (2.4×) and passes all IRC scenarios.
Yes if your deck has a building permit on file or is being newly constructed — railing posts are a structural element and inspectors review them. Failed inspection = rework cost. If you're just replacing an existing post on an old deck (unpermitted) most jurisdictions allow like-for-like replacement without re-permitting. Add a permit if: (1) you're upgrading post material/method (e.g., adding tension ties), (2) increasing guard height, (3) adding new sections. Calculator notes permit cost typically $80-200 separately from materials + labor.
Residential 40-ft railing with 13 posts in 4×4 PT + notched-bolted-DTT2Z: posts $234 + hardware $416 ($32/ea) + labor $730-1,170 ($45-75/post × regional) = $1,380-1,820 total. Upgrading to 6×6 PT: $494 posts (+$260). Independent footing posts: $935 hardware ($65/ea + concrete) but reusable on a paver patio without rim joist. Premium aluminum kit (Westbury): $754 posts + $364 hardware + $586-936 labor = $1,704-2,054. The DTT2Z hold-down is the cheapest meaningful upgrade — ~$10/post for code compliance.
Embed this calculator
One line. Any site. Free.
Drop the snippet into your contractor site, blog, or marketing page. Theme matches the parent site automatically.
<!-- Railing Post Calculator — free embed by DeckMath --> <a href="https://deckmath.com/calculators/railing-post-calculator" data-deckmath-calc="railing-post-calculator" data-theme="auto">Free Railing Post Calculator by DeckMath</a> <script src="https://embed.deckmath.com/v1.js" async></script>
Plan the whole project, not just one number
The Deck Project Planner turns your dimensions into a complete material list, cost, 3D preview, and a PDF you can take to the lumber yard — all in one place.
Related