See It In My Home

Deck railing height: 36 inches, and when it has to be 42

A deck more than 30 inches above the ground needs a guard at least 36 inches high under the residential code. Baluster gaps, stairs and the 42 inch states.

Raised wooden deck with a baluster guard railing and steps

The short answer

  • A guard is required where the deck surface is more than 30 inches above the ground below.
  • Under the International Residential Code, the guard must be at least 36 inches high, measured from the deck surface to the top of the rail.
  • Some states and towns require 42 inches. California and Washington do, and so does the code that applies to apartment and commercial buildings.
  • No opening in the guard may let a 4 inch sphere pass. On stairs the limit is 4 and 3/8 inches between balusters.
  • The top of the guard has to resist a 200 pound load pushed in any direction.
In this guide

The number most people are looking for is 36 inches. That is the minimum height of a guard on a house deck under the International Residential Code, the model code that states and towns adopt, often with their own amendments. The rest of this guide is about the words around that number: when a guard is required at all, how it is measured, what the gaps can be, and the places where 36 is not enough.

One caution before the detail. A model code is not the law where you live until your state or town adopts it, and many adopt it with changes. The figures here are the model code as quoted by the sources at the end. Your building department has the last word, and a deck that needs a permit will be inspected against its version.

When a deck needs a guard

The code's test is height above the ground. A guard is required on the open side of any walking surface that is more than 30 inches above the floor or grade below. The measurement is taken, in the code's words, at any point within 36 inches horizontally of the edge.

That second part catches sloping yards. A deck can be 20 inches above the ground at the house and 40 inches at the far corner. And if the ground falls away just beyond the deck, the drop is measured out there, up to 3 feet from the edge, not straight down from the boards.

36 in minOver 30 inBlack dot: the 4 in sphere that must not passOver 30 in above the ground, a guard is required
Elevation of one bay of a deck guard. The 30 inch trigger is measured to the ground within 36 inches of the edge.

A deck lower than 30 inches does not need a guard under the model code. If you put one on anyway, it still has to be strong: the detail is in the section on low decks below.

The height: 36 inches

For a deck on a single family house, the guard must be at least 36 inches high, measured from the deck surface to the top of the rail.

Two things raise that figure:

  • State and local amendments. Weyerhaeuser's guide for building suppliers names California and Washington as states that require 42 inches on residential decks. Other places have their own rules.
  • The type of building. Decks on apartment buildings and commercial buildings fall under the International Building Code, which requires 42 inch guards.
WhereMinimum guard height
House deck, model residential code36 in
House deck in California or Washington42 in
Apartment or commercial building42 in
Open side of a stair, measured from the line of the nosings34 in

If you are near a state line, or buying a railing kit online, check which height the kit is made for.

Why 36, and why 42

The two heights are not arbitrary, and knowing where they come from helps when your town asks for one or the other. The Journal of Light Construction explains both.

Forty two inches, the commercial height, is roughly the height of an adult's center of gravity. A rail at that level stops a standing person from tipping over it. Thirty six inches, the residential height, is lower for a reason you will appreciate on your own deck: it lets people see over the top of the railing when they are sitting down.

The same article gives a builder's tip. Design a residential guard at 36 and a half or 37 inches, not at 36 exactly. Lumber varies and decks settle, and the extra half inch protects you from failing an inspection over a normal construction tolerance. You are always allowed to build higher: Decks.com notes that taller guards are permitted as long as they meet the other requirements.

The gaps: a 4 inch sphere

The code does not give a baluster spacing in inches. It gives a test: a sphere 4 inches in diameter must not pass through any opening in the guard. That covers the space between two balusters, between a baluster and a post, and between the deck surface and the bottom rail.

The test exists for small children. As Trex explains it, the requirement is designed to stop a child from being trapped between the balusters or falling through.

In practice the clear gap between balusters has to be a little under 4 inches. Horizontal cables and glass panels are judged by the same sphere, since the rule covers any two parts of the railing.

Where the 4 inches came from

The limit used to be 6 inches. The Journal of Light Construction records why it changed: a small child's body is narrower than its head, so a 6 inch opening let children slip partly through with their heads caught on the other side, and some of those accidents were fatal. The 4 inch sphere applies everywhere from the deck surface up to the top of the guard.

Two details follow from that:

  • The gap under the bottom rail counts. Decks.com gives it a name, the sweep space, and the same limit: less than 4 inches between the deck surface and the bottom rail.
  • Inspectors check with a tape measure. They spot check any space between parallel members that looks wider than 4 inches. A gap of 4 and an eighth fails.

Baluster spacing, worked out

