How to Build a Staircase: Code Numbers That Pass Inspection
Updated
Stair carpenters work in a fixed order: measure the total rise, do the math, check headroom, lay out and cut stringers, hang them, then add treads, risers and rails.
The code numbers to design around
Most US jurisdictions use the International Residential Code (IRC) for houses. The stair rules have stayed the same across recent editions, but some towns change them, so check with your building department before you start. New stairs usually need a permit.
| Item | IRC requirement (one- and two-family homes) |
|---|---|
| Maximum riser height | 7¾ in. |
| Minimum tread depth (nosing to nosing) | 10 in. |
| Variation within one flight | No more than ⅜ in. between the largest and smallest riser, and the same for treads |
| Nosing | ¾ in. to 1¼ in. projection when treads are under 11 in. deep |
| Minimum width | 36 in. clear above the handrail |
| Headroom | 6 ft 8 in., measured straight up from the sloped line connecting the tread nosings |
| Maximum rise without a landing | 151 in. (12 ft 7 in.) |
| Landings | At the top and bottom, at least 36 in. deep in the direction of travel |
| Open risers | Allowed, but the opening can't pass a 4 in. sphere when the total rise is over 30 in. |
| Handrail | Required on at least one side when there are 4 or more risers; 34–38 in. above the nosings; continuous for the full flight |
| Handrail grip | Round rail 1¼–2 in. diameter, or an equivalent graspable shape |
| Guards | Needed on open sides more than 30 in. above the floor below; balusters can't pass a 4⅜ in. sphere on the stair |
| Winders | At least 10 in. deep measured 12 in. from the narrow end, and never less than 6 in. at any point |
Two of these catch a lot of people. The ⅜ in. limit applies to the first and last risers, which is where floor thickness errors show up. Headroom is measured from the nosing line, not from the floor at the bottom of the stair.
Step 1: Measure the total rise from finished floor to finished floor
Total rise is the vertical distance from the finished lower floor to the finished upper floor. If the flooring isn't down yet, measure from subfloor to subfloor and then adjust:
- Add the thickness of the finished flooring planned for the upper floor.
- Subtract the thickness of the finished flooring planned for the lower floor.
Stair calculator: risers, treads and stringer length
risers of in ( in)
treads. Total run: . Stringer length along the slope: . Angle: °.
Under 10 in, the tread is shallower than the residential code allows.
With treads under 11 in, each tread needs a nosing that projects 3/4 to 1 1/4 in past the riser below.
Measure the total rise at the stair from finished floor to finished floor, including flooring still to come. The residential code allows risers up to 7 3/4 in and treads from 10 in, with no more than 3/8 in difference between the tallest and shortest riser, or deepest and shallowest tread, in a flight. Width at least 36 in, headroom 6 ft 8 in, handrail 34–38 in above the nosings. A deck stair follows the same rules.
Open the stairs calculator on its own page
Measure in a few spots, because floors are rarely level. If the lower floor slopes, measure where the bottom riser will actually sit. Hold a long level or straight board out from the upper floor edge, then measure straight down to that spot.
Step 2: Work out risers and treads
Number of risers: Divide the total rise by 7.5 and round up. Then divide the total rise by that whole number to get the exact unit rise.
Number of treads: One fewer than the number of risers. The upper floor acts as the last tread.
Tread depth: Use at least 10 in. Most stairs feel comfortable when two risers plus one tread equals 24–25 in.
Worked example
- Total rise, finished floor to finished floor: 107½ in.
- 107.5 ÷ 7.5 = 14.33, so round up to 15 risers.
- Unit rise: 107.5 ÷ 15 = 7.17 in., which is about 7³⁄₁₆ in.
- Treads: 14
- Choose a 10½ in. run: 2 × 7.17 + 10.5 = 24.8 in. (comfortable)
- Total run: 14 × 10.5 = 147 in. (12 ft 3 in.)
Fourteen risers would also pass at 7.68 in. each. That stair would be steep and short. If the floor space allows, the extra riser makes a noticeably easier stair. The run is usually what limits the design, so check that the 12 ft 3 in. run plus a 36 in. landing at the bottom fits the room before going further. A scaled stair layout drawing with the opening, landing and full run marked catches most fit problems before any lumber is cut.
Step 3: Check headroom and the size of the floor opening
The opening in the upper floor has to be long enough for 6 ft 8 in. of clearance above the nosing line along the whole stair. Using the example above with 10 in. of floor framing:
- Underside of the opening's header above the lower floor: 107.5 − 10 = 97.5 in.
- The nosing line can rise only 97.5 − 80 = 17.5 in. before reaching the header.
- At 7.17 in. of rise per 10.5 in. of run, that happens about 25½ in. from the bottom riser.
- So the opening has to run from the top of the stair to within about 25 in. of the bottom riser. That makes it about 121 in. long, roughly 10 ft.
With 8 ft ceilings, expect an opening of about 10 to 10½ ft. Openings that come up short are usually 8 ft long because that seemed like plenty. In a remodel, framing a longer opening means headers, doubled trimmers, and sometimes an engineer. Settle the opening size before the stair is designed around it.
Step 4: Choose the type of stair
- Cut (open) stringer stair: 2x12s notched into a sawtooth, with treads and risers nailed on top. This is the standard choice for site-built basement, utility and deck stairs, and for finish stairs that will be skirted.
- Housed stringer stair: Treads and risers sit in routed grooves and are held with glue and wedges. These are usually built in a stair shop and delivered ready to set, which is what "fitting a staircase" normally means. They are quieter and less prone to squeaks.
- L-shaped or U-shaped with a landing: Use one when the straight run won't fit. Each flight is figured the same way, and the landing counts as a tread.
- Winders: These save space, but the code minimums for winders are strict. They are harder to lay out than a landing.
Step 5: Lay out the stringers
Lumber: Use straight 2x12s with no large knots near the edge that will be cut. Use kiln-dried Douglas fir or SPF indoors, and ground-contact pressure-treated lumber outdoors. The stringer's diagonal length is about √(run² + rise²). In the example that is √(147² + 107.5²) ≈ 182 in., so 16 ft boards are needed.
Throat: The throat is the solid wood left between the inside corner of each notch and the back edge of the board. Aim for about 5 in., and don't go under 3½ in. In the example, a 7³⁄₁₆ × 10½ layout on a 2x12 leaves about 5¼ in.
Layout:
- Clamp stair gauges, or a scrap fence, to a framing square at the unit rise on the tongue and the unit run on the body.
- Start at the bottom of the board and trace each rise and run, sliding the square along the edge. Count the treads twice.
- Drop the stringer. Shorten the bottom rise by the thickness of one tread. If the stringer sits on subfloor and finished flooring will go down around it later, add that flooring thickness back. If you skip this, the first step comes out too tall and the top step too short by a tread's thickness, which is the most common reason stairs fail inspection.
- At the top, lay out where the stringer meets the header. Common setups are a full riser hung on a 2x hanger board, or the stringer bearing directly against the header so the top cut sits one unit rise below the finished upper floor.
- At the bottom, cut a notch for a 2x4 kicker plate that anchors the stringers to the floor.
Cutting: Cut with a circular saw up to the layout lines without passing them. Finish the inside corners with a handsaw or jigsaw. Overcutting into the throat weakens the stringer. Once the first stringer has been test-fitted and confirmed, use it as the template for the others.
Number of stringers: - On a 36 in. wide stair with 1 in. hardwood treads, use three stringers. - Under 5/4 deck boards, space stringers no more than 16 in. on center. - Composite treads often require 12 in. on center. Check the decking manufacturer's stair spacing, because it is usually tighter than its spacing for a flat deck. - On a 42–48 in. stair, add a fourth stringer.
Step 6: Hang the stringers
- Top: Fasten to the header with hangers rated for stair stringers, such as adjustable stringer connectors, or with a hanger board plus structural screws. Don't rely on nails driven into end grain.
- Bottom: Anchor the kicker plate to the floor. On concrete, use pressure-treated lumber with concrete screws or anchors.
- Along a wall: Fasten the wall stringer to the studs, or set a 2x spacer behind it so drywall and a skirt board can slide in later.
- Long spans: Deck building guides limit cut 2x12 stringers to about 6 ft of horizontal span between supports. A longer stringer needs a mid-span support, such as a post and beam, a wall, or a framed landing. A solid (uncut) stringer with tread hangers can span farther.
- Check before installing treads: Lay a straightedge across each tread cut to confirm all stringers are in the same plane. Shim or plane any high spots now. Fixing an uneven tread later is much harder.
Step 7: Install risers, treads, skirts and rail
- Skirt boards usually go on first along the walls, scribed to the stringer, so treads and risers butt into them neatly.
- Risers are often primed poplar or pine, ½–¾ in. thick. Glue and nail them to the stringers.
- Treads are usually 1 in. hardwood. Use construction adhesive on every stringer and screw or nail them, including from behind through the bottom of the riser into the back of the tread. Glue plus that back fastening prevents most squeaks.
- Nosing: Keep the overhang between ¾ and 1¼ in., and make it the same on every step.
- Rail and guard: Set newels so they are solidly fastened to framing, because a loose newel is a common failure. Run the handrail 34–38 in. above the nosing line. Return the ends into the wall or a newel so sleeves and bag straps can't catch. Where a stair climbs to a second-story balcony, the platform it lands on needs guards at least 36 in. high along every open edge.
Exterior stairs: what changes
- Use ground-contact pressure-treated stringers, hot-dip galvanized or stainless connectors, and fasteners approved for treated lumber.
-
Don't set stringers on soil. Use a concrete pad or landing that's at least as wide as the stair and at least 36 in. deep in the direction of travel. In cold climates, use footings below the frost line or a pad built to handle frost heave.
-
Leave a ⅛–¼ in. gap between tread boards so water drains.
- Put a light at the top landing. Many codes require one for exterior stairs.
What it costs (late 2026)
| Item | Typical price |
|---|---|
| 2x12x12 pressure-treated stringer stock | About $31–40 per board |
| 2x12x16 pressure-treated | About $48 per board |
| 36 in. red oak tread, unfinished | About $36–53 each |
| 36 in. prefinished red oak retread (cap over an existing tread) | About $60–72 each |
| Carpenter labor | About $75–125 per step for a straight stair, or $50–150/hr depending on region |
| Installed hardwood stair, straight run | About $100–250 per step all in; $2,000–5,000 is common for a main stair |
For the 15-riser example, the stringers, 14 oak treads, risers, adhesive and fasteners come to roughly $800–1,200 before any railing. Balustrade costs vary the most: a simple wall rail is about a hundred dollars, while a full run of newels and balusters can cost more than everything else combined. L-shaped and U-shaped stairs, winders and curved stairs cost much more than a straight run. Where climbing any stair is the real problem, a home elevator may serve the household better than a rebuilt flight.
Mistakes that come up again and again
- Measuring rise from subfloor and forgetting the finished floors. The first or last riser ends up an inch off and fails the ⅜ in. rule.
- Not dropping the stringer by the tread thickness.
- A floor opening too short for 6 ft 8 in. of headroom. Check this before framing.
- Overcutting notches into the throat, which leaves a weak stringer that may crack.
- Two stringers under a 36 in. stair, which leads to bouncy, squeaky treads.
- Uneven nosings from treads that aren't all the same thickness, or from not checking with a straightedge.
- Handrail stopping short of the top or bottom riser. It has to be continuous for the full flight.
Order of work
Measure, do the math, check headroom, frame or correct the opening, lay out one stringer, test-fit it, cut the rest, hang the stringers, add skirts, then risers, then treads, then rail. Get the framing inspected before the finish work covers it.