Stair Calculator

🏗️ Construction Tool

Stair
Calculator

Calculate stair rise, run, riser height, tread depth, stringer length, angle, and building code compliance — with a live blueprint visualization and material estimates.

🔨 Builder Friendly
📋 Code Aware
📐 Construction Accurate
Total stair height (rise)
Height unit
Unit system
Desired riser height (in)
Desired tread depth (in)
Common scenarios
Stair design summary
—
Risers
—
Treads
—
Riser height
—
Tread depth
—
Total run
—
Stringer length
—
Stair angle
—
2R+T rule
—
📐 Stair blueprint (side profile)
📐 Step-by-step calculation
🪵 Construction insight:
—
ℹ️ This calculator provides stair design estimates. Always verify dimensions against local building codes (IRC, IBC, or regional equivalents) and consult a licensed contractor or structural engineer before construction. Handrail requirements, headroom clearance, and landing dimensions require additional calculations.

Stair Calculator: Calculate Rise, Run, and Stringer Length

Building stairs is one of the most mathematically demanding tasks in residential construction — every dimension affects safety, comfort, and code compliance, and the relationships between rise, run, angle, and stringer length must all work together precisely. A riser that’s half an inch too tall or a tread that’s an inch too shallow can fail a building inspection, create a tripping hazard, or simply feel wrong to walk on. This free stair calculator computes every critical stair dimension from your total height rise and desired riser/tread dimensions, checks IRC building code compliance, generates a live blueprint visualization, estimates material requirements, and shows the complete calculation step by step.

📐 Core stair formulas:
Risers = Total Rise ÷ Desired Riser Height (rounded to whole number)
Actual Riser = Total Rise ÷ Number of Risers
Treads = Risers − 1 (top floor acts as final tread)
Total Run = Tread Depth × Number of Treads
Stringer = √(Rise² + Run²) (Pythagorean theorem)
Angle = arctan(Rise ÷ Run)
Comfort rule: 2R + T = 24–25″ (two risers + one tread)

What Is a Stair Calculator? The Core Concept Explained

A stair calculator is a construction planning tool that computes all the critical dimensions of a staircase from two primary inputs: the total vertical height to be climbed (total rise) and the desired step dimensions (riser height and tread depth). From these inputs, it calculates the number of steps, the actual riser height (adjusted so all steps are identical), the total horizontal distance the staircase covers (total run), the length of the structural support boards (stringers), and the stair angle — then checks whether the design meets building code requirements.

The calculator solves the fundamental stair design problem: you know how high you need to go (floor-to-floor height) and you know the comfortable step dimensions (roughly 7″ rise, 10″ tread), but the total height rarely divides evenly by 7 inches. The calculator rounds to the nearest whole number of risers, then recalculates the actual riser height so that all steps are exactly equal — because unequal step heights are the number-one cause of stair falls.

Understanding Rise and Run

Rise is the vertical component of a stair — the height of each individual step (riser) and the total vertical distance from bottom to top (total rise). Run is the horizontal component — the depth of each step (tread) and the total horizontal distance the staircase covers (total run). The relationship between rise and run determines the stair’s angle, comfort, and safety.

DimensionIRC residential codeIdeal / comfortableNotes
Riser height (max)7.75″ (196 mm)7–7.5″ (178–190 mm)Taller risers feel steep
Tread depth (min)10″ (254 mm)10–11″ (254–279 mm)Measured nosing to nosing
Stair angleNot directly specified30–37°Steeper = less comfortable
2R + T comfort ruleNot code-mandated24–25″Industry standard comfort check
Headroom (min)6′ 8″ (2032 mm)7’+ (2134+ mm)Measured vertically above tread nosing
Width (min)36″ (914 mm)36–42″ (914–1067 mm)Clear width above handrail

Stair Stringers Explained

Stringers are the diagonal structural boards that support the treads and risers — the “backbone” of the staircase. A typical residential staircase has 2–3 stringers: one on each side and sometimes one in the centre for added support. The stringer length is calculated using the Pythagorean theorem: Stringer = √(Total Rise² + Total Run²). For a staircase with 96″ rise and 130″ run, the stringer length is √(9,216 + 16,900) = √26,116 ≈ 161.6 inches or about 13.5 feet.

