How to Install a Stair Handrail (Phoenix Homeowner Guide)
Step-by-step guide to installing a stair handrail and guard in a Phoenix home: when one is required, height, grip size, wall clearance, returns, posts, balusters and load, with the 2024 IRC rule behind every step.
By Gabriel · Licensed Phoenix, Arizona General Contractor ROC 367058 (R-62) · 2026-11-21

A loose or missing stair rail is one of the most common things I am asked to fix. Sometimes an old wall rail pulled out of the drywall because it was only held by plastic anchors. Sometimes new porch or deck steps were built and nobody added a rail at all. And sometimes there is a rail, but it is a flat 2x6 that nobody can actually grab when they slip.
Below is the order I follow to install a stair handrail, and the guard (the barrier with balusters) on an open side when one is needed. Every step says why it matters and which rule is behind it, mostly the stair, handrail and guard sections of the 2024 International Residential Code (IRC) as adopted by Phoenix, plus the IRC rules for treated wood and fasteners outdoors and Arizona's Blue Stake (811) law if you dig a post hole. If you are also hanging something heavy on a wall, see my guide on how to mount a TV on the wall; the same rule applies there: find the framing, do not trust drywall alone.
Tools and parts
- Tape measure, 4-ft level and chalk line or a straight 2x4
- Stud finder and a small finish nail to confirm the stud
- Drill/driver, bits and a countersink
- Handrail (round 1-1/4 to 2 in, or a listed graspable profile) and matching brackets rated for handrail use
- Structural wood screws or lag screws long enough to reach well into the stud (follow the bracket maker's instructions)
- For exterior wood: pressure-treated posts and rails with a quality mark, hot-dip galvanized or stainless fasteners and connectors, and a brush-on cut-end preservative
- Miter saw or handsaw and a miter box for the returns
- A 4-inch ball or a 4-inch and 4-3/8-inch block to check baluster gaps
- Safety glasses, dust mask and hearing protection
Step-by-step
Check whether the stair needs a handrail and a guard
Count the risers (the vertical rises, not the treads). If the flight has four or more risers, it needs a handrail on at least one side. Then check the open sides: if any point of an open-sided stair, landing or porch is more than 30 inches above the floor or ground within 36 inches of the edge, that open side also needs a guard. Stairs that serve a porch or deck count; the exceptions are stairs that do not serve a building, porch or deck, and stairs to an unfinished attic or crawl space.
Why: A handrail is what you grab when you miss a step; a guard is what stops you from falling off the side. They are two different jobs, and many stairs need both. Measuring before you buy anything tells you which parts you need on each side.
Code: 2024 IRC R318.7 (stairways that must comply; exceptions) · 2024 IRC R318.7.8 (handrail on at least one side of each flight with four or more risers) · 2024 IRC R321.1.1 (guards where the drop is more than 30 in within 36 in of the open side)
Ask about a permit before you build
Replacing a loose wall rail with a new one in the same place is a small repair, but building new porch or deck steps, a new landing, or new posts and guards is construction. Call or check with your building department before you start. In Phoenix, platforms not more than 30 inches above grade are on the list of work that does not need a building permit, but stairs, handrails and guards are not on that list, and the exemption does not excuse work from meeting the code.
Why: A permit and inspection is the second set of eyes on the height, the posts and the anchoring, which are exactly the parts that fail. Even when no permit is needed, the work still has to meet the code, and a home inspector will check the rail when you sell.
Code: 2024 Phoenix PBCC Administrative Provisions Sec. 105.1 (permit required to construct, alter or repair) · 2024 Phoenix PBCC Administrative Provisions Sec. 105.2, Building item 6 (platforms not more than 30 in above grade exempt; exempt work must still comply)
Pick a rail you can actually grip
Buy a round rail between 1-1/4 and 2 inches in diameter, or a shaped rail whose perimeter is 4 to 6-1/4 inches with a cross section no more than 2-1/4 inches. A wider decorative profile is allowed only if it has a finger recess on both sides (a "Type II" rail). A flat 2x4 or 2x6 laid on top of a guard is not a graspable handrail by itself; add a graspable rail to it. A plain 2x2 (1-1/2 by 1-1/2 inches) falls inside the Type I limits. For composite outdoor rail, use a product listed for that use.
Why: When you slip, your hand has to close around the rail to hold your weight. A rail that is too big or too flat only lets you press down on it with your palm. That is why the code sets the grip size so tightly.
Code: 2024 IRC R320.6 (grip size: Type I and Type II handrails) · 2024 IRC R320.7 (exterior plastic composite handrails must also meet R507.2.2)
Mark the height line from the stair nosings
Hold a straight board or snap a chalk line across the front edges (nosings) of the treads. At the top and bottom nosing, measure straight up 34 to 38 inches and mark the wall or posts. I aim for about 36 inches so there is room to adjust. Connect the marks with a chalk line: this is the top of the rail. Check that the treads have a normal nosing and are not badly worn, because the measurement is taken from them.
Why: Every person on the stairs reaches for the rail at about the same height. Measuring from the line of the nosings, not from the floor or the middle of a tread, keeps the height the same over the whole flight.
Code: 2024 IRC R320.2 (handrail height 34 to 38 in, measured from the sloped plane at the tread nosings) · 2024 IRC R318.7.5.3 (nosings: 3/4 to 1-1/4 in projection, within 3/8 in of each other in a flight)
Plan the rail to run the full flight and return at the ends
The rail must run continuously from above the top nosing to above the bottom nosing, without gaps where you would have to let go. At each end, turn the rail back toward the wall, the guard or the floor with a return piece (two 45 degree cuts, or a factory return fitting). If the rail stops near a wall, the gap from the return to the wall cannot be more than 1/4 inch. A newel post at a landing or the bottom tread is allowed to interrupt it.
Why: If the rail ends short, the first or last step, where people most often trip, has nothing to hold. Returning the ends keeps a sleeve, a purse strap or a child's backpack from catching on an open rail end.
Code: 2024 IRC R320.5 (continuity over the full flight; ends returned to itself or toward a wall, guard or walking surface; return gap 1/4 in max; newel posts allowed at landings and the lowest tread)
Find the framing for every bracket
Use a stud finder, then confirm each stud with a small finish nail or a 1/16-inch bit just above the rail line where the hole will be hidden. Plan a bracket at or near each end and in between at the spacing the bracket maker lists, and put every bracket into a stud or into solid blocking. If a stud does not fall where you need it, open the wall and add 2x blocking, or mount a continuous backer board to the studs first.
Why: The IRC requires a handrail to resist a single 200-pound load applied in any direction at any point on the rail. Screws in drywall or plastic anchors cannot carry that; screws into wood framing can. That is the difference between a rail that holds you and one that comes off the wall in your hand.
Code: 2024 IRC R301.5 and Table R301.5 (handrails and guards: 200-lb concentrated load in any direction along the top)
Set the brackets for wall clearance and stair width
Mount the brackets on the chalk line so the rail ends up at the right height once it sits in the bracket saddle (measure the bracket's offset first). Use brackets that leave at least 1-1/2 inches between the wall and the rail. Check that the rail does not stick out more than 4-1/2 inches into the stair, and that the stair still has at least 31-1/2 inches of clear width at and below the rail with one rail, or 27 inches with rails on both sides.
Why: Knuckles need room between the rail and the wall, otherwise people let go to avoid scraping their hand. The projection and width limits keep the stair wide enough to carry furniture and to pass someone safely, and they matter most on the narrow stairs in some older homes.
Code: 2024 IRC R320.4 (at least 1-1/2 in between the wall and the handrail) · 2024 IRC R320.3 (handrail projection max 4-1/2 in on either side) · 2024 IRC R318.7.1 (stair width: 31-1/2 in at and below the handrail with one rail, 27 in with two)
Outdoors: set solid posts with the right wood and fasteners
For porch or deck steps, bolt the posts to the stair stringers or the deck framing with through-bolts or structural screws, not just nails, and add blocking so the post cannot twist. Use pressure-treated lumber that carries a quality mark (stamp or end tag), brush preservative on every cut end and drilled hole, and use hot-dip galvanized or stainless steel screws, bolts and connectors. If a post goes into the ground or into concrete in the ground, use wood rated for ground contact, and call 811 before you dig.
Why: A post is the lever that carries the whole guard: a 200-pound push at the top puts a large force on the bolts at the bottom. Wood exposed to the weather is a decay risk where water sits at joints and bolt holes, cutting a treated board exposes untreated wood inside, and the chemicals in modern treated lumber corrode plain steel fasteners. Arizona law requires you to have buried utilities marked before you excavate in a utility easement, and service lines often run right where porch steps go.
Code: 2024 IRC R304.1 (decay protection for exposed deck and porch supports) · 2024 IRC R304.2 (quality mark on treated lumber) · 2024 IRC R304.1.1 (field-cut ends and holes treated per AWPA M4) · 2024 IRC R304.1.2 (ground contact) · 2024 IRC R304.3.1 (fasteners in treated wood: hot-dip galvanized, stainless, silicon bronze or copper) · A.R.S. 40-360.22(A) (locate underground facilities before excavating)
Build the guard on the open side to the right height
Where a guard is required, its top must be at least 36 inches above a landing or porch floor and at least 34 inches above the nosing line along the stair. If the top of the guard is also your handrail on the stair, keep it between 34 and 38 inches above the nosings, and make sure it is graspable (Step 3); otherwise add a separate graspable rail on the guard posts.
Why: A guard that is too low acts as a tripping point that tips an adult over it. The stair allowance of 34 inches lets one rail do both jobs on a stair, but only if it also meets the handrail rules.
Code: 2024 IRC R321.1.2 (guard height: 36 in at landings and porches; 34 in on stairs; 34 to 38 in where the guard top serves as the handrail)
Space the balusters so a child cannot get through
Lay out the balusters so the gaps are small enough: on the sloped part of the stair, a 4-3/8-inch ball must not pass between them; on a landing, porch or deck, a 4-inch ball must not pass; and the triangle under the bottom rail formed by the tread and riser must not pass a 6-inch ball. Fasten each baluster at top and bottom with corrosion-resistant screws, not just one nail.
Why: These numbers are based on keeping a small child's head and body from fitting through the guard. Each baluster and infill panel also has to resist its own 50-pound push, which a single nail into end grain often will not.
Code: 2024 IRC R321.1.3 (openings: 4 in sphere; 4-3/8 in on the open side of stairs; 6 in at the stair triangle) · 2024 IRC R301.5 and Table R301.5 (guard infill components: 50-lb load on 1 sq ft)

Install the rail and test it
Set the rail in the brackets and drive the bracket screws up into the rail. Join long rails only over a bracket or post. Then test it: lean your weight into the rail, push sideways and pull up along the whole length and at each end. Nothing should move, creak or flex at the brackets or posts. If anything does, add a bracket, blocking or a bolt before anyone uses it.
Why: The code load is a single 200 pounds in any direction, which is a person falling into the rail, not resting a hand on it. A hand test will not prove that number, but it quickly finds the bracket that missed the stud or the post that can rock.
Code: 2024 IRC R301.5 and Table R301.5 (handrail and guard concentrated load: 200 lb, any direction)
Finish the edges and the wood, then recheck the numbers
Sand or ease any sharp edges and splinters on the rail. Outdoors, seal, stain or paint the wood once it is dry enough for the coating maker's instructions, and plan to recoat it, because the Phoenix sun breaks finishes down fast. Finally, recheck with your tape and ball: rail height at the top, middle and bottom, wall clearance, returns, and baluster gaps.
Why: The code requires rounded edges on a handrail so it does not cut or splinter a hand that slides along it. A final check catches a bracket that slipped while you drove the screws, which is the easiest time to fix it.
Code: 2024 IRC R320.6 (handrail edges: radius not less than 0.01 in) · 2024 IRC R320.2 (height recheck) · 2024 IRC R320.4 (wall clearance recheck) · 2024 IRC R321.1.3 (opening recheck)
When to stop and call a licensed pro
- The stair itself is loose, the treads flex or crack, or the stringers are rotted or split.
- A deck, porch or landing is pulling away from the house or sags: the guard posts can only be as strong as the framing they are bolted to.
- There is no stud or framing where the rail must go and the wall would have to be opened and blocked.
- The stair is curved, has winders or a landing turn, or you want a continuous rail with fittings or wrought iron.
- You are building new steps or a new porch or deck and need it permitted and inspected.
- The rail is for someone with limited mobility and you want rails on both sides and the setup done once and done right.
Common questions
How high should a stair handrail be?
Between 34 and 38 inches, measured straight up from the line that connects the front edges (nosings) of the treads, under 2024 IRC R320.2. Guards at a landing or porch must be at least 36 inches (R321.1.2).
Do I need a handrail on both sides?
The IRC requires a handrail on at least one side of each flight with four or more risers (R318.7.8). Each open side that is more than 30 inches above the ground or floor also needs a guard (R321.1.1). Rails on both sides are a good idea for older adults, but not required by the IRC.
Do 3-step porch stairs need a handrail?
Three steps usually means three or four risers, depending on how the top step meets the porch. Count the risers: with four or more, a handrail is required on at least one side (R318.7.8). Check your own city too, and HOA rules for exterior railings.
Can I mount a handrail with drywall anchors?
No. A handrail must resist a single 200-pound load in any direction (2024 IRC Table R301.5). Screw each bracket into a stud or solid blocking with the screws the bracket maker specifies.
Is a 2x4 or 2x6 on top of the railing a legal handrail?
Not by itself. A flat 2x4 or 2x6 is wider than the Type I grip size in R320.6 and has no finger recess, so it does not count as a graspable handrail. Add a round rail or a 2x2 style rail mounted on the posts, or use a Type II profile.
Want it done right the first time?
I install and replace stair handrails, porch and deck step railings and guards across Phoenix, anchored into solid framing and built to the current code. See my Handyman services in Phoenix, or send a request with the contact form and text me a photo for a fast estimate.
Licensed Phoenix, Arizona General Contractor ROC 367058 (R-62)