Tallyard

Step safely.

Stair stringer length, rise, run, and tread count for any height. Meets IRC code limits on rise and tread dimensions.

IRC-compliantStringer + treadsAny rise
Reviewed against IRC 2021 Section R311.7: Stairways and AWC: Wood Frame Construction Manual. Formula and sources published below.Last reviewed April 17, 2026

How we calculated this

The formularisers = round(total rise ÷ ideal riser); treads = risers − 1; stringer = √(rise² + run²)

The calculator divides total vertical rise by your target riser height and rounds to the nearest whole number, because stair risers must all be equal. Once you know the riser count, actual riser height is total rise divided by that count. A 108-inch total rise targeting 7.5-inch risers gives 14 risers at about 7.71 inches each, close to target and identical across the flight.

The number of treads is always one less than the number of risers, because the last step at the top is the upper floor itself. This is the classic off-by-one: 14 risers means 13 treads.

Total run is treads times tread depth. A 14-riser, 13-tread staircase at 11-inch treads needs 143 inches, nearly 12 feet, of horizontal space. This is the most commonly underestimated dimension when planning a staircase, so measure your available run before committing to a layout.

Stringer length is the hypotenuse of rise and run, from the Pythagorean theorem. Round up to the next standard 2x12 length (8, 10, 12, 14, 16, 20 feet) and add a little for top and bottom mounting.

IRC 2021 R311.7 compliance: riser height up to 7.75 inches with no more than 3/8 inch variation between any two risers, tread depth at least 10 inches, width at least 36 inches, and a stringer throat of at least 3.5 inches after notching. The calculator checks these. Some municipalities are stricter, so verify with your building department before cutting.

The rule of 25 is a carpenter comfort guideline: 2 times the riser plus the tread lands around 24 to 25 inches. A 7.5-inch rise with a 10-inch tread hits 25; a 7-inch rise with an 11-inch tread also hits 25. Most comfortable stairs land near that number.

Tallyard EditorialUpdated April 20, 2026Reviewed against IRC 2021 Section R311.7 (stairways), AWC Wood Frame Construction Manual, AWC span tables for 2x12 stringers

Stairs are the one thing on your project the inspector will measure

Most of a build has some give in it. A wall an inch off, a joist a little long, nobody notices. Stairs are different. The building code sets the rise and the run to fractions of an inch, an inspector shows up with a tape measure, and a staircase that misses the numbers does not get signed off. It gets torn out. So this is the one place where getting the math right before you cut is not about tidiness. It is about not building the thing twice.

The good news is the math is not hard, and the calculator above does it for you. Give it your total rise, the vertical distance from one finished floor to the next, and it hands back the number of steps, the exact rise and run of each one, the stringer length, and how many stringers you need. The rest of this page explains what those numbers mean and where people go wrong, starting with what every part of a staircase is actually called.

The parts of a staircase

Before the numbers make sense, the vocabulary has to. A staircase is a handful of parts with specific names, and every stair calculator, code book, and lumber list uses them. Here is the whole thing in one drawing.

