About Stair-Math

Stair-Math is a free set of stair calculators for homeowners, carpenters, deck builders and designers. We build each one so you can check every number it gives you — the formula with your values, the rule it was checked against, and what to change when it fails.

Why Stair-Math exists

A stair is the most rule-bound thing most people ever build. Every riser in a flight has to match the others to within a fraction of an inch, the treads have to be deep enough to land a foot, the floor above has to stop far enough back to clear a head, and the rails have to be the right height with gaps too small for a child. Get one number wrong and the stair fails inspection — or, worse, passes and trips someone for the next fifty years.

The arithmetic is not hard, but it is unforgiving, and it is spread across codes, tables and rules of thumb that rarely agree on their terms. Most stair calculators give you a number and stop there. We wanted tools that show how they got it, say which rule they used, draw the result to scale and tell you what to fix.

What we cover

  1. 01
    Stair Layout 6 calculators

    Start here for any straight stair: finished total rise, risers and treads, angle, the opening for headroom, floor space and stringer cuts.

  2. 02
    Turning & Specialty Stairs 7 calculators

    When a straight stair will not fit: L and U stairs, winders, spiral and curved stairs, ship ladders and attic ladders.

  3. 03
    Railings & Balusters 4 calculators

    Handrail length, baluster spacing, cable railing and glass panels — with the handrail and guard rules checked.

  4. 04
    Stair Materials & Cost 6 calculators

    What to buy and what it costs: lumber, concrete, carpet, flooring, paint and the price of a new stair or a remodel.

  5. 05
    Stair Codes & Structure 3 calculators

    Pass inspection: the full code check, commercial egress stair width and stringer and tread spans.

Start with the stair calculator, or browse all 26 calculators.

Who uses Stair-Math

The same calculators serve very different jobs. These are the people we build for, and where each usually starts.

How every calculator is made

The same six steps for every page, whether it is a quick angle check or a full code check.

  1. Read the rules first

    Every calculator starts with the primary sources: the code sections that govern the stair, the published tables, and the manufacturers’ data where products are involved. Each limit we use is recorded with its code, edition and section, and where published summaries disagree we follow the code text.

  2. Write the method down

    Before any code is written, the calculation is set out as formulas and rules: what is measured, what is assumed, how values are rounded and which limit applies in each region. That method is what you see under “How the calculator works” on each page.

  3. Work out the test cases independently

    Each calculator gets worked cases — typical stairs, edge cases, failures, metric versions — with the expected answers computed from the published limits. When a source turns out to be wrong in an edge case, we note the correction and the reason.

  4. Build the calculator and the drawing

    The calculator, its error messages and its scale drawing are built against that method, in inches and in millimetres, with the code chosen by the reader.

  5. Test it the way you will use it

    Every test value is run through the real page in a browser — typed into the inputs, read off the results — on a desktop and a phone, alongside checks for layout, accessibility and broken links. A calculator ships only when every value matches.

  6. Publish with the sources, then keep it current

    The page goes live with its sources, its assumptions, its worked examples and its date. When a reader shows us a better source, or a code edition changes, we update the method, re-run the tests and note the change on the page.

Testing, by the numbers

A worked case is one complete stair — say, a 108 in rise under the IRC — with every expected answer worked out independently of the calculator. Each case checks several values: counts, lengths, angles, pass or fail. These are the current totals, counted from the test files the site is built from.

Worked test cases and checked values by category
CategoryCalculatorsWorked casesValues checked
Stair Layout641290
Turning & Specialty Stairs741362
Railings & Balusters423140
Stair Materials & Cost633145
Stair Codes & Structure320102
All calculators261581,039

Editorial policy

The rules every page on Stair-Math is written and maintained by.

Which sources we trust
The code text comes first, then the publisher’s own commentary and tables, then manufacturers’ published data for products, then established trade references. Where these disagree, we follow the code text and say so on the page. Cost figures come from published national cost guides and always show their date.
Independence
No calculator, result or recommendation is sponsored, and no product is placed in a result for payment. Where the site carries advertising, it is kept apart from the calculators and never changes a number.
Accuracy before publication
A calculator is published only after every one of its test values passes in the real page. If a published source turns out to be wrong in an edge case, we correct it in our method and note the reason rather than repeat the error.
Dates and updates
Every page shows when it was last updated and keeps a page history. When a code edition changes or a reader shows us a better source, we update the method, re-run the tests and add the change to the history.
Corrections
Anyone can report an error through the contact page. We check every report against its source; if the page is wrong, it is fixed and the fix is recorded on the page — not quietly changed.
Plain language, both unit systems
We write for someone holding a tape measure. Results come in the units you use — inches, feet and inches, millimetres, centimetres or metres — with the code values for your region.

