Home › Calculators › Stair Calculator

Stair Calculator

Enter the floor-to-floor rise and the tread you want. The calculator works out the number of risers, the exact riser height, total run, stringer length and angle, and checks it all against the residential building code.

Last updated:

Your staircase

Riser height–
Risers–
Treads–
Total run–
Stringer length–
Stair angle–
2R + T–

Code & comfort checks

    Checks follow the 2021 International Residential Code (IRC R311.7). Local codes can differ – confirm with your building department.

    Stringer layout

    StepHeight above floorDistance from first riser
    Advertisement
    Advertisement

    How to use the Stair Calculator

    1. Measure the total rise from the finished lower floor to the finished upper floor (or deck surface).
    2. Enter the maximum riser height and tread run you want, plus the nosing overhang.
    3. Add width and headroom if you want them checked against code.
    4. Press Calculate stairs to see the riser count, riser height, total run, stringer length and angle.
    5. Review the code checks and use the layout table to mark each step on the stringer.

    Stair formulas

    • Number of risers n = ⌈total rise ÷ maximum riser⌉
    • Riser height R = total rise ÷ n
    • Treads = n − 1 when the upper floor is the top step (most stairs), otherwise n
    • Total run = treads × tread run T
    • Stringer length = √(total rise² + total run²)
    • Angle = arctan(R ÷ T)
    • Comfort: 2R + T ≈ 24–25 in (61–64 cm)

    Worked example: total rise 108 in, maximum riser 7.75 in, tread run 10 in. 108 ÷ 7.75 = 13.94, so 14 risers of 7.714 in (about 7 11/16″). 13 treads × 10 in = 130 in of run. Stringer = √(108² + 130²) = √28,564 = 169.0 in, so a 16 ft board. Angle = arctan(7.714 ÷ 10) = 37.6°, and 2R + T = 25.4 in, a little steep, so a 10.5 in tread would be more comfortable.

    IRC residential stair requirements

    ItemRequirementIRC section
    Riser height7¾ in (197 mm) maximumR311.7.5.1
    Tread depth10 in (254 mm) minimum, nosing to nosingR311.7.5.2
    Riser / tread variationNo more than 3/8 in (9.5 mm) within a flightR311.7.5
    Nosing¾ to 1¼ in when treads are less than 11 inR311.7.5.3
    Headroom6 ft 8 in (2032 mm) minimumR311.7.2
    Width36 in (914 mm) minimum above the handrailR311.7.1
    Rise of one flight12 ft 7 in (3835 mm) maximum between landingsR311.7.3
    HandrailRequired with 4 or more risers, 34–38 in highR311.7.8

    Commercial buildings (IBC) are stricter: 7 in maximum riser and 11 in minimum tread. Always check your local code before building.

    Common rise and run combinations

    Total riseRisersRiser heightTreads at 10.5 inTotal run
    24 in (deck)46.0 in331.5 in
    36 in57.2 in442 in
    96 in (8 ft)137.38 in12126 in
    108 in (9 ft)157.2 in14147 in
    120 in (10 ft)167.5 in15157.5 in

    Rows use a 7.5 in maximum riser. Tip: measure total rise at the actual stair location with a level and straightedge, because floors are rarely perfectly flat, and remember to include finished flooring thickness at top and bottom.

    Frequently asked questions

    How do I calculate the number of stairs I need?

    Divide the total rise by the maximum riser height and round up. For a 108 in rise and a 7.5 in maximum riser, 108 ÷ 7.5 = 14.4, so you need 15 risers of 108 ÷ 15 = 7.2 in each. With the upper floor as the top step, you need 14 treads.

    What is the maximum riser height allowed by code?

    The International Residential Code limits risers to 7¾ in (19.7 cm) and requires treads of at least 10 in (25.4 cm). The largest and smallest riser in a flight may differ by no more than 3/8 in, which is why the calculator makes all risers equal.

    How long should a stair stringer be?

    The stringer length is the hypotenuse of the total rise and the total run: √(rise² + run²). For a 108 in rise and 147 in run that is about 182.4 in, so you would buy a 16 ft board.

    What is the 2R + T rule?

    It is a comfort rule: twice the riser height plus the tread run should be 24 to 25 in (61 to 64 cm), matching a normal walking stride. For example 2 × 7.2 + 10.5 = 24.9 in feels comfortable.

    How much headroom do stairs need?

    The IRC requires at least 6 ft 8 in (80 in, 203 cm) of clear headroom measured vertically from the sloped line connecting the tread nosings.

    Is tread run the same as tread depth?

    Tread run is the horizontal distance from one riser to the next, which is what the code calls tread depth. The actual tread board is deeper by the nosing overhang, usually ¾ to 1¼ in.

    Are all the tools on FreeToolCabin tested for quality and accuracy?

    Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

    Related tools

    Deck CalculatorDeck boards, joists, posts, screws and total cost from your deck size.Concrete CalculatorEstimate concrete volume, bags and cost.Square Footage CalculatorTotal sq ft and m² for rooms of any shape, with cost estimate.Drywall CalculatorCount drywall sheets, screws, joint compound and tape for walls and ceilings.Deck DesignerDesign a deck to scale with joists, beams, posts, stairs and board layout; PNG and list.Feet and Inches CalculatorAdd, subtract, multiply and divide feet-inch-fraction lengths with tape-measure results.Inclined Plane CalculatorForces, acceleration and push force for a mass on a slope with friction.Joist Span CalculatorMaximum floor or deck joist span for any lumber size, spacing, species, grade and load.Paint CalculatorHow much paint for a room, minus doors and windows, in gallons or liters.Tile CalculatorHow many tiles and boxes you need for a floor or wall, with waste.Flooring CalculatorWork out flooring area, boxes needed and cost with waste allowance.Brick CalculatorEstimate bricks, mortar volume and mortar bags for a wall, minus openings.Fence CalculatorWork out fence posts, rails, pickets and concrete bags for any fence length.Wallpaper CalculatorWork out how many rolls of wallpaper you need, with pattern repeat and waste.Board Foot CalculatorAdd up board feet and lumber cost for any list of boards, nominal or actual size.Insulation CalculatorFind the R-value to add for your climate zone and how many batts or blown-in bags to buy.Rain Gutter CalculatorSize gutters and downspouts from roof area, roof pitch and local rainfall intensity.Moving Cost CalculatorCompare DIY truck, full-service movers and container costs, with truck size and packing estimates.Concrete Block CalculatorCount concrete blocks (CMU) for a wall, minus doors and windows, plus mortar bags.Roof Pitch CalculatorConvert rise and run or an angle to roof pitch x/12, degrees, slope % and rafter multiplier.TV Size CalculatorFind a TV or monitor's width, height and area from its diagonal and compare two screens.TV Viewing Distance CalculatorBest seating distance for your TV size and resolution (SMPTE, THX, 4K), or the best TV size.Price per Square Foot CalculatorFind price per sq ft or m², total price or area, and compare several homes by value.House Flipping CalculatorFix-and-flip profit, ROI and 70% rule max offer from purchase, rehab, holding and sale costs.Stud CalculatorCount wall studs and plates from wall length, spacing, corners and openings.Carpet CalculatorCarpet for your rooms in sq ft and sq yd from a 12 or 15 ft roll, with padding and cost.Baseboard CalculatorLinear feet of baseboard and number of pieces for your rooms, minus doorways.Grout CalculatorGrout in kg, lb and bags from tile size, joint width, depth and area.Asphalt CalculatorTons of asphalt from area and thickness at 145 lb/ft³, with volume and cost.Sand CalculatorSand in cubic yards, m³, tons and bags for any area and depth.Siding CalculatorSiding squares, panels and J-channel from walls and gables minus doors and windows.Concrete Steps CalculatorConcrete volume and bags for poured steps from step count, rise, run, width and landing.Baluster Spacing CalculatorNumber of balusters and exact gap and on-center spacing for a railing under the 4-inch rule.Caulk CalculatorCaulk volume and number of 10.1 oz cartridges or squeeze tubes from joint length and size.Ceiling Fan Size CalculatorCeiling fan blade span, downrod length and minimum airflow (CFM) for any room.Concrete Mix Ratio CalculatorCement bags, sand, gravel and water for any concrete mix ratio (1:2:3, 1:2:4, M15, M20).Curtain Size CalculatorCurtain length, panel width and number of panels from your window size and fullness.Deck Stain CalculatorGallons of deck stain or sealer for the floor, railing and stairs, by coats and wood condition.Dehumidifier Size CalculatorPints-per-day dehumidifier capacity for your room size and dampness, old and new ratings.Epoxy Resin CalculatorEpoxy volume for river tables, countertops, floors and coasters, with resin:hardener split.Fence Post Concrete CalculatorConcrete volume and number of 40, 50, 60 or 80 lb bags for fence post holes.Heating Cost CalculatorYearly heating cost for gas, propane, oil, electric, heat pump and wood pellets compared.Home Appreciation CalculatorProject home value by year from a growth rate or find the rate from today's value, with equity.Home Maintenance Cost CalculatorYearly and monthly home upkeep budget using the 1% rule, cost per sq ft or home age.Linear Feet CalculatorAdd up lengths or convert square feet to linear feet by board width, with boards and cost.Lumens CalculatorLumens a room needs from foot-candle targets, plus bulb count and watts-to-lumens equivalents.Mortar CalculatorMortar volume and bags for brick or block walls from wall area, unit size and joint thickness.Moving Box CalculatorEstimate how many small, medium and large moving boxes, tape and packing paper you need.Picture Hanging Height CalculatorExact nail height for a frame at 57 in eye level or above furniture, plus gallery spacing.Plywood Sheet CalculatorHow many 4x8 plywood or OSB sheets you need for a floor, wall or roof, with waste and cost.Quilt Size CalculatorQuilt dimensions, blocks across and down, backing yardage and batting for any bed size.Rafter Length CalculatorRafter length, run, rise, plumb and seat cut angles from span, roof pitch and overhang.Recessed Lighting Layout CalculatorNumber of can lights, spacing and wall offset for a room, with a scaled ceiling grid plan.Home Sale Proceeds CalculatorEstimate the cash you keep after selling a home: commission, closing costs, taxes and payoff.Shiplap CalculatorBoards, linear feet, rows and nails for a shiplap wall, minus doors and windows.Tankless Water Heater Size CalculatorPeak GPM, temperature rise and the BTU or kW size a tankless water heater needs.TV Mounting Height CalculatorIdeal TV center and wall bracket height from screen size, eye height and seating distance.Water Heater Size CalculatorRecommended tank size and first-hour rating from household size and peak-hour hot water use.Household Water Usage CalculatorGallons and liters your household uses per day, month and year by activity, plus the cost.AC Running Cost CalculatorFind what your air conditioner costs to run per hour, day and month from BTU, SEER and your rate.Balloon Garland CalculatorHow many balloons for a garland or arch: counts by size and color, packs, helium and build time.Bathroom Remodel Cost CalculatorEstimate a bathroom remodel by size, type and finish, with itemized tile, vanity and labor.Board and Batten CalculatorBattens, spacing, linear feet and cost for a board and batten accent wall or siding.CFM CalculatorFind the CFM a fan needs for a room from its size and air changes per hour.Christmas Lights CalculatorLight strands, bulbs, watts and strands per circuit for a tree, roofline or shrubs.Cost to Build a House CalculatorEstimate the cost to build a house by size, stories, quality, garage, basement and region.House Painting Cost CalculatorEstimate paint gallons, supplies and labor cost to paint a house inside or out.Countertop CalculatorSquare footage and installed cost of countertops, including L/U shapes and backsplash.
    See all 99 Home & Construction Calculators →