Skip to content
Independent home-inspection guidance. We are not affiliated with the prior occupant of this domain.
Find an inspector

Deck Railing: Height, Baluster Spacing and Loose Posts

By InspectandTest Editorial Team Published October 4, 2026

We may earn commission from links on this page. Lead-form submissions are forwarded to local inspector partners. How we research and review.

Photo via Unsplash by Proper Construction

A deck railing has one job that matters far more than how it looks: keeping people from falling off the deck. Railings are leaned on, sat on, pushed by kids and hit with patio furniture, and they live outdoors through hail, snow, intense high-altitude sun and freeze-thaw cycles. Over years, posts loosen, fasteners corrode, and wood rots at the base where water collects, often without much visible warning. This guide explains the common residential code figures for guard height and baluster spacing, how railing posts are attached and why that matters, the main railing materials and their trade-offs, how railing problems connect to larger deck issues like ledger failures, and what to expect for repair and replacement costs. Code figures here are general; local building departments adopt and amend codes, so the jurisdiction’s current rules control any real project.

How High Does a Deck Railing Need to Be?

Most U.S. jurisdictions base residential deck rules on a version of the International Residential Code. Under the commonly adopted figures, a guard is typically required along open sides of a deck, porch or balcony where the walking surface is more than 30 inches above the floor or grade below, measured at any point within a short horizontal distance from the edge. Where a guard is required, the common minimum height for residential decks is 36 inches, measured from the deck surface to the top of the guard.

Some jurisdictions require taller guards, such as 42 inches, which is also a common figure for commercial and multifamily construction. Many homeowners choose 42 inches on high decks simply because it feels more secure. Stair guards and handrails follow their own height rules, which are measured from the nosing of the stair treads rather than from a flat surface.

Low decks that sit less than 30 inches above grade may not require a guard at all under typical code language, though grade can drop away from a deck, so a low deck at the house can be well over 30 inches at its outer edge. Measuring at several points is the only way to know.

Baluster Spacing and the 4-Inch Sphere Rule

The infill below the top rail, whether balusters, cable, glass or panels, has to stop small children from slipping through. The common residential code figure is that openings in a required guard must not allow passage of a 4-inch-diameter sphere. In practice, that means the clear gap between balusters is usually built at a little under 4 inches so normal wood shrinkage and slight bowing do not push the gap over the limit.

Two related details often catch homeowners and inspectors’ attention:

  • The bottom gap. The space between the deck surface and the bottom rail is often allowed to be somewhat larger under typical code language, but many builders keep it small anyway to prevent toys, pets and feet from passing under.
  • Stair triangles. The triangular opening formed by a stair tread, riser and the bottom rail of a stair guard has its own size rule in many codes, typically larger than 4 inches.

Child safety is the reason for these figures. The U.S. Consumer Product Safety Commission’s childproofing guidance recommends window guards and safety netting to help prevent falls from windows, balconies, decks and landings, and advises checking those devices frequently to make sure they are secure and properly maintained. Older decks built before current rules were adopted may have wider baluster gaps or horizontal rails that children can climb like a ladder. Those may have been legal when built, but they are still worth correcting where young children use the deck.

Loose Railing Posts: Why They Happen

A wobbly railing post is the most common deck railing complaint. The post may move an inch or more when pushed, or the top rail may shift between posts. Causes usually fall into a few categories.

How Posts Are Attached

Railing posts for wood decks are commonly fastened to the outside of the rim joist or to the inside of it, with the rail load transferred into the deck framing. The strongest common approaches use through-bolts that pass all the way through the post and the rim joist, often combined with blocking or manufactured hardware that ties the rim joist back to the adjacent joists. Without that tie-back, a rim joist can twist outward under load even if the post bolts are tight.

Weaker approaches include:

  • Lag screws only. Lags can loosen as wood shrinks and swells and do not resist pull-out as well as through-bolts.
  • Notched posts. Notching a 4×4 post so it sits flush over the rim joist removes about half the wood at the most stressed point. Many deck guides discourage notching 4×4 guard posts for that reason.
  • Posts nailed to decking only. Posts that sit on top of the deck boards, attached with toenails or small brackets, can rarely resist a person leaning hard.

Wood Movement and Fastener Corrosion

Wood shrinks as it dries, especially in Colorado’s low humidity, and bolts that were tight when installed can loosen within a season or two. Fasteners also corrode, particularly where older galvanized hardware meets treated lumber. Re-tightening through-bolts and replacing corroded fasteners is often part of routine deck maintenance.

Rot at the Post Base

