Wood to soil clearance for slab, crawl space and basement homes

Wood to soil gaps come from the code’s decay rule, which treated wood passes. See which rows fit your foundation and who to call before moving soil.

Tape measure checking wood to soil clearance from the top of a mulch bed to the bottom edge of siding

The gap your house needs between soil and wood depends on which wood you mean: 6 inches below siding, 8 inches below framing that rests on a foundation wall, and 18 inches under the floor joists of a crawl space. Wood closer than those gaps has to be pressure-treated or naturally rot-resistant, and for termites the bare strip matters because it leaves a mud tube nowhere to hide.

Soil or mulch touching siding is on Mississippi State Extension’s list of common termite risk factors. When mulch is what fills the gap, the fix is a rake.

Every clearance the code sets, by part of the house

Find the row that matches the wood you can see, then hold your tape measure against it. Wherever wood sits closer to the ground than the gap listed, the International Residential Code requires naturally durable wood or wood preservative-treated to the AWPA U1 standard.

Part of the houseMinimum gapWhere you find it2021 IRC section
Siding, sheathing and exterior wall framing, to the ground6 inEvery foundation typeR317.1, item 5
The same wood, above a patio slab or concrete steps2 in, measured verticallyAny wall with concrete laid against itR317.1, item 5
Framing or columns resting on a concrete or masonry exterior foundation wall, to exposed ground8 inCrawl space, basement and stem-wall slab housesR317.1, item 2
Floor joists, girders and wood columns, to the ground under the house18 in, 12 in and 8 inCrawl space and pier-and-beam housesR317.1, item 1
Ends of girders set into a concrete or masonry wall½ in of air space on top, sides and endsGirder pockets in perimeter wallsR317.1, item 4
Sills and sleepers on a slab that sits on the groundNo gap allowed; protection needed unless an impervious moisture barrier separates themSlab-on-grade housesR317.1, item 3
Furring or framing fastened to the inside of below-grade concrete or masonry wallsNo gap allowed; protection needed unless an approved vapor retarder sits between wall and woodFinished basementsR317.1, item 7
Concrete or masonry foundation wall, above finished grade6 in, or 4 in where masonry veneer is usedAll concrete and masonry foundation wallsR404.1.6
Foam plastic insulation installed above grade, to exposed earth6 inAreas the code’s map rates “very heavy” for termitesR318.4

Sources: 2021 IRC R317.1, R404.1.6 and R318.4. The 2024 IRC R304.1 keeps the same decay-protection distances.

Siding, sheathing and exterior wall framing need at least 6 inches of clearance from the ground, and 2 inches above concrete steps and patio slabs, under item 5 of the code’s decay rule. Closer than that, the code requires naturally durable or preservative-treated wood. The same 6 inches doubles as a termite inspection space measured from the soil or mulch line, and many states require it when a house is built.

Your foundation decides which numbers apply

A slab house and a crawl-space house share the outside numbers. Underneath, they follow different rows.

Slab on grade

Slab foundation house with siding starting above the concrete edge to keep wood to soil clearance from the gravel bed
On a slab, the siding’s lower edge should stay at least 6 inches above soil, and the wall plates sitting on the concrete need protected wood.

On a slab, the siding gaps carry most of the load. The slab should sit high enough that the siding’s lower edge stays at least 6 inches above soil. Siding should never touch soil or mulch, even siding termites can’t eat, because they can tunnel up behind it unseen (Mississippi State builder guide). The bottom plates of the walls rest on the concrete itself, so no gap is possible there. They need protection unless an impervious moisture barrier separates them from the slab.

Under a crawl space or pier-and-beam floor

Tape measure checking wood to soil clearance from a crawl space floor to the underside of a floor joist
The residential code asks for 18 inches under floor joists and 12 inches under girders in a crawl space.

Outside, these houses use the 6-inch siding gap plus 8 inches between exposed ground and any framing that rests on the foundation wall.

Under the floor, the code calls for at least 18 inches between the ground and the bottom of floor joists, 12 inches under girders and 8 inches under wood columns. Wood closer than that must be treated or naturally durable (2024 IRC R304.1). Where termite hazard is high, the recommended gap under beams and joists rises to 36 inches. Mississippi State’s builder guide asks for 24 inches of crawl space height so workers can reach every part of it.

