Stair Calculator with Diagram | Get Instant Stair Dimensions & Stringer Results
Our Stair Calculator handles every type of stair project in one place. It automatically adjusts for interior and deck stairs, calculates rise, run, tread depth, number of steps, stringer length, and angle, and even generates a printable stair diagram with exact measurements that you can download easily.
Values are rounded to the nearest sixteenth for labels.
Results
- Number of Risers
- –
- Steps on Stringer [D]
- –
- Angle
- –
- First Step Ht. [E]
- – (– in)
- Typical Step Ht. [F]
- – (– in)
- Stringer Placement [H]
- – (– in)
- Total Run [G]
- – (– in)
- Stringer Length
- – (– in)
Download Results
About Stringer Mount Type
This option controls how the stair stringer is attached to the upper landing or deck frame.
In this type of mount, the stringer hangs down from the landing. The top part of the stringer is attached to the front face of the landing or deck rim. Since the landing itself is not used as a step, the first stair step starts one full riser height below the landing surface.
In this type of mount, the top of the stringer is level with the landing surface. The landing itself serves as the first step, and the first tread is attached directly on top of the stringer, making it perfectly flush with the landing surface.
Once the results are calculated, you can switch between Standard and Flush, then click Calculate again to compare. Since the Tread Depth is constant, the Total Run will vary when you toggle the two options.
How to Use?

All You Need To Know About Stair Calculator!
What is Stair Calculator?
A stair calculator is an essential online tool for anyone who is planning to build a staircase for construction. If you're creating a custom set of stairs for your home or business, this tool simplifies the calculation of stair dimensions for you. It calculates stair rise, stair run, stair tread depth, stair stringer length, and stair angle. These terms are defined below;
It doesn’t matter whether you are working with wooden stairs or undertaking more complex stair construction projects; this rise and run calculator for stairs will help you achieve accurate and efficient staircase dimensions.
This stair calculator instantly computes stair rise, run, treads, stringer length, number of steps, and angle with a clear diagram. Works for both deck and indoor stairs.