Stringers are typically cut from 2×12 dimensional lumber. The notches for each step (the triangular cuts where treads and risers sit) must be precisely laid out using a framing square with stair gauges. After notching, the remaining “throat” of the stringer (the uncut portion) must be at least 3.5 inches to maintain structural integrity — a code requirement that limits how large the rise and run notches can be relative to the board width.

Building Code Requirements: IRC Residential Standards

📏

Riser uniformity

The IRC requires that all risers in a flight be within 3/8″ of each other. The calculator ensures perfect uniformity by dividing total rise evenly. Uneven risers are the leading cause of stair falls.

👟

Tread nosing

Treads must project 3/4″ to 1-1/4″ beyond the riser (nosing). The 10″ minimum tread depth is measured from nosing to nosing, not from riser to riser. Nosing provides additional foot surface.

🚪

Landings

A landing is required at the top and bottom of every staircase. The landing depth must be at least equal to the stair width (typically 36″). Landing requirements affect the total floor space needed.

🤚

Handrails

Handrails are required on at least one side for stairs with 4+ risers. Graspable handrail height: 34–38″ above tread nosing. Guards (balusters) are required when the open side drop exceeds 30″.

The 2R+T Comfort Rule

The “2R+T” rule (also called the “step rule” or “Blondel’s formula,” after 17th-century French architect François Blondel) states that two risers plus one tread should equal 24–25 inches (61–63.5 cm) for comfortable stairs. This formula captures the natural relationship between step height and depth that matches human stride and balance. At the ideal of 7″ rise and 11″ tread: 2(7)+11=25″ — right in the sweet spot.

Stairs that deviate significantly from this rule feel uncomfortable even if they technically meet code. A staircase with 6″ risers and 14″ treads (2R+T=26″) has long, shallow steps that require an unnaturally long stride. A staircase with 8″ risers and 9″ treads (2R+T=25″) meets the rule numerically but the steep angle and shallow treads feel precarious. The calculator displays the 2R+T value for your design so you can assess comfort alongside code compliance.

Stair Angle and Safety

The stair angle — calculated as the arctangent of (total rise ÷ total run) — is a critical safety metric. Residential stairs typically fall between 30° and 37°. Below 30° feels like a ramp with ledges; above 37° feels steep and uncomfortable for descent. Above 42° approaches ladder territory and is generally not code-compliant for residential stairs. The calculator computes the angle automatically and flags designs outside the comfortable range.

The angle is determined entirely by the rise-to-run ratio. A 7″ riser with a 10″ tread produces an angle of arctan(7/10) = 35° — right in the ideal range. The same riser with an 8″ tread produces 41° — uncomfortably steep. This is why tread depth matters as much as riser height — both must be considered together, which is exactly what the calculator’s compliance checker evaluates.

Material Estimation for Stair Construction

The calculator provides rough material estimates based on the computed stair dimensions. For a typical 36″-wide residential staircase, you’ll need 2–3 stringer boards (2×12 lumber, length = stringer calculation), tread boards (typically 2×12 or 5/4×12 hardwood, one per tread), riser boards (1×8 nominal, one per riser), and framing hardware (joist hangers, construction adhesive, screws). For a standard 14-riser interior staircase, expect approximately 3 stringer boards at 14 feet each, 13 tread boards, and 14 riser boards.

Deck and Exterior Stair Considerations

Exterior stairs — for decks, porches, and garden access — follow the same mathematical principles but with additional considerations. Exterior lumber must be pressure-treated or naturally rot-resistant (cedar, redwood, composite). Exterior treads should have a slight slope (1/8″ per foot) for water drainage. Open-riser designs (no vertical riser board) are popular for decks but must comply with the 4″ sphere rule: the opening between treads cannot allow a 4″ sphere to pass through, which limits open risers to approximately 4″ maximum opening height.

The calculator works equally well for deck stairs — enter the deck height as the total rise and use the same riser/tread dimensions. The presets include common deck heights (3′ and 4′) for convenience. For multi-level decks, calculate each flight separately and plan a landing between flights if the total rise exceeds 12 feet (147 risers at typical dimensions — a code requirement in most jurisdictions).

