One miscalculated staircase stringer can fail a framing inspection by a quarter inch — or worse, create a 3/8" riser variation at the bottom landing that causes real trip hazards. Under the 2021/2024 International Residential Code (IRC R311.7) , residential stairs must simultaneously satisfy maximum riser height ( 7-3/4" ), minimum tread depth ( 10" ), uniform riser tolerance ( <= 3/8" ), minimum width ( 36" clear), and minimum headroom ( 6'-8" / 80" measured vertically from the nosing line).
In PlanCaliber , our free Stair Stringer & Rise/Run Calculator computes exact fractional-inch risers, total horizontal run, rough stairwell opening length for 80" headroom, and 2x12 stringer lumber lengths in real time. Here is the exact TypeScript geometry engine behind it.
1.…