The parts of a staircase (7-inch rise, 11-inch run)total risetotal runrise (7")run (11")tread (step surface)riser (vertical face)nosing (the lip)stringerthroat (min 3.5")
Fig. 1. Every part the calculator sizes. Total rise and total run are the overall dimensions; rise and run are the single-step versions. The stringer is the sawtooth board carrying it all, and the throat is the wood left after the notches are cut.

The tread is the part you step on. The riser is the vertical face between one tread and the next, the height you lift your foot. The nosing is the small lip where the tread overhangs the riser below it, which gives your foot a little extra depth without adding to the run. The stringer is the sawtooth-cut board, usually a 2x12, that carries the whole staircase on a diagonal. And the throat is the narrowest strip of wood left in the stringer after the step notches are cut out. That last one matters more than people expect, because if you cut the notches too deep the stringer loses its strength.

Two more terms run through every calculation. Total rise is the full vertical height the stairs climb, floor to floor. Total run is the full horizontal distance they cover. Divide those by the number of steps and you get the single-step rise and run, the two numbers the code cares about most.

Rise and run: the numbers the code sets

Start with total rise. Measure floor to floor, in inches, and be exact, because everything downstream depends on it. Divide that by a target riser height, and the sweet spot is 7 to 7.5 inches per step. Round up to a whole number of steps, then divide the total rise back by that step count to get the actual rise per step. A 48-inch total rise divided by 7.5 is 6.4, which rounds up to 7 steps, giving an actual rise of about 6.86 inches each.

Every riser has to be the same height. Not close. The same. The code allows a maximum variation of three eighths of an inch between the tallest and shortest riser in a flight, and that is the rule most do-it-yourselfers fail. If your first step is 7.5 inches and your last is 7 inches because the floor was not level, that half inch fails inspection and it is also a real trip hazard, because a foot expecting one height and finding another is how people fall. The calculator keeps every riser identical, which is the whole point of doing the math instead of eyeballing it.

The 7-11 rule
Professional stair builders aim for a 7-inch rise and an 11-inch run. It meets code with room to spare, it feels natural underfoot, and it produces a staircase angle right around 32 degrees. Push the rise toward the 7.75-inch code maximum and the stairs start to feel steep and cramped. Drop the rise below about 6.5 inches and they feel like a ramp and eat up floor space you probably do not have.

What angle should stairs be

Angle is just rise and run wearing a different hat. A staircase built to the 7-11 rule sits at about 32 degrees from horizontal, which is the comfortable middle most interior stairs land on. The code does not state an angle directly, it states the rise and run limits, but those limits box you into a range of roughly 30 to 37 degrees for a normal staircase. Go steeper than that and you are into ship ladders and attic pull-downs, which have their own separate rules. Go shallower and you are building a ramp.

The practical takeaway: you do not pick an angle, you pick a comfortable rise and run, and the angle falls out of them. If someone asks you the angle of a staircase, the honest answer is that a good one is about 32 to 35 degrees, and anything a person would call comfortable to climb lives in that band.

How many stair stringers do I need, and how long

The stringer is the backbone. Its length comes straight out of the Pythagorean theorem, because the stringer is the hypotenuse of a triangle whose legs are your total rise and total run. Square each, add them, take the square root. A staircase climbing 108 inches over 130 inches of run needs a stringer at least the square root of 108 squared plus 130 squared, which is about 169 inches, or 14 feet and an inch. Buy 16-foot 2x12 boards for a run like that. Anything shorter will not reach, and anything narrower than a 2x12 does not survive the notching.

Illustrative example · Minneapolis, MN
A homeowner building deck stairs measured a total rise of 42 inches and ordered three 8-foot 2x12 stringers. The calculator called for 6 steps at 7 inches each, a total run of 60 inches, and a stringer length of 73 inches. An 8-foot board is 96 inches, so length was fine. The catch was the throat. With a 7-inch rise and a 10-inch run, the notch cuts left exactly 3.5 inches of wood at the narrowest point, which is the code minimum. He was right at the line. Had he built to a 7.5-inch rise, the throat would have dropped below 3.5 inches and failed. The lesson: the stringer that looks fine on paper can still fail on the saw, so check the throat before you cut all three.

Composite illustration based on typical project dimensions, regional contractor pricing, and 2026 material costs. Not a specific real project.

How many stringers is a separate question, and it comes down to width and tread material. A 36-inch-wide staircase, the code minimum, takes 3 stringers: one under each edge and one down the middle. Every extra 16 to 18 inches of width adds a stringer, so a 48-inch stair takes 4. If your treads are composite or thin decking rather than solid 2x lumber, tighten that spacing to every 12 to 16 inches, because those materials flex more and a tread that bounces underfoot is a tread that needs more support beneath it.

 
36 in wide
code minimum
48 in wide
60 in wide
Stringers344 to 5
Spacing between18 in16 in15 to 16 in
With composite treadsAdd 1Add 1Add 1

Center stringers stop treads from bouncing. The quick test: if a tread flexes when you step in the middle of it, you needed another stringer under it.

The IRC numbers every staircase has to hit

These are not preferences. They are the limits an inspector checks, and a staircase outside them does not pass. Keep this table handy, because it is the whole rulebook for a standard residential stair.

 
IRC requirement
What it means in practice
Max riser height, 7.75 in7.75 inNo step can be taller than this. Most builders target 7 to 7.5.
Min tread depth, 10 in10 inMeasured nose to nose. 10.5 to 11 is the comfortable standard.
Min width, 36 in36 inClear width between the walls or railings.
Max riser variation, 3/8 in3/8 inTallest riser minus shortest. The rule DIYers fail most.
Min headroom, 80 in80 inMeasured straight up from the nosing to whatever is above.
Min throat, 3.5 in3.5 inWood left in the stringer after notching. Below this it is not strong enough.

The 3/8-inch variation rule and the 3.5-inch throat are the two that catch people. The calculator holds every riser identical and warns you when a rise and run combination cuts the throat too thin.

Treads, landings, and deck stairs

The tread count is always one less than the riser count, because the top tread is the floor you are stepping onto. A 14-riser staircase has 13 treads. For interior stairs the tread is usually a 1-inch hardwood board about 11.25 inches deep, giving a 10-inch run plus a 1.25-inch nosing. For deck and exterior stairs, two 2x6 pressure-treated boards or a single composite stair tread do the same job.

A landing becomes mandatory once a straight run climbs more than 12 feet of total rise, roughly 19 risers, and landings are also how L-shaped and U-shaped stairs turn a corner. A landing has to be at least 36 inches deep in the direction you walk and at least as wide as the stairs. When a landing splits a staircase, treat each flight as its own separate calculation with its own total rise, run, and stringer, and frame the landing as a platform in between.

Deck stairs follow the same code as interior stairs with a couple of extras. Any deck more than 30 inches above grade needs stairs, the total rise is measured from the deck surface down to the ground, and the whole run projects 5 to 6 feet out from the deck, which is often the thing that decides whether the stairs even fit the yard. If the stairs are part of a bigger deck build, the deck calculator and the deck planner roll the stair numbers into the full material list, and the lumber calculator converts the stringer and tread stock into board feet for pricing.

 
Interior stairs
Deck / exterior stairs
Stringer2x12 SPF or Douglas fir2x12 pressure-treated
TreadHardwood or LVP on plywoodPT, composite, or cedar
RailingRequired at 4+ risersRequired at 30 in+ above grade
RisersClosed, for the finished lookOpen allowed by most codes

Everything on an exterior stair is pressure-treated or rated for weather. Interior stairs use plain dimensional lumber for the stringers and finished material for the treads.

Where stairs go wrong

The failures repeat, and every one of them is a math or planning miss rather than a skill problem. The unequal risers top the list, usually because the total rise got measured off a floor that was not level, and the fix after the fact means rebuilding the whole flight. Cutting the stringer notches too deep is next, leaving a throat under 3.5 inches and a stringer that flexes or cracks under load.

After those come the planning misses. Forgetting that the run projects 5 or 6 feet out and discovering the stairs do not fit the space. Building too few stringers and feeling the treads bounce. Skipping the landing on a tall straight run. And the quiet one, forgetting that the tread count is one less than the riser count, then coming up a board short. None of these are hard to avoid. They come down to getting the numbers right first, which is exactly what the calculator is for, and then checking the throat on the real board before you commit the cuts to all of them.

Frequently asked

How many stairs do I need for an 8-foot ceiling?

For a floor-to-floor rise of about 8.75 feet (105 inches - 8 ft ceiling plus floor assembly), you need 14 risers and 13 treads with a 7.5" target. For a 9-foot ceiling (about 117 inches total rise), 16 risers and 15 treads. The calculator above handles any rise.

What's the IRC code for stair dimensions?

IRC 2021 residential: risers 4"-7.75" (variation ≤ 3/8" between any two risers), treads minimum 10", stair width minimum 36". Handrails required if more than 4 risers. Some local codes are stricter - always check before building.

How long should my stair stringer be?

The calculated stringer length is the actual slope length. For lumber ordering, round up to the next standard length (2×12 stringers come in 2-foot increments from 8 to 20 ft). A 108-inch rise at 7.5" risers needs a stringer about 155 inches long - order a 14-foot stringer (168 inches) with extra for cutting.

How many stringers do I need?

Minimum 2 (one each side) for stairs up to 36" wide. Add a middle stringer for stairs 36"+ wide or when treads are 1" or thinner. Always add a middle stringer for commercial or exterior stairs, and for any stair carrying heavy loads.

What's the rule of 25?

A comfort test: 2 × riser height + tread depth should be around 24-25 inches. Below 23 feels steep and unsafe; above 26 feels awkward. Most comfortable stairs: 7" rise + 11" tread = 25. Code allows stairs outside this range but experienced carpenters use it as a design target.

Can I adjust tread depth if my space is tight?

Yes, down to 10" (IRC minimum). Below that is not code-compliant. If you're truly tight on horizontal space, consider a winder stair (wedge-shaped treads turning at a corner) or a spiral stair - both consume less horizontal space than a straight run but are harder to navigate with furniture.

How do I measure total rise if the floor isn't finished?

Measure from the top of the lower finished floor surface to the top of the upper finished floor surface. If either floor is unfinished, add the finish thickness: typical hardwood adds 3/4", tile adds 1" with underlayment, carpet with pad adds 1/2". Miss this step and your top or bottom riser will be uneven.

What about landings?

Required by IRC for any stair with more than 12 risers in a single run, or at any turn. Landings must be at least as deep as the stair is wide (so a 36" wide stair needs a 36" deep landing). The calculator treats the stair as a single straight run - for L-shaped or U-shaped stairs, calculate each run separately.

Sources

Was this calculator helpful?