Plumbing pipe has become a go-to material for industrial-style railings, and for good reason: it is strong, round, inexpensive and available at any hardware store. A pipe handrail for stairs can be assembled in an afternoon with threaded fittings, a few wall flanges and lag screws. It also happens to have the round profile that building codes favor for grip.
Part of our Stairs & Stair Flooring guide — explore the full guide →
The two things people get wrong are pipe size and anchoring. Pipe that is too thin or too thick fails the graspability test, and flanges screwed into drywall will pull out the first time someone stumbles. Get those right, and a black pipe handrail will outlast most wood rails.
Planning a Pipe Handrail for Stairs
Start with the layout. Measure the flight from the top nosing to the bottom nosing along the slope, note where the rail must turn or end, and locate wall studs along the whole run with a stud finder. Sketch the rail with every elbow, tee and flange marked.
Typical code values for residential handrails, which you should confirm with your local building department:
- Height: 34 to 38 inches, measured vertically from the line connecting the tread nosings to the top of the rail.
- Wall clearance: at least 1 1/2 inches between the rail and the wall so knuckles do not scrape.
- Continuity: one continuous rail from the top riser to the bottom riser, uninterrupted by brackets on the gripping surface.
- Ends: returned to the wall or finished in a newel or safety terminal so sleeves and bag straps cannot catch.
- Load: commonly designed to resist a 200 pound concentrated load in any direction.
Stairs with four or more risers typically need a handrail on at least one side. Wider stairs may require rails on both sides.
Picking the Right Pipe Size for Grip
Pipe is sold by nominal size, which is not its outside diameter. That distinction matters because codes typically require a round handrail between 1 1/4 and 2 inches in outside diameter.
| Nominal size | Outside diameter | Handrail fit |
|---|---|---|
| 3/4 inch | About 1.05 inches | Too thin |
| 1 inch | About 1.32 inches | Good grip, common choice |
| 1 1/4 inch | About 1.66 inches | Good for large hands, very rigid |
| 1 1/2 inch | About 1.90 inches | At the upper limit, heavy |
For most homes, 1 inch nominal steel pipe handrail stock is the sweet spot: easy to grip, strong enough to span between studs, and not too heavy to handle alone.
Black Iron vs Galvanized Pipe
Black iron pipe has a dark, oily mill coating and the classic industrial look. It rusts if left unsealed, so it is best for indoor metal handrails. You will need to degrease it and apply a clear finish.
Galvanized pipe has a zinc coating that resists rust, making it the better pick for basements, garages and outdoor steps. It has a lighter, mottled gray finish. Never weld, torch or grind galvanized pipe indoors, because heating zinc releases harmful fumes. If you must cut it, use a pipe cutter or have the store cut and thread it.
Both are sold in precut lengths, and most hardware stores will cut and thread pipe to custom lengths for a small fee. A black iron pipe handrail kit bundles pipe, flanges and elbows sized for a standard flight, which saves trips to the store.
Tools and Materials
- Pipe cut to length, threaded both ends
- Wall flanges (one per bracket point plus ends)
- Short nipples and 90 degree elbows for brackets and returns
- Tees or adjustable-angle fittings where the rail changes direction
- A union or set-screw slip-on fitting to close the assembly
- Lag screws, 1/4 inch diameter, long enough to penetrate at least 2 1/2 inches into studs
- Degreaser, mineral spirits and rags
- Clear lacquer, polyurethane or paste wax
- Stud finder, level, tape measure, drill and socket set
- Two pipe wrenches
- Gloves and safety glasses
Step-by-Step Installation
- Mark the rail line. Measure 34 to 38 inches up from the nosing at the top and bottom treads and snap a chalk line between the marks. That is the top of the rail.
- Mark bracket points. Plan a bracket at each stud along the line, no more than about 4 feet apart, and one within about 12 inches of each end. Every bracket must land on a stud or solid blocking; hollow-wall anchors are not strong enough for a handrail.
- Clean the pipe. Wipe black pipe with degreaser, then mineral spirits, until a clean rag stays mostly clean. Wear gloves; the coating is messy.
- Dry-assemble on the floor. Thread the rail together loosely to confirm lengths and fitting orientation. Mark each joint so it goes back together the same way.
- Seal the finish. Spray two or three light coats of clear lacquer or polyurethane, or rub in paste wax, in a ventilated space. Let it cure fully.
- Mount the flanges. Hold each flange on its mark, drill pilot holes into the stud, and drive lag screws. Check that brackets line up with the chalk line.
- Assemble the rail. Thread elbows and nipples onto the flanges, then add the main rail. Threaded pipe cannot be tightened when both ends are fixed, so use a union or a set-screw slip-on fitting at the final joint.
- Make returns. At each end, turn the rail back to the wall with an elbow and a flange so the end cannot snag clothing.
- Test it. Pull and push hard along the whole length. Nothing should flex, rotate or creak. Tighten any loose fittings.
Keeping the Rail Safe Underfoot
A handrail helps prevent falls only if it does not create new hazards. Keep brackets and returns out of the walking path, avoid rail ends that stick out at head height on landings, and file or cap any sharp thread ends. If the rail projects more than about 4 1/2 inches from the wall, it may reduce the required stair width, so check with the building department on narrow stairs. Good lighting and non-slip treads round out a safe staircase.
Check the finished rail every few months, especially in a busy household. Threaded joints can loosen slowly as people pull on the rail, and a small wobble is much easier to fix before a lag screw starts to wallow out its hole in the stud. A quarter turn with two wrenches is usually all it takes.
Pipe railing for stairs also works as a guard on an open side only if it meets guard height and opening rules, which usually means adding vertical or horizontal infill. A single pipe on an open side is a handrail, not a guard.
Cost Ranges
A DIY pipe handrail for a standard 12 to 14 foot flight typically costs about $60 to $250 in pipe, fittings and hardware, depending on pipe size and whether you use galvanized or black iron. Custom cuts and threading add a few dollars each. A handyman or carpenter might charge a few hundred dollars for installation. Welded steel rails from a fabricator cost considerably more but eliminate visible fittings.
Troubleshooting
Rail rotates when gripped. A threaded joint is loose. Tighten with two wrenches, or add a set screw at the union.
Rust spots on black pipe. Sand lightly, wipe clean and recoat with clear finish. Galvanized is better in damp areas.
Flange pulls away from the wall. The lag screws missed the stud or are too short. Relocate the bracket to a stud or add blocking.
Rail height varies. A fitting was threaded too deep. Swap nipple lengths or adjust flange position.
When to Call a Pro
Call a carpenter or handyman if studs are not where you need them and blocking must be installed behind finished walls, or if the wall is masonry and needs special anchors. Bring in a contractor for open-side guards, which carry larger loads. If the stair treads or stringers are loose or damaged, fix those first. In older homes, test painted walls for lead before drilling or sanding if the paint predates 1978.
Frequently Asked Questions
What size pipe is best for a stair handrail?
One inch nominal pipe, with an outside diameter of about 1.32 inches, fits typical code grip ranges and is easy to hold.
Is black pipe or galvanized better for handrails?
Black pipe is best indoors with a clear finish. Galvanized resists rust and suits basements, garages and outdoor steps.
How far apart should handrail brackets be?
Place brackets at studs no more than about 4 feet apart, with one near each end.
How do you seal black iron pipe?
Degrease it thoroughly, then apply clear lacquer, polyurethane or paste wax to prevent rust and stop the coating from rubbing off.
Can pipe handrails go outdoors?
Yes, with galvanized pipe and exterior-rated fasteners. Anchor into solid framing or masonry with appropriate anchors.