The standards every page meets

Show the working

Every result can be checked: “Solved with your numbers” prints each step with your values in it.

Name the rule

A limit is never just “code”. It comes with the code, the section and the region it applies to.

Say what is assumed

Each page lists its assumptions and what it does not cover, and points to the calculator that does.

Give the fix

A failed check says what to change — add a riser, lengthen the opening, add a baluster — not only that it failed.

Metric is not an afterthought

Inches, feet and inches, millimetres, centimetres and metres are all first-class, with the right code values for each region.

Nothing in the way

No sign-up, no limits, no tracking scripts. The calculators run in your browser and work on a phone.

The codes and references behind the numbers

These are the documents our limits and formulas come from. Each calculator page lists the exact sections it uses, with links where the publisher offers free access.

Primary sources used across Stair-Math
DocumentEditionPublisherUsed for
International Residential Code2021International Code CouncilUS homes: rise, run, headroom, width, handrails, guards, loads
International Building Code2021International Code CouncilUS commercial stairs, egress width, guards, deflection limits
Approved Document K2013 edition, with 2013 amendmentsUK governmentPrivate stairs in England: rise, pitch, 2R + G, guarding
National Building Code of Canada2020National Research Council CanadaStairs in Canadian homes
National Construction Code2019 / 2022Australian Building Codes BoardStairs and balustrades in Australian houses
National Design Specification for Wood Construction2018American Wood CouncilLumber values for stringer and tread spans

Building departments adopt different editions and add local amendments. Where your local code differs, it governs — and we would like to hear about it.

What Stair-Math is not

  • Not your building department. We check against the model codes; only your local department can rule on what its code requires for your stair.
  • Not an engineer of record. Our structural checks are screening checks with stated assumptions. Load-bearing, commercial and custom stairs need a qualified designer’s stamp.
  • Not a store. We do not sell materials or rank products. Quantities are counted in the units you buy, and prices are national ranges with their dates.

How the site is paid for

Stair-Math is free to use, with no account and no limits. The site may carry advertising to cover its costs. Ads are kept apart from the calculators and never change a result, a limit or a recommendation.

Who we are

Stair-Math is written, built and maintained by the Stair-Math Team. We publish as a team because every page goes through the same process and the same checks, and the team stands behind every number on the site.

Accessibility

Stair-Math is built to work for everyone who needs to plan a stair:

  • Every calculator works with a keyboard alone, and focus is always visible.
  • Inputs, results and drawings carry labels for screen readers, and results are announced as they change.
  • Light and dark themes, with extra contrast when your system asks for it and support for Windows high-contrast mode.
  • Text reflows on phones without sideways scrolling, and motion is reduced when your system asks for it.

If something does not work with your device or assistive technology, tell us and we will fix it.

How to cite Stair-Math

Name the calculator, link to its page and give the date you used it:

Stair-Math Team. “Stair Calculator.” Stair-Math, stair-math.com/calculators/stair-layout/stair-calculator. Accessed 2026-11-20.

For a result, copy its share link — it opens the calculator with the same inputs, so anyone can check the numbers.

Questions about Stair-Math

Who is behind Stair-Math?

Stair-Math is written, built and maintained by the Stair-Math Team. Every page goes through the same research, testing and correction process, and the team stands behind every number on the site.

How do you make sure the calculators are right?

Each calculator is built from a written method taken from the code text, then checked against worked cases whose answers are worked out independently from the published limits — 158 cases and 1,039 individual values across the site. Every value is run through the real page in a browser before release.

Which code editions do you use?

The 2021 International Residential and Building Codes, Approved Document K for England, the 2020 National Building Code of Canada and the Australian National Construction Code. Each calculator names the section behind every limit, so you can compare it with the edition your building department enforces.

Can I rely on Stair-Math for a permit?

You can use its numbers on your drawings and to prepare for inspection, but the building department’s reading of the local code is final, and structural or commercial stairs may need a design stamped by an engineer or architect.

How do I report a mistake?

Use the contact form or email contact@stair-math.com. Include the page, the value you expected and its source — the code, edition and section. We check every report and record each fix on the page.

Can I cite Stair-Math or link to a calculator?

Yes — links and short quotations with a link back are welcome, including in quotes, plans and coursework. The format below gives a citation you can copy.

Found something wrong? Tell us.

Corrections are the most useful message we get. Send the page, the value you expected and its source — code, edition and section — and we will check it against the source, fix the calculator, re-run its tests and note the change on the page.