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
Three steps. Permit-ready output.
- 01
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).
- 02
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).
- 03
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.
- 04
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.
- 05
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
The math, fully transparent.
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.
Frequently asked
Questions, answered.
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.
<!-- Drop into any HTML, WordPress, Webflow, or contractor site -->
<script src="https://embed.deckmath.com/v1.js"
data-deckmath-calc="cable-railing-calculator"
data-theme="auto"
async></script>Related