How a code-compliant cable railing actually gets built
Cable railings look like they shouldn't meet code — yet properly tensioned ones do. Watch posts → terminal swage fittings → threaded cables → ~200 lb tensioning → the IRC 4-inch sphere test in action.
- Matte-black aluminum post system, base-plated
- Swage studs + threaded receivers (terminal hardware)
- 10 × 1/8″ 316 stainless cables at ~3″ o.c.
- ~200 lb tensioning + IRC R312.1.3 sphere test
- Wood-post systems (more deflection, tighter spacing)
- Stair cable runs (sloped-hole drilling)
- Vertical cable orientation (less common)
- Post-to-deck base attachment hardware
Plan your cable railing
Cable railing FAQ
Do cable railings actually meet code?
Yes — when properly designed and tensioned. IRC R312.1.3 requires that a 4-inch rigid sphere not pass between any guard infill members. For horizontal cables that means cables spaced no more than ~3 inches apart (to leave less than 4″ between them when a 50-lb load deflects two adjacent cables). Properly tensioned 1/8″ 316 stainless cables at ~3″ on-center pass the test. Under-tensioned cables, however, deflect enough that the sphere passes — which is why tensioning to spec (typically ~200 lb per cable) is the critical compliance step.
How many cables do I need for a 36″ guard?
For a 36-inch guard height (IRC R312.1.2 minimum for residential decks above 30″), you need 10-13 horizontal cables spaced 3″ on-center. The first cable sits ~2″ above the deck surface and the last sits within ~3″ of the top rail. Total ~10 cables for a clean 36″ guard, more for 42″ commercial guards. Vertical cable runs (less common) use the same 4″ sphere rule but with closer cable-to-post spacing.
What's the difference between 1/8″ and 3/16″ cable?
1/8″ (3.2mm) cable is the residential standard — strong enough for 200-lb tensioning over 30-50 ft spans, thin enough to nearly disappear visually. 3/16″ (4.8mm) cable is the commercial / long-span standard — needed for runs over 50 ft where 1/8″ cable would deflect too much under the 4″ sphere test. Always use 7×7 strand construction (49 wires per cable) for residential, 7×19 (133 wires) for premium installations. Always 316 grade stainless near saltwater; 304 grade is fine for inland.
How far apart can the posts be on a cable railing?
Maximum 4 feet on-center for 1/8″ cable, 6 feet for 3/16″. Beyond that, the cables deflect too far between intermediate posts under the 50-lb 4″ sphere test. Intermediate posts are critical — they're not just structural, they're code-compliance hardware. If you space them too far you'll fail an inspection regardless of cable tension. Corner posts and end posts (which carry the tension load) need to be substantially beefier: 2″ × 2″ × 1/4″ wall aluminum minimum, or 4×4 cedar/PT for wood systems.
How is cable tension applied — by hand or with a tool?
Always with a tool. ~200 lb of tension per cable is roughly what an adult can pull standing on a deck, but consistent tension across 10+ cables requires a swage tool, lever tensioner, or torque-spec wrench on the threaded receivers. Most kits ship with a swage tool that crimps swage studs onto the cable ends; threaded studs at the receiver end are then wrenched to spec. Under-tensioned cables fail the 4″ sphere test even when spacing looks correct on paper.
What does a cable railing cost installed?
$70-110 per linear foot installed for a code-compliant 36″ system with aluminum posts, 1/8″ 316 stainless cables, and a wood or composite top rail. Premium frameless systems with stainless posts run $130-180/lf. Aluminum + cable is ~3-4× the cost of wood balusters but ~half the cost of frameless glass. The premium is mostly the hardware count (10 swage fittings per end post × 10 cables × multiple post pairs adds up fast).
Can cable railings be used on stairs?
Yes, but with extra care. Stair guards must also satisfy IRC R312.1.3 — and the 4-inch sphere becomes a 4-3/8″ sphere on stair sections per the same code. Cables must track the stair slope (typically requiring intermediate-post cable holes drilled on the same angle). The vertical drop from top rail to first cable matters more on stairs because gravity actively pushes cables down — extra tensioning and tighter cable spacing (often 2.5″ o.c. instead of 3″) compensates.
- Under-tensioning — cables look straight at install but deflect past 4″ under the 50-lb sphere test. Inspector fails the deck. Re-tension to spec, not by feel.
- Wood posts on long spans — 4×4 wood posts deflect inward under 100+ lb of total cable tension on 6+ cable systems. Posts bow visibly within months. Use ≥ 2″×2″ × 1/4″ wall aluminum or 4×6 PT minimum.
- 304 stainless near saltwater — pitting + rust appears within 2-3 years. Always 316 grade within 1 mile of saltwater (Florida, coastal CA/OR, Gulf Coast).
Embed this animation on your site
Free to embed on contractor sites, blogs, WordPress, Webflow — anywhere HTML works. Theme matches the parent page automatically. Script mode includes a do-follow backlink.
<!-- Cable Railing Tension animation — free embed by DeckMath --> <a href="https://deckmath.com/animations/cable-railing-tension" data-deckmath-animation="cable-railing-tension" data-theme="auto">Cable Railing Tension animation by DeckMath</a> <script src="https://embed.deckmath.com/v1.js" async></script>
Each embed shows a small “DeckMath” logo + link in the corner. Backlinks help us keep this free.