Water collects where the post meets the rim joist and where the post’s end grain sits near the deck surface. Over years, that area can rot from the inside while the visible surfaces look sound. Probing the post base and the rim joist behind it with an awl or screwdriver can reveal soft wood. Our guide to wood rot repair explains when damaged wood can be repaired and when the post, and possibly the rim joist, need replacement.

Stair Railings on Decks

Deck stairs need their own attention. Typical residential code language calls for a graspable handrail on stairs with a certain minimum number of risers, mounted within a specified height range above the tread nosings, and returning to a post or wall at the ends so sleeves and bags do not catch. Wide, flat 2×6 top rails that are common on deck guards are often not considered graspable handrails, so stairs may need a separate handrail.

Stairs are where many falls happen. The CDC notes that falls are the leading cause of injury death among adults 65 and older, and that falls can be prevented. A solid, graspable handrail on deck stairs is one of the simplest prevention measures. Our guide to stair railing height covers handrail and guard heights in more detail, including indoor stairs.

Deck Railing Materials Compared

Railing material affects cost, maintenance, safety and how the deck looks for decades.

Pressure-Treated Wood

Pressure-treated pine or fir is the least expensive and most common choice. It is easy to build on site and can be painted or stained, but it checks, warps and needs regular refinishing. EPA notes that before 2004, wood treated with chromated arsenicals (CCA) was used in residential structures such as decks and playsets, and that manufacturers voluntarily stopped producing CCA-treated wood for homeowner uses in December 2003. EPA does not require removal of existing CCA structures, but it advises wearing goggles and a dust mask when sawing such wood, washing hands after handling it, and never burning treated wood. Replacing old railings on a deck built before 2004 is a reasonable time to follow those precautions.

Cedar and Redwood

Naturally decay-resistant species look attractive and cost more than treated lumber. Their decay resistance comes mostly from heartwood, and they still need finishing and maintenance to slow weathering.

Composite and PVC

Composite and cellular PVC railing systems are sold as kits with posts, sleeves, rails and balusters designed to work together. They resist rot and do not need staining, but they cost more and their structural performance depends on following the manufacturer’s installation details exactly, including the post mounting method and the internal post or reinforcement. Mixing parts from different systems or skipping reinforcement can leave a railing that looks fine and fails under load.

Aluminum and Steel

Powder-coated aluminum railings are light, durable and low maintenance, with slim balusters that preserve views. Steel railings are strong but must be protected from rust. Both are usually installed as engineered systems with specific post mounts.

Cable Railing

Stainless steel cable railings are popular in Colorado for keeping mountain or open-space views clear. They have two particular concerns:

  • Tension. Cables must be kept tight enough that the 4-inch sphere cannot be pushed between them when the cable deflects. That requires stiff end posts, intermediate supports at the spacing the manufacturer specifies and periodic re-tensioning. Wood posts can shrink or bow and loosen the cables over time.
  • Climbability. Horizontal cables can act like a ladder for small children. Some jurisdictions restrict horizontal infill or have specific rules for it, so checking with the building department before installing cable on a high deck is worthwhile.

Glass Panels

Tempered or laminated glass panels give unobstructed views and need safety glazing and engineered mounting. They show dirt and water spots and are among the more expensive options.

Railings, Ledgers and Deck Collapse

Railing failures are dangerous on their own, but they are often a symptom of larger deck problems. A deck that pulls away from the house, sags or bounces will often show it first through railings that lean or gaps at the top rail.

The ledger board, which attaches the deck to the house, is a common failure point in serious deck collapses. Ledgers attached with nails rather than bolts or structural screws, ledgers fastened over siding, or ledgers without proper flashing that let water rot the house rim joist behind them, can all pull loose. When a fully loaded deck separates from the house, the railings go with it. Other warning signs include:

  • Posts or footings that have shifted, heaved or rotted at grade.
  • Joist hangers that are missing, rusted or not fully nailed.
  • Soft, spongy decking or framing.
  • Cracked or split beams and joists.
  • A deck that sways side to side when people walk on it.

Our guide to deck inspection walks through a full checklist, and the guide to deck permits explains when railing replacement or rebuilding triggers a permit and inspection by the local building department.

Maintenance That Keeps Railings Safe

