Skip to content
Calixo

Stair Calculator

Find the number of steps and exact riser height for a staircase — solving the practical problem of dividing a fixed total rise into equal, code-compliant steps.

Inputs

Total vertical height the stairs need to climb.

Paste this into any page — the widget stays live and updates automatically as this calculator improves. Using WordPress or Notion? See the embed guide.

Saved Scenarios

— select 2+ to compare
Inputs updated · Results recalculated · Just now

Number of Steps

15

Actual Riser Height (cm)

18.00

Spark says

How it's calculated
High-resolution close-up of an architectural floor plan showcasing design details.
Photo by Ivan S on Pexels
Sunlit construction plans and hard hat on site. Perfect for architecture or building project themes.
Photo by Pavel Danilyuk on Pexels

Formula

Steps=round(Total RiseTarget Riser)Actual Riser=Total RiseStepsSteps = round\left(\dfrac{Total\ Rise}{Target\ Riser}\right) \quad\quad Actual\ Riser = \dfrac{Total\ Rise}{Steps}
Total\ Rise
— Full vertical height to climb

What is the Stair Calculator?

Since a staircase needs a whole number of equal steps, the target riser height rarely divides evenly — this calculator rounds to the nearest whole step count and shows the exact resulting riser height.

Use this when designing a new staircase and need to determine step count before construction, verifying a staircase design meets a comfortable or code-compliant riser height, or checking a contractor's stair layout against an independent calculation.

How to use it

  1. 1 Enter the total vertical rise the stairs must cover.
  2. 2 Enter your target (ideal) riser height.

Understanding Stair Calculator

Staircase design runs into a genuinely unavoidable mathematical constraint that this calculator's rounding logic directly addresses: a staircase's total rise (the full vertical height it needs to climb, from one floor level to the next) is a fixed, given number determined by the building's actual floor-to-floor height, but the number of individual steps must be a whole number — you can't build 14.7 steps — meaning an arbitrarily chosen 'ideal' riser height essentially never divides evenly into the actual total rise, requiring a small, deliberate adjustment.

This calculator's approach — rounding to the nearest whole number of steps, then recalculating the exact riser height that whole step count actually produces — reflects standard, correct stair design practice: rather than trying to force an exact target riser height and ending up with a fractional, unbuildable step count, the practical approach starts from the fixed total rise, finds the whole step count that lands closest to the desired riser height, and then uses that step count to determine the actual, precise riser height every step in the staircase will use. This resulting actual riser height is typically very close to, but not usually exactly identical to, the original target — a small, expected discrepancy that reflects the fundamental rounding constraint rather than any error in either the target or the calculation.

The critical importance of getting every riser height in a staircase exactly, precisely uniform — not just close to a target, but identical from step to step throughout the entire flight — is a genuine safety requirement, not merely an aesthetic preference. Human gait, once established on a staircase, develops an automatic, largely unconscious rhythm based on the first few steps' riser height, and a staircase with even a modestly inconsistent riser height partway through a flight creates a serious, well-documented trip hazard, since a person's foot doesn't rise or fall by the amount their body has unconsciously calibrated for based on the preceding steps. This is exactly why building codes are typically quite strict about riser height consistency within a single staircase, often specifying a maximum allowable variation between the largest and smallest riser in the same flight that's considerably tighter than casual intuition might expect — a detail this calculator's approach directly supports, since calculating one single, exact riser height for the entire flight (rather than eyeballing or approximating each step individually during construction) is precisely the discipline needed to achieve that critical uniformity.

Building codes also typically specify both a maximum and a minimum acceptable riser height (not simply a single 'ideal' figure), reflecting a balance between different safety and comfort considerations — risers that are too tall make each step a more strenuous, potentially hazardous climb (particularly relevant for accessibility and for reducing fall risk among older users or anyone with mobility considerations), while risers that are unusually short can actually themselves become a trip hazard, since an unexpectedly shallow step doesn't match the stepping motion a person's body has calibrated for based on typical stair proportions. This is exactly why checking your specific local building code's actual riser height range, rather than assuming a single universal 'comfortable' figure, is an essential step before finalizing any real staircase design — this calculator's target riser input should be chosen with that local code range already in mind, using the calculator specifically to find the precise, code-compliant, uniform riser height a given total rise and whole step count actually produces.

Worked examples

Advantages

  • Correctly rounds to a whole number of steps while showing the exact resulting riser height, avoiding an impractical fractional step count.
  • Works for any total rise and target riser height combination.
  • Simple, direct calculation that clarifies exactly why a stated target riser height rarely divides evenly.
  • Useful for both new construction planning and verifying an existing or proposed staircase design.

Limitations

  • Building codes typically set minimum and maximum riser heights and tread depths — check local regulations before finalizing a design.

Common mistakes

  • ⚠️ Using an exact target riser height without adjustment, when a staircase's total rise essentially never divides evenly by an arbitrary target figure, requiring a small adjustment to whichever nearby step count actually works.
  • ⚠️ Not checking local building code riser height limits, which set both minimum and maximum acceptable riser heights for safety, rather than allowing any arbitrary value.
  • ⚠️ Overlooking that even a small riser height inconsistency between steps in the same staircase creates a genuine trip hazard, making uniform riser height throughout a single flight a critical safety requirement, not just a design preference.

Tips

  • 💡 Check your local building code's specific minimum and maximum riser height and tread depth requirements before finalizing a stair design, since these vary by jurisdiction.
  • 💡 Verify that every riser height within a single staircase flight is genuinely uniform, since even a small inconsistency between steps creates a real trip hazard.
  • 💡 Consider tread depth alongside riser height as part of a complete, comfortable stair design — the two dimensions interact to determine overall stair comfort and safety.
  • 💡 For a stair design spanning an unusual total rise, this calculator quickly shows how the nearest whole step counts compare, useful for choosing the option that lands closest to your target riser height.

Real-life uses

  • Designing a new staircase and determining step count before construction
  • Verifying a staircase design meets a comfortable or code-compliant riser height
  • Checking a contractor's stair layout against an independent calculation
  • Planning stair dimensions for a renovation project with a fixed total rise

Frequently asked questions

What's a comfortable riser height?

Many residential building codes target 15-20cm (roughly 6-8 inches) per riser for comfortable, safe stairs — check your local code for exact limits.

Why doesn't my target riser height divide evenly into the total rise?

Total rise is a fixed number determined by the building's floor-to-floor height, but step count must be a whole number — an arbitrary target riser height essentially never divides evenly, requiring rounding to the nearest whole step count and recalculating the exact resulting riser height.

Why does riser height need to be exactly uniform throughout a staircase?

Human gait develops an automatic rhythm based on a staircase's first few steps, and even a modest riser height inconsistency partway through a flight creates a serious, well-documented trip hazard as a person's foot doesn't match the unexpected step height.

Does building code specify a maximum and minimum riser height?

Yes, typically both — risers that are too tall make climbing more strenuous and hazardous, while unusually short risers can themselves become a trip hazard by not matching a person's expected stepping motion.

Should I use this calculator's output as my final stair design?

Use it as a precise starting calculation, but always verify the resulting riser height and step count against your specific local building code's requirements before finalizing a real construction design.