How to divert water away from your house, from the downspout to the yard
Water pooling by your foundation after rain? Start at the roof: clean the gutters and make each downspout end at least 5 feet from the house. Then make the ground drop at least 6 inches over the first 10 feet. If water still comes from uphill, a shallow planted ditch, called a swale, can carry it around the house. Send it all to a planted spot at least 10 feet away, where it can soak in.
Listen to this article
Read aloud by an AI voice.
Where is the water coming from? Watch the next rain
Go out in a steady rain and look. Water against a house usually comes from one of three places:
- The roof. A downspout that ends at the wall, or a gutter that spills over its edge.[1]
- The ground. Soil that has settled into a low spot or tilts toward the house.[1]
- Uphill. Rain from the yard or slope above you, running toward the house.[2]
Our take: start with the roof. It's the easiest fix, and it sends a lot of water. Take a 1,500 square foot roof with four downspouts. An inch of rain sends about 230 gallons out of each one, more than four 55 gallon drums at every corner.
Step 1: Make every downspout end 5 feet out
Clean the gutters first. A clogged gutter spills over its edge, onto the soil below. Clean it at least once a year, more under trees.[1] If it spills even when clean, see why gutters overflow in heavy rain.
Then extend each downspout at least 5 feet from the foundation, onto ground that slopes away.[3] Pick one:
- An extension. A plain plastic pipe clipped to the downspout, laid on the ground or buried.[1] An extension and an elbow cost about $14 to $55 in 2022 prices.[4]
- A splash block, a concrete or plastic tray under the outlet. If the soil past it still washes away, add fist-sized stones.[1]
- A buried pipe that carries the water at least 10 feet out.[3] Before you dig, call 811. It's free, and the utilities mark their buried lines.[5]
Our take: start with an extension, and go 10 feet if the yard has room. See how far downspouts should be from the house.
Where should the water go? Somewhere it can soak in
Good spots:
- A planted bed or a rain garden, a shallow planted dip that holds roof water for a day or two, at least 10 feet from the house.[6] To test your soil and size one, see how to size a rain garden.
- Downhill, toward a spot where water naturally drains.[4]
Avoid driveways, sidewalks and the street.[4] Our take: never aim it at a neighbor's yard.
Step 2: Slope the ground 6 inches over 10 feet
The International Residential Code, a model building code many US towns use for houses, asks the ground to drop at least 6 inches over the first 10 feet out from the foundation.[7] That is about a 5% slope.[1] Fill any low spot near a downspout and tamp the soil firm so it doesn't sink again.[1][8] Patios and walks within 10 feet of the house should tilt away too.[8] No room for 10 feet of slope? A swale (below) or a buried drain can do the job.[8]
To check your slope, you need two stakes, string and a line level, a small level that hangs on the string:
- Push one stake in at the wall and a second one 100 inches straight out.
- Tie the string to the first stake at ground level and pull it level to the second.
- Measure from the string down to the ground at the second stake. The inches equal the slope in percent.[6]
You want 5 inches or more. That is the same 5% as 6 inches over 10 feet. Less means the soil near the wall needs building up.
No gutters, or gutters that spill? Put gravel under the drip line
Rain falls in a line off the roof edge, called the drip line, and can wear a groove by the wall. Two fixes:
- A gravel strip. A band of pea gravel about 10 to 12 inches wide and 3 to 4 inches deep, over landscape fabric, under the drip line.[1]
- A drip line trench. A trench about 18 inches wide and at least 8 inches deep, filled with crushed stone, with its bottom sloped away from the house.[9] It works best in sandy or gravelly soil that soaks water up fast. Skip it if your foundation leaks or isn't sealed, because it can flood the wall.[9]
Our take: most yards need only the gravel strip.
Water from uphill? Catch it with a swale
A house below a slope catches the yard's water too. The fix is a swale: a shallow planted ditch on the uphill side that carries runoff around the house.[2] It should drop gently along its length, about 2% to 4%, or 2 to 4 inches per 100 inches.[2] See how to build a swale.
Soil by the house still soggy days after rain? The water may be underground. It may need a buried gravel drain, called a French drain.

In Sonoma County
- On swelling clay, California law sets 5 feet. Where soil is known to swell when wet or sink, California's residential code requires roof water to land at least 5 feet from the foundation, or go to an approved drainage system.[10]
- Keep it out of the street. Storm drains here carry runoff untreated into creeks and rivers.[11] Soak it into your yard instead.
- Check before big drainage work. Permit Sonoma is the permit office for areas outside city limits.[12] New drainage work there can need its permit, and it must not harm the neighbors' land.[13] See which drainage and grading jobs need a permit.
What it means for you
- Fix the downspouts before you dig.
- Next rain, walk around the house and note where water pools or runs toward it.
- This weekend: put an extension on the worst downspout and check one wall with the string.
Photos by Devan Hemmings unless noted.
Sources
- 1. Northern Virginia Soil and Water Conservation District (Fairfax County), Gutters and Downspouts: Wetness or Erosion Problems
- 2. US Department of Energy, Building America Solution Center, Swales, Drains, and Site Grading for Stormwater Control
- 3. US Department of Energy, Building America Solution Center (Pacific Northwest National Laboratory), Gutters and Downspouts
- 4. Delaware Department of Natural Resources and Environmental Control, I-ADAPT: Extend Downspouts (2022 cost estimates)
- 5. US Department of Transportation, Pipeline and Hazardous Materials Safety Administration, Call Before You Dig!
- 6. Thomas G. Franti and Steven N. Rodie, Stormwater Management: Rain Garden Design for Homeowners, University of Nebraska-Lincoln Extension NebGuide G1758 (2007)
- 7. InterNACHI, Slope of Grade (quoting the 2021 International Residential Code, Section R401.3)
- 8. US Department of Energy, Building America Solution Center, Final Grade Slopes Away from Foundation
- 9. Portland Water District and Maine Conservation, Dripline Trench (Fact Sheets for Homeowners)
- 10. 2025 California Residential Code, Section R801.3, Roof drainage (text as posted by GoCodebook)
- 11. Sonoma Water, Stormwater
- 12. Permit Sonoma, Frequently Asked Questions about Grading and Storm Water
- 13. Permit Sonoma, Storm Water (Drainage) Permits
Checked 2026-11-30. Rules and programs change. If something here is out of date, the source above wins. Spot an error? See our corrections policy.



