Stair Calculator · Illustration, Rise, Run, Stringer & Angle

Stair Calculator

Stair illustration and calculation options

Stair Illustration
θ rise run Total rise Total run stringer
Rise = vertical step height · Run = horizontal tread depth · Stringer = the diagonal support board that carries the steps · θ = stair angle.
Calculation Options
Standard mount = top of stringer goes under the floor / deck edge · Flush mount = top of stringer sits flush with the top surface.
Your Stairs
The two known fields are chosen above. The third value is computed automatically.
Your Results
✅ Standard Stair
Number of steps
—
—
Run of one step
—
Total rise
—
Rise of one step
—
Number of steps
—
Total run
—
Rise of the bottom step
—
Stringer
—
Stringer height
—
Stringer length
—
Angle
—
Estimate only. Always confirm with local building code before cutting material.
Headroom Restriction Details
Headroom appears adequate for this stair configuration.
Mount type comparison
Standard mount
stringer under floor
Flush mount
stringer flush with top
Vertical clearance at the top
Enter your stair dimensions to see headroom details.
Common headroom problems
  • At the top of the stairs, the ceiling or floor above can reduce available headroom.
  • Minimum code requirement in most jurisdictions is 203 cm (6 ft 8 in) vertical clearance.
  • Standard mount reduces headroom by the floor structure thickness (joists + subfloor).
  • Flush mount preserves more headroom at the top but requires careful stringer layout.
  • Steeper stairs (angle above 40°) tend to have lower clearance above the upper treads.
Headroom is measured from the nosing of any step to the ceiling or floor above. Always verify with a physical measurement and check your local building code.

Powered by Toolraxy

\n'; var escaped = toolHtml.replace(/&/g, '&').replace(/"/g, '"'); embedCodeTextarea.value = ''; }window.toggleEmbedPanel = function () { if (embedPanel.style.display === 'none' || embedPanel.style.display === '') { generateEmbedCode(); embedPanel.style.display = 'block'; } else { embedPanel.style.display = 'none'; } };window.copyEmbedCode = function () { embedCodeTextarea.select(); if (navigator.clipboard) { navigator.clipboard.writeText(embedCodeTextarea.value).then(function () { alert('Embed code copied!'); }).catch(function () { alert('Press Ctrl+C'); }); } else { alert('Press Ctrl+C'); } };/* ─────────── Unit conversion for run per step ─────────── */ function attachUnitConversion(inputEl, selectEl, stateKey) { var prevUnit = selectEl.value; selectEl.addEventListener('change', function () { var newUnit = this.value; var val = parseFloat(inputEl.value); if (isFinite(val)) { var factor = LEN_UNITS[prevUnit].toM / LEN_UNITS[newUnit].toM; inputEl.value = roundVal(val * factor, 6); if (stateKey) { state[stateKey].value = inputEl.value; state[stateKey].unit = newUnit; } } prevUnit = newUnit; calculate(); }); }/* ─────────── Events ─────────── */ function bindAll() { known1Select.addEventListener('change', function () { updateInputsFromMode(); calculate(); }); known2Select.addEventListener('change', function () { updateInputsFromMode(); calculate(); });runPerStepValue.addEventListener('input', calculate); runPerStepValue.addEventListener('change', calculate);inputAValue.addEventListener('input', calculate); inputAValue.addEventListener('change', calculate); inputBValue.addEventListener('input', calculate); inputBValue.addEventListener('change', calculate);// Unit selects for A and B convert values function attachAB(slot) { var unitEl = document.getElementById('input' + slot + 'Unit'); var valueEl = document.getElementById('input' + slot + 'Value'); var prev = unitEl.value; unitEl.addEventListener('change', function () { var cur = this.value; var val = parseFloat(valueEl.value); if (isFinite(val)) { var f = LEN_UNITS[prev].toM / LEN_UNITS[cur].toM; valueEl.value = roundVal(val * f, 6); } prev = cur; calculate(); }); } attachAB('A'); attachAB('B');attachUnitConversion(runPerStepValue, runPerStepUnit, 'runPerStep');document.querySelectorAll('input[name="mount"]').forEach(function (el) { el.addEventListener('change', calculate); }); }if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', function () { bindAll(); updateInputsFromMode(); calculate(); }); } else { bindAll(); updateInputsFromMode(); calculate(); }})();

