A homeowner measuring five feet of bare gravel beside a black aluminum fence

Illustrative image

How close can a fence be to a house? Zone 0 distances

Where a fence can sit near a California house: the 1 foot, 4 foot and 5 foot lines, what a gap does for embers, and a table to place your own fence.

In this article (8)
The 5 foot noncombustible fence spanTop view of a house corner and its side yard. Zone 0 is the 5 foot band around the house. A side-yard fence runs out from the side wall of the house at a right angle to the property line, with a gate next to the house that swings open into the backyard. Under the state Zone 0 rule (14 CCR 1298.04(b)(9); 1299.03(d)(9)), a fence or gate attached to the house, or within 1 foot of it, must be noncombustible for the first 5 feet, measured along the fence from the house. Here that is the wall post, the metal gate, the latch post and a short metal filler, ending at a metal post 5 feet from the wall. The wood fence past 5 feet can stay, and it can be repaired with wood. The property-line fence runs parallel to the side of the house, more than 5 feet away, so it can be wood. Three close-ups show where the 5 feet start. Attached: the fence meets the wall end-on, and the span starts at the wall. Within 1 foot: the fence stops just short of the wall; it counts as attached, and the span starts at the fence end closest to the house. Parallel: a fence 3 feet from the wall runs alongside the house inside Zone 0. No new combustible fence may be built within 5 feet of the house after the rule takes effect; an existing wood one there can stay. Existing homes get 3 to 5 years to replace the attached part.Side-yard fence with a gate, top viewHouseZone 00 to 5 ft aroundthe houseProperty lineFront yardBackyardMetal gateMetalWoodZone 0Property lineFirst 5 ft along the fence,measured from the wall:metal wall post, gate,latch post and filler.Past 5 ft, wood can stay.Repairs in wood are allowed.Property-line fence:more than 5 ft from thehouse, so wood is fine.Where the 5 ft startsAttachedMeets the wall end-on.The 5 ft starts at the wall.Gap under 1 ftWithin 1 ftStops just short of the wall.Counts as attached. The 5 ftstarts at the fence end.Parallel, within 5 ftA new fence here must benoncombustible. An existingwood one can stay.Top view. The 5 ft is measured along the fence, starting at the house.The 5 foot noncombustible fence spanTop view of a house corner and its side yard. Zone 0 is the 5 foot band around the house. A side-yard fence runs out from the side wall of the house at a right angle to the property line, with a gate next to the house that swings open into the backyard. Under the state Zone 0 rule (14 CCR 1298.04(b)(9); 1299.03(d)(9)), a fence or gate attached to the house, or within 1 foot of it, must be noncombustible for the first 5 feet, measured along the fence from the house. Here that is the wall post, the metal gate, the latch post and a short metal filler, ending at a metal post 5 feet from the wall. The wood fence past 5 feet can stay, and it can be repaired with wood. The property-line fence runs parallel to the side of the house, more than 5 feet away, so it can be wood. Three close-ups show where the 5 feet start. Attached: the fence meets the wall end-on, and the span starts at the wall. Within 1 foot: the fence stops just short of the wall; it counts as attached, and the span starts at the fence end closest to the house. Parallel: a fence 3 feet from the wall runs alongside the house inside Zone 0. No new combustible fence may be built within 5 feet of the house after the rule takes effect; an existing wood one there can stay. Existing homes get 3 to 5 years to replace the attached part.Side-yard fence, top viewHouseZone 00 to 5 ftProperty lineFront yardBackyardMetal gateMetalWoodZone 0Property lineFirst 5 ft along the fence, from thewall: metal wall post, gate, latchpost and filler.Past 5 ft, wood can stay.Repairs in wood are allowed.Property-line fence: more than 5 ftfrom the house, so wood is fine.Where the 5 ft startsAttachedMeets the wallend-on. The 5 ftstarts at the wall.Gap under 1 ftWithin 1 ftStops just short ofthe wall. Counts asattached. The 5 ftstarts at its end.Parallel, in 5 ftA new one must benoncombustible.Existing woodcan stay.Top view. The 5 ft is measured along thefence, starting at the house.

The first 5 feet of fence from the house must be noncombustible. The rest can stay wood.

See the rule details

How close can a fence be to a house in California? No statewide building or fire code sets a minimum distance, so outside cities with local rules a fence can touch the wall. California’s Zone 0 rule adds two distances once it takes effect: a fence within 1 foot of the house needs a 5 foot noncombustible span, and no new combustible fence may go within 5 feet.

A wood fence built now within 1 foot of the house would need its first 5 feet replaced within 3 to 5 years of the day the state rule takes effect, and from that day no new wood fence can go within 5 feet, so plan around both lines. Two cities already enforce local versions: Berkeley, since 1 January 2026 in its Grizzly Peak and Panoramic Hill areas, and San Diego (table below). The full fence provisions are on the Zone 0 fence requirements page.

