Building a staircase is one of the few home projects where the math genuinely has to be right before you cut a single board — get the riser height wrong and you build a staircase that trips people up (literally) and fails inspection, since most building codes limit riser height to a narrow range and require every step in a run to be nearly identical. Yet the underlying calculation is straightforward geometry once you know the total vertical rise you need to climb.
Our stair calculator takes your total rise (the floor-to-floor height) and your target riser height, then works out the number of steps, the resulting tread depth needed for a comfortable and code-compliant run, and the diagonal stringer length you'll need to cut from a 2×12. This is the same core calculation carpenters use when laying out stringers for a deck staircase, a basement staircase, or an interior staircase connecting two floors.
Enter your numbers once, get a full set of measurements, and double-check the result against your local building code before cutting any lumber — code requirements vary slightly by jurisdiction.