The code gives the gap. You have to turn it into a number of balusters. For a bay between two posts:

  1. Measure the clear distance between the posts.
  2. Choose a number of balusters and multiply it by the width of one baluster.
  3. Subtract that from the clear distance, and divide what is left by the number of balusters plus one. That is the gap.
  4. If the gap is 4 inches or more, add a baluster and do it again.
Bay between postsBalusters, 1.5 in wideGap between them
48 in93.45 in
60 in113.63 in
72 in133.75 in
96 in173.92 in

The sums are ours. In practice builders aim a little under the limit, because one bowed baluster can open a gap past 4 inches after a summer in the sun.

Stairs are measured differently

On the stairs down from the deck, three numbers change:

  • Height. A guard on the open side of a stair must be at least 34 inches high, measured vertically from a line joining the front edges of the treads. Where the top of the guard also serves as the handrail, it must be between 34 and 38 inches on the same measurement.
  • Baluster gap. The sphere becomes 4 and 3/8 inches.
  • The triangle. The opening formed by the tread, the riser and the bottom rail must not let a 6 inch sphere pass.

A stair guard copied from the deck guard ends up at the wrong height once it follows the slope, so treat the stairs as a separate measurement.

Why 4 and 3/8 on the stairs

The odd figure has a practical origin, again explained by the Journal of Light Construction. To pass a 4 inch sphere on a typical stair, a builder would need three balusters on every tread. The extra three eighths of an inch lets two balusters per tread comply, and makes the spacing on the stairs look like the spacing on the level guard beside it. The allowance comes from indoor stairs, but it applies to deck stairs as well.

Strength: the 200 pound rule

Height is not the whole test. The Journal of Light Construction, writing for deck builders, sets out the load: the top of a guard at the edge of a deck must resist a concentrated load of 200 pounds applied at any point along the top and in any direction.

Any direction includes outward, which is how people fall. That load travels from the rail into the posts and from the posts into the deck frame, so the connection between each post and the frame deserves the most attention. If you are building your own, take that detail from a tested design and show it to the inspector.

There is a second load, for the part of the guard below the top rail. The balusters, panels or cables must resist 50 pounds applied over any one square foot between the top of the guard and the deck floor. Because the load is spread over a square foot, no single baluster has to carry it alone.

Manufactured railing systems are tested to higher figures than the code states. The testing methods build in a safety factor that at least doubles the 200 pounds, on the reasoning that a guard is not safe if it fails at 201. Decks.com makes the same point: test loads for engineered systems are higher, and to rely on them you have to follow the maker's post spacing and attachment method. A kit installed with its posts further apart than the instructions allow is no longer the system that was tested.

A railing on a low deck

Here the sources need reading carefully. A deck 30 inches or less above the ground does not require a guard. If you add one anyway, which rules apply?

The Journal of Light Construction gives the precise answer. Height and opening size are regulated only on guards the code requires. Strength is regulated on every guard, including one you chose to build on a ground level deck. The reasoning is that any railing invites people to lean and sit on it, so an optional one must not be a trap that gives way.

So on a low deck you have freedom over the height and the pattern, and none over the strength. A 30 inch rail with wide horizontal boards is allowed there. A wobbly one is not. Check this with your building department, since a local amendment can be stricter.

Before you order a railing

  1. Measure the height of the deck surface above the ground at its highest point, and again 3 feet out from the edge.
  2. Ask your building department which guard height applies: 36 or 42 inches.
  3. Check that the kit is rated for that height and that the baluster spacing passes the 4 inch sphere.
  4. For stairs, order the stair version of the kit. It is a different part.
  5. Ask whether a permit is needed for the deck or for the railing work.
  6. Keep the instructions and the test report of the kit. An inspector may ask for them.

If you are adding a pergola on the same deck, plan the two together: the posts of the pergola and the posts of the guard compete for the same edge. The footprints are in our guide to pergola sizes. A low deck that stands on its own, away from the house, is covered in floating deck.

Questions people ask

What is the standard height of a deck railing?

36 inches minimum for a house deck under the International Residential Code, measured from the deck surface to the top of the rail. Some states, including California and Washington, require 42 inches.

At what height does a deck need a railing?

When the deck surface is more than 30 inches above the ground, measured at any point within 36 inches of the edge.

How far apart can deck balusters be?

Close enough that a 4 inch sphere cannot pass between them. On stairs the limit is 4 and 3/8 inches.

Does a deck under 30 inches need a railing?

Not under the model code. If you install one anyway, its height and openings are up to you, but it still has to meet the strength requirements.

How much weight must a deck railing hold?

The top of the guard must resist a concentrated load of 200 pounds applied at any point and in any direction.

Sources

Every figure in this guide comes from the sources above, or from arithmetic shown in the text. See our editorial policy.

About Robert Henry

Robert Henry is the byline on every See It In My Home guide. The guides are researched and written by our small editorial team. More about how we work

Read next

All decks and patios guides