Common Stair Design Mistakes

  • Not accounting for floor finish thickness. If the upper floor will receive hardwood (3/4″) but the stairs are built before flooring is installed, the first step will be 3/4″ shorter than the rest — a code violation and trip hazard. Always measure total rise from finished floor to finished floor, or account for planned finish materials.
  • Unequal riser heights. The human body adapts to a consistent rhythm when climbing stairs. Even a 1/4″ difference between risers can cause stumbles. The calculator ensures all risers are exactly equal by dividing total rise precisely.
  • Insufficient headroom. Headroom (6’8″ minimum) must be measured at every point along the staircase, not just at the bottom. As you ascend, the ceiling or upper floor framing gets closer. Draw a section view or use the blueprint visualization to verify clearance.
  • Forgetting the landing. Every staircase needs a landing (at least as deep as the stair is wide) at top and bottom. The total run from the calculator is the stair run only — add landing space to determine total floor space required.
  • Inadequate stringer throat depth. After cutting the riser/tread notches from a 2×12, the remaining throat must be at least 3.5″. With a 7″ riser and 10″ tread, the hypotenuse of the notch is 12.2″ — leaving about 11.25″ − 7″ = a usable throat of about 4.25″. Larger notches (taller risers or deeper treads) can reduce the throat below the minimum, requiring wider lumber or an alternative framing method.

Professional Stair Building Tips

Experienced builders follow a consistent workflow: measure the total rise precisely (ideally at both sides of the stair opening, using the larger measurement if they differ); calculate all dimensions using a tool like this calculator; lay out stringers using a framing square with stair gauges set to the rise and run; cut one stringer as a template and test-fit it before cutting the remaining stringers; install stringers level and plumb with proper fastening to the upper floor framing and lower landing; install treads and risers starting from the bottom; and finish with nosing, trim, and handrails. Every step depends on the initial calculations being correct — which is the calculator’s primary function.

Spiral and Curved Stair Variations

This calculator is designed for straight-run stairs — the most common residential configuration. Spiral stairs, curved stairs, and stairs with winders (pie-shaped steps at turns) involve more complex geometry. Spiral stairs have specific code requirements: minimum tread depth of 7.5″ at a point 12″ from the narrow end, and minimum clear width of 26″ (compared to 36″ for straight stairs). If you need spiral or curved stairs, consult a specialised designer — but the rise-per-step calculation from this calculator still applies to determine the number of risers needed.

Related Construction Calculators

Frequently Asked Questions

How do I calculate stair rise and run?
Divide the total rise (floor-to-floor height) by the desired riser height to get the number of risers. Round to the nearest whole number. Recalculate the actual riser height: Actual Riser = Total Rise ÷ Number of Risers. Treads = Risers − 1. Total Run = Tread Depth × Number of Treads. Enter your total rise in the calculator above for instant results with all dimensions computed.
How many steps do I need?
Divide your total rise by the desired riser height and round. For a standard 8-foot (96″) floor with 7″ risers: 96 ÷ 7 = 13.7 → 14 risers. The actual riser height becomes 96 ÷ 14 = 6.86″. You’ll have 14 risers and 13 treads (the upper floor serves as the final “tread”).
What is a stair stringer?
A stringer is the diagonal structural board that supports the treads and risers of a staircase. Notches are cut into the stringer at each step for the treads to rest on. A typical staircase has 2–3 stringers (one on each side, sometimes one in the centre). Stringer length is calculated using the Pythagorean theorem: √(Total Rise² + Total Run²). The calculator computes this automatically.
What is the ideal stair angle?
The ideal residential stair angle is 30–37°, with 33–35° being the most comfortable range. Below 30° feels too shallow (wastes floor space); above 37° feels steep and uncomfortable for descent. The angle is determined by the rise-to-run ratio. A 7″ riser with a 10″ tread produces approximately 35° — right in the sweet spot.
What is the standard riser height?
The IRC (International Residential Code) sets a maximum riser height of 7.75″ (196 mm). The comfortable ideal is 7–7.5″ (178–190 mm). The calculator adjusts your desired riser height to the nearest value that divides the total rise evenly, ensuring all risers are identical — a code requirement.
What is the standard tread depth?
The IRC minimum tread depth is 10″ (254 mm), measured from nosing to nosing. The comfortable range is 10–11″. Deeper treads (11–12″) feel more generous but increase total run. The tread depth, combined with riser height, determines the stair’s angle and comfort. The 2R+T rule (24–25″) helps verify that the riser/tread combination is comfortable.
How accurate is this calculator?
The mathematical calculations are exact — the calculator uses the precise formulas for riser count (rounded), actual riser height (total rise ÷ risers), total run (treads × depth), stringer length (Pythagorean theorem), and angle (arctangent). The code compliance checker references IRC residential standards. For construction, always verify dimensions on-site and against local code amendments.
How do I calculate stringer length?
Stringer length = √(Total Rise² + Total Run²). This is the Pythagorean theorem applied to the staircase’s profile triangle. For 96″ rise and 130″ run: √(9,216 + 16,900) = √26,116 ≈ 161.6″ (about 13’6″). Add 12–18″ to account for the top and bottom attachment and any trimming. The calculator computes this automatically.
Can I use metric measurements?
Yes — select “Metric” from the unit system dropdown. The calculator accepts centimeters and meters for total rise, and displays all results in metric units. Building code references in the article use both imperial and metric equivalents. The underlying calculations are unit-agnostic — the math works identically in either system.
Is this calculator suitable for decks?
Yes — deck stairs follow the same mathematical principles as interior stairs. Enter the deck height as the total rise. The presets include common deck heights (3′ and 4′). For exterior stairs, use pressure-treated lumber, plan for water drainage (slight tread slope), and verify that open-riser designs comply with the 4″ sphere rule if applicable in your jurisdiction.

