Updated on April 21st, 2026

Stair Calculator

Created By Jehan Wadia

Basic Automatic Manual
Basic Stair Calculator

Enter total rise and one tread depth to get a quick estimate.

Typical floor-to-floor: 97″–110″
Code min: 10″. Common: 10″–11″
Standard: stringer sits on header joist. Flush: top of stringer is level with upper floor.
Results
Building Code Check (IRC Residential)
Automatic (Optimized) Stair Calculator

Enter total rise and preferences. The calculator finds the optimal configuration.

Code max: 7.75″. Comfortable: 7″–7.5″
Code min: 10″
Results
Building Code Check (IRC Residential)
Manual (Comprehensive) Stair Calculator

Full control over all parameters with code validation.

IRC minimum: 80″ (6′8″). Enter available headroom.
Results
Building Code Check (IRC Residential)
Stair Angle Reference

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.


Frequently Asked Questions

What is total rise and how do I measure it?

Total rise is the vertical distance from the top of the lower finished floor to the top of the upper finished floor. Use a tape measure and measure straight up from one floor surface to the other. Do not measure along the wall or along an existing staircase. This number is the starting point for all stair calculations.

How many steps do I need for a 9-foot ceiling?

A 9-foot ceiling usually means a total rise of about 108 inches (floor to floor, including the floor framing above). At a comfortable riser height of 7 inches, you would need about 15 or 16 risers. The exact number depends on your floor construction thickness. Enter your exact total rise into the calculator to get a precise answer.

What is the difference between risers and treads?

Risers are the vertical parts of each step. They set the height you climb. Treads are the flat horizontal parts you actually step on. The number of treads is usually one less than the number of risers in a standard mount staircase, because the upper floor acts as the last tread.

What is a stringer?

A stringer is the long diagonal board that supports the stairs. It has notches cut into it shaped like a zigzag. The treads and risers sit on these notches. Most stairs use two or three stringers made from 2×12 lumber. The calculator tells you how long your stringer needs to be.

What is the difference between standard and flush mount?

Standard mount means the top of the stringer rests on top of the header joist, so the upper floor itself acts as the top tread. This gives you one fewer tread than risers. Flush mount means the stringer top is level with the upper floor, so you have the same number of treads and risers. Your choice affects the total run of the staircase.

Why does the calculator subtract tread thickness from the first riser?

When you add tread boards on top of the stringer notches, every step gets taller by the thickness of the board. To keep all steps equal, you cut the bottom of the stringer shorter by the tread thickness. This makes the first riser shorter on the stringer, but once the tread is added, it matches every other step.

What is the difference between Basic, Automatic, and Manual modes?

Basic mode gives you a quick estimate from just total rise and tread depth. Automatic mode lets you pick a target step height and preferred tread depth, and the calculator finds the best layout. Manual mode gives you full control over every setting, including riser height, number of steps, tread material, and headroom checks.

What is stringer throat depth and why does it matter?

Throat depth is the amount of solid wood left in the stringer after the notch is cut. If the notch is too deep, the stringer becomes weak and can crack. The minimum throat depth should be 3.5 inches when using a 2×12 stringer. The Manual mode in this calculator checks this for you.

Can I use this calculator for deck stairs?

Yes. Deck stairs follow the same math as indoor stairs. Measure the total rise from the ground to the top of the deck surface. Enter that number into the calculator. The same building code rules for riser height and tread depth apply to deck stairs.

What does the rise-plus-run rule mean?

The rise-plus-run rule says that the riser height plus the tread depth should add up to between 17 and 18 inches. For example, a 7-inch riser with a 10.5-inch tread equals 17.5 inches. Stairs that follow this rule feel comfortable and natural to walk on. The calculator checks this rule automatically.

What if my riser height fails the code check?

If the riser height is above 7.75 inches, you need more steps. If it is too low, you need fewer steps. Adjust the total rise, target step height, or number of steps until the code check shows a pass. The Automatic mode does this for you by finding the best number of risers.

How do I calculate stringer length by hand?

Stringer length is the diagonal distance from the bottom of the stairs to the top. You can calculate it using the Pythagorean theorem: stringer length equals the square root of (total rise squared plus total run squared). The calculator does this math for you and displays the result.

What is headroom and how much do I need?

Headroom is the vertical distance from the front edge of a tread straight up to the ceiling or header above. Building code requires a minimum of 80 inches (6 feet 8 inches) of headroom at all points along the staircase. You can enter your available headroom in Manual mode to check compliance.

Can I enter measurements in metric units?

Yes. Every input field in the calculator has a unit dropdown where you can choose inches, feet, centimeters, or meters. The calculator converts everything internally and displays results in inches and feet.

What does the stair angle tell me?

The stair angle tells you how steep your staircase is. A comfortable stair angle is between 30 and 35 degrees. Anything over 45 degrees feels like a ladder, and anything under 20 degrees feels like a ramp. The angle is set by your riser height and tread depth together.

How do I know how many stringers I need?

Most residential stairs need at least two stringers, one on each side. If your stairs are wider than 30 inches, add a third stringer in the middle. For stairs wider than 36 inches, a center stringer is strongly recommended to prevent the treads from bouncing or sagging.

What size lumber should I use for stringers?

The standard choice is 2×12 lumber, which is actually 11.25 inches wide. This size gives enough wood to cut the notches while keeping the throat depth above the 3.5-inch minimum. Smaller lumber like 2×10 can work for very short stairs with shallow rises, but 2×12 is safest for most projects.

Why are my steps uneven when I build them?

Uneven steps usually happen because the total rise was measured wrong, or the tread material thickness was not accounted for. Always measure total rise from finished floor to finished floor. If you add tread boards, subtract their thickness from the first riser cut on the stringer. The calculator handles this when you select a tread material.