Measuring your slope before you calculate
Unlike an indoor stair, you can't pick a riser height and design backward — the ground you already have decides most of the math. Get the slope right first.
Find your total rise
Set a stake at the top of the slope and one at the bottom. Run a string level (or a level taped to a straight board) from the top stake out to the bottom stake, then measure straight down from the string to the ground — that vertical drop is your total rise.
Find your total run
Measure horizontally along that same string line, from directly above the bottom stake to the top stake. That's your total run — the horizontal distance the steps have to cover to close the gap.
Confirm your path width
Measure the clear width you want people to walk on — most garden paths run 36"–48". Wider paths need more timbers per step, so this number drives your material count directly.
Pick your timber
Choose 6x6 or 8x8 pressure-treated landscape timber, or an authentic 7x9 railroad tie. This sets your riser height — since you can't rip a timber shorter in height on site the way you'd trim a stringer, this choice locks in most of the rest of the layout.
The formulas behind every result
Nothing on this page is a black box. Here's exactly what runs when you change a number.
Step Count
Riser height is fixed by the timber you picked (times 1 or 2 if stacked), so this rounds to the nearest whole number of steps that gets closest to your actual rise.
Base Trench Adjustment
Because timber height can't be trimmed like a stair riser, n whole timbers almost never add up to your exact rise. Δ is the leftover — dig the bottom trench deeper (Δ > 0) or shim/raise the base (Δ < 0) to true up the top of the run.
Tread Depth
Your total run divided across however many steps you ended up with. Wider total run or fewer steps both make for a deeper, easier tread.
Slope Angle
Purely descriptive here — there's no code minimum for a garden path, but a lower angle reads as a gentler, easier-to-climb set of steps.
Walking through a real 40" slope
Same formulas, filled in step by step, for a 40" rise over an 84" run using a single course of 7x9 railroad ties — the default this calculator loads with.
Step count
A 7x9 tie laid flat gives roughly a 7" riser. 40" ÷ 7" = 5.71, which rounds to 6 steps. You can't cut a tie down to a fractional height, so the calculator always rounds to the nearest whole timber count here.
Base trench adjustment
6 steps × 7" = 42" of stacked timber height, but you only need 40" of rise — a 2" surplus. The standard fix is to dig the bottom tie's trench 2" deeper so its exposed face reads shorter, absorbing the mismatch where it's least visible instead of leaving an oddball riser partway up the run.
Tread depth
84" total run ÷ 6 steps = 14" per tread — generous for an outdoor step, which is typical since garden treads usually run deeper than an indoor 10"–11" minimum.
Angle, timbers, and pins
atan(7 ÷ 14) ≈ 26.6°, a gentle, comfortable slope. A 42" path fits on one 8' tie per step (94" usable after 2" of trim waste), so 6 steps need 6 ties and, at 2 pins each, 12 rebar pins.
This is exactly why the Base Trench Adjustment output matters — it's the one number that keeps a fixed-height timber riser from silently drifting your top step 2" off the actual grade. Skip it and the last step at the top either floats above grade or gets buried into it.
6x6 vs. 8x8 vs. authentic railroad tie
Same job, three common stock choices. Actual dimensions vary by supplier and by how rough-sawn the tie is — measure your own stock before finalizing a cut list.
| Timber | Actual Size (laid flat) | Typical Riser | Common Length | Best For |
|---|---|---|---|---|
| 6x6 Landscape Timber | 5.5" × 5.5" [VERIFY: confirm actual dressed dimension against your supplier's stock — nominal 6x6 pressure-treated timber is commonly dressed to 5.5"x5.5", similar to nominal lumber sizing, but this varies by mill] | ~5.5" | 8 ft | Lighter-duty paths, tighter budgets, easier to hand-carry |
| 8x8 Landscape Timber | 7.25" × 7.25" [VERIFY: nominal 8x8 rough-sawn landscape timber dimensions vary more than dimensional lumber — confirm against your supplier] | ~7.25" | 8 ft | Taller risers in fewer steps, steeper slopes |
| Railroad Tie (7x9) | 7" × 9" [VERIFY: authentic ties are rough-cut and not standardized the way dimensional lumber is — actual size and species vary by railroad and supplier] | ~7" | 8.5 ft | Traditional look, heavier steps, longer-lasting bottom course |
Footprint (front-to-back depth) matters for gravel base sizing: a tie laid with its 9" face down has a deeper footprint than a 6x6, even at a similar riser height.
Garden step comfort ranges — not building code
Interior stairs fall under IRC egress-stair rules (7.75" max riser, 10" min tread — see our Stair Rise and Run Calculator). A garden or landscape path leading across a yard is generally not an egress stair and typically isn't held to that same code, so the ranges below are trade rules of thumb, not a legal minimum.
| Element | Comfortable Guideline | Indoor IRC (for comparison) |
|---|---|---|
| Riser height | 5"–7.5" [VERIFY: consolidated from general landscaping trade guidance — confirm against any local site or municipal path code] | ≤ 7.75" |
| Tread depth | ≥ 11" [VERIFY: outdoor comfort minimum is a rule of thumb, deeper than indoor code, not a fixed standard] | ≥ 10" |
| Slope angle | 20°–35" [VERIFY: comfortable outdoor walking-slope range, informal guideline] | 30°–37° (comfort range) |
If your project connects to a dwelling's required exit path, or your municipality treats exterior steps as egress, check local code before building — the guideline chips above will not catch that.
Anchoring, drainage & base prep
A timber step that's sized correctly can still fail in a season or two if it isn't pinned down, drained, and set on a real base. This is the section most DIY builds skip.
Pinning each timber
Pre-drill through the timber and drive rebar or a landscape spike down into the timber below it (or into compacted subgrade for the bottom step). Aim for at least 12" of pin below the timber itself for real holding power [VERIFY: exact minimum embedment depends on soil type and frost depth — deeper in freeze-prone regions].
Gravel base under each timber
A compacted crushed-stone base under the bottom timber (and ideally under every course) keeps steps from rocking or heaving after freeze-thaw cycles. 4" is a common starting depth [VERIFY: 4"–6" is typical trade guidance, but heavy clay or frost-prone soil often wants more].
Draining the tread
The tread surface behind each riser is usually native soil, gravel, or paver base — not the timber itself. Pitch it very slightly toward the front edge so water sheds off the step instead of pooling against the riser and rotting it from behind.
Common mistakes when building timber garden steps
Most timber-step failures aren't a sizing problem — they're a base, drainage, or anchoring problem that shows up a year or two later.
Using reclaimed creosote railroad ties near edibles
Authentic used railroad ties are typically treated with creosote, which many jurisdictions restrict near vegetable beds, wells, or waterways. New pressure-treated landscape timber is the safer default for those locations [VERIFY: check current local and EPA guidance for your area before sourcing reclaimed ties].
Skipping the compacted gravel base
Setting the bottom timber straight on native soil is the single most common cause of a step that rocks, sinks, or heaves within the first winter.
Not pinning the timbers
Without rebar or spikes anchoring each timber, foot traffic and frost heave gradually walk the steps downhill, opening gaps at the ends.
Ignoring the fixed-riser math problem
Assuming total rise divides evenly by a whole number of timbers almost always leaves a leftover inch or two — plan the base trench adjustment before you dig, not after the top step comes up short.
Flat or backward-pitched tread backfill
A tread that's flat or slopes toward the riser instead of away from it holds water against the timber and accelerates rot at the exact spot that's hardest to inspect.
Butting timbers with unstaggered joints
On a path wider than one timber's length, lining every joint up in the same spot on every step creates a weak seam down the middle of the stair — stagger the joints course to course.
When to use a railroad tie / timber step calculator
Timber steps are the go-to fix any time a yard has a grade change that's awkward to walk and too small a project to justify poured concrete or a masonry retaining system.
Sloped Entry Path
Stepping a front or side walkway up a graded yard to the door.
Garden Bed Access
Getting comfortable footing to raised beds on a slope.
Hillside Terracing
Breaking a long slope into steps as part of an erosion-control terrace plan.
Side-Yard Grade Change
Connecting a front yard to a back yard across an elevation change.
Low-Cost DIY Fix
Replacing worn dirt or eroded steps without a full masonry rebuild.
Pool or Patio Transition
Stepping down from a raised patio or pool deck to lawn level.