History of Stair Calculator
Before digital tools, stair construction was entirely dependent on manual calculations. Builders used Geometry, trigonometry, and the Pythagorean theorem to calculate the rise and run of stairs, plus total treads, stringers, angle, and nosing of stairs. Their one wrong calculation might result in unsafe or uncomfortable stairs; therefore, these calculations need to be done with precision and accuracy.
With time, carpenters started using framing squares, stair gauges, and printed stair tables to simplify the calculation process. These early tools helped them mark accurate cuts on the stringer and maintain uniform step height and tread depth. Although the process was still manual, it improved consistency and reduced the chances of major measurement errors.
With the development of construction methods of the mid-20th century, mechanical and printed aids, stair charts, and slide rules, etc, were becoming popular among builders. These sources helped builders to estimate the dimensions of steps faster, especially in large projects. However, true innovation began with the arrival of digital calculators and computer-aided design (CAD) in the late 20th century. With these, builders could automatically compute stair rise, run, total height, and angle with greater accuracy.
In the early 2000s, online stair calculators transformed the process. Builders could enter basic inputs, such as total rise and preferred riser height, and instantly receive accurate stair dimensions, 2D diagrams, and even material estimates. Hours of manual calculation have now been done in seconds, more accurately and easily. These web-based tools became a must-have for professionals and DIY users.
About Stringer Mount Type
This refers to how the stringer is attached to the upper landing or deck frame.
Standard Mount: The stringer hangs down from the landing means the top of the stringer is attached to the face of the landing, and the first step down is a full riser height from the landing surface.
Flush Mount: The stringer is level with the landing means the mount uses the landing itself as the first step, so the first tread is attached directly to the top of the stringer, flush with the landing surface.
Once results are calculated, you can toggle between Standard and Flush and click Calculate again to compare. Since the Tread Depth [B] is constant, the Total Run [G] will vary when you toggle the two options.
Note: If the diagram image is not loading properly, refresh the page, select your desired mount type, and click Calculate again.
Understanding the Terminology | How the Stair Calculator Works
Before understanding how a stair calculator works, it’s important to clearly understand the main parts of a staircase. Above, I provided a brief introduction to a few important stair terms; now, let’s explain them in a more detailed and easy-to-understand way, based on building code requirements.
1. Stair Rise (or Riser Height)
The riser is the vertical height between one step and the next, from the upper surface of one tread to the upper surface of the next. It decides the height of each step. Stairs are safe and comfortable to use due to a regular riser height. Risers define the total number of steps in a staircase. Use our stair calculator to calculate the exact riser height and ensure a safe, well-designed staircase.
Building Code Requirement (Residential): Maximum riser height for residential staircases is 7.75 inches (19.7 cm).
Commercial: Maximum riser height for commercial staircases is 7 inches (17.8 cm).
2. Stair Run/Tread Depth
The horizontal flat part of a step on which you place your foot is known as the stair run or tread depth. It is measured as the distance between the front edge of one tread (nosing) and the front edge of the other tread (nosing). The depth of the treads also dictates the comfort of each step and the overall horizontal space needed by a staircase. In computing the total stair run, the last tread at the top is excluded. If nosing is used, its overhang must be subtracted from the overall horizontal measurement. Tread depth should be properly maintained to ensure safety, comfort, and compliance with codes.
Building Code Requirement (Residential): Minimum tread depth for residential staircases is 10 inches (25.4 cm), measured nosing-to-nosing.
Commercial: Minimum tread depth for commercial staircases is 11 inches (27.9 cm), measured nosing-to-nosing.
3. Stair Stringer
A stair stringer is the support beam on which the treads and risers are fixed. In a staircase, there are generally three stringers, one at each side, and one in the center. They can be cut to the shape of the steps (open stairs) or uncut (covered stairs). Even if hidden, stringers are essential for structural support. Its length is calculated from the total rise and total run (like the diagonal of a triangle). A well-measured stringer ensures the stairs fit perfectly during construction.
4. Number of Steps
It is just the number of risers (steps) that your staircase will have. A greater total rise requires more steps. The stair calculator breaks the rise into equal parts to determine the appropriate number of steps. This ensures that every step is secure, stable, and convenient.
Building Code Requirement (Residential): Residential stairs may allow longer continuous flights or different limits, depending on local building regulations.Commercial: Commercial stair flights are typically limited to a maximum of 12 risers (steps) per flight, after which a landing is required.
5. Stair Angle (Slope)
The stair angle shows how steep or shallow your staircase is. A larger rise or shorter tread makes stairs steeper. A balanced angle makes stairs comfortable and safe. The stair angle is typically 30°–37° for comfortable residential stairs. Commercial stairs may vary slightly depending on regulations.
6. Nosing
Have you ever seen the little lip in front of a step? This is what is referred to as the nosing. It is the slightly raised front side of a stair tread, which is intended to enhance the tread depth in terms of support. This extension makes the stairs safer and more comfortable because the steps become spacious. The building codes insist that the stair nosing is needed due to the increased visibility and the degree of grip that may be obtained, which will eliminate the risks of slipping.
Building Code Requirement (Residential): Residential stair nosing must project at least 0.75 inches (1.9 cm) and no more than 1.25 inches (3.2 cm).Commercial: Commercial stair nosing projection is typically limited to a maximum of 1.25 inches (3.2 cm), depending on local regulations.
7. Headroom
Headroom is the vertical distance above the stairs that prevents you from hitting your head as you walk up or down. It is the height between the tread and the ceiling above it.
Building Code Requirement: Minimum stair headroom for both residential and commercial stairs is 6 ft 8 inches (203.2 cm).
8. Stair Width
The side-to-side measurement of the staircase is the stair width. A wider staircase feels more spacious and is easier to use. Minimum widths for safety are often required by building codes. Residential stairs tend to be narrower than commercial stairs, especially when it comes to adding railings or planning traffic flow.
Building Code Requirement (Residential): Minimum stair width for residential stairs is 36 inches (91.4 cm).
Commercial: Minimum stair width for commercial stairs is typically 44 inches (111.8 cm) or more.
9. Handrails
When you go up or down the stairs, the support you hold is called a handrail. It travels along the side of the staircase and becomes a tool for balance and safety. Depending on the staircase width, these are required on one or both sides of the stairs.
Building Code Requirement (Residential): Handrail height must be 34–38 inches (86.4–96.5 cm) measured from the tread nosing. Circular handrails must have a diameter between 1.25 and 2 inches (3.2–5.1 cm).
Commercial: Handrails are required on both sides of commercial stairs, with a height of 34–38 inches (86.4–96.5 cm) and a diameter of 1.25–2 inches (3.2–5.1 cm).
10. Guardrails (Guards)
Guardrails are safety features on the sides of open stairs, landings, or platforms, which prevent people from falling off the edge. Whenever open stairs have one or more sides, guardrails are required.
Building Code Requirement (Residential): Guards are required when the walking surface is more than 30 inches (76.2 cm) above the floor or ground.
Guards on stairs: minimum 34 inches (86.4 cm)
Guards on landings, decks, balconies: minimum 36 inches (91.4 cm)
Commercial: Minimum guard height is typically 42 inches (106.7 cm).
Everything in One Interface.
Rise and Run Mode – Enter total rise, tread depth, and get perfect proportions automatically.
Stringer Mode – Get exact stringer length, cut angles, and layout points for clean, accurate cuts.
Deck Mode – Switch to outdoor presets for deck stairs, including code-compliant treads, gaps, and anti-slip recommendations.
Tread & Riser Details – Automatically calculate tread count, riser height, and total run.
Visual Diagram Output – See your full stair layout as a scaled diagram, ready to print or export.
Downloading the Output - You can download the Diagram and the results in PDF, JPEG or as a PNG
How the Stair Calculator Uses These Terms to Build a Staircase
Let’s understand how the stair calculator uses these measurements together to create a complete and accurate staircase layout.
1. Start With Total Rise
The process begins with the total vertical height (total rise) between the two floors.
The calculator uses this value to determine:
Formula used:
Riser Height = Total Rise ÷ Number of Risers
The tool makes sure that each step is comfortable and consistent by dividing the rise equally.
2. Determine the Number of Steps
Once the total rise is entered, the calculator works out:
Formula used:
Number of Risers = Total Rise ÷ Ideal Riser Height
This ensures that your staircase meets the requirements of usability and safety regulations.
3. Calculate Total Run & Tread Depth
After the risers are balanced, the calculator calculates:
Formula used:
Total Run = Tread Depth × Number of Treads
This helps you understand how much space your staircase requires on the floor.
4. Compute the Stair Angle
The tool calculates the angle or slope of the stair by combining the rise and run.
A correct angle ensures:
Formula used:
Stair Angle = arctan (Total Rise ÷ Total Run)
The calculator automatically computes this angle for precise results.
5. Find the Stringer Length
Finally, the calculator applies basic geometry to find the diagonal stringer length.
This gives you the exact measurement needed to cut the stair stringer in wood, metal, or concrete structures.
Formula used:
Stringer Length = √(Total Rise² + Total Run²)
Whether you're building a home or commercial staircase, our stair calculator ensures it is accurate, safe, and well-structured.
How Each Stair Component Affects Safety and Comfort?
Each term affects safety, comfort, and compliance with building standards.
Our stair calculator uses all these terms to help you design a staircase that is both safe and code-friendly.
Advantages of Our Stair Calculator
Our stair calculator;