The rule is written for crawl spaces and unexcavated areas inside the foundation’s periphery, which includes the space under a pier-and-beam floor. If plastic sheeting covers your crawl space floor, ask the building department whether it changes what counts as exposed ground. Damp air under the floor is a separate problem with its own fixes; how moisture and encapsulation change a crawl space goes through them.

A basement adds two indoor rules

Outside, a basement house follows the same pair: 6 inches under siding and 8 inches under the sill. Inside, wood furring or framing fastened to a below-grade concrete or masonry wall has to be durable or treated unless an approved vapor retarder separates the two. A wood post standing on the basement floor needs a concrete pier or metal pedestal at least 1 inch high, with an impervious moisture barrier between pier and post. Otherwise the post itself must be durable or treated wood (R317.1, items 7 and 9).

Is your gap too short? Measure from the top layer

Start where the ground rises highest against the wall, usually a flower bed or the spot under a downspout.

  1. Measure straight up from the top of whatever covers the ground (mulch, gravel, pavers or bare soil) to the bottom edge of the siding.
  2. Where a patio or steps meet the wall, measure from the concrete surface instead; that gap needs 2 inches.
  3. Take four readings along each wall and write down the smallest one.
  4. From the crawl space access opening, measure from the soil to the underside of the nearest joist and the nearest girder.

Gaps shrink without anyone touching the siding. Leaves and mulch build up and reduce ground clearance over time (Mississippi State Extension), so trust the reading you take after a fresh layer of mulch goes down. For depth and type, how deep mulch should go and which kinds termites eat has the numbers.

Treated wood passes the code but not the termite check

Every number above comes from the code’s decay section, and durable or treated wood meets it at any height. Termite protection sits in a separate section, R318 in the 2021 edition and R305 in 2024 (ICC summary of 2024 changes). The bare strip a clearance leaves is the inspection space where tubes show up, and a seasonal termite walk-around covers what to check along it.

Entomologists hold treated wood to a stricter line. Mississippi State Extension rates any direct wood-to-soil contact inside a building’s foundation as a high termite risk, “even for treated wood.” The University of Kentucky’s homeowner guide warns that pressure-treated wood is still vulnerable to termite attack.

Who decides when your town’s code differs

In the 2024 edition the decay rules moved from R317 to R304 (ICC), with the same distances. An inspection report citing either number points to the same requirement.

The International Residential Code is a model that states and cities adopt and can amend, and two states show how far that goes. North Carolina’s 2018 residential code, as quoted in a 2024 state code interpretation, lists framing that rests on exterior foundation walls with no 8-inch allowance, so that wood needs protection at any height. South Carolina adds a continuous 6-inch open strip along the sill plate wherever foam insulation goes on under its termite rule.

Two parties decide. The local building official rules on which edition and amendments apply to new work, and your termite company’s written contract governs coverage. Moisture is a conducive condition that can void some termite warranties, so read how your contract handles wood-to-soil contact before you sign or renew. When you call the building department, ask: “Which edition of the residential code do you enforce, and did you amend the decay-protection clearances?”

Rake the mulch back, then call before moving soil

If mulch or pine straw fills the gap, raking it back to the measurements above restores the clearance, and that job can wait for a dry weekend. Soil is a different matter. When a house has had a soil treatment for termites, the ground against the foundation is part of that treatment, and treated areas disturbed by digging may need another treatment.

Safety: Lowering the grade along a treated foundation disturbs the termiticide-treated soil the protection depends on. Ask the company that treated the house before you dig, and let it decide whether that strip needs retreatment.

Hire a structural pest control company licensed by your state’s pest control regulator and ask: “Was the soil along my foundation treated, and if the grade comes down here, does my contract cover retreating it?” Prices change with the treatment method, and what soil treatment and retreatment cost breaks them down.

Floor framing closer to the soil than the table allows, under the house or along the sill, is not a homeowner fix. Ask a licensed general contractor, or a structural engineer with a state PE license if the wood is damaged: “Is this wood treated or naturally durable, and if it isn’t, what would protecting or replacing it involve?”

Stop and call a professional if: you find mud tubes on the foundation or soft wood in a short gap. Shelter tubes on foundation walls are evidence of an infestation, so the next call is a termite inspection.

Before either call, photograph the smallest reading on each wall with the tape in the frame.

Found this helpful? See more of our guides on Google.

Want to see our guides first on Google?

Similar Posts