Cable Railing Calculator
Premium open-view railing — 11 cables at 3-1/8″ o.c. satisfy IRC R312's 4″ sphere rule on a 36″ guard. DeckMath sizes cable count, total cable LF with tensioning slack, post spacing by diameter (4-6′ o.c.), end-post tension load (typically 2,750 lb for 11 × 1/8″ cables), and end-post reinforcement if your substrate needs it. 5 kit brands × 3 diameters × 4 post substrates. $50-130/lf installed.
Inputs
Railing length
Results
11 cables × 1/8″ (3.2mm) · 3.27″ o.c. · Feeney CableRail · 36″ guard
Panel section · 11 cables @ 3.27″ o.c.
4″ sphere rule — 11 cables at 3.27″ o.c.
IRC R312.1.3.1 + R311.7.8.2.2IRC R312.1.3.1 forbids any 4″ sphere from passing through guardrail openings. 36″ guard ÷ 11 cables = 3.27″ spacing — under the 4″ limit. Stair panels use 12 cables (+1 vs flat) to close the stair-triangle gap per R311.7.8.2.2.
End-post tension load — 2,750 lbs per end post
Manufacturer tension spec + R301.511 cables × 250 lb tension = 2,750 lb at end posts. 6×6 PT wood (recommended for cable rail) handles this load without external reinforcement.
Post spacing — max 4′ o.c. for 1/8″ (3.2mm)
Manufacturer spec13 posts total: 11 flat (max 4′ spans) + 2 stair + 4 end posts under cable tension. Wider posts would deflect mid-run cables visibly. 1/8″ requires the tightest spacing — step up to 3/16″ for wider posts at +50% material cost.
Guard height — 36″ residential (above 30″ off grade)
IRC R312.1.2IRC R312.1.2 — 36″ minimum residential guard. Cable rail meets the height + opening requirements. For decks above 72″ off grade or in commercial-equivalent settings (multi-family, mixed-use), consider 42″ guard with 13 cables — DeckMath has a 42″ option.
Top + bottom rail required for code compliance
IRC R312.1.3.1Cable rail without top + bottom rails would leave a >4″ gap at top (above the highest cable) and bottom (below the lowest cable) — failing the 4″ sphere check. Your config: wood top cap + bottom rail (2×4 or composite). Both are in the BoM.
Feeney CableRail — 25-year limited
Manufacturer warrantySwage end + Quick-Connect adjustable. Industry standard. Pre-stretched 1×19 316 stainless. Push-Lock fitting eliminates swaging — most DIY-friendly cable system. Lifetime hardware.
Cost breakdown
- Materials
- $5,368 – $5,772
- Labor (precision tensioning)
- $1,414 – $1,728
- Soft costs
- $320 – $320
- Subtotal
- $7,103 – $7,821
- Contingency (8%)
- $626
- Project total
- $7,103 – $8,447
- Cost per linear foot (46 lf)
- $154 – $184
2026-Q1 retail pricing. Cable rail labor is higher than baluster rail ($28/lf base) because cable tensioning is a precision step. Re-tension after first year (cable stretches) and every 5 years thereafter. Always verify the manufacturer's spec post + end-post requirements with your local building department — some AHJs require engineer's stamp on cable rail.
How to use
How to use the cable railing calculator in 5 steps.
- 1
Enter your railing length
Open guardrail LF is the total flat horizontal railing (use the Railing Linear Feet Calculator if you don't know your total yet — it converts deck shape + attached sides into LF). Stair LF is the total angled handrail length for all stair sections combined (hypotenuse × stair sides × stair count).
- 2
Pick guard height per IRC
36″ is required for residential decks over 30″ above grade (IRC R312.1.2). 42″ is required for commercial decks and recommended for residential decks over 72″ off grade. Cable count per panel: 11 cables for 36″ guard, 13 cables for 42″ guard — both satisfy the 4″ sphere rule (≤4″ between cable centers).
- 3
Pick cable diameter
1/8″ (3.2mm) — most common, 4′ max post spacing, 250 lb tension target per cable. 3/16″ (4.8mm) — premium aesthetic, wider 5′ spacing, +50% material cost, 350 lb tension. 1/4″ (6.4mm) — commercial/marine, 6′ spacing, +80% cost, 500 lb tension, requires heavy-duty end posts.
- 4
Pick kit brand
Feeney CableRail ($58/lf base) is the industry standard with Push-Lock fittings — most DIY-friendly. Ultra-tec Invisiware ($68/lf) is the premium architectural choice with hidden internal swages. Viewrail ($55/lf) ships pre-cut to spec. Atlantis Rainbow ($52/lf) is budget-premium with swage fittings. Generic kits ($38/lf) work if you verify 316 (not 304) stainless and 1×19 construction.
- 5
Pick post substrate
6×6 PT is the cable-rail standard — 4× stiffer than 4×4 and handles end-post tension without external bracing. 4×4 PT works only if end posts get steel L-bracket reinforcement (Simpson HD7B). Aluminum cable-grade posts ($165 each) are the fastest install. 316 stainless steel posts ($245 each) are commercial-grade for marine/pool/pier applications.
How we calculate
How DeckMath calculates this — IRC 2021 sources.
The Cable Railing Calculator sizes a stainless steel horizontal cable guardrail system — the premium open-view railing that satisfies IRC R312.1.3.1's 4″ sphere rule with 11 parallel cables at 3-1/8″ on-center between a top rail and bottom rail. Pick total open guardrail LF, stair section LF, guard height (36″ residential or 42″ commercial-equivalent), cable diameter (1/8″ standard, 3/16″ premium, 1/4″ commercial), kit brand (Feeney CableRail, Atlantis Rainbow, Ultra-tec Invisiware, Viewrail, or generic), post substrate (4×4 PT + reinforced end posts, 6×6 PT standard, aluminum, or stainless steel), and top-rail style. DeckMath computes cable count per panel + per stair, total cable LF including 5% tensioning slack, post count at the diameter's max spacing (4-6′), the cumulative horizontal tension load on each end post (typically 2,750 lb for 11 × 1/8″ cables), and a BoM with brand-specific termination fittings, end-post reinforcement if needed, and regional labor adjustments. Cable railing typically lands $50-120/lf installed depending on tier — DIY $35-50/lf, mid-market $50-80/lf, premium architectural $80-120/lf.
IRC references
- IRC 2021 R312.1.1 — Guards required on open sides of decks > 30″ above grade
- IRC 2021 R312.1.2 — Guard height 36″ minimum (residential); 42″ above 6′ in commercial/some AHJs
- IRC 2021 R312.1.3.1 — 4″ sphere rule: no opening may pass a 4″ sphere
- IRC 2021 R312.1.3.3 — Stair triangle 4-3/8″ limit (drives +1 cable on stairs)
- IRC 2021 R311.7.8.2.2 — Stair handrail cannot allow 4-3/8″ sphere through bottom-tread opening
- IRC 2021 R301.5 — Guard live load 50 lbs single point (in addition to cable tension)
- ASTM E2353 — Standard test method for performance of glass + cable guardrails
- Manufacturer specs — Feeney/Atlantis/Ultra-tec/Viewrail all spec 4-6′ post spacing by diameter
Cable rail pricing 2026-Q1: Feeney $58/lf base (Push-Lock), Atlantis $52/lf (swage), Ultra-tec $68/lf (invisiware hidden), Viewrail $55/lf (pre-cut), generic $38/lf. Diameter multipliers: 1/8″ ×1.0, 3/16″ ×1.5, 1/4″ ×1.8. Labor $28/lf (precision tensioning). Cable count: 11 @ 36″, 13 @ 42″. Tension targets: 250/350/500 lb per cable by diameter.
IRC R312.1.3.1 forbids any 4″ sphere from passing through guard openings. 36″ ÷ 11 cables ≈ 3.27″ spacing (well under 4″). Top + bottom rail close the top and bottom gaps. Stair sections get +1 cable (12 total for 36″ stair guard) to close the bottom-tread triangle per R311.7.8.2.2.
Vertical center-to-center spacing. For 36″ guard with 11 cables: 36/11 = 3.27″. Many installers use 3-1/8″ for round numbers — 11 × 3.125 = 34.375″ + top/bottom rail = full 36″ guard.
Each cable tensioned to spec lbs creates a horizontal pull on the end post. 1/8″ cable: 250 lb × 11 = 2,750 lb total horizontal load. 3/16″: 350 × 11 = 3,850 lb. 1/4″: 500 × 11 = 5,500 lb. This is why 6×6 posts (or reinforced 4×4) are required — a 4×4 PT post will bow under 2,750 lb of static pull within 1-2 years.
Larger cable can span farther without visible deflection. Manufacturers spec these limits based on cable diameter + tension capacity. Going beyond reduces visual line tightness and increases end-post tension load.
Sum all parallel cable runs. For 40 LF guardrail with 11 cables + 6 LF stair with 12 cables: (40 × 11) + (6 × 12) = 440 + 72 = 512 LF × 1.05 waste = 538 LF cable ordered. Each cable terminates at 2 fittings (1,076 fittings for this example).
Every cable terminates at two posts (one swage end at start post, one tensioner at end post). For 11 cables × 4 panels + 12 × 1 stair = 56 cables = 112 fittings. Feeney's Push-Lock fittings cost $22/pair installed; Ultra-tec's hidden invisiware costs $38/pair.
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
Cable railing questions, answered.
Installed cable railing typically lands $50-120 per linear foot in 2026. DIY tier with generic kit + 6×6 PT posts: $50-75/lf. Mid-market with Feeney + 6×6 PT: $75-100/lf. Premium with Ultra-tec Invisiware + aluminum posts: $95-130/lf. Commercial with 1/4″ stainless tube posts: $120-180/lf. Cable rail is ~30-50% more than composite cap railing and ~40-60% less than tempered glass — premium of the open-view tier without going full luxury.
11 cables at 3-1/8 inches on-center between a top and bottom rail. This satisfies IRC R312.1.3.1's 4″ sphere rule: 36″ ÷ 11 cables = 3.27″ center spacing, well under the 4″ maximum. For a 42″ guard (commercial or above 72″ deck height), use 13 cables. Stair sections need 12 cables (one extra at the bottom to close the stair-tread triangle per R311.7.8.2.2).
6×6 is strongly recommended. A 4×4 PT post can technically be used IF you add a steel L-bracket reinforcement (Simpson HD7B or equivalent) lagged through the post into the rim joist — but only at END POSTS, not mid-run. Without reinforcement, 11 × 1/8″ cables × 250 lb tension = 2,750 lb of constant horizontal pull will bow a 4×4 within 1-2 years. 6×6 PT is 4× stiffer and resists this load without external bracing. Aluminum cable-grade posts ($165 each) also work for any diameter without reinforcement.
Manufacturer-spec'd by cable diameter: 1/8″ cable → 4 feet max o.c.; 3/16″ cable → 5 feet; 1/4″ cable → 6 feet. Going beyond the spec causes visible cable deflection (sag) and increases end-post tension load proportionally. For most residential decks, 1/8″ at 4′ o.c. is the right balance of cost + cable count. If your design needs wider posts for aesthetic reasons, step up to 3/16″ and accept the +50% material premium.
Feeney CableRail ($58/lf) is the safe default — Push-Lock fittings let any DIYer install without a swage tool. Best balance of price + features + warranty (25-year hardware). Atlantis Rainbow Sky ($52/lf) is the budget choice — same 316 stainless cable but requires field swaging (rental $45/day). Ultra-tec Invisiware ($68/lf) is the premium architectural pick — hidden internal swages make posts look like clean drilled holes; spec'd by architects for high-end projects. Viewrail ($55/lf) ships pre-cut to your spec — best for predictable timelines. Generic Amazon kits ($38/lf) save 30-40% but require careful verification of 316 stainless + 1×19 construction.
Cable rail is intermediate-DIY tier. The structural framing (posts + top + bottom rails) is the same as any deck railing — handles by most experienced DIYers. The cable termination work is the precision step: each cable must be cut to length, swaged or push-locked at one end, threaded through posts, tensioned to spec, and finished at the other end. Feeney's Push-Lock and Viewrail's pre-cut kits are DIY-friendly (no special tools). Atlantis + generic kits require a swage tool. Tensioning needs a torque gauge — pulling too tight bows mid-run posts; too loose fails the 4″ sphere test. Allow 1 full weekend for 40 LF of cable rail on a freshly framed deck.
Yes — when installed to manufacturer spec, cable railing passes IRC R312 (4″ sphere rule, 50 lb point load, 36″ minimum height) in all 50 states. Some local AHJs require an engineer's stamp on cable rail (especially in CA, FL, and oceanfront jurisdictions) because tension load on end posts is non-trivial. Check with your local building department before ordering. Cable rail has been formally code-approved since the 2012 IRC; older houses sometimes have grandfather-approved 'wide-spaced cable' designs that would not pass today's 4″ sphere check.
Manufacturer spec by diameter: 1/8″ cable → 250 lbs target tension; 3/16″ → 350 lbs; 1/4″ → 500 lbs. Feeney provides a Cable-Stretching Tool that pulls to spec automatically; Atlantis and generic kits require a calibrated turnbuckle approach. Under-tensioned cables fail the 4″ sphere check (a strong push on the middle cable lets a 4″ ball through). Over-tensioned cables permanently deflect mid-run posts inward. Re-tension annually for the first 2 years (cable stretches initially) and every 5 years thereafter.
316 stainless steel cable is rated for 50+ years outdoors when properly maintained. The cable itself never needs replacement under normal residential use. What WILL need attention: post finish (re-stain wood every 3-5 years, re-paint aluminum if scratched), termination fittings (Feeney and Ultra-tec offer lifetime hardware warranties; generic kit fittings may corrode in 10-15 years in coastal/saline environments), and cable tension (re-tension every 5 years). Total system life: 50+ years on the cable, 20-30 years on the post substrate before any major refresh.
Code-compliant cable rail (11 cables on 36″ guard, properly tensioned, ≤4″ spacing) is just as safe as baluster railing — both satisfy the same 4″ sphere rule. However: cable rail has a 'climbability' concern with small children. Horizontal cables CAN be used as a ladder. The 2021 IRC removed the explicit anti-climb provision for residential decks, but some jurisdictions (especially California) still require an 'anti-climb' alternative pattern. If you have young children, consider 3/16″ vertical cables in a tighter pattern, or stick with composite cap + baluster. Pets are no concern — typical cable spacing is too tight for any pet to pass through.
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.
<!-- Cable Railing Calculator — free embed by DeckMath --> <a href="https://deckmath.com/calculators/cable-railing-calculator" data-deckmath-calc="cable-railing-calculator" data-theme="auto">Free Cable Railing 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