Which distances does the Zone 0 rule use?

Two. The quotes below are from 14 CCR 1298.04, the version for homes where a city or county fire department handles wildfire protection (the Local Responsibility Area).

1 foot: the contact trigger. Paragraph (b)(9)(A) applies to “All fences and gates that are attached to an Occupied Structure, or come within one (1) foot of contact with an Occupied Structure.” Those fences “shall have a five (5) foot Noncombustible span from the point of attachment or the point closest to the Occupied Structure.” A fence that ends 8 inches from the siding is treated as attached, and the 5 feet is measured from its nearest point.

5 feet: the no-new-wood line. Paragraph (b)(9)(B) says that after the effective date, “no new Combustible fences or gates (whether attached or parallel to the Occupied Structure) are permitted within five (5) feet of an Occupied Structure.” The version for CAL FIRE’s State Responsibility Area, 1299.03(d)(9), has the same ban without the words in parentheses.

Everything past 5 feet is untouched. The Board’s July 2026 staff memo says “Fences more than five feet from the structure are not impacted by the draft regulation.” Existing combustible fences inside 5 feet that stay more than 1 foot from the house may remain (the same memo says the draft allows existing combustible fences “to remain in place”) and may be repaired with wood ((b)(9)(C)). For a parallel fence inside 5 feet, the Board’s guidance still recommends upgrading that section to noncombustible material, without requiring it.

Zone 0 itself is measured from the exterior wall, and from any attached deck, stairs or pergola (1298.04(a)). The rule’s definition of Occupied Structure (1298.02(h)) includes those features, plus a self-supporting deck, stairs or pergola within 1 foot of the house. If your fence meets a deck, measure from the deck edge, not the wall.

Does a gap between the fence and the house stop embers?

Not on its own, and the research gives no safe gap. In NIST’s 2022 fence experiments (Technical Note 2228, 187 burns), fences and mulch beds were set 0, 1, 3 and 6 feet from a test shed. Three results matter here:

  • For fence-plus-mulch burns, “spot fire ignition times did not depend on separation distance.” Embers lit the target mulch along the wall about as fast with a 6 foot gap as with none.
  • Wind around the shed formed a vortex that “deposited firebrands next to the structure.”
  • In the burns with large flames, NIST concluded “that 1.83 m (6 ft) separation distance was insufficient to prevent the structure from ignition.” In one composite fence test, flames licked the shed from 6 feet away.

NIST’s recommendation is to avoid putting combustible fences near homes, and it declines to name a number: the spacing needed “is a function of structure construction materials/assembly and fence materials/design.” The state rule draws its own line at 1 foot: anything closer counts as touching, so 6 inches of air changes nothing under it.

How far apart should parallel fences be?

Here the numbers are clear. Two wood fences side by side, common where neighbors each build on a shared line, were in NIST’s very high hazard class: “A large fire occurred even when wood privacy fences were separated by 91 cm (3 ft),” and the report says “Spacing of 0.9 m (3 ft) between fences is not sufficient.”

A single fence running parallel to the house, 5 feet or less from it, also creates a narrow strip where debris builds up, flames intensify and upkeep gets harder.

The IBHS Wildfire Prepared Home designation sets 5 feet as the line for back-to-back fences in its Plus level: if two parallel combustible fences are less than 5 feet apart, one has to be removed or replaced with a noncombustible option. Mercury’s top wildfire discount tier asks for the same 5 foot separation.

Is there a building code setback between a fence and a house?

No. These are the codes that come closest:

  • California Residential Code R105.2 exempts “Fences not over 7 feet (2134 mm) high” from a building permit. It sets no distance from the house.
  • California Wildland-Urban Interface (WUI) Code 504.11.2 requires permitted “miscellaneous structures” less than 3 feet from a building to be noncombustible or ignition-resistant. Section 504.11.1 lists “trellises, arbors, patio covers, gazebos and similar structures” and applies only to structures that need a building permit. Fences are not named, so a fence short enough to need no permit appears to fall outside it. Whether a permitted fence over 7 feet counts as a “similar structure” is a question for your building department.
  • Zone 0 rule. Its 1 foot and 5 foot distances are the only state fire-rule distances for fences, and they apply from the day the rule takes effect.

Your city’s zoning code may separately limit fence height and placement, so check it before you build.

Where does my fence fall? A decision table by distance

State column: the state rule once it takes effect. San Diego column: the city’s guidelines, in force locally for new structures since 28 February 2026, with full compliance for existing homes, fences included, targeted for 28 February 2029.

