What is a free stair stringer calculator online?
A free stair stringer calculator online is a tool that turns a single measurement — the total floor-to-floor rise — into a complete, code-checked stair layout. Instead of working through the trigonometry by hand and risking an expensive mistake on a 2×12, you enter the rise, the tread depth you want and the nosing projection, and the calculator returns the number of risers, the exact riser height, the number of treads, the total run, the stringer length, the stair angle and a material list.
This stair stringer calculator with IRC code check goes beyond a basic rise-and-run tool. It validates every dimension against the International Residential Code (IRC R311.7), flags violations before you cut lumber, and adds a dynamic stair profile diagram, a cut list with miter saw angles, headroom calculation, handrail and guard checks, and a dedicated deck stairs mode. Everything runs in your browser — no sign-up, no account, no upload, no tracking.
How to use this free stair calculator with code check
- Stair Layout tab. Enter the total rise measured from finished floor to finished floor (not subfloor to subfloor). Leave the preferred riser height blank to let the calculator optimise it, or enter a target such as 7.5 inches. Set the tread depth, nosing projection and stair width. The calculator returns the full layout and flags any IRC violations.
- Advanced tab. Add the ceiling height, upper floor thickness and tread thickness to check headroom clearance and stairwell opening size. The handrail requirement is flagged automatically when the flight has four or more risers.
- Deck Stairs tab. Enter the rise from the deck surface to grade and the calculator returns the layout plus lumber sizing guidance for pressure-treated or LVL stringers.
- Copy the result, print it as a PDF, or use the share module below the tool.
What is a stair stringer?
A stair stringer is the angled structural member that carries the treads and risers of a staircase. It is cut from a wide board — most commonly a 2×12 for residential stairs — with a series of triangular notches, one for each step. The remaining material between the notches is called the throat, and its depth determines the strength of the stringer. A typical residential stair has two or three stringers: one at each side and, for wider stairs, one in the centre.
The stringer is the most important element of the stair because it determines the geometry of every step. If the stringer layout is wrong, every tread and riser on the stair is wrong. This is why the stringer calculation must be exact, and why a stair stringer calculator with a code check is worth using before any lumber is cut.
IRC stair code requirements at a glance
The International Residential Code (IRC) Section R311.7 sets the minimum requirements for residential stairways in the United States. The key limits are:
| Requirement | IRC R311.7 limit | Practical target |
|---|---|---|
| Maximum riser height | 7-3/4″ (196 mm) | 7″ – 7.5″ |
| Minimum tread depth | 10″ (254 mm) | 10.5″ – 11″ |
| Riser uniformity | Within 3/8″ | Perfectly equal |
| Tread uniformity | Within 3/8″ | Perfectly equal |
| Minimum headroom | 6′ 8″ (2032 mm) | 7′ or more |
| Minimum stair width | 36″ (914 mm) | 36″ – 42″ |
| Handrail required | 4 or more risers | Any stair with a drop |
| Handrail height | 34″ – 38″ | 36″ typical |
| Nosing projection | 3/4″ – 1-1/4″ | 1″ typical |
| Guard required | Drop over 30″ | 36″ minimum height |
The calculator checks your layout against all of these requirements in real time and flags any violation with a warning or error before you proceed.
Key stair calculations
Number of risers and riser height
The number of risers is found by dividing the total rise by the target riser height, then rounding to the nearest whole number. The actual riser height is then the total rise divided by that number:
Number of risers = round(Total Rise / Target Riser)
Actual Riser = Total Rise / Number of Risers
For example, a 108-inch rise with a 7.5-inch target gives 14.4 risers, which rounds to 14. The actual riser height is then 108 / 14 = 7.71 inches, which is just under the 7-3/4-inch IRC maximum. Splitting the rise into equal risers automatically satisfies the uniformity rule.
Number of treads and total run
The number of treads is one less than the number of risers, because the top landing or floor serves as the final step. The total run is the number of treads multiplied by the tread depth:
Number of treads = Risers − 1
Total Run = Treads × Tread Depth
Stringer length and angle
The stringer length is the hypotenuse of a right triangle formed by the total rise and the total run:
Stringer Length = √(Total Rise² + Total Run²)
The stair angle (pitch) is:
Stair Angle = atan(Total Rise / Total Run)
The miter saw cut angle for the stringer ends is 90° − stair angle when measured from the horizontal, or the stair angle itself when measured from the vertical, depending on how you set up the saw. The calculator gives the angle directly.
First step height (bottom riser)
The bottom riser is shorter than the others by the thickness of the tread material, because the first tread sits on top of the floor or landing pad:
First Step Height = Riser Height − Tread Thickness
Comfort rules
The 7-11 rule and the 2R + T rule are ergonomic guidelines, not code requirements. The 7-11 rule says the sum of one riser and one tread should be 17 to 18 inches. The 2R + T rule says twice the riser plus the tread should be 24 to 25 inches. Both rules produce comfortable stairs for most people, but they can conflict with the strict code minimums on steep sites. The calculator shows both values so you can judge comfort alongside code compliance.
Stringer layout and cutting
Once the layout numbers are confirmed, the stringer is laid out on a 2×12 using a framing square. The square is set so that the riser height is on the tongue and the tread depth is on the blade. The square is stepped along the board, marking each notch. The first notch at the bottom is set back from the end of the board, and the last notch at the top aligns with the top of the stair.
The remaining throat depth — the material left below the notch — is critical. For a 2×12, the minimum throat depth is 3.5 inches, but 5 inches or more is preferred for strength. If the throat depth falls below 3.5 inches, the stringer may not carry the design load and a larger lumber size or an engineered stringer (LVL) is required. The calculator flags this condition.
Always cut one stringer first and test-fit it before cutting the rest. A small error repeated across all the notches will be magnified at the bottom of the stair. The cut list output from the calculator gives you the miter angles and notch dimensions to transfer to the framing square.
Deck stairs: what is different
Deck stairs are exterior stairs and are exposed to weather, moisture and temperature cycling. In most jurisdictions they are still governed by the IRC for residential decks, but a few additional considerations apply:
- Treated lumber. Pressure-treated lumber is standard for exterior stringers. It resists rot and insects but is heavier and may shrink slightly as it dries.
- Footing. The bottom of the stair must bear on a solid, frost-protected footing, not bare soil. A concrete pad or compacted gravel base is typical.
- Stringer spacing. For a 36-inch-wide stair, two stringers are adequate; for 48 inches, three; for wider stairs, four. The calculator gives a recommended count.
- Open vs closed risers. Deck stairs often have open risers. The IRC permits open risers with a maximum opening of 4 inches (a 4-inch sphere must not pass through).
- Handrail and guard. A deck stair with a drop of more than 30 inches requires a guard 36 inches high, and a handrail is required on stairs with four or more risers.
The deck stairs mode of the calculator adjusts the material guidance for treated lumber and flags these exterior-specific requirements.
Common stair building mistakes
- Measuring the rise from subfloor to subfloor. The total rise must be measured from finished floor to finished floor (or deck surface to grade). Subfloor measurements will make every riser the wrong height.
- Forgetting the tread thickness on the bottom step. The first riser is shorter by the tread thickness; if you cut it to the full riser height, the bottom step will be too tall.
- Ignoring the throat depth. A stringer notched too deeply loses strength and can sag or crack under load.
- Using a stair gauge with a worn edge. A framing square with a rounded or damaged edge will produce cumulative layout errors.
- Cutting all stringers before test-fitting one. Always cut and fit one stringer first.
- Overlooking the headroom check. A stair can pass every other code check and still fail because the headroom is less than 6′ 8″.
- Assuming one code fits every jurisdiction. Local amendments can differ from the model IRC. Always verify with your local building department before construction.
Frequently asked questions
What is a free stair stringer calculator online?
A free stair stringer calculator online turns your floor-to-floor rise into a complete, IRC-code-checked stair layout. It calculates risers, treads, stringer length, angle, cut list and material list, and flags code violations before you cut lumber.
What is the IRC maximum riser height?
IRC R311.7.5.1 sets the maximum riser height at 7-3/4 inches (196 mm). The variation between the tallest and shortest riser in a flight must not exceed 3/8 inch.
What is the IRC minimum tread depth?
IRC R311.7.5.2 sets the minimum tread depth at 10 inches (254 mm), measured nose-to-nose on treads with nosings. 11 inches or more is more comfortable.
How do I calculate stair stringer length?
Stringer length = √(total rise² + total run²). Total run = number of treads × tread depth. For a 108-inch rise with 13 treads at 10.5 inches, the run is 136.5 inches and the stringer length is about 174 inches.
What is the headroom requirement?
IRC R311.7.2 requires a minimum headroom of 6 feet 8 inches (2032 mm) measured vertically from the tread nosing to the nearest overhead obstruction.
When is a handrail required?
IRC R311.7.7 requires a handrail on at least one side of all stairs with four or more risers. The handrail height must be 34 to 38 inches above the tread nosings.
What is the nosing projection limit?
IRC R311.7.5.3 requires tread nosings to project between 3/4 inch and 1-1/4 inches beyond the tread below on stairs with solid risers. Projections must be uniform throughout the flight.
What is the 7-11 rule?
The 7-11 rule is a comfort guideline: one riser plus one tread should total 17 to 18 inches. It is not a code requirement, but it produces comfortable stairs for most people.
What size lumber for stair stringers?
Most residential stair stringers are cut from 2×12 lumber. The minimum remaining throat depth should be 3.5 inches for a 2×12, though 5 inches or more is preferred. LVL stringers are used for long spans or heavy loads.
Is this stair stringer calculator free?
Yes. Free, browser-based, no sign-up, no tracking, no ads.