The stair formula
Designing a flight of stairs means splitting a fixed total rise into equal risers, then sharing the total run across the treads.
Every flight has one more riser than tread, because the upper floor serves as the last step. Rounding the riser count to a whole number keeps every step exactly equal — uneven steps are a trip hazard.
Worked example
A staircase with 108 in total rise, 120 in total run, target riser 7 in:
Building code limits
Typical US residential code (the IRC) caps the riser at about 7.75 inches and sets a minimum tread depth around 10 inches, with all steps in a flight kept uniform within a small tolerance. These limits keep stairs safe to climb and descend. Local jurisdictions can differ, so always confirm with your building department before cutting stringers.