Other

Stair Calculator

Units

Results

Enter values and calculate to see results.

Embed on your site

Any ezcalcs calculator can be embedded with one script tag. Copy the snippet below or use the homepage playground to preview and customize.

<!-- ezcalcs embed: stair-calculator — paste anywhere in the body -->
<script
  async
  src="https://ezcalcs.net/embed.js"
  data-calc="stair-calculator"
  data-theme="light"
  data-width="100%"
  data-height="640"
></script>

Use this stair calculator to find the number of steps, riser height, tread depth, stringer length, and stair angle for any staircase. Enter your total rise (the vertical height from one floor to the next) and get accurate dimensions you can use to plan and build.

Whether you're framing interior stairs or building deck stairs, the calculator gives you a clear layout in seconds. Results are estimates for planning purposes. Always verify measurements on site and check local building codes before cutting materials.

How the Stair Calculator Works

The calculator uses your total rise to determine how many steps you need and how tall each riser should be. It then calculates tread depth, total run (the horizontal distance the staircase covers), stringer length, and stair angle.

Here's the basic process:

  1. Enter total rise. Measure the vertical distance from the finished lower floor to the finished upper floor.
  2. Set your preferred riser height. The calculator defaults to a standard height, but you can adjust it.
  3. Review results. The tool returns the number of steps, individual riser height, tread depth, stringer length, and angle.

Every output updates when you change an input. This lets you adjust the design until the dimensions fit your space and meet code requirements.

Calculate Total Rise and Height

Total rise is the single most important measurement for any staircase. It is the vertical distance from the surface of the lower floor to the surface of the upper floor. Measure this precisely because every other calculation depends on it.

A common mistake is measuring to the subfloor instead of the finished floor. If carpet, tile, or hardwood will be installed later, account for that thickness now. Even a quarter inch of error per step adds up across an entire staircase.

To measure total rise accurately:

  • Use a level and tape measure, or a laser level for taller heights.
  • Measure at the exact spot where the stairs will be located. Floors are not always perfectly level.
  • Double check the measurement. A second reading prevents costly cutting errors.

The calculator divides total rise by your target riser height to find the number of steps. It then adjusts the riser height slightly so every step is exactly the same height. Uneven risers are a tripping hazard and a code violation.

Step and Riser Dimensions

Riser height and tread depth work together to determine how comfortable and safe a staircase feels. A step that is too tall or too shallow forces an awkward stride. A step that is too short with a deep tread wastes space.

Most residential stairs use a riser height between 7 and 7.75 inches and a tread depth of at least 10 inches. These ranges come from building codes and decades of construction practice.

Tread Depth and Stair Angle

Tread depth is the horizontal surface you step on, measured from the front edge (nose) to the back of the step. Do not include the overhang (nose projection) in the tread depth measurement. The nose typically extends 0.75 to 1.25 inches beyond the riser below.

Stair angle is calculated from the relationship between riser height and tread depth. Most comfortable residential staircases fall between 30 and 37 degrees. Steeper angles feel like climbing a ladder. Shallower angles eat up floor space.

A useful rule of thumb: riser height plus tread depth should equal roughly 17 to 18 inches. This keeps the staircase in a comfortable walking range.

Riser HeightTread DepthApproximate Angle
7 in11 in32.5°
7.5 in10.5 in35.5°
7.75 in10 in37.8°

Number of Steps to Calculate

The calculator divides total rise by your desired riser height, then rounds to the nearest whole number. It recalculates the exact riser height so all steps are uniform.

For example, a total rise of 108 inches with a target riser height of 7.5 inches gives 14.4 steps. The calculator rounds to 14 steps and sets each riser to 7.714 inches (108 ÷ 14).

Keep in mind: the number of risers is always one more than the number of treads. The upper floor acts as the final "step," so you don't need a tread there.

Deck Stair Calculator

Deck stairs follow the same math as interior stairs, but the environment and construction details are different. You're working with pressure treated lumber, outdoor exposure, and a landing that may be a concrete pad, patio, or the ground itself.

Calculate Deck Stair Rise and Landing

For deck stairs, total rise is the vertical distance from the top of the deck surface to the landing below. If your landing is a poured concrete pad, measure to the top of that pad. If the stairs land on grade (soil), account for a gravel pad or paver that keeps the stringer bottom off bare dirt.

A proper landing at the bottom of deck stairs must be at least 36 inches deep (measured from the last riser), per most building codes. This gives a safe place to step off.

What are the parts of a deck staircase?

  • Stringers. The diagonal structural boards that support the steps. Most deck stairs use three stringers for widths up to 36 inches.
  • Treads. The horizontal boards you walk on. Deck treads are commonly two 5.5 inch boards with a small gap for drainage.
  • Risers. The vertical boards between treads. Many deck stairs leave risers open (no board), which is allowed in some codes but not all.
  • Posts and handrails. Required when the staircase has four or more risers, or when the deck is more than 30 inches above grade.

Mount Type for Deck Stairs

The mount type describes how the top of the stringer connects to the deck frame.

  • Flush mount. The stringer is fastened to the face of the rim joist. The top tread sits level with the deck surface. This is the most common approach.
  • Top mount (inset). The stringer sits on top of the deck frame or a support ledger. This method changes the last riser height, so the calculator adjusts accordingly.