Residential vs Commercial Stair Requirements

Building codes distinguish between residential and commercial stairs, with commercial standards being more stringent due to higher traffic volumes and diverse user populations including elderly, disabled, and unfamiliar visitors. The International Building Code (IBC) — which governs commercial, industrial, and multi-family buildings — requires a maximum riser height of 7 inches (compared to IRC’s 7.75 inches for residential), a minimum tread depth of 11 inches (compared to IRC’s 10 inches), and minimum stair width of 44 inches for occupancy loads above 50 people (compared to IRC’s 36 inches for residential).

Commercial stairs also have stricter requirements for handrails on both sides, intermediate handrails when stairs exceed 88 inches in width, guard height of 42 inches (compared to 36 inches residential), and ADA-compliant nosing profiles that minimize trip hazards. Enclosed exit stairways in commercial buildings must additionally meet fire resistance ratings, pressurization requirements, and emergency lighting standards. This calculator is optimized for residential standards — commercial projects require consultation with an architect or code specialist who can navigate the more complex IBC requirements.

How Experienced Builders Approach Stair Layout

Professional stair builders follow a methodical workflow that begins well before any lumber is cut. The process starts with precise measurement — measuring the total rise at least three times, at both the left and right sides of the stair opening, using a plumb bob or laser level to ensure accuracy. If the measurements differ (common in older homes where floors aren’t perfectly level), use the larger measurement for the calculation to ensure the top step lands flush with the upper floor.

Next comes the layout phase. The builder uses this calculator (or a construction calculator) to determine all dimensions, then transfers them to a story pole — a straight board marked with the exact riser heights from bottom to top. The story pole is held vertically in the stair opening to verify that the total rise matches and that each mark aligns with the intended riser positions. This physical verification catches measurement errors before any cutting begins.

The stringer layout uses a framing square with stair gauges (small brass clamps) set to the rise and run dimensions. The square is walked along the stringer board, marking each step’s notch. The first stringer is cut as a template, test-fitted in place to verify fit, and only then used to trace the remaining stringers. Experienced builders know that the bottom riser must be reduced by the thickness of one tread (typically 1″ for a 5/4 board or 1.5″ for a 2× board) because the bottom step gains height from the tread that sits on the first landing — a critical adjustment that the calculator’s “actual riser height” output supports.

Headroom Clearance: The Often-Forgotten Dimension

One of the most common stair design failures is insufficient headroom — the vertical distance between the tread nosing and the overhead obstruction (ceiling, upper floor framing, or header). The IRC requires a minimum 6 feet 8 inches (80 inches / 2,032 mm) of headroom at every point along the staircase, measured vertically from the tread nosing to the ceiling above. This requirement applies at every step, not just at the bottom or top.

