About Staircase Calculator
Building code typically requires riser heights between 4" and 7.75" with a maximum variation of 3/8" between steps. Tread depth should be at least 10" for residential stairs. The calculator divides total rise by the preferred riser height and adjusts to find equal steps.
The stringer (carriage) length is calculated using the Pythagorean theorem based on total rise and total run. Stringer boards are typically 2x12 lumber. Always check local building codes before construction.
When to Use This Calculator
Building deck stairs: A deck 24 inches off the ground (typical for many homes) needs just 3-4 steps. With a total rise of 24 inches and run of about 40 inches, you'll get steps that feel natural and safe. Don't skip the handrail — codes require it for any staircase with more than 2 risers.
Constructing basement stairs: Standard basement stairs have a total rise around 96-108 inches. The calculator helps you fit comfortable steps within your available floor space. If your run is limited, you may need steeper steps (closer to the 7.75 inch max riser height).
Designing a front porch staircase: A front porch 36 inches high needs about 5-6 steps. The calculator helps you space them evenly so the rise is consistent — a tripping hazard that's shockingly common in DIY stairs.
How to Use the Staircase Calculator
You're building stairs from your deck down to the yard with a total rise of 108 inches and a total run of 132 inches. Enter the total rise (108) and total run (132). For preferred riser height, 7 inches is the most comfortable for residential stairs. Set tread thickness to 1 inch for standard 2x12 treads. Hit calculate, and you'll see you need about 15 steps with an actual riser height of 7.2 inches — perfectly within code (max 7.75 inches). Each tread will be about 9.43 inches deep, or 10.43 inches with a 1-inch nosing overhang. The stringer length is about 170.5 inches (14.2 ft). For a typical staircase, you'll need three stringers cut from 2x12 pressure-treated lumber.
Tips for Safe Stair Building
Code requires all risers to be within 3/8 inch of each other — uneven steps are a major trip hazard. The calculator ensures equal spacing automatically. Use the "rise + run = 17-18" rule of thumb: a 7.2 inch riser plus a 10.43 inch tread (with nosing) equals 17.63, which is right in the comfort zone. Always cut your first stringer first, test-fit it, then use it as a template for the others. And don't forget: handrails are required on at least one side for any staircase over 30 inches high.