Planning a Garden on a Slope: The Terracing Math
The Terracing Math, Up Front
- Grade percentage is rise divided by run, times 100 — the single number that drives every terracing decision.
- Slopes over 8-10 percent generally need terracing; under that, contour planting alone may be enough.
- Terrace width and wall height trade off against each other based on your slope's steepness.
- Steeper slopes need more, narrower terraces; gentle slopes can use fewer, wider ones.
- Water runoff calculations change on a slope and need to be re-checked after terracing, not before.
A sloped yard isn't automatically unusable for gardening, but it does mean the flat-ground formulas for bed size and layout need an extra variable: grade. Once you calculate your slope's actual grade percentage, the terrace math that follows is mostly straightforward geometry — the hard part is just measuring the slope correctly in the first place.
Measuring Grade Percentage
Grade percentage = (rise ÷ run) × 100, where rise is the vertical height change and run is the horizontal distance over which that change happens. To measure it yourself: place a level string or board horizontally from the top of the slope, measure how far out you go before the string is a known height above the ground at the far end (the "run"), and measure that height (the "rise"). If a 20-foot horizontal run corresponds to a 3-foot vertical drop, your grade is (3 ÷ 20) × 100 = 15 percent.
When Terracing Becomes Necessary
As a general guideline: slopes under 5 percent can be gardened almost like flat ground, just with attention to drainage direction. Slopes from 5 to 8 percent benefit from contour planting (rows running across the slope rather than up and down it) to slow runoff, without necessarily needing terrace walls. Above 8 to 10 percent grade, soil erosion during heavy rain becomes a real problem, and terracing — building a series of flat, stepped platforms — is usually worth the labor and material cost.
Sizing Terraces From Your Grade
Terrace design balances two numbers against each other: terrace width (the flat, usable planting surface) and wall height (how much vertical drop each terrace absorbs). For a given grade, the relationship is:
Wall height = terrace width × (grade percentage ÷ 100)
On a 15 percent grade, a 6-foot-wide terrace needs a wall height of 6 × 0.15 = 0.9 feet, or about 11 inches, to capture the elevation change across that width. If you wanted a taller, more dramatic terrace at 2.5 feet, you'd need it to be wider: solving for width, 2.5 ÷ 0.15 = 16.7 feet — likely too wide for a single terrace on a modest yard, which is why steep slopes usually call for several narrow terraces rather than one or two tall ones.
Plan Your Terrace Layout
Once you know your grade percentage, use the plant spacing calculator to lay out how many usable terrace beds fit down your slope.
Try the plant spacing calculator →A Full Worked Example
Take a 40-foot run of yard with an 8-foot total rise — a grade of (8 ÷ 40) × 100 = 20 percent, a fairly steep slope. If you want manageable, waist-high terrace walls of about 2 feet each, solve for width: 2 ÷ 0.20 = 10 feet of terrace width per step. Across the full 40-foot run, that gives you 40 ÷ 10 = 4 terraces, each absorbing 2 feet of the 8-foot total rise (4 × 2 = 8, which checks out). Each 10-foot-wide terrace then becomes a bed you can plan using standard flat-ground spacing formulas, since the terrace itself is level.
Wall Material and the Angle of Repose
Terrace walls need to hold back soil at an angle steeper than that soil's natural angle of repose (the slope soil settles into on its own without a wall, typically 30 to 45 degrees for loamy garden soil). A 2-foot wall holding back soil on a 20 percent grade is well within safe territory for simple stacked-block or timber construction; walls taller than about 3 feet on steep grades start needing engineered retaining structures with proper drainage behind them, which is a different project than a weekend terracing job.
Runoff Changes After Terracing
Terracing changes how rain moves across your yard, and it's worth recalculating water needs afterward rather than assuming the flat-ground numbers still apply. Terraced beds tend to hold rainfall better than a straight slope (less runs off before infiltrating), which can mean 10 to 20 percent less supplemental watering than an equivalent flat bed once terracing is in place — a genuine water-budget benefit worth factoring into your overall irrigation plan.
Further reading: For general guidance on this topic, see the Penn State Extension — Vegetable Gardening: A Guide for Beginners.
Everything about terracing a sloped garden starts with one measurement: grade percentage, calculated as rise divided by run. From that single number, you can size terrace width against wall height, figure out how many terraces a given slope needs, and confirm your wall design is safely within the soil's natural angle of repose — turning an intimidating slope into a series of ordinary flat beds.