Introduction
Building stairs starts with getting the stringer right. The stringer is the angled board that holds up your treads and risers, and cutting it wrong means wobbly steps, wasted lumber, or a failed building inspection. This stair stringer calculator works out the exact riser height, tread depth, stringer length, and stair angle based on your measurements.
Just enter your total rise (the distance from the finished floor to the finished floor above) along with your tread depth, and the calculator works out the rest. It tells you how many steps you need, what each riser height will be, the total run of your staircase, and the length of lumber you'll need for the stringer. It also checks your riser height, tread depth, tread nosing and the rise of one flight against the IRC residential building code, so you'll know right away if your riser height exceeds the 7¾-inch maximum, if your tread depth falls below the 10-inch minimum, or if one flight rises more than 12 feet 7 inches.1
Use Basic Mode for quick calculations when you just need the key numbers. Switch to Comprehensive Mode for full control, including automatic or manual step counts, tread thickness adjustments, a step-by-step breakdown table, a stair diagram, and an angle visualization. The calculator works in both imperial and metric units, takes fractions of an inch down to 1/8" and shows results to the nearest 1/16", and applies comfort rules like the rise-plus-run check (ideally 17 to 18 inches) to help you build stairs that are safe and easy to walk on.
How to Use Our Stair Stringer Calculator
Enter your staircase measurements below, and this calculator will give you the number of risers, step rise height, total run, stringer length, stair angle, and building code and comfort checks. You can choose Basic Mode for quick results or Comprehensive Mode for full control over every detail.
Total Rise (Floor to Floor): Measure the vertical distance from the finished surface of the lower floor to the finished surface of the upper floor. This is the full height your stairs need to climb. You can enter this value in inches, feet, meters, or centimeters.
One Step Run (Tread Depth): Enter the horizontal depth of a single tread, measured from the nose of one step to the nose of the next. The standard range is 10 to 11 inches. The code minimum is 10 inches, and a tread less than 11 inches deep needs a nosing of ¾ to 1¼ inches.1 In Comprehensive Mode, you can switch between entering one step run or the total run instead.
Calculation Mode (Comprehensive Only): Choose between Automatic and Manual. Automatic mode finds the best number of steps for you based on a target step height. Manual mode lets you set every dimension yourself.
Target Step Height (Comprehensive, Automatic): Pick your preferred riser height from the dropdown. The code maximum is 7¾ inches.1 The calculator will figure out how many risers fit your total rise based on this target, and adds risers when needed so that no riser is taller than 7¾ inches.
Fixed Number of Steps (Comprehensive, Automatic): If you already know how many risers you want, switch to "Fixed Number of Steps" and type in your count. The calculator will then divide the total rise evenly across that number of risers.
Total Run (Comprehensive, Manual): Enter the full horizontal distance your staircase will cover from the bottom riser to the top. The calculator divides this by the number of treads to find each step's run depth.
Number of Steps / Risers (Comprehensive, Manual): Type in the exact number of risers you plan to use. The calculator will split both the total rise and total run evenly across your steps.
Tread Thickness (Comprehensive Only): Enter the thickness of your tread material, typically 1 to 1½ inches. This adjusts the stringer length calculation so the bottom of your stringer is cut correctly to account for the added tread height. If the stringer will stand on subfloor with finish flooring still to go down, enter the tread thickness less the finish flooring thickness.4
What Is a Stair Stringer?
A stair stringer is the diagonal board that supports the treads (the flat parts you step on) and risers (the vertical parts between treads) of a staircase.4 Most stairs use two or three stringers: one on each side and sometimes one in the middle for extra strength. Stringers are usually cut from 2×12 lumber, with notches shaped like a zigzag pattern to hold each step in place.4 Getting the stringer measurements right is the most important part of building safe, comfortable stairs, and the overall stair layout is worth planning in full before you start cutting stringers.
Key Stair Terms You Should Know
Total rise is the full vertical distance from the finished floor at the bottom to the finished floor at the top.4 Total run is the full horizontal distance the staircase covers. Step rise (or riser height) is how tall each individual step is, while step run (or tread depth) is how deep each step is from front to back. The stringer length is the actual length of the diagonal board you need to cut, calculated using the total rise and total run with the Pythagorean theorem.
Building Code Requirements
The International Residential Code (IRC) sets clear rules for residential stairs. The maximum riser height is 7¾ inches, and the minimum tread depth is 10 inches.1 Treads less than 11 inches deep also need a nosing, the front edge that overhangs the riser below, of ¾ to 1¼ inches.1 All risers in a staircase must be within ⅜ inch of each other in height.1 Uneven steps are a major tripping hazard.2 A 7¾-inch riser on a 10-inch tread, the steepest stair these limits allow, is about 37.8°. The most comfortable and safest stairs sit between 30° and 35°.2 You also need at least 6 feet 8 inches of headroom measured vertically from the nose of any tread to the ceiling above.1 One flight of stairs can rise no more than 12 feet 7 inches between floors or landings.1 That is 151 inches, so a taller stair needs a landing partway up.
The Rise + Run Comfort Rules
Experienced builders use two simple formulas to check if a staircase will feel comfortable to walk on. The first is rise + run = 17 to 18 inches.2 For example, a 7-inch riser paired with a 10½-inch tread gives you 17½ inches, right in the sweet spot. The second formula is 2 × rise + run = 24 to 25 inches.2 If your numbers fall outside these ranges, the stairs may feel too steep or too shallow.
How to Measure and Calculate Stair Stringers
Start by measuring the total rise from finished floor to finished floor. This must be exact, because any error ends up in the top or bottom step, and every riser has to be within ⅜ inch of the others.1 Divide the total rise by your target riser height (7 inches is a good starting point) and round to the nearest whole number. That gives you the number of risers. Then divide the total rise by the number of risers to get your actual step rise. If that is more than 7¾ inches, add one more riser.1 When the top floor acts as the final step, the number of treads is one less than the number of risers.4
Multiply the tread depth by the number of treads to get the total run. Use the formula stringer length = √(total rise² + total run²) to find how long your stringer board needs to be.4 Remember to cut one tread thickness off the bottom of the stringer when it stands on a finished floor, or the tread thickness less the finish flooring thickness when it stands on subfloor.4 This is called "dropping the stringer" and keeps the first step the same height as all the others once the treads are installed.4 When calculating how much lumber to purchase, board footage is the measure used to estimate the material you'll need for your 2×12 stringer stock.
Tips for Cutting and Installing Stringers
Always use straight, knot-free lumber for stringers. After cutting the notches, the narrowest part of the board is called the throat, and a common rule of thumb is to keep it at least 3½ inches deep. For outdoor deck stairs, the American Wood Council's deck construction guide calls for at least 5 inches.3 Use a framing square with stair gauges clamped on to mark each step consistently. Secure stringers to the header at the top and a kickboard or concrete pad at the bottom. A common rule of thumb for stairs wider than 36 inches is to add a third stringer in the center to prevent treads from bouncing or sagging. Outdoor deck stairs built only with notched stringers need at least three, set no more than 18 inches apart.3