# Stair calculator > How many steps does my staircase need? Number of steps, riser height, tread depth, angle and stringer length from the total rise, checked against a comfort rule. How many steps a staircase needs from its total rise: riser height, tread depth, run, angle and stringer length, checked against Blondel's comfort rule. - Page: https://how.box/stairs/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/stairs/?r={r}&h={h}&t={t}&u={u}&a={a} - `r` (number 0 to 100000): Total rise, floor to floor, in u. Example: `2700`. - `h` (number 0 to 100000): Wanted riser height in u. Example: `175`. - `t` (number 0 to 100000): Wanted tread depth in u. Example: `280`. - `u` (mm, cm or in): Length unit: mm, cm or in. Example: `mm`. - `a` (number 0 to 100000): Horizontal space available in u (0 if not known). Example: `0`. Example answer: https://how.box/stairs/?r=2700&h=175&t=280&u=mm&a=0 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `stairs_calculate`: Risers, treads, angle and stringer length of a straight stair. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"stairs_calculate","arguments":{"total_rise":2700,"riser":175,"tread":280,"unit":"mm","available_run":0}}}` - GET: https://how.box/mcp/run/stairs_calculate?total_rise=2700&riser=175&tread=280&unit=mm&available_run=0 ## How it works A stair has to climb the total rise in equal steps. The number of risers is the total rise divided by the riser height you want, rounded to a whole number, and the exact riser height is the total rise divided by that number. A flight has one tread fewer than risers, because the top floor is the last tread. The run is the number of treads times the tread depth, the angle is the arctangent of riser over tread, and the stringer is the hypotenuse of the rise and the run. Example: a rise of 2 700 mm at about 175 mm per riser is 15 risers of 180 mm. With 280 mm treads there are 14 treads, so the run is 3 920 mm, the angle is 32.7° and the stringer is 4 760 mm long. Blondel's rule says a comfortable stair has 2 × riser + tread between 600 and 650 mm, here 2 × 180 + 280 = 640 mm. The checks also show two code limits as a reference: the US model code (IRC R311.7.5) allows a riser up to 7¾ in (197 mm) and needs a tread of at least 10 in (254 mm); England's Approved Document K allows private stairs a rise up to 220 mm, a going of at least 220 mm and a pitch up to 42°. These are references, not approvals: rules differ by country, state and building type, and they also cover headroom, handrails, landings, winders and the thickness of the nosing. Check the code that applies to your project before you cut anything. Riser heights and tread depths must be equal in a flight, so the calculator never gives uneven steps. ## FAQ **How many steps do I need for a given height?** Divide the total rise by the riser height you want (about 170 to 190 mm, 7 in) and round to a whole number. A rise of 2 700 mm gives 15 risers. **What is a comfortable riser height and tread depth?** Blondel's rule says 2 × riser + tread should be 600 to 650 mm, for example a 175 mm riser with a 270 mm tread. Steeper stairs are tiring, shallow ones have steps that are too short. **How many treads does a staircase have?** One fewer than the risers, because the top floor acts as the last tread. A stair with 15 risers has 14 treads. **What are the maximum riser and minimum tread by code?** In the US model code (IRC) a riser may be up to 7¾ in and a tread at least 10 in. In England private stairs have a rise up to 220 mm and a going of at least 220 mm. Local codes vary, so check yours. **How long should the stringer be?** The stringer follows the slope from the bottom to the top nosing, and its length is √(total rise² + total run²). Add allowance at the ends for the fixings. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)