Where the fence sits State Zone 0 rule San Diego Zone 0 Guidelines IBHS Wildfire Prepared Home
Fastened to the house, deck or stairs First 5 ft noncombustible ((b)(9)(A)) 5 ft noncombustible “transitional span” Replace wood or vinyl within 5 ft
Ends within 12 in of the wall Same as attached; 5 ft measured from the closest point Within 5 ft, so covered by section 4.6 Same as above
Perpendicular, ends 1 to 5 ft away Existing may stay and be repaired; any new fence there must be noncombustible Noncombustible under a compliance plan; existing wood may stay only if the fire code official finds no continuous fuel pathway Replace within 5 ft
Parallel to the house, 4 to 5 ft away Existing may stay (guidance recommends upgrading); no new combustible fence Existing vinyl, and new fire-retardant-treated wood, allowed if debris-free with no plants between fence and house Replace within 5 ft
Parallel, under 4 ft away Existing may stay; no new combustible fence Prohibited where it forms “a continuous fuel pathway” Replace within 5 ft
More than 5 ft away Not affected “no changes or new requirements” Plus level: parallel pairs under 5 ft apart, replace one

San Diego’s exceptions come from section 4.6 of its Rev. 4/22/2026 guidelines; the wood allowance needs a product listed in the State Fire Marshal’s WUI Products Handbook. Details are on San Diego Zone Zero fence rules.

What should I measure?

  1. Every point where a fence meets or nears the house, deck or stairs. If the gap is 12 inches or less, mark 5 feet along the fence from that point. Every gate, post and panel inside the mark is in the span.
  2. Any fence that runs parallel to a wall. Note its distance from the wall at the closest point, and whether a neighbor’s fence runs beside it.
  3. What sits at the fence base. NIST rated wood fences with mulch at the base as high hazard. The Board’s guidance says to “Remove vegetation and combustible materials in contact with the fence.”

If a fence touches the house, the options for the house end are on wood fence attached to house. For which parts of an older fence may stay, see do I have to replace my wood fence. The evidence on fences as a fire path is on do wood fences spread fire to houses.

Where Zone 0 is measured fromTop view of one house wall. Zone 0 is measured 5 feet out from the exterior wall, and from the outer edge of an attached deck, stairs or pergola, so it reaches farther out where a deck sticks out (14 CCR 1298.04(a); 1298.02(h) counts a self-supporting deck within 1 foot as attached). No plants are allowed under eaves, within 1 foot of the wall where there is no eave, within 2 feet of windows, doors and vents, or within 5 feet of an attached deck, stairs or pergola (1298.04(b)(6)). The area under a deck must be clear (b)(3). Allowed in Zone 0: gravel and pavers; outside the plant-free strips, a plant up to 18 inches tall in an unfixed noncombustible pot of 5 gallons or less (b)(7). Not allowed: bark or wood-chip mulch (b)(1), and shrubs or other woody plants.HouseTop view of one wallWindowAttached deckKeep clear underneathUnder eavesEave edge1 ft ifno eave2 ft from windows,doors and ventsNo plants within5 ft of the deckZone 0 ends 5 ft from the walland 5 ft from the deck edgeNo plantsZone 0, outside the stripsGravel or paversOK in all of Zone 0Bark or wood chipsNot allowedPotted plantUp to 18 in tallClay or metal pot5 gal maxShrubsNot allowedWhere Zone 0 is measured fromTop view of one house wall. Zone 0 is measured 5 feet out from the exterior wall, and from the outer edge of an attached deck, stairs or pergola, so it reaches farther out where a deck sticks out (14 CCR 1298.04(a); 1298.02(h) counts a self-supporting deck within 1 foot as attached). No plants are allowed under eaves, within 1 foot of the wall where there is no eave, within 2 feet of windows, doors and vents, or within 5 feet of an attached deck, stairs or pergola (1298.04(b)(6)). The area under a deck must be clear (b)(3). Allowed in Zone 0: gravel and pavers; outside the plant-free strips, a plant up to 18 inches tall in an unfixed noncombustible pot of 5 gallons or less (b)(7). Not allowed: bark or wood-chip mulch (b)(1), and shrubs or other woody plants.Along the wallHouseWindowUnder eaves1 ft ifno eave2 ft from windows,doors and ventsZone 0 ends 5 ft from the wallAt an attached deckHouseAttacheddeckClear underneathNo plants within5 ft of the deckZone 0 follows the deck edgeNo plantsZone 0, outside the stripsGravel or paversOK in all of Zone 0Bark or wood chipsNot allowedPotted plantUp to 18 in tallClay or metal pot5 gal maxShrubsNot allowed

Where the 5 feet start, and the plant-free strips inside them.

See the rule details

Questions people ask

What is the minimum distance between a fence and a house in California?

There is none in state building or fire code; a fence may touch the wall. Once the state Zone 0 rule takes effect, any fence within 1 foot of the house counts as attached and needs a 5 foot noncombustible span, and no new combustible fence may go within 5 feet. Berkeley and San Diego already apply local fence rules.

Keep reading

Spot an error? Tell us and we will correct it and note the change.