Skip to main content
CityRuleLookup

Sonoma County, CA Fence Regulations: Retaining Walls (2026)

Some Restrictions
Compiled from the official code textEditor Martyn O'NeillLast verified September 2026

Key Facts

Combined height
Wall + fence cannot exceed the allowable fence height (PJR-133)
Measurement
Height measured from lowest existing grade to topmost point
Wall permit (typical)
Building permit generally required for walls over 4 ft or any wall with a surcharge
Engineering
Taller/surcharged walls may require engineered plans
Other rules
Drainage, grading and hillside/grading-permit review may apply
Agency
Permit Sonoma (permitsonoma.org)

Summary

A fence built on top of a retaining wall in unincorporated Sonoma County cannot exceed the allowable fence height when the wall and fence are combined. Fence height is measured from the lowest existing grade to the topmost point, so a wall counts toward the limit. Structural retaining walls require a separate building permit.

City-specific rules exist: Petaluma has its own retaining walls rules that differ from Sonoma County's county-level regulations. If you live in Petaluma, check the city-specific page instead.

The following are exempt from a building permit. (Measured from the lowest grade to the top of the fence): Open fence (such as wood lattice or wire mesh) that is 10 feet or less in height; Solid fence (such as solid wood, concrete, or masonry) that is 7 feet or less in height; 7 feet or less solid fence topped with 3 feet or less of open fence (that is 10 feet or less in combined height); Retaining walls, which retain not more than 3 feet of material unless supporting a surcharge or impounding class I, II, IIIA liquids.

Full Breakdown

In the unincorporated county, Permit Sonoma's PJR-133 Fence Guidelines address fences combined with retaining walls. Because fence height is measured from the lowest existing grade to the topmost point of the fence, a fence set on a retaining wall is measured from the bottom of the wall - the wall and the fence together cannot exceed the allowable fence height for that yard without the appropriate approval (administrative design review, design review, or a use permit). This prevents using a retaining wall to gain extra fence height in a required setback.

Separately, retaining walls themselves are regulated as structures by the California Building Code as adopted by the county; a building permit is generally required for retaining walls that retain a surcharge or exceed the code threshold (commonly walls over 4 feet measured from the bottom of the footing to the top, or any wall supporting a surcharge). Engineered plans may be required for taller or surcharged walls. Retaining walls must also respect drainage, grading and setback rules and may trigger grading-permit review on sloped or hillside parcels.

Because thresholds and setbacks vary by site and zoning district, confirm the specific requirements for your parcel with Permit Sonoma before building a wall or a fence-on-wall combination.

Violations & Fines

Using a retaining wall to exceed the allowable combined fence height in a required yard, or building a regulated retaining wall without the required building or grading permit, can lead to a stop-work order, code-enforcement citation, fines, and an order to modify or remove the wall.

Frequently Asked Questions

Can I put a fence on top of a retaining wall in unincorporated Sonoma County?
Yes, but the wall counts toward your fence height. Under the PJR-133 Fence Guidelines, fence height is measured from the lowest existing grade to the topmost point, so a fence on a retaining wall is measured from the bottom of the wall. The combined wall-plus-fence height cannot exceed the allowable fence limit in a required yard without design review or a use permit.
Do I need a permit for a retaining wall?
Generally yes for taller walls. Under the California Building Code adopted by the county, a building permit is typically required for retaining walls over about 4 feet (measured from the bottom of the footing) or any wall supporting a surcharge such as a slope or driveway. Confirm the exact threshold and whether grading review applies for your parcel with Permit Sonoma.

Sources & Official References

Other rules in Sonoma County

All Sonoma County rules

California rules heatmap·Compare Sonoma County to another location·View the California fence regulations overview

Get notified when Retaining Walls in Sonoma County, CA changes

We'll email you the moment we detect a change in the code. No spam, unsubscribe anytime.

We'll never sell or share your email. One-click unsubscribe in every email.

See something wrong?

Help us keep this page accurate. If you notice an error or outdated information, let us know.

Retaining Walls in Cities Across Sonoma County