Headroom problems typically arise when stairs pass under an upper floor — the floor framing and subfloor create a descending ceiling line that gets closer to the treads as you climb. The critical measurement point is where the bottom edge of the upper floor framing intersects the stair path. If the stair opening (the hole in the upper floor) isn’t long enough, headroom will be insufficient at the upper treads even if it’s fine at the bottom.

To calculate the required stair opening length, you need the total run (from this calculator) plus enough additional length to maintain 80″ headroom at the point where stairs pass under the upper floor. A rough formula: Required Opening Length = Total Run − (Total Rise − 80″) × (Total Run / Total Rise). For a standard 8-foot floor with 130″ total run: Opening ≈ 130 − (96-80) × (130/96) ≈ 130 − 21.7 ≈ 108.3 inches (about 9 feet). Professional framing plans typically call for a 10-foot stair opening for standard floor heights, providing a comfortable margin above the code minimum.

Stair Materials: Wood, Concrete, Steel, and Composite

Wood is the most common residential stair material. Stringers are typically Southern Yellow Pine or Douglas Fir in 2×12 dimensional lumber. Treads may be hardwood (oak, maple, hickory) for visible stairs or softwood (pine, fir) for carpeted stairs. Risers are typically 1× pine or MDF. Wood stairs are relatively easy to build, affordable, and can be finished in various styles from rustic to contemporary.

Concrete is used for basement stairs, exterior entry stairs, and commercial applications. Concrete stairs are formed and poured in place (or precast), providing fire resistance, durability, and sound isolation. They are more expensive and labor-intensive than wood but essentially maintenance-free. Concrete stair design requires the same rise/run calculations — the forms must be built to the dimensions this calculator produces.

Steel stringers with wood or concrete treads are used in modern architectural designs and commercial buildings. Steel provides long spans without centre support, clean visual lines, and fire resistance when properly rated. Steel stair fabrication requires shop drawings with the same dimensions this calculator computes — total rise, run, riser height, tread depth, and stringer angle are all specified in the fabrication order.

Composite and engineered materials — including composite decking for treads, engineered stair parts, and prefabricated stair systems — offer consistency, dimensional stability, and reduced maintenance. Many prefabricated systems come with predetermined rise/run dimensions, but you still need this calculator to determine how many steps are required for your specific total rise and whether the prefabricated dimensions meet code.

Stair Lighting and Visibility

Proper lighting is a critical safety element that’s often overlooked during the planning phase but is much easier to install during construction than after. Building codes require that stairs be illuminated, with switches at both the top and bottom (three-way switching). Beyond code minimums, consider recessed LED tread lights (installed in the wall at each step), overhead downlights focused on the tread nosings, and illuminated handrails for dramatic effect and enhanced safety. The tread nosing — the front edge of each step — should be visually distinct from the riser to help users perceive step edges, especially during descent. A contrasting nosing strip (lighter or darker than the tread) significantly reduces the risk of missteps.

Stair Renovation and Remodeling Considerations

Renovating existing stairs presents unique challenges because the total rise (floor-to-floor height) is fixed by the existing structure, and the available floor space for the total run may be constrained by surrounding walls, doors, and rooms. In renovation scenarios, the calculator helps you determine whether your desired riser/tread dimensions are achievable within the existing space — and if not, what compromises are necessary.

Common renovation scenarios include replacing worn treads and risers on existing stringers (the calculator verifies that the existing dimensions meet current code), changing the stair angle by extending or shortening the stair opening (the calculator shows how different tread depths affect total run and angle), converting an enclosed staircase to an open design (the calculations remain identical but structural requirements change), and adding stairs to a newly finished basement or attic conversion (the calculator determines whether the available floor space accommodates the total run for the given rise).

For any renovation that changes the stair geometry — as opposed to simply refinishing existing steps — a building permit is typically required. The permit process ensures that the renovated stairs meet current code, which may be more stringent than the code in effect when the house was originally built. The calculator’s code compliance checker helps you design to current IRC standards from the outset, reducing the risk of permit rejection or required modifications during inspection.

Calculate your stair design now

Rise, run, stringer, angle, code compliance, blueprint, and material estimates — enter your height and get every dimension instantly.

Calculate stairs ↑