Cable Railing Spacing & Code: Cable, Post & Gap Rules-Railing Guides
Cable Railing Guides · Spacing & Code
Cable Railing Spacing & Code: Cable, Post, and Gap Rules Explained
Cable railing spacing is governed by the guardrail infill rule: under common US residential references, a 4-inch sphere must not pass between the cables. That usually means horizontal cables tensioned roughly 3 inches apart, with intermediate posts close enough that the lines stay taut and cannot spread under pressure. Your local adopted code edition governs the exact figures.
Spacing is the one detail that decides whether a cable railing passes inspection or fails it, because the geometry is what an inspector actually tests. This guide explains the cable spacing rule, how post spacing keeps the lines from bowing, the headline code references for height and gap, and the few differences between residential, commercial, and Australian projects. Where a topic runs deep, we link to a focused guide so you can read further.
Why Cable Railing Spacing Matters Most
Cable railing earns its clean, almost invisible look from the gaps between the lines. Yet those very gaps are what the building code watches most closely. A guardrail exists to stop a person, and above all a small child, from slipping through and falling. Vertical balusters solve that with fixed pickets. Horizontal cable solves it with tension, and tension can relax over time. That is the whole reason cable railing spacing gets such close attention from inspectors and designers.
The result is simple. A cable run that looks crisp on install day can loosen over a season. A loose cable spreads apart when someone leans on it. The gap that measured safe now opens wider than the rule allows. Good spacing is not one number but a balance of three things: how close the cables sit, how firm they are pulled, and how near the posts stand. Get that balance right and the railing stays both lovely and safe for years. Get it wrong and the inspector spots it at once.
The 4-Inch Sphere Rule
The base of all guardrail infill spacing is the sphere rule. Under common US residential references, a 4-inch sphere must not pass through any opening in the guardrail. That one rule covers balusters, glass gaps, and cable lines the same way. The code cares about the opening, not the part that makes it. For cable railing, the sphere has to fail to slip between two cable lines. That forces the cables closer together than many owners first expect.
In practice, designers aim for a cable spacing near 3 inches center to center. A 3-inch gap leaves a margin once you allow for the cable width and the small spread that tension allows. That margin matters, since the inspector tests the built railing, not the drawing. The same 4-inch rule shows up in slightly different forms across editions and regions. So treat the figure as a common reference value. Your local adopted code edition is what really governs, so confirm the current version with your local team before you lock the layout.
Cable Spacing and the Role of Tension
Cable spacing and cable tension cannot be split apart. Knowing why explains most of cable railing design. A horizontal cable, unlike a stiff baluster, can be pushed sideways. When a person leans on the railing, the cables flex, and two lines spread apart. If that spread lets the gap grow past the limit, the railing fails the rule, even though the resting measurement looked perfect. Tension is the force that fights this and keeps the stated spacing honest under real pressure.
Closer spacing therefore needs firm tension, and firm tension needs a frame stout enough to carry the load. Each cable usually ends in a turnbuckle or a threaded fitting that pulls it taut and locks it off. After the system settles, an installer rechecks every line and tunes it again, because cables relax a little in their first weeks. A planned spacing, firm tension, and a recheck schedule together make horizontal cable a sound infill rather than a row of slack wires. We cover the tensioning hardware itself in our wider complete cable railing guide.
Post Spacing and Deflection Control
Cable spacing controls the vertical gaps, but post spacing controls whether those gaps stay closed along the run. The idea is the same one that rules a guitar string: the longer the free span, the more the line bends when you push it. A cable stretched between posts that stand far apart will bow under a leaning shoulder. It opens the gap right where the code does not want it open. Closer posts shorten each span, stiffen every line, and hold the built spacing within limits.
| Element | How it influences spacing compliance |
|---|---|
| End and corner posts | Anchor the full tension of every cable, so they must be the stoutest and most firmly fixed components in the system. |
| Intermediate posts | Guide and divide the cables, shortening each unsupported span so the lines deflect less when someone leans on them. |
| Intermediate spacers | Slim vertical pickets between posts that hold the cables at their designed gap, often used on longer runs to limit deflection. |
Because the inspector measures the built railing under load, designers usually set cable spacing and post spacing together rather than apart. A long, straight run with widely spaced posts may need spacers to hold the lines at their designed gap. A shorter run with closely spaced posts may not. The right mix depends on the cable width, the tension, and the shape of your space. That is exactly why a made-to-order drawing beats a generic kit.
Code References at a Glance
It helps to gather the headline numbers in one place, with the firm reminder that these are common reference values rather than the law for your specific project. The figures below describe widely cited US references for guardrails and handrails, the two systems people most often confuse. A guardrail protects the open edge, while a handrail is the graspable rail you hold while climbing stairs. Cable spacing belongs to the guardrail rules; the handrail figures sit alongside them because most railings combine both.
| Common reference point | Typical US value (confirm locally) |
|---|---|
| Maximum infill gap | A 4-inch sphere must not pass between the cables (IRC residential reference). |
| Residential guardrail height | Around 36 inches above the walking surface under common residential code. |
| Commercial guardrail height | Generally 42 inches under IBC, taller than the residential figure. |
| Graspable handrail height | Commonly 34 to 38 inches above the stair nosing (IRC and ADA references). |
| Guardrail above a drop | Generally required where the drop exceeds roughly 30 inches (IRC reference). |
Treat every figure above as a starting point for a talk with your local building official, never as a fixed rule for your job. Editions change and counties amend them, and a single deck, balcony, or stair may fall under a different rule. The video below compares the main handrail-height numbers across the IBC, OSHA, and ADA. It shows why those numbers sometimes seem to clash.
A plain-English comparison of handrail-height references across the IBC, OSHA, and ADA — useful context for any railing project. Tap to play.
Residential, Commercial, and Australian Differences
The 4-inch sphere rule travels widely, but the figures around it shift with the project type and the country. A private home usually follows the residential references, with a guardrail near 36 inches tall. An office, a shop, or a multifamily hallway usually answers to the IBC. That raises the guardrail to about 42 inches and asks it to carry a heavier load. The cable spacing often stays the same, but the taller guardrail means more cable lines, and so more tensioning hardware across the run.
Australian projects work to a different set of standards. There the National Construction Code and the Australian Standards set the barrier heights and the opening limits. The intent matches the US logic, since both systems guard against a fall and a child slipping through. Yet the exact sizes and the way openings are measured differ. If your project sits in Australia, the NCC and its named standards govern, including AS 1288 where glass forms part of the railing. Wherever the project lives, the safe path is the same: design to the local adopted edition, and confirm it with your local team before you build.
Designing Spacing Into the Drawing
At Double Building Materials, cable spacing is set on the drawing long before any metal is cut. We take your guardrail height, the length and shape of each run, and the code references your project follows. Then we turn them into a working shop drawing. That drawing fixes the number of cables, the gap between them, every post position, and the tensioning hardware as one layout. We cut nothing until you approve it, because spacing that is wrong on paper becomes wrong on site, where a tight cable system leaves little room to fix.
From there we make the posts, the frame, and the fittings, then trial-assemble the system on our 4,500 m² Guangdong floor. That trial build is where we check the spacing, the fit, and the way each fitting lands before anything ships. Once it passes, we crate the system for export in the order your installer will need, with cables, fittings, and posts grouped in a logical way. Your own contractor sets and tensions the cables on site from our drawings, and we can help you find one where local install is available. We do not install on site or sign off local code; that part stays with your local team. You can see the systems we build on our stainless steel cable balustrade page. With 25+ years of factory work across 800+ projects in 60+ countries, we treat the spacing as a precise drawing job rather than a guess on the day.
Cable Railing Spacing FAQ
How far apart should cable railing be spaced?
Designers commonly target a cable spacing near 3 inches center to center, because the code requires that a 4-inch sphere cannot pass between the lines. A nominal 3-inch gap leaves a margin once you account for the cable diameter and the small spread that tension allows under pressure. The exact figure depends on your local adopted code edition, so confirm the current version with your local team.
What is the maximum gap allowed in a cable railing?
The common US residential reference is the 4-inch sphere rule: no opening in the guardrail may let a 4-inch diameter sphere pass through. For horizontal cable that limit applies to the assembled, leaned-on railing, not the resting measurement, so the cables must stay tensioned tightly enough that they never spread past the limit. Your local code governs the precise figure.
How far apart should posts be for cable railing?
Posts are spaced closely enough that the cables cannot bow when someone leans on them, since a long unsupported span deflects more and opens the gap. Many runs therefore keep spans fairly short between sturdy intermediate posts, or add intermediate spacers on longer runs. The right distance depends on the cable diameter, the tension, and the layout, so confirm it with your installer and local team.
Does cable railing pass code inspection?
A correctly designed and tensioned cable system can satisfy common guardrail rules, but the inspector tests the assembled railing rather than the cable on its own. The infill must stop a defined sphere from passing through, the guardrail must reach the minimum height, and the cables must stay tight under load. Your local adopted code edition governs the exact figures, so confirm the current version with your local team.
Is cable railing spacing different on stairs?
Yes, the geometry shifts on a stair, because raked cables follow the slope of the stringer while the sphere rule still applies perpendicular to the cables. That interaction changes the effective spacing along an incline, so a stair flight needs its own careful layout. We work through the raked case in the cable railing for stairs guide.
This is one chapter of the wider complete cable railing guide. From here, see how the same rules apply outdoors in cable railing for decks, and how the geometry changes on a slope in cable railing for stairs. Or browse our full stainless steel cable railing systems.
Double Building Materials draws, manufactures, trial-assembles, crates, and ships your cable railing system. Your own contractor or installer handles on-site installation, cable tensioning, and local code sign-off — we can help you find one where available. The spacing and code values above are common US references (IRC / IBC / ADA / OSHA; AS 1288 / NCC where relevant); your local adopted edition governs, so confirm the current version with your local team. Every system is made to order, so any figures describe drivers, not a quote.
Talk to us on WhatsApp →