Stair Calculator
Use the Stair Calculator above to turn your measurements into a clear, step‑by‑step plan. Whether you’re a DIY homeowner, a carpenter, or a contractor, this tool helps you build stairs that are safe and comfortable.
Vertical distance from floor to floor
Horizontal distance the stairs will span
Height of each step (max 7.75")
Depth of each step (min 10")
Total number of steps in the staircase
Clear width between handrails (min 36")
Ready to Calculate
Enter total rise and other dimensions to see professional stair calculations
Why use a stair calculator?
Manually calculating steps, risers, and runs is easy to get wrong. Even a small error in total rise can throw off every step. A good stair calculator:
- Converts your total rise and total run into exact riser height and tread depth.
- Tells you how many steps your staircase should have.
- Calculates stringer length so you buy the right amount of lumber.
- Helps you stay close to typical building‐code ranges for safety and comfort.
Using a calculator instead of guessing saves time, reduces rework, and helps you avoid awkward, steep, or shallow stairs.
How to use the stair calculator
Most users can get good results in under 2 minutes. Here's how:
1. Enter total rise
Measure from the finished floor level at the bottom of the stairs to the finished floor level at the top. Don't forget to include any flooring or underlayment thickness.
2. Enter total run
Measure the horizontal distance from the face of the first riser to the face of the last riser. This is the space your stairs will occupy on the floor.
3. Choose step type
Select interior stairs, deck stairs, or concrete stairs if your form has those options. This affects default code‐like ranges and safety tips.
4. Hit "Calculate"
The stair calculator will show you:
- • Number of steps
- • Riser height
- • Tread depth
- • Stair angle
- • Stringer length
- • Optional: headroom and stair width suggestions
Spend an extra minute comparing the suggested values against your local building code or design preferences, then follow the layout diagram to cut your stringers and build your steps.
Understanding key stair terms
Before you build, it helps to understand the basic parts of a staircase.
Rise and riser height
The total rise is the vertical distance between the two floor levels. The riser height is how tall each individual step is.
Most residential building codes suggest riser heights between about 5.5 and 7.75 inches, with a maximum of 7.75 inches being common.
Tread and tread depth
The tread is the horizontal part you step on. The tread depth (or run) is how deep each step is.
Typical code‐friendly ranges are 10–11 inches for interior stairs and a bit deeper for decks or outdoor use.
Run and total run
The total run is the overall horizontal footprint of the stairs. It's calculated from the face of the first riser to the face of the last riser.
Each individual tread run is the depth you set for each step (e.g., 10 inches).
Stair stringer
The stair stringer is the angled support that carries the treads and risers. You usually need two or three stringers per staircase.
The calculator uses the total rise and total run to compute the stringer length using the Pythagorean theorem.
Stair angle and comfort
The stair angle is the slope of your staircase.
- • Around 30–35 degrees is often considered comfortable for interior stairs.
- • Very steep angles (closer to 45 degrees) feel tiring and can be unsafe for kids and older adults.
Headroom and stair width
- • Headroom is the vertical clearance above the stairs to the ceiling.
Many codes require at least 6 ft 8 in (2.03 m) of stair headroom. - • Stair width is measured from side to side at the widest point.
Typical minimums are 36 inches (91 cm) for residential stairs, with wider stairs for decks or commercial use.
How the stair calculator works (simplified math)
Behind the scenes, the calculator does a few core calculations:
- Number of steps ≈ total rise ÷ average riser height (within code‐friendly range).
- Riser height = total rise ÷ number of risers.
- Tread depth = total run ÷ (number of risers − 1).
- Stringer length = square root of (total rise² + total run²).
- Stair angle = arctan(total rise ÷ total run), converted to degrees.
These formulas are the same ones used by builders and carpenters, but the calculator handles the math and rounding so you can focus on layout and cutting.
Common stair calculator settings and use cases
Different use cases often need slightly different inputs. Here are some common setups:
Interior house stairs
Goal: Comfortable, quiet stairs between floors.
Typical inputs:
- • Total rise: 9–10 ft between finished floors.
- • Target riser: 7–7.5 inches.
- • Target tread: 10–11 inches.
The calculator will suggest steps, riser height, and stringer length accordingly.
Deck or porch stairs
Goal: Safe, easy‐to‐climb access to an outdoor area.
Typical inputs:
- • Total rise: 1–3 ft from deck surface to ground.
- • Number of steps: often 2–4.
- • Tread depth: at least 10–12 inches for sturdiness.
The calculator may also show rough stringer length for 2x12 lumber.
Concrete steps
Goal: Minimal rework on a concrete pour.
Typical inputs:
- • Total rise and number of steps.
- • Target riser and tread dimensions.
The calculator outputs step height and depth that you can translate into formwork measurements.
Spiral or tight‐space stairs
These usually need more advanced planning and may fall outside simple calculator scope, but the basic stair terms (rise, run, riser, tread) still apply.
Making your stairs safe and code-friendly
A good stair calculator helps you get close to code, but local rules vary. Always check your local building code (IRC, OSHA, or municipal rules). Common safety guidelines include:
- Riser height: No more than 7.75 inches, and all risers in the same flight should be within 3/8 inch of each other.
- Tread depth: No less than 10 inches in many residential codes.
- Stair headroom: At least 6 ft 8 in (2.03 m).
- Stair width: Minimum 36 inches for residential interior stairs.
- Handrail height: Between 34 and 38 inches above the tread.
- Nosing: If treads have a nosing, it's often allowed up to 1.25 inches over the riser.
Your calculator may show code‐like ranges; use these as a starting point, then confirm with an inspector or local code book if you're building for resale or rental.
Tips for measuring and using the stair calculator
To get the best results, measure carefully and think through your design:
Measure between finished floors, not subfloor levels.
If you're planning to install tile, hardwood, or concrete topping, account for those thicknesses in your total rise.
Round step counts first, then let the calculator adjust riser height.
For example, if the calculator suggests 17.8 steps, round up to 18 and let it recalculate riser height.
Check the stair angle.
If the angle is much steeper than 35–40 degrees, consider whether the design is comfortable for kids, elderly users, or heavy foot traffic.
Plan for stringer material.
Common stringer sizes are 2x10 or 2x12 lumber. The calculator's stringer length can help you decide how many boards to buy and where to cut waste.
Visualize the layout.
Many stair calculators draw a simple side‐view sketch of the stairs, risers, and stringer. Use that sketch to mark out the layout on your floor or deck before cutting.
Stair calculator vs. DIY spreadsheets or notes
Some people try to build a staircase using only paper, a calculator, or a spreadsheet. While possible, this approach often leads to:
- • Small arithmetic errors that multiply across all risers.
- • Inconsistent step heights or depths.
- • Extra trips to the lumberyard as you recalculate.
A dedicated stair calculator:
- • Reduces math errors by doing the heavy lifting.
- • Keeps all values consistent so every step is the same.
- • Gives instant feedback when you change total rise, total run, or step count.
For most DIYers and contractors, using a stair calculator is faster and safer than working from memory or a handwritten table.
Frequently asked questions (FAQ)
How many steps do I need for my stairs?
The stair calculator uses your total rise and target riser height to suggest the number of steps. As a rule of thumb, divide your total rise in inches by about 7 (the typical comfortable riser) and round to the nearest whole number. The calculator does this automatically and shows you the exact step count.
How do I calculate riser height for stairs?
The calculator sets riser height equal to the total rise divided by the number of risers. If you change the number of steps, the calculator will adjust riser height up or down. Always keep risers within code‐friendly ranges (often 5.5–7.75 inches) for safety and comfort.
How do I calculate stair tread depth?
The tread depth (run) comes from the total run divided by the number of treads, which is usually the number of risers minus one. The calculator returns this value and lets you adjust it within a safe range that matches your design and code.
How do I calculate stringer length for stairs?
The calculator uses the Pythagorean theorem: Stringer length = √((total rise)² + (total run)²). It then rounds this to a practical lumber length for you to cut. Always cut stringers a bit longer than this length to account for waste and trimming.
How wide should my stairs be?
Most residential stair codes require at least 36 inches of clear width. Wider stairs (42–48 inches) are easier for moving furniture and safer for everyday use. The stair calculator may show width suggestions or simply remind you of typical code‐minimum values.
How much headroom do stairs need?
Typical building codes require at least 6 ft 8 in (2.03 m) of headroom above the stairs. The calculator can't directly measure your ceiling height, but it can remind you of this requirement and help you choose a layout that fits under your existing ceiling.
How do I make stairs to code?
To build stairs to code: Set your riser height within the maximum allowed (often 7.75 inches). Set your tread depth at or above the minimum (often 10 inches). Check for sufficient headroom and stair width. Install handrails at the correct height (34–38 inches above tread). The stair calculator helps you stay close to these ranges, but always confirm with your local code or inspector.
Can I use the stair calculator for concrete steps?
Yes. For concrete steps, enter the total rise and number of steps, then let the calculator suggest riser height and tread depth. Translate those dimensions into formwork measurements and use them when ordering or mixing concrete.
How accurate is the stair calculator?
The calculator is based on well‐tested formulas used in construction. It is accurate for standard straight‐run stairs. Accuracy depends on your measurements, so double‐check your total rise and total run before relying on the results.
Should I always trust the stair calculator's first suggestion?
The calculator gives a good starting point, but you may want to tweak step count, riser height, or tread depth based on available space, material size, or aesthetics. Use its output as a baseline, then adjust within code‐friendly ranges.
Related Construction Calculators
Concrete Calculator
Calculate concrete volume for slabs, footings, and stairs. Get exact cubic yards or meters for your pour.
Roofing Calculator
Estimate roofing materials, shingles, and costs. Perfect for residential and commercial projects.
Square Footage Calculator
Calculate area for flooring, painting, and materials. Supports multiple room shapes and dimensions.
Tile Calculator
Determine tile quantities for floors, walls, and backsplashes. Includes waste factor and grout spacing.