Your Safety Matters
Stair Safety and Code Verification
Our stair calculator follows standard building safety ratios and international code ranges, helping you design stairs that are both comfortable and compliant. Every calculation is based on proven geometry that keeps step height, tread depth, and stair slope within accepted safety limits.

Automatic Code Range Checks
The calculator automatically warns you when your stair rise or tread depth falls outside the safe range for residential or deck construction.
It ensures:
Consistency Verification
Uneven steps can cause trips and injuries. Our tool balances all risers so the first and last steps remain equal, even after flooring or decking thickness is added.
Stringer and Support Accuracy
Stringer length and cut angles are calculated to the nearest millimeter or 1/16 inch, depending on your unit preference, ensuring safe load-bearing and stable stair framing.
Local Code Awareness
While the calculator uses industry-standard values, you should still check your local building code or inspector requirements. Different regions may have small variations in allowable rise, run, or headroom.
Safety Tips for DIY Builders
1. Always use pressure-treated lumber or code-approved material for deck stairs.
2. Double-check all measurements before cutting.
3. Use a framing square when transferring stringer layout points.
4. Verify top and bottom landing levels before installation.
5. Test stability after assembly before final finishing.
Frequently Asked Questions (FAQs)
How do I calculate stairs easily?
Use our stair calculator. Just enter total rise, tread depth, and it gives you the ideal rise, run, stringer length, and stair angle automatically.
What is a stair rise and run for stairs?
Typical residential stairs have a rise of about 7 inches and a tread run of 10 to 11 inches, but our calculator adjusts to your inputs and local codes.
How do I calculate stair stringers?
Enter your total rise and tread depth. The calculator will show stringer length, step cuts, and layout points for accurate cutting.
Can I use this calculator for deck stairs?
Yes, it can be used for outdoor mode that automatically adjusts for deck stair dimensions, gaps, and building code recommendations.
What is the formula for calculating stairs?
Divide the total rise by your desired riser height to get the number of steps. Multiply that by tread depth to get total run. The calculator does this automatically.
What is the 27 rule for stairs?
The 27 rule means two risers plus one tread should equal about 27 inches, giving a comfortable stair slope.
What is the 7-11 rule for stairs?
It refers to an ideal ratio where the stair rise is around 7 inches and the tread (run) is about 11 inches for safe, natural walking comfort.
What is a good stair angle?
A safe and comfortable stair angle usually falls between 34° and 38°.
?
