FENCE RULES – SAN RAFAEL (CITY), CALIFORNIA
OVERVIEW
In the City of San Rafael, ordinary residential fences outside the Downtown Mixed Use district may reach four feet within required front and street-side yards and seven feet within required rear and interior-side yards, subject to sight clearance. Combined fence-and-wall height, materials and replacement of older fences have additional rules. Downtown properties follow a separate form-based code, not those ordinary limits. Construction-permit exemptions are distinct from zoning approval, and pool enclosures and larger gates have their own requirements. This guide covers incorporated San Rafael, not unincorporated Marin County. Updated November 2026.
| Quick question | San Rafael answer |
|---|---|
| Permit or approval | Local construction exemptions distinguish ordinary residential fences, masonry walls, location and pool use; Planning approval and exceptions remain separate. |
| Typical fence height | Outside downtown: four feet front/street side, seven feet rear/interior side. Downtown has different zone-specific limits and prohibitions. |
| Placement & property lines | Identify required yards, the boundary, curb-return or downtown sight geometry, easements, waterways and retaining-wall combinations. |
| Common fence materials | Wood: design and site conditions apply. Vinyl/PVC: no unconditional product approval established. Chain-link: outside downtown, prohibited in residential yards fronting streets, rights-of-way or waterways, with the stated mitigation exception. |
| Important local conditions | Fence rules may be further affected by downtown zoning, hillside grades, documented older-fence status, pools, covered gates, drainage, public access and private restrictions. |
| Official local resource | San Rafael’s municipal fence and sight-distance requirements |
The detailed sections and official links below explain the conditions behind these answers, including the separate downtown standards. Establish the parcel’s district, actual boundary, required yards and grades before choosing a new fence or replacing an existing one.
GOVERNANCE
The City Council adopts the local requirements. Planning administers zoning, design review, exceptions and fence verification; Building administers construction permits and inspections; Public Works determines sight-distance geometry where the code calls for its decision. The San Rafael Municipal Code contains the ordinary fence rules in Section 14.16.140 and sight-distance rules in Section 14.16.295.
Those two ordinary sections expressly exclude the Downtown Mixed Use district. Its Downtown Precise Plan form-based screening standards provide separate height and safety rules. San Rafael has also adopted the 2025 California construction codes and the 2024 International Swimming Pool and Spa Code with local amendments. A zoning allowance, building-permit exemption, pool approval and private approval are not interchangeable.
PERMIT AND APPROVAL REQUIREMENTS
• Local building-permit exemption: Section 12.105.020 lists residential fences not over seven feet or masonry fence walls not over thirty-six inches when outside the front or street yard and not used as swimming-pool barriers. Its front- or street-yard wording separately requires compliance with Title 14. Do not read this as seven-foot masonry-wall permission or a universal front-yard exemption; have Building classify the actual location, material and assembly.
The same section exempts retaining or rockery walls not over forty-eight inches, measured from the bottom of the footing to the top, only when they do not support a surcharge or impound the specified liquids. This construction threshold differs from the zoning wall-height and combined-height rules. Exempt work still must comply with other applicable law.
• Taller ordinary residential fences: Outside downtown, a rear or interior-side fence over seven feet and up to nine feet requires administrative design review and an exception where topography or a difference in grade warrants the increase. A front or street-side fence may receive up to two additional feet to prevent access to natural or physical hazards, also with administrative design review and an exception. Neither is an automatic privacy or security bonus.
The Planning Director’s exception process requires an owner or authorized-agent application, fee and prescribed plans, findings of special circumstances and no detrimental effects, and a written decision. Ordinary fence exceptions do not require a public hearing under that chapter. The code says a landscape buffer should mitigate taller streetscape fencing, with a suggested six inches for each added foot of height; that advisory wording is not an automatic approval or a substitute for sight clearance.
• Hillside walls: Retaining walls over four feet on qualifying hillside parcels require environmental and design review and the specified finding about minimizing grading or tree-removal impacts. Walls outside required setbacks also fall under the applicable accessory-structure rules. Obtain the actual site classification rather than treating an ordinary fence exemption as a hillside-wall approval.
• Hired fence work: Verify the contractor’s applicable license and scope. The Business and Professions Code 7048 exception covers casual, minor or inconsequential work below $1,000 in aggregate labor, materials and other costs only when no building permit is required and no one is employed to perform or assist. It excludes work that is part of a larger operation, splitting projects to fit the limit, and persons advertising as contractors or qualified to contract. It is not an exemption for every low-cost fence job.
• Private pools: The local pool-code amendment requires an enclosure meeting Health and Safety Code 115923 to prevent unauthorized entry from adjacent public or private property. It expressly makes that enclosure additional to the protective features required by Section 115922. The local existing-pool provision also prints a written-application exception referring specifically to Section 115922 for a natural or artificial barrier offering equal or greater protection. Have the Chief Building Official resolve that provision’s application alongside the enclosure requirement and state Act; do not treat it as an automatic enclosure waiver.
For covered construction or remodeling of a pool or spa at a private single-family home, California generally requires at least two qualifying drowning-prevention features, subject to statutory exceptions and distinct licensed-child-care rules. The Act covers qualifying recreational-water structures containing water more than eighteen inches deep, including spas and hot tubs. Alternatives include a compliant isolation enclosure, qualifying removable mesh fencing, an approved safety cover, exit alarms, qualifying self-closing and self-latching home doors, a qualifying water alarm, or independently tested equivalent protection. Each feature must meet its actual technical standard. An exit alarm and latch on the same door, an exit alarm and latch on separate doors, or a safety cover and the specified water alarm do not make a qualifying two-feature pair. Final inspection is required.
A statutory isolation enclosure must be at least sixty inches high, with no more than two inches of ground clearance and no opening passing a sphere four inches or larger. Its outside must not provide handholds or footholds enabling a child under five to climb over. Gates must open away from the pool, self-close and self-latch, with the latch at least sixty inches above ground. That differs from the fifty-four-inch release height for the separate qualifying home-door feature. Licensed family child-care homes with in-ground pools have additional isolation, protective-feature, documentation and inspection requirements. An ordinary perimeter fence alone does not establish pool compliance.
• Gate certification: Chapter 12.350 applies to all vehicular gates and to any gate more than forty-eight inches wide or more than eighty-four inches high. Covered new gates require a qualified inspection and written certification upon installation and at least every five years thereafter, with certification retained for the Building Official. The existing-gate compliance deadline was July 1, 2025. This is not a certification requirement for every smaller pedestrian garden gate.
FENCE PLACEMENT RULES
• Yards and boundaries: Locate the required front, street-side, rear and interior-side yards rather than using the house wall as the zoning line. A sidewalk, curb, landscaped strip or old fence is not proof of the surveyed boundary. Establish easements and public rights-of-way before placing posts or gates.
• Public and private access: A fence or retaining wall in a public right-of-way may require an encroachment permit or license agreement separately from construction and zoning review. Do not obstruct public passage, recorded access, utilities or drainage. Waterway-facing fencing also has specific material restrictions outside downtown.
• Shared fences: California Civil Code 841 presumes adjoining landowners benefit equally from a dividing fence and, absent a contrary written agreement, share reasonable construction, maintenance and necessary replacement costs. The presumption is rebuttable, not a right to choose an expensive upgrade and automatically bill a neighbor for half. Before incurring covered costs, give each affected adjoining owner thirty days’ prior written notice stating the presumption, the problem, proposed solution, estimated costs, proposed sharing and timeline.
A court can reduce or eliminate a contribution if the presumption is rebutted by a preponderance of the evidence. It considers disproportionate benefit or burden, cost compared with added property value, proven financial hardship, unreasonable or excessive expense, personal aesthetic preferences and other equitable factors. The statute’s landowner definition excludes public bodies. Public approval does not resolve ownership or authorize removal of someone else’s property.
• Before digging: Use USA North 811’s California utility-location guidance before post holes and check responses and markings. Private irrigation and other owner-installed lines may need a private locator. California’s owner exceptions include a residential owner, not acting as a licensed contractor, improving the principal residence or its appurtenances through excavation that does not require a permit, and an owner contracting with a licensed contractor for permit-exempt excavation. Those exceptions do not excuse a hired excavator’s own duties; locating utilities remains sound safety practice.
Covered excavators delineate the work area and ordinarily notify at least two working days, and no more than fourteen calendar days, before excavation, excluding the notice day from the two-working-day count. Obtain an actual ticket, observe its legal start and operator responses, and preserve markings. Tickets generally remain valid twenty-eight calendar days from issuance and must be revalidated before expiration if work continues. Follow the exact-location and safe-exposure requirements; the tolerance zone generally extends twenty-four inches from each outside edge of the installation.
For a parcel affected by hillside, historical, waterway, drainage or approved development conditions, resolve the actual restriction before construction. Fire-access and vegetation-management obligations may also affect the site. These conditions do not establish a general citywide ban on wood fences.
FENCE HEIGHT AND VISIBILITY RULES
• Ordinary residential yards outside downtown: Fences and retaining walls may reach four feet in required front and street-side yards, subject to sight distance. Minor decorative entry treatments such as trellis or lattice arches may reach eight and one-half feet without vehicular view obstruction; this is not a solid-fence allowance. Required rear and interior-side yards allow fences up to seven feet and retaining walls up to four feet.
• Combined height: Section 14.16.140 measures the fence or retaining wall and associated structural or decorative elements together, vertically from finished ground level as determined by the Building or Planning Official to the top at any point. Terraced fences or walls with at least four feet of landscaped horizontal separation may be measured separately from the base of each terrace. An illustrative height label is not permission to exceed the applicable yard limit.
• Ordinary sight clearance: Outside downtown, the general vision triangle extends fifteen feet from the curb return at an intersection or driveway, or as Public Works determines. Fencing, improvements and vegetation generally may not exceed three feet above adjacent street pavement within the established triangle, and the area between three and eight feet above street grade must remain free of visual obstructions. Public Works determines the triangle for unique site or topographic constraints. Do not substitute property-line measurements.
• Downtown neighborhood zones: In the required setbacks of the listed T4 Neighborhood and T5 Neighborhood zones, Table 3.1.020.A limits fences and freestanding walls to three feet in front and street-side setbacks and nine feet in side and rear setbacks. These are downtown zoning maxima, not building-permit exemptions or citywide residential limits.
• Downtown Main Street zones: In the listed T4 Main Street and T5 Main Street zones, fences and freestanding walls are not allowed in the required front or street-side setbacks; the table allows nine feet in required side and rear setbacks. Identify the actual form-based zone instead of using the neighborhood-zone front-fence allowance.
• Downtown measurement and walls: Screening height is measured vertically from finished grade at the screen’s base to its top edge. Screening mounted on or attached to a retaining wall has a combined six-foot limit unless the Director approves higher screening under the stated impact and purpose or health-and-safety conditions. A separate Director-approved courtyard branch allows screening up to four feet, set back at least ten feet from the front property line or back of sidewalk, whichever is least. It is not a general exemption from the downtown table.
• Downtown safety clearance: The form-based code limits fences, walls, screening and landscaping to four feet within ten feet of the listed vehicle-access or driveway intersections with a street or sidewalk, and intersections of two or more vehicle accessways, including driveways, alleys or streets. Its intersection reference is the face of curb, or edge of pavement if there is no curb. Do not transplant the ordinary fifteen-foot, three-foot rule into downtown.
• Spite fences: Civil Code 841.4 treats an unnecessarily over-ten-foot fence or fence-like structure maliciously erected or maintained to annoy an adjoining owner or occupant as a private nuisance. Ten feet is not a zoning allowance.
MATERIAL AND CONSTRUCTION LIMITS
• Ordinary residential materials outside downtown: Wire mesh, chain-link and similar fences are prohibited in any residential yard fronting a public street, right-of-way or waterway, except where required as an environmental mitigation measure. This is not a blanket prohibition on every rear-yard chain-link fence. The core provision does not establish unconditional approval of every wood or vinyl/PVC product; design and site requirements still apply.
Outside downtown, the fence section prohibits concertina wire, razor wire, broken glass atop a fence and electrified fencing. Barbed wire is not permitted where abutting residential uses. Downtown separately prohibits barbed-wire and razor-wire screening under its form-based code. Do not assume an agricultural or security label overrides the applicable district restriction.
• Temporary security fencing: Outside downtown, construction-security fencing is limited to the period a valid building permit is in effect and must be removed immediately after completion. Downtown has its own temporary-fencing approval, material, six-foot-height and removal conditions, including restrictions on fencing occupied property that can otherwise be secured. Neither branch authorizes a permanent noncompliant boundary fence.
• Lawful nonconforming fences outside downtown: Section 14.16.140(D) allows ordinary maintenance and repairs to keep an existing nonconforming fence or wall sound. Alterations and additions must comply with the fence provisions; moving or replacing the fence generally requires conformity, subject to the specific residential front- or street-side exception below.
An existing nonconforming residential front- or street-side fence or wall may be replaced in the same location if it was previously permitted or authorized by the City, or existed on or before January 1, 1992, and the owner supplies sufficient documentation. Planning must issue a zoning verification review letter for the documented height. Replacement may not exceed six feet in the required front or street-side setback or three feet in the required vision triangle, must fit the prevailing character of both sides of the block, and requires all necessary permits, including any right-of-way authorization. Age alone does not establish this exception.
For downtown or other existing structures, the applicable nonconforming-structure provisions and actual approvals must be considered separately. General building-casualty percentages are not a substitute for the specific ordinary fence-replacement conditions above or an automatic right to rebuild every fence at its old dimensions.
PRIVATE RESTRICTIONS
Recorded covenants, association design standards, private easements and boundary agreements may restrict a fence independently of public requirements. Obtain any required private approval separately. A public permit does not override recorded access rights or settle ownership.
Where association governing documents require approval of a physical change, Civil Code 4765 requires a fair, reasonable and expeditious process, good-faith decisions consistent with law, and a written decision. The procedure must provide prompt deadlines and state the maximum response time for an application or board reconsideration request. A denial must explain its reasons and the applicable reconsideration procedure. The statute does not create automatic approval or one universal deadline for every fence request.
REVIEW AND ENFORCEMENT CONTEXT
Fence issues are typically reviewed during permit or approval review when required, and through complaint-based code enforcement. Examples include:
• Ordinary versus downtown zoning, required yards, sight clearance, combined wall height, materials and proposed height exceptions.
• Construction-permit classification, pool enclosures, covered-gate certification, documented nonconforming replacement and applicable public-access or site approvals.
Association design approval, shared-fence costs and ownership disputes remain separate from the City’s public-code review.
USING THIS INFORMATION
This page provides general orientation on how residential fence rules are structured and applied within the City of San Rafael, California. Updated November 2026.
In addition to local fence rules, certain California laws apply statewide. See Statewide Fence Laws in California.
It is not legal advice and does not replace official statutes, regulations, ordinances, orders, permits, surveys, recorded documents or professional guidance. Rules and interpretations may change. Applicable requirements depend on the property’s actual location, the authority responsible for each issue, current adopted codes and amendments, zoning and site conditions, rights-of-way, easements, drainage and floodplain conditions, historic or design districts, pool and home uses, agricultural and livestock conditions, shared-fence rights, excavation and private restrictions. Government approval does not resolve ownership, private agreements or recorded access rights. If this page conflicts with controlling law or official requirements, the controlling authorities govern.