Creator & Maintainer

Image of Faiq Ur Rahman, CEO & Founder Toolraxy

Faiq Ur Rahman

Founder & CEO, Toolraxy

Faiq Ur Rahman is a web designer, digital product developer, and founder of Toolraxy, a growing platform of web-based calculators and utility tools. He specializes in building structured, user-friendly tools focused on health, finance, productivity, and everyday problem-solving.

Share:

Rate this Tool

User Ratings:

0
0 out of 5 stars (based on 0 reviews)
Excellent
Very good
Average
Poor
Terrible

ADVERTISEMENT

ADVERTISEMENT

A staircase is one of the few structures in a building where every dimension is bound to every other dimension by code. Riser height determines comfort and safety, tread depth determines how much floor space the flight consumes, and the two together fix the angle that the stringer must be cut to. Change one figure and the others move with it. This stair calculator is built around that reality: instead of asking for a fixed set of inputs, it lets you start from whichever two values you already know and works out the rest. It suits carpenters laying out a new flight, homeowners checking whether an existing stair meets code, and anyone planning a deck or basement staircase who needs to know how much run the design will occupy before cutting any timber.

 

How to Use the Stair Calculator

Review the labeled illustration to confirm which dimension is the riser and which is the tread run.

  1. Under Calculation Options, choose which two values you already know from the two dropdowns.

  2. Select the Mount type, standard if the stringer top goes under the floor edge, flush if it sits level with the top surface.

  3. Enter the Run of one step, choosing the matching unit from the dropdown.

  4. Fill in the two input fields that appear, which update their labels to match your dropdown choices.

  5. Read the number of steps in the hero display, with riser, tread, total run and stringer figures beneath.

  6. Check the Headroom Restriction Details panel for the clearance verdict and mount-type comparison.

  7. Use Copy or Share to keep the layout, or Reset to return to the default 18 cm riser and 280 cm total rise.

 

How the Stair Calculator Formula Works

The calculator builds the stair from the two values you provide and the tread depth you enter. All risers are assumed to be equal, which is the code-compliant ideal — an uneven flight is both dangerous and non-conforming.

Formula: Number of Steps = Total Rise ÷ Rise per Step (rounded to whole)
Formula: Rise per Step = Total Rise ÷ Number of Steps
Formula: Number of Treads = Steps (flush mount) or Steps − 1 (standard mount)
Formula: Total Run = Number of Treads × Run per Step
Formula: Stringer Length = √(Total Rise² + Total Run²)
Formula: Stair Angle = atan(Total Rise ÷ Total Run)

If the two values you select from the dropdowns are identical, the calculator automatically switches the second one to a different option. The run of one step must be greater than zero, and both known values must be positive. When the rise per step and total rise are both known, the step count is rounded to a whole number and the rise per step is recalculated so the flight divides evenly, a subtle but important adjustment, since a fractional step is impossible to build.

 

Worked Example

A carpenter is laying out an interior staircase with a total rise of 265 cm, a desired riser of about 18 cm, and a tread depth of 27 cm. The stringer will be standard-mounted under the floor edge.

  • Number of steps = 265 ÷ 18 = 14.72 → rounded to 15 risers

  • Actual rise per step = 265 ÷ 15 = 17.67 cm

  • Treads (standard mount) = 15 − 1 = 14 treads

  • Total run = 14 × 0.27 = 3.78 m

  • Stringer height = 2.65 m

  • Stringer length = √(2.65² + 3.78²) = 4.62 m

  • Stair angle = atan(2.65 ÷ 3.78) = 35.0°

