Introduction
Building stairs is one of the most important parts of any construction project. If the measurements are off, the stairs can be unsafe or fail to meet building codes. Our Stair Calculator helps you figure out the right rise, run, and number of steps for your staircase. Just enter your total height and the space you have to work with, and the calculator does the math for you. It gives you step height, tread depth, and stringer length so you can build stairs that are safe, comfortable, and up to code. Whether you are a homeowner working on a deck or a contractor framing a new house, this tool saves time and helps you get it right the first time.
How to Use Our Stair Calculator
Enter your measurements and stair preferences below, and this calculator will give you the number of steps, riser height, total run, stringer length, stair angle, and building code compliance for your staircase. Choose from three modes: Basic for quick estimates, Automatic for optimized results, or Manual for full control.
Total Rise (Floor to Floor) — Measure the full vertical distance from the surface of the lower floor to the surface of the upper floor. This is the total height your stairs need to cover. You can enter this value in inches, feet, centimeters, or meters. A typical floor-to-floor height is between 97 and 110 inches.
Tread Depth (Run per Step) — Enter the horizontal depth of each step from front to back. Building code requires a minimum of 10 inches. Most stairs use a tread depth between 10 and 11 inches. This input is used in Basic mode and as a one-run option in Manual mode.
Stringer Mount Type — Choose how the top of your stringer connects to the upper floor. "Standard" means the stringer rests on top of the header joist. "Flush" means the stringer top is level with the upper floor surface. This choice affects how many treads your staircase will have.
Target Step Height (Automatic Mode) — Pick your preferred riser height from the dropdown. The calculator uses this to find the best number of steps. Building code allows a maximum of 7.75 inches, and a height between 7 and 7.5 inches is the most comfortable for most people.
Preferred Tread Depth (Automatic Mode) — Select your desired tread depth from the dropdown. The calculator uses this value when the run input is set to "Auto." Options range from 9 to 12 inches, with 10.5 inches as a comfortable default.
Run Input Mode — Choose whether the calculator should figure out the total run from your tread depth ("Auto" or "One Run"), or whether you want to type in a specific total run distance. If you pick "Specify Total Run" or "Total Run," enter the full horizontal distance available for the staircase.
Tread Material — If you plan to add tread boards on top of your stringers, select "Has Tread Material" and pick your board type. Options include two 5/4×6 boards (1 inch thick), two 2×6 boards (1.5 inches thick), one 2×12 board (1.5 inches thick), or a custom thickness. The calculator adjusts the first riser cut on the stringer so all steps end up equal after the tread material is installed. If you need to figure out how much lumber to purchase for your treads and stringers, our Board Foot Calculator can help you estimate material quantities.
Rise Mode (Manual Mode) — Choose "Fixed Rise Height" to enter a desired riser height and let the calculator find the closest number of steps. Or choose "Fixed Number of Steps" to type in exactly how many risers you want, and the calculator will figure out the riser height for you.
Desired Riser Height (Manual Mode) — Enter the riser height you are aiming for. The calculator rounds to the nearest whole number of steps and then recalculates the exact rise per step so all risers are equal.
Number of Steps (Manual Mode) — Enter the exact number of risers you want in your staircase. The calculator divides the total rise by this number to give you the rise per step.
Headroom Height (Manual Mode) — Enter the available vertical clearance above your stair treads, measured from the nose of a tread straight up to the ceiling or header above. Building code requires at least 80 inches (6 feet 8 inches) of headroom. This field is optional but helps you check code compliance.
Stair Calculator – How to Calculate Stairs for Your Project
A stair calculator helps you figure out the key measurements you need before cutting a single board. When you build stairs, you need to know the riser height (how tall each step is), the tread depth (how deep each step is), the total run (how far the stairs stretch out horizontally), and the stringer length (the long diagonal boards that hold everything together). Getting these numbers right is the most important part of building safe, comfortable stairs.
Key Stair Terms You Should Know
Total rise is the full height from one finished floor to the next finished floor. This is the first measurement you take, and everything else comes from it. Risers are the vertical parts of each step. Treads are the flat parts you step on. Stringers are the notched boards running diagonally underneath the stairs that support the treads and risers. Most stairs use two or three stringers made from 2×12 lumber.
Building Code Requirements for Residential Stairs
The International Residential Code (IRC) sets clear rules for stairs in homes. The maximum riser height is 7¾ inches, and the minimum tread depth is 10 inches. Every riser in a staircase must be within ⅜ inch of every other riser — uneven steps are a major tripping hazard. The minimum headroom (the space above the stairs) must be at least 80 inches (6 feet 8 inches) measured from the nose of the tread straight up to the ceiling or header above. Stairs must also be at least 36 inches wide.
The Rise-Plus-Run Rule
Experienced builders use a simple comfort rule: the riser height plus the tread depth should equal between 17 and 18 inches. For example, a 7-inch riser paired with an 10½-inch tread gives you 17.5 inches — right in the sweet spot. Stairs that follow this rule feel natural to walk up and down. When the sum is too low, stairs feel cramped. When it is too high, stairs feel like a stretch.
How Stringer Mount Type Affects Your Layout
There are two common ways to attach the top of a stringer. With a standard mount, the stringer sits on top of the upper floor's header joist, and the top riser lands at the floor level. This means you have one fewer tread than risers. With a flush mount, the top of the stringer is level with the upper floor, so the number of treads equals the number of risers. Your mount type changes the total run of the staircase, so you need to decide this before you start cutting.
Why Tread Material Thickness Matters
If you add tread boards on top of the stringer notches, the first riser cut on the stringer needs to be shorter by the thickness of the tread material. For example, if you are using 2×6 boards as treads (which are actually 1½ inches thick), you cut 1½ inches off the bottom of the stringer. This keeps the first step the same height as every other step once the treads are installed. Skipping this adjustment is one of the most common mistakes in stair building.
Stringer Throat Depth
When you cut notches into a 2×12 stringer (which is actually 11¼ inches wide), you need to leave enough solid wood behind the notch for strength. This remaining wood is called the throat. The minimum throat depth should be 3½ inches. If your rise and run measurements create notches that are too deep, the stringer will be weak and could crack or fail under load. A stair calculator checks this for you automatically.
Choosing the Right Stair Angle
A comfortable staircase usually falls between 30 and 35 degrees. Anything under 20 degrees feels more like a ramp. Anything over 45 degrees starts to feel like a ladder. Building codes generally keep you under about 42 degrees when you follow the maximum rise and minimum run limits. The angle is determined entirely by the ratio of rise to run — steeper risers with shallow treads make a steeper stair. If you need help with the geometry of the diagonal stringer cut, our Right Triangle Calculator can walk you through the math, and you can verify stair pitch using our Slope Calculator.
Related Construction Calculations
Stair building is often just one part of a larger project. If you're framing the walls around your staircase, our Framing Calculator and Stud Calculator can help you plan the wall layout. For finishing the area beneath or around the stairs, you may need our Drywall Calculator or Paint Calculator. If you're building deck stairs, tools like the Decking Calculator and Concrete Calculator (for footings at the base of the stairs) are essential. Planning a landing at the bottom? Our Square Footage Calculator can help you size the pad, and if you're installing tile or carpet on your treads, check out the Tile Calculator or Carpet Calculator. For roof-access stairs or attic conversions, you may also find the Rafter Calculator and Insulation Calculator useful for the surrounding structure. If your stair project involves pouring a concrete landing or pad, the Concrete Block Calculator can help estimate masonry for supporting walls, and our Rebar Calculator will help you reinforce any concrete pours. Finally, if you're laying flooring at the top or bottom of the staircase, our Flooring Calculator can help you estimate the materials you'll need.