{
 "schema": 1,
 "id": "stairs",
 "title": "Stair geometry",
 "description": "The riser count from the total rise, the actual riser height and the going from the 2R + G comfort rule, each pinned to the stair calculator's vectors.",
 "url": "https://craftquantities.com/formulas/stairs/",
 "json": "https://craftquantities.com/formulas/stairs.json",
 "publisher": "Craft Quantities",
 "license": "https://creativecommons.org/licenses/by/4.0/",
 "licenseName": "CC BY 4.0",
 "note": "These are quantity equations, not design checks. Nothing here sizes a member or confirms that a structure is safe; that is for the engineer or building official responsible for the work.",
 "expressionSyntax": {
  "operators": [
   "+",
   "-",
   "*",
   "/",
   "^"
  ],
  "functions": {
   "sqrt": "square root",
   "ceil": "round up to the next whole number",
   "floor": "round down to the whole number below",
   "round": "round to the nearest whole number",
   "max": "the largest of its arguments",
   "atan_deg": "arctangent, in degrees"
  },
  "constants": {
   "pi": "π"
  }
 },
 "formulas": [
  {
   "id": "riser-count",
   "name": "Number of risers",
   "gives": "How many risers a flight needs for a total rise and a target riser height.",
   "equation": "n = max(1, round(H / rₜ))",
   "expression": "max(1, round(H / r))",
   "mathml": "<math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><mrow><mi>n</mi><mo>=</mo><mrow><mi>max</mi><mo>&#8289;</mo><mrow><mo>(</mo><mn>1</mn><mo>,</mo><mrow><mi>round</mi><mo>&#8289;</mo><mrow><mo>(</mo><mfrac><mrow><mi>H</mi></mrow><mrow><msub><mi>r</mi><mi>t</mi></msub></mrow></mfrac><mo>)</mo></mrow></mrow><mo>)</mo></mrow></mrow></mrow></math>",
   "output": {
    "id": "n",
    "symbol": "n",
    "meaning": "Number of risers",
    "unit": {
     "metric": "",
     "imperial": ""
    }
   },
   "inputs": [
    {
     "id": "H",
     "symbol": "H",
     "meaning": "Total rise, finished floor to finished floor",
     "unit": {
      "metric": "m",
      "imperial": "ft"
     }
    },
    {
     "id": "r",
     "symbol": "r_t",
     "meaning": "Target riser height",
     "unit": {
      "metric": "m",
      "imperial": "ft"
     }
    }
   ],
   "calculators": [
    {
     "slug": "stair-calculator",
     "title": "Stair Rise & Run Calculator",
     "url": "https://craftquantities.com/calculators/renovation-construction/stair-calculator/",
     "reproduces": "result"
    }
   ],
   "testVectors": [
    {
     "calculator": "stair-calculator",
     "testCase": "The page's opening: 2.8 m total rise, 18.5 cm target riser, 26 cm tread, IRC, inside the limits checked",
     "inputs": {
      "H": 2.8,
      "r": 0.185
     },
     "output": 15,
     "calculatorOutput": {
      "value": 15,
      "unit": "risers",
      "from": "result"
     },
     "pinned": {
      "expected": 15,
      "toleranceDecimalPlaces": 0
     }
    },
    {
     "calculator": "stair-calculator",
     "testCase": "3.5m total rise, 7in target riser, UK code, inside the limits checked",
     "inputs": {
      "H": 3.5,
      "r": 0.1778
     },
     "output": 20,
     "calculatorOutput": {
      "value": 20,
      "unit": "risers",
      "from": "result"
     },
     "pinned": {
      "expected": 20,
      "toleranceDecimalPlaces": 0
     }
    },
    {
     "calculator": "stair-calculator",
     "testCase": "2.7 m rise at a 175 mm target and a 250 mm going, Australian NCC",
     "inputs": {
      "H": 2.7,
      "r": 0.175
     },
     "output": 15,
     "calculatorOutput": {
      "value": 15,
      "unit": "risers",
      "from": "result"
     },
     "pinned": {
      "expected": 15,
      "toleranceDecimalPlaces": 0
     }
    },
    {
     "calculator": "stair-calculator",
     "testCase": "2.6 m rise at a 190 mm target and a 260 mm run, Canadian NBC private stair",
     "inputs": {
      "H": 2.6,
      "r": 0.19
     },
     "output": 14,
     "calculatorOutput": {
      "value": 14,
      "unit": "risers",
      "from": "result"
     },
     "pinned": {
      "expected": 14,
      "toleranceDecimalPlaces": 0
     }
    }
   ]
  },
  {
   "id": "riser-height",
   "name": "Actual riser height",
   "gives": "The height of every riser once the count is fixed.",
   "equation": "R = H / n",
   "expression": "H / n",
   "mathml": "<math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><mrow><mi>R</mi><mo>=</mo><mfrac><mrow><mi>H</mi></mrow><mrow><mi>n</mi></mrow></mfrac></mrow></math>",
   "output": {
    "id": "R",
    "symbol": "R",
    "meaning": "Actual riser height",
    "unit": {
     "metric": "m",
     "imperial": "ft"
    }
   },
   "inputs": [
    {
     "id": "H",
     "symbol": "H",
     "meaning": "Total rise",
     "unit": {
      "metric": "m",
      "imperial": "ft"
     }
    },
    {
     "id": "n",
     "symbol": "n",
     "meaning": "Number of risers",
     "unit": {
      "metric": "",
      "imperial": ""
     }
    }
   ],
   "calculators": [
    {
     "slug": "stair-calculator",
     "title": "Stair Rise & Run Calculator",
     "url": "https://craftquantities.com/calculators/renovation-construction/stair-calculator/",
     "reproduces": {
      "breakdownLine": "Actual riser height"
     }
    }
   ],
   "testVectors": [
    {
     "calculator": "stair-calculator",
     "testCase": "The page's opening: 2.8 m total rise, 18.5 cm target riser, 26 cm tread, IRC, inside the limits checked",
     "inputs": {
      "H": 2.8,
      "n": 15
     },
     "output": 0.186666666667,
     "calculatorOutput": {
      "value": 7.34908136483,
      "unit": "in",
      "from": "breakdown",
      "line": "Actual riser height"
     }
    },
    {
     "calculator": "stair-calculator",
     "testCase": "3.5m total rise, 7in target riser, UK code, inside the limits checked",
     "inputs": {
      "H": 3.5,
      "n": 20
     },
     "output": 0.175,
     "calculatorOutput": {
      "value": 6.88976377953,
      "unit": "in",
      "from": "breakdown",
      "line": "Actual riser height"
     }
    },
    {
     "calculator": "stair-calculator",
     "testCase": "2.7 m rise at a 175 mm target and a 250 mm going, Australian NCC",
     "inputs": {
      "H": 2.7,
      "n": 15
     },
     "output": 0.18,
     "calculatorOutput": {
      "value": 7.08661417323,
      "unit": "in",
      "from": "breakdown",
      "line": "Actual riser height"
     }
    },
    {
     "calculator": "stair-calculator",
     "testCase": "2.6 m rise at a 190 mm target and a 260 mm run, Canadian NBC private stair",
     "inputs": {
      "H": 2.6,
      "n": 14
     },
     "output": 0.185714285714,
     "calculatorOutput": {
      "value": 7.31158605174,
      "unit": "in",
      "from": "breakdown",
      "line": "Actual riser height"
     }
    }
   ]
  },
  {
   "id": "comfort-going",
   "name": "Going from the comfort rule",
   "gives": "The tread depth that suits a riser height under the 2R + G rule.",
   "equation": "G = c − 2 × R",
   "expression": "c - 2 * R",
   "mathml": "<math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><mrow><mi>G</mi><mo>=</mo><mrow><mi>c</mi><mo>&#8722;</mo><mrow><mn>2</mn><mo>&#215;</mo><mi>R</mi></mrow></mrow></mrow></math>",
   "output": {
    "id": "G",
    "symbol": "G",
    "meaning": "Going (tread depth)",
    "unit": {
     "metric": "m",
     "imperial": "ft"
    }
   },
   "inputs": [
    {
     "id": "c",
     "symbol": "c",
     "meaning": "The rule's constant, 25 in (635 mm)",
     "unit": {
      "metric": "m",
      "imperial": "ft"
     }
    },
    {
     "id": "R",
     "symbol": "R",
     "meaning": "Riser height",
     "unit": {
      "metric": "m",
      "imperial": "ft"
     }
    }
   ],
   "calculators": [
    {
     "slug": "stair-calculator",
     "title": "Stair Rise & Run Calculator",
     "url": "https://craftquantities.com/calculators/renovation-construction/stair-calculator/",
     "reproduces": {
      "breakdownLine": "Recommended tread depth (comfort formula)"
     }
    }
   ],
   "testVectors": [
    {
     "calculator": "stair-calculator",
     "testCase": "The page's opening: 2.8 m total rise, 18.5 cm target riser, 26 cm tread, IRC, inside the limits checked",
     "inputs": {
      "c": 0.635,
      "R": 0.186666666667
     },
     "output": 0.261666666667,
     "calculatorOutput": {
      "value": 10.3018372703,
      "unit": "in",
      "from": "breakdown",
      "line": "Recommended tread depth (comfort formula)"
     }
    },
    {
     "calculator": "stair-calculator",
     "testCase": "3.5m total rise, 7in target riser, UK code, inside the limits checked",
     "inputs": {
      "c": 0.635,
      "R": 0.175
     },
     "output": 0.285,
     "calculatorOutput": {
      "value": 11.2204724409,
      "unit": "in",
      "from": "breakdown",
      "line": "Recommended tread depth (comfort formula)"
     }
    },
    {
     "calculator": "stair-calculator",
     "testCase": "2.7 m rise at a 175 mm target and a 250 mm going, Australian NCC",
     "inputs": {
      "c": 0.635,
      "R": 0.18
     },
     "output": 0.275,
     "calculatorOutput": {
      "value": 10.8267716535,
      "unit": "in",
      "from": "breakdown",
      "line": "Recommended tread depth (comfort formula)"
     }
    },
    {
     "calculator": "stair-calculator",
     "testCase": "2.6 m rise at a 190 mm target and a 260 mm run, Canadian NBC private stair",
     "inputs": {
      "c": 0.635,
      "R": 0.185714285714
     },
     "output": 0.263571428571,
     "calculatorOutput": {
      "value": 10.3768278965,
      "unit": "in",
      "from": "breakdown",
      "line": "Recommended tread depth (comfort formula)"
     }
    }
   ]
  }
 ],
 "sources": [
  {
   "label": "Comfortable stair proportion rule of thumb: 2 x riser height + tread depth = 24-25 inches; a riser of about 175–190 mm (6.9–7.5 in) is a comfortable target that sits inside all four codes this page checks",
   "citedBy": [
    "stair-calculator"
   ]
  },
  {
   "label": "US: IRC 2024 R311.7.5 — maximum riser height 7.75 in, minimum tread depth (going) 10 in",
   "citedBy": [
    "stair-calculator"
   ]
  },
  {
   "label": "UK: Approved Document K (2013), Section 1, Table 1.1 — a private stair's rise 150–220 mm and going 220–300 mm, pitch at most 42°, and twice the rise plus the going between 550 and 700 mm",
   "citedBy": [
    "stair-calculator"
   ]
  },
  {
   "label": "Australia: ABCB Housing Provisions Standard, Part 11.2, clause 11.2.2 and Table 11.2.2a, called up by NCC Volume Two for houses; the same table in NCC 2022 and NCC 2025. A stairway other than a spiral stair has risers of 115–190 mm, goings of 240–355 mm and a slope relationship 2R + G of 550–700 mm; each flight has not more than 18 and not less than 2 risers (11.2.2(1)(a)); goings and risers are constant through a flight, within 5 mm between neighbours and 10 mm across the flight (11.2.2(1)(c)); and risers have no opening a 125 mm sphere can pass through (11.2.2(1)(d)). Under 11.2.2(2), a stairway serving only non-habitable rooms such as attics and storerooms that are not used on a regular or daily basis may use Table 11.2.2b instead: riser 130–225 mm, going 215–355 mm and 2R + G 540–700 mm. NCC Volume One, clause D3D14 and Table D3D14, gives a public stairway in other buildings a going of 250–355 mm with the same risers and 2R + G",
   "url": "https://ncc.abcb.gov.au/editions/ncc-2025/adopted/housing-provisions/11-safe-movement-and-access/part-112-stairway-and-ramp-construction",
   "citedBy": [
    "stair-calculator"
   ]
  },
  {
   "label": "Canada: National Building Code of Canada 2020, Volume 2, Division B, Section 9.8, for a private stair (one serving a single dwelling unit, a house with a secondary suite, or a garage serving either): rise 125–200 mm (Article 9.8.4.1, Table 9.8.4.1), run 255–355 mm (Article 9.8.4.2, Table 9.8.4.2), each tread's depth between its run and its run plus 25 mm (Sentence 9.8.4.2.(2)), risers and runs uniform within 5 mm between neighbours and 10 mm across a flight (Article 9.8.4.4), no flight more than 3.7 m high (Article 9.8.3.3), and 1 950 mm of clear height over a stair serving a single dwelling unit (Sentence 9.8.2.2.(3)). A public stair has a rise of 125–180 mm and a run of at least 280 mm. Provinces and territories adopt the NBC with amendments of their own, so check the edition in force where you build",
   "url": "https://doi.org/10.4224/w324-hv93",
   "citedBy": [
    "stair-calculator"
   ]
  }
 ]
}