The takeaway: this flight sits comfortably inside the standard 30°–37° band, uses a riser of 17.67 cm which is within the typical 15–19 cm range, and requires two stringers of about 4.62 m each. Note that the 15 risers produce only 14 treads because standard mount terminates at the upper floor edge rather than on a final tread, a detail that changes the total run by one full step and is easy to overlook.

What Are the Key Parts of a Staircase?

A staircase is built from three fundamental elements. Risers are the vertical faces between steps; treads are the horizontal surfaces you walk on; and stringers are the diagonal boards on each side that carry the whole assembly. The nosing is the small overhang where the tread projects past the riser below. The total rise is the floor-to-floor height, and the total run is the horizontal distance the flight covers. Getting the relationship between these parts right is what separates a comfortable, code-compliant stair from one that feels awkward or fails inspection.

Frequently Asked Questions

How do I calculate the number of stairs I need?

Divide the total rise by your target riser height and round to the nearest whole number. For a 280 cm rise with an 18 cm target riser, that gives 15.6, which rounds to 16. Then divide the total rise by 16 to get the exact riser height.

 

What is the ideal riser height for a staircase?

Between 15 cm and 19 cm is the standard residential range, with 18 cm being the most common metric target. Below 15 cm feels shallow and wastes space; above 19 cm starts to feel steep for regular use. Always check your local code, which may set a hard maximum.

 

How deep should stair treads be?

Treads usually measure 25 cm to 30 cm, with 28 cm often cited as the most comfortable. Code in many jurisdictions specifies a minimum of 25 cm. Shallow treads force the foot onto the ball rather than the whole sole, which becomes tiring and unsafe over time.

 

What is the difference between a tread and a riser?

A riser is the vertical face between two steps; a tread is the horizontal surface you stand on. A flight of 15 risers has 14 treads in standard mount, because the upper floor itself acts as the final tread. In flush mount, there are equal numbers of each.

 

How long does a stair stringer need to be?

The stringer length is the hypotenuse of the total rise and total run. Square both, add them together, and take the square root. A flight with a 2.65 m rise and a 3.78 m run requires stringers of about 4.62 m each.

 

What stair angle is considered safe?

Between 30° and 37° is the comfortable residential range. Angles above 40° feel more like a ladder and are usually restricted to occasional-access stairs. Angles below 30° are safe but consume disproportionate floor space for the height gained.

 

Why does my stair calculator show one fewer tread than riser?

That is standard mount behaviour. When the stringer top sits under the floor edge, the upper floor surface acts as the final tread, so the flight itself has one fewer tread than riser. Switch to flush mount if the stringer should terminate with its own top tread.

 

What headroom is required above a staircase?

Most codes require a minimum of 203 cm (6 ft 8 in) of vertical clearance measured from the nosing of any step to the ceiling or floor above. Standard mount reduces available headroom by the thickness of the floor structure, which is why steep stairs with standard mount often fail this check.

 

Can I use this calculator for an exterior deck stair?

Yes. The geometry is identical, and the mount selector handles the difference between a stringer that sits under the deck rim and one that sits flush with the deck surface. Exterior stairs often use slightly wider treads and open risers, but the core calculations do not change.

 

Why does my staircase feel uncomfortable even though it meets code?

Code sets minimums and maximums, not comfort targets. A flight that just meets the riser maximum with treads at the minimum will feel steep and tight. Aiming for a riser near the middle of the range around 17–18 cm with treads around 28 cm produces a noticeably more comfortable climb.

 

How many stringers does a staircase need?

A typical residential flight uses two stringers, one on each side. Wider stairs or heavy traffic may need a third central stringer to prevent the treads from flexing. The calculator reports two as the standard count but does not adjust for width.

Disclaimer

This stair calculator provides geometric results for planning and estimating purposes only. It does not replace a structural assessment, a building permit review or a check against your local code. Riser heights, tread depths, headroom minimums, guard heights and handrail specifications vary by jurisdiction and change over time. Always confirm all dimensions with your local building authority and, where structural work is involved, with a qualified engineer before cutting material or beginning construction.

ADVERTISEMENT

ADVERTISEMENT