Select the correct mount type in the calculator before reviewing your results. Choosing the wrong one shifts every riser height by the thickness of the deck board.

Building Codes for Stairs

Building codes set minimum safety requirements for residential stairs. Code specifics vary by jurisdiction, but most US localities follow the International Residential Code (IRC) or a close adaptation. Check your local code. The values below are general guidelines, not a substitute for your local inspector's requirements.

Riser and Step Code Requirements

  • Maximum riser height: 7.75 inches.
  • Minimum tread depth: 10 inches.
  • Riser height variation: The tallest and shortest risers in a staircase cannot differ by more than 3/8 inch.
  • Nose projection: Between 0.75 and 1.25 inches if the staircase has a nosing.
  • Open risers: If risers are left open, the opening must not allow a 4 inch sphere to pass through (to protect small children).

Handrail and Landing Code

  • Handrail height: 34 to 38 inches, measured vertically from the stair nose.
  • Handrail required: On at least one side for stairs with four or more risers.
  • Guard rail: Required when the open side of a stairway is more than 30 inches above the surface below. Minimum guard height is 36 inches.
  • Landing size: At least as wide as the stairway and at least 36 inches deep, measured in the direction of travel.
  • Headroom: Minimum 6 feet 8 inches of vertical clearance, measured from the nose line of treads to the ceiling above.
  • Minimum stair width: 36 inches clear, measured between walls or between a wall and the handrail.

These are estimates of common code values. Your municipality may enforce stricter rules, especially for deck stairs and exterior stairways.

Reading Your Calculator Results

After entering your inputs, the calculator returns a full set of stair dimensions. Here's what each result means:

  • Number of risers. The total vertical steps in the staircase.
  • Number of treads. Always one fewer than the number of risers.
  • Riser height. The exact height of each individual step.
  • Tread depth. The horizontal depth of each step surface.
  • Total run. The horizontal distance from the face of the first riser to the face of the last riser.
  • Stringer length. The diagonal length of the stringer board from top to bottom. This tells you the minimum length of lumber you need.
  • Stair angle. The incline of the staircase in degrees.

If any value falls outside standard building code ranges, adjust your inputs. Lowering the riser height increases the number of steps and total run. Raising it does the opposite.

Measurement in Inch or Metric

The calculator supports both inch and metric (millimeters) units. Toggle between them depending on your preference or regional standard.

If you're working in metric, enter total rise in millimeters. The calculator returns all dimensions in millimeters. Standard metric riser heights typically fall between 175 mm and 200 mm, with a tread depth of at least 250 mm.

Switching units mid-project is a common source of error. Pick one system and stick with it through layout, cutting, and installation.

Stair Calculator on Mobile

The calculator is fully responsive. Use it on your phone or tablet at the job site while you measure.

Having the tool on mobile lets you:

  • Enter the actual total rise measurement immediately after taking it.
  • Adjust riser height and tread depth in real time while evaluating the available space.
  • Share results with a contractor or building inspector right from your screen.

No app download is required. Open the page in any mobile browser and the calculator is ready to use.

Building a Stair Frame from Your Calculations

Once you have your calculator results, you can lay out and cut your stair frame. The stringer is the backbone of the staircase, so getting it right matters most.

Stringer Length and Construction

A stair stringer is a diagonal board with notches cut for each tread and riser. Most residential stringers are cut from 2x12 lumber. The uncut portion of the stringer (the wood remaining after the notches) must be at least 3.5 inches wide for structural strength.

Steps to lay out a stringer:

  1. Mark the riser height and tread depth on a framing square using stair gauges.
  2. Align the square on the 2x12 and trace the first step.
  3. Step the square along the board, marking each rise and run, until you've marked all steps.
  4. At the bottom, subtract the thickness of one tread from the first riser. This is the "drop" adjustment so the first step isn't taller than the rest once treads are installed.
  5. At the top, adjust for your mount type (flush or top mount).
  6. Cut along the layout lines with a circular saw. Finish the inside corners with a handsaw to avoid overcutting.

After cutting the first stringer, test fit it in place. Verify the top and bottom riser heights with a level and tape measure. Then use the first stringer as a template for the remaining stringers.

For stairs wider than 36 inches, use a center stringer in addition to the two outer stringers. This prevents treads from bouncing or flexing underfoot.

Deck Stair Calculator for Different Heights

Deck heights vary widely. A low platform deck might be 16 inches off the ground, while a second story deck could be 10 feet or more. The calculator handles any total rise, but the results change significantly at different heights.

Deck HeightApprox. RisersApprox. Total RunStringer Length
24 in330 in~38 in
48 in763 in~79 in
96 in13126 in~158 in
120 in16157 in~198 in

These are rough estimates assuming a 7.5 inch riser and 10.5 inch tread. Your calculator results will be more precise based on your actual inputs.

For taller deck stairs, plan for longer stringers. A standard 2x12 comes in lengths up to 16 feet. If your stringer length exceeds available lumber, you may need an intermediate landing to break the staircase into two flights. Many codes require a landing for any stairway with a vertical rise exceeding 12 feet.

Longer stair runs also need more horizontal space. Measure the available area at the base of the deck before finalizing your design. If space is tight, a slightly steeper stair angle (within code limits) reduces total run.

Enter your specific deck height into the calculator above to get exact dimensions for your project.