Routine maintenance extends railing life and catches problems early:

  1. Push test every post. Once or twice a year, push firmly on each post and section of rail. Any noticeable movement is worth investigating.
  2. Tighten and replace hardware. Snug through-bolts and replace corroded or missing fasteners with types rated for the treated lumber in use.
  3. Probe the bases. Check post bases, rim joists and stair stringers for soft wood.
  4. Keep water moving. Clear debris from deck board gaps near posts, and avoid planters that keep the base wet.
  5. Refinish wood on schedule. Stain or sealer slows checking and water absorption. Our deck staining guide covers product types and timing.
  6. Re-tension cable. Follow the manufacturer’s maintenance schedule for cable systems.
  7. Watch snow loads and shoveling. Heavy snow drifting against railings and aggressive shoveling can loosen balusters.

Repair, Reinforce or Replace?

Not every railing problem calls for a full tear-out. A practical way to decide is to look at what is failing and how widespread it is.

  • Reinforce when posts are sound but loose. Adding through-bolts, blocking between the rim joist and adjacent joists, or manufactured tension-tie hardware can turn a wobbly post into a stiff one. This is often the most cost-effective fix on a deck with otherwise healthy framing.
  • Repair when damage is isolated. A single rotted post, a few cracked balusters or a split top rail can usually be replaced on their own, as long as the framing behind them is solid.
  • Replace when rot is widespread, posts were notched throughout, baluster gaps are far over current figures, or the railing is part of a deck that needs major framing work anyway.

Replacement is also a natural time to reconsider height. Raising a 36-inch railing to 42 inches on a high deck, or switching from horizontal infill to vertical balusters where small children visit, may add modest cost while improving safety. If the deck itself is older, has a nailed ledger or shows signs of movement, it usually makes sense to have the framing evaluated before investing in a new railing system that will be bolted to it. A new composite railing on a failing rim joist simply moves the weak point.

Deck Railing Costs

Railing costs vary widely by material, height, complexity and region. As broad 2026 ranges for installed railing, per linear foot:

  • Pressure-treated wood: often somewhere around $30 to $70 per linear foot.
  • Cedar or other premium wood: often somewhat higher than treated lumber.
  • Composite or PVC systems: commonly around $50 to $120 or more per linear foot.
  • Aluminum: roughly similar to composite, depending on style.
  • Cable: frequently $80 to $200 or more per linear foot, driven by stainless hardware and stiff posts.
  • Glass panels: often among the most expensive options.

Smaller repairs, such as through-bolting and blocking a few loose posts or replacing a rotted post, may run from a few hundred dollars into the low thousands depending on access and how much framing is involved. Stair handrails, permits, removing and disposing of old railing, and any framing repairs found once the railing comes off are frequently added on top. These figures are general ranges rather than quotes.

What a Home Inspector Checks

The American Society of Home Inspectors (ASHI) Standard of Practice lists attached and adjacent decks, balconies, stoops, steps and porches, and their associated railings, among the exterior items a home inspector inspects. In practice, inspectors commonly note loose or missing guards, guard heights that look low, wide baluster gaps, missing stair handrails, rot at posts and rim joists, and ledger attachment concerns visible from below.

The same standard says inspections are not technically exhaustive and that inspectors are not required to determine compliance with codes or to offer an opinion about the adequacy of structural systems. A home inspector will flag what looks unsafe; a structural engineer or experienced deck builder may be needed to design repairs. Our guide to hiring a home inspector explains the scope of a typical inspection, and the structure and exterior hub gathers related deck, siding and framing guides.

References

Frequently asked questions

What is the standard deck railing height?

Under commonly adopted residential code figures, guards are typically required where a deck is more than 30 inches above grade, with a minimum height of 36 inches. Some jurisdictions require 42 inches, so the local building department has the final word.

How far apart can deck balusters be?

The common residential code rule is that openings must not allow a 4-inch sphere to pass through. Builders usually space balusters slightly under 4 inches apart to allow for wood shrinkage and bowing.

Why is my deck railing post loose?

Common causes include lag screws instead of through-bolts, notched posts, a rim joist that is not blocked back to the joists, fasteners loosened by wood shrinkage, and rot at the post base. Rot should be checked before simply tightening bolts.

Is cable railing safe for kids?

It can meet code when cables are properly tensioned and supported, but horizontal cables may be climbable and loosen over time. Some jurisdictions restrict horizontal infill, so check local rules and re-tension cables regularly.

How much does deck railing cost?

Installed railing commonly ranges from roughly $30 to $70 per linear foot for treated wood to $80 to $200 or more for cable systems, with composite and aluminum in between. These are general 2026 ranges.

Not sure whether a wobbly railing is a quick bolt fix or a sign of a failing ledger? Reach out for an inspection referral and have a Front Range inspector check the deck before the next party on it.