Skip to content

San Rafael · Building on your lot

Building on your lot in San Rafael

San Rafael sets its own limits on fences, accessory structures and home businesses in residential districts. Taller fences need administrative design review and an exception, and a home business may not use a garage or accessory structure.

Key points

  • Fence height: In residential districts, fences are limited to 4 feet in front or street side setbacks and 7 feet in rear or interior side yards.
  • Accessory structures: Residential accessory structures are limited to 15 feet, except through design review, and 30% of the required side or rear yard areas.
  • Home businesses: A home business may use at most 25% of the home, 1 client at a time; non-residents may work only in cottage food operations.

Each rule below is marked San Rafael code or CA state law and links to the section it comes from (checked October 2026). General information, not legal advice.

Fences and walls

San Rafael code What San Rafael's code adds
Corner visibility
  • Fences, plants and retaining walls must not block the vision triangle needed for sight distance.
    Applies: Near driveways or street intersections.
    § 14.16.140 · code text
    Fencing, vegetation and retaining walls located near a driveway or street intersection shall not conflict with the vision triangle requirements established to assure adequate sight distance is maintained for vehicles and pedestrians, pursuant to the provisions of Section 14.16.295.
Front yard height
  • No more than 4 feet high.
    Applies: Fences and retaining walls in required front or street side yard setbacks in residential districts.
    § 14.16.140 · code text
    Fences and retaining walls not exceeding four feet (4′) in height, may be located within the front or street side yard setback
  • eight and one-half feet (8.5′)
    Applies: minor decorative entryway treatments, such as a trellis arch or lattice arch, within the front or street side yard of residential districts
    § 14.16.140 · code text
    Minor decorative entryway treatments no taller than eight and one-half feet (8.5′) in height, such as a trellis arch or a lattice arch, are permitted within the front or street side yard
  • Up to 2 feet above the 4-foot limit.
    Applies: Residential front or street side yard fences that block access to hazards. Needs administrative design review and an exception.
    § 14.16.140 · code text
    Fences in the front yard or street side yard may be increased by a maximum of two feet (2′) to prevent access to natural or physical hazardous conditions either on the lot or on an adjacent lot
Side and rear yard height
  • No more than 7 feet high.
    Applies: Fences in required rear or interior side yards in residential districts.
    § 14.16.140 · code text
    Fences not exceeding seven feet (7′) in height may be located within the required rear yard or interior side yard
  • No more than 4 feet high.
    Applies: Retaining walls in required rear or interior side yards in residential districts.
    § 14.16.140 · code text
    Retaining walls not exceeding a height of four feet (4′) in height may be located within the required rear yard and interior side yard.
  • Up to 9 feet high.
    Applies: Interior side or rear yard fences where slope or grade difference warrants it. Needs administrative design review and an exception.
    § 14.16.140 · code text
    Fences exceeding seven feet (7′) in height up to nine feet (9′) in height may be located in the required interior side or rear yard where topography or difference in grade between adjoining sites warrants such increase, subject to administrative design review and exception.
Permit
  • A building permit may be required for fences over 7 feet and retaining walls over 4 feet.
    Applies: As the building code decides. Also walls that support the next hillside or property improvements.
    § 14.16.140 · code text
    A building permit may be required for fences over seven feet (7′) in height and retaining walls over four feet (4′) or walls that support the adjacent hillside or property improvements, as determined by the building code.

Sheds, garages and other accessory structures

San Rafael code What San Rafael's code adds
Maximum height
  • No more than 15 feet high, unless allowed through design review.
    Applies: Residential accessory structures.
    § 14.16.020 · code text
    The height of an accessory structure shall not exceed a height of fifteen feet (15′) except as permitted through design review.
Size or lot coverage
  • No more than 30% of the required side or rear yard areas.
    Applies: Residential accessory structures.
    § 14.16.020 · code text
    residential accessory structures shall not exceed a maximum of thirty percent (30%) of the required side or rear yard areas.
Side and rear setback
  • 0 feet.
    Applies: Unconditioned structures up to 120 square feet and 8 feet high, in residential side and rear yards. Building code limits and 3-foot walkway apply.
    § 14.16.020 · code text
    Accessory structures, unconditioned (e.g., not intended for human occupancy) with a maximum floor area of one hundred twenty (120) square feet and up to eight feet (8′) in height measured from grade to roof peak;
  • May be within 3 feet of the rear and interior side property lines.
    Applies: Accessory structures over 120 square feet and up to 15 feet high, in residential districts.
    § 14.16.020 · code text
    The following accessory structures may be located within three feet (3′) of the rear and interior side yard property line:
  • At least 3 feet or half the pool depth, whichever is greater.
    Applies: Pools and in-ground spas, from the property line.
    § 14.16.020 · code text
    A setback of at least three feet (3′) or a distance equal to one-half (½) the depth of the pool, whichever is greater, shall be provided from the property line.
Distance from the house
  • At least 3 feet of clear walkway.
    Applies: Between above-grade accessory structures at a 0-foot side or rear setback and nearby buildings or the property line.
    § 14.16.020 · code text
    provision of an unobstructed walkway clearance of at least three feet (3′) between above-grade accessory structures and adjacent buildings or the property line in order to provide access around the primary building:

Running a business from home

San Rafael code What San Rafael's code adds
Space used
  • No more than 25% of the home's gross area.
    § 14.16.220 · code text
    No more than twenty-five percent (25%) of the gross area of said residence shall be used for such purpose.
  • A garage, recreational vehicle or accessory structure may not be used for a home business.
    § 14.16.220 · code text
    Use of a recreational vehicle or garage for a home occupation is prohibited.
Customer visits
  • No more than 1 client on site at a time.
    § 14.16.220 · code text
    The home occupation(s) shall be operated to allow no more than one (1) client at a time on-site.
Employees
  • No more than 1 full-time equivalent employee.
    Applies: Cottage food operations. Household members do not count.
    § 14.16.220 · code text
    except that a cottage food operation (as defined in the State of California, Health and Safety Code (HSC) 113758) shall be permitted to have no more than one (1) full-time equivalent employee, not including members of the household.
  • Only residents may do the work. No non-resident employees.
    Applies: Home businesses other than cottage food operations.
    § 14.16.220 · code text
    Such occupation(s) shall be conducted solely by resident occupants in their residence
Permit
  • Business licenses and other city permits, such as building permits, are required.
    § 14.16.220 · code text
    All home occupations shall be subject to all conditions which are applied in this Title 14 generally, such as off-street parking; and to all other permits required under the city code, such as building permits and business licenses.

Lot splits under SB 9

San Rafael code What San Rafael's code adds
How the lot may be divided
  • One of the 2 new lots must be at least 40% of the original lot's area.
    Applies: Applies to urban lot splits.
    § 15.155.030 · code text
    One (1) of the two (2) parcels shall not be smaller than forty percent (40%) of the lot area of the original parcel area of the subdivision.
Minimum new lot size
  • Each of the 2 new lots must be at least 1,200 square feet.
    § 15.155.030 · code text
    Each of the two (2) parcels shall have a minimum lot size of one thousand two hundred (1,200) square feet.
Standards
  • The city cannot apply standards that block 2 units on either new lot or force units under 800 square feet.
    § 15.155.030 · code text
    Any standards that would have the effect of physically precluding the construction of two (2) units on either of the resulting parcels or that would result in a unit size of less than eight hundred (800) square feet, shall not be imposed.
  • No setback applies to an existing structure or one rebuilt in the same place at the same size.
    Applies: Applies only to an existing structure or a replacement built in the same location and to the same dimensions.
    § 15.155.030 · code text
    No setback shall be imposed for an existing structure, or a structure constructed in the same location and to the same dimensions as an existing structure.
  • Each new lot must have access to, give access to, or border a public street or right-of-way.
    § 15.155.030 · code text
    Each parcel shall have access to, provide access to, or adjoin the public right-of-way.
  • Each new lot must have the easements or other property rights needed for public services and facilities.
    § 15.155.030 · code text
    Each parcel shall possess easements and/or other necessary property rights required for the provision of public services and facilities.

RV and boat parking

San Rafael code What San Rafael's code adds
Where it may be parked
  • An RV or boat may be parked in the garage, carport or parking space the zone requires.
    Applies: Applies to single-family homes and duplexes.
    § 14.18.190 · code text
    Within the garage, carport or parking space required by the zone in which the use is located;
  • In the front yard setback, an RV or boat may park only on the driveway to required parking.
    Applies: Applies to single-family homes and duplexes, and only on the driveway to the garage, carport or parking spaces the zone requires.
    § 14.18.190 · code text
    In the front yard setback when on the driveway to the garage, carport or parking spaces required by the zone;
  • An RV or boat may be parked in the front yard setback between the driveway and side property line.
    Applies: Single-family homes and duplexes, where the strip between the existing driveway and side property line is no wider than 12 feet at any point.
    § 14.18.190 · code text
    In the front yard setback between the existing driveway and the side property line when the distance between the two is no greater than twelve feet (12′) at any point;
  • An RV or boat may be parked in rear yards, interior side yards, or areas not defined as yards.
    Applies: Applies to single-family homes and duplexes, and only if the vehicle is partially or fully screened.
    § 14.18.190 · code text
    In rear yards, interior side yards or other areas not defined as "yards," providing the unit is partially or fully screened as viewed from off-street by a solid fence that conforms to the permitted height limits, vegetation, structures or topography;
  • RV parking is allowed only in areas designed and built for RV parking.
    Applies: Applies to apartment buildings of 3 or more units and mobilehome parks, under permits the planning commission approves.
    § 14.18.190 · code text
    Recreational vehicle parking is permitted in areas that are designed and constructed for such purposes under permits approved by the planning commission.
Front-yard parking
  • Park generally at a right angle to the street; parking parallel to the front property line is not allowed.
    Applies: Applies to single-family homes and duplexes.
    § 14.18.190 · code text
    Parking parallel to the front property line is prohibited;
Screening and surface
  • The RV or boat must be partly or fully screened by a solid fence, plants, structures or terrain.
    Applies: Applies in rear yards, interior side yards or areas not defined as yards at single-family homes and duplexes. A solid fence must meet height limits.
    § 14.18.190 · code text
    In rear yards, interior side yards or other areas not defined as "yards," providing the unit is partially or fully screened as viewed from off-street by a solid fence that conforms to the permitted height limits, vegetation, structures or topography;
  • The parking space and its driveway must be surfaced with gravel, concrete, asphalt or similar material.
    Applies: Applies to single-family homes and duplexes.
    § 14.18.190 · code text
    The parking space and connecting driveway shall be surfaced with gravel, concrete, asphalt or similar materials.

Solar panels and EV chargers

San Rafael code What San Rafael's code adds
EV charger permit
  • The city approves an EV charger administratively through a building permit or similar nondiscretionary permit.
    Applies: Applies to a completed application that meets every item on the application checklist.
    § 12.315.040 · code text
    The city shall administratively approve an application to install an electric vehicle charging station through the issuance of a building permit or similar nondiscretionary permit.
  • Zoning review and clearance are required before the building permit is issued.
    Applies: Applies to outdoor EV chargers not attached to a building. Single-family homes are exempt.
    § 12.315.040 · code text
    For outdoor electric vehicle charging stations that are not attached to a building, zoning review and clearance from the planning division shall be required prior to the issuance of a building permit or similar nondiscretionary permit. Single-family residences are exempt from this zoning review and clearance.
Solar height and setbacks
  • Solar panels may not be placed in any required front or exterior side yard setback.
    Applies: Applies to solar installations on developed properties.
    § 14.16.307 · code text
    The solar installation shall not be placed within any required front or exterior side yard setback or within a required landscape area.
Solar permit process
  • A nondiscretionary building permit; one inspection, scheduled within 1 business day of a request.
    Applies: Applies to small home rooftop solar systems eligible for expedited review, with a complete application meeting the approved checklist and standard plan.
    § 12.320.060 · code text
    Upon receipt of a complete application that meets the requirements of the approved checklist and standard plan, the building official or his designee shall issue a building permit or other nondiscretionary permit the same day or the next day, for an application submitted over-the-counter, or within three (3) business days for applications that have been filed electronically.
  • Solar is allowed by right with a building permit and ministerial review; no environmental and design permit is needed.
    Applies: Applies to solar on developed properties (roofs, paved parking or grounds) meant to offset the property's energy use and meeting zoning standards.
    § 14.16.307 · code text
    shall be permitted by right, subject to issuance of a building permit and ministerial review for compliance with the following standards:
Review time
  • Permit issued the same day or next day over the counter, or within 3 business days if filed electronically.
    Applies: Applies to small home rooftop solar systems eligible for expedited review, with a complete application meeting the approved checklist and standard plan.
    § 12.320.060 · code text
    the building official or his designee shall issue a building permit or other nondiscretionary permit the same day or the next day, for an application submitted over-the-counter

Swimming pools

San Rafael code What San Rafael's code adds
Equipment and alarms
  • A 3-sided solid enclosure with baffles, or an equally effective measure, is required to reduce noise.
    Applies: Applies when a pump, filter or similar equipment is within 15 feet of a bedroom window on a neighboring lot.
    § 14.16.320 · code text
    If a pump or filter or any similar mechanical equipment, including new but not limited to transformers for electric vehicle charging stations and wind energy systems, is located within fifteen feet (15') of any bedroom window on an adjacent lot, a three (3) sided solid enclosure with baffles to screen the equipment from the bedroom, or equally effective measure(s), shall be provided to reduce noise impact.
Pool barrier
  • A private pool must be secured by an enclosure meeting Health and Safety Code 115923, plus state-required safety features.
    Applies: Applies to private swimming pools.
    § 12.265.020 · code text
    Every person who owns or is in possession of any land on which there is situated a private swimming pool shall secure the pool from unauthorized entry by an enclosure that meets all of the requirements of the Health and Safety Code 115923.
Setback from property lines
  • At least 5 feet from any property line.
    Applies: Applies to pool pumps, filters and similar equipment. Pools may not be in a front or street side yard setback.
    § 14.16.320 · code text
    No pump or filter installation, air conditioning unit or similar mechanical equipment, including new but not limited to transformers for electric vehicle charging stations and wind energy systems, shall be less than five feet (5') from any property line.

Pets, chickens and bees

San Rafael code What San Rafael's code adds
Chickens
  • Chickens are allowed only with any required city permits and approvals.
    § 6.04.010 · code text
    It is unlawful for any person to keep, harbor, or maintain any poultry, chickens, turkeys, ducks, geese, rabbits, hares, cows, goats, sheep or other domesticated animals except cats and dogs, or to cause, permit or allow the same to be kept or maintained in any premises within the city without first having obtained any required permits and approvals from the city.
Large animals
  • Large animals are allowed only with any required city permits and approvals.
    § 6.04.010 · code text
    It is unlawful for any person to keep, harbor, or maintain any poultry, chickens, turkeys, ducks, geese, rabbits, hares, cows, goats, sheep or other domesticated animals except cats and dogs, or to cause, permit or allow the same to be kept or maintained in any premises within the city without first having obtained any required permits and approvals from the city.

Who this affects

HomeownersContractorsDesigners

Frequently asked questions

How tall can a fence be in San Rafael?

In residential districts, fences are limited to 4 feet in front or street side setbacks and 7 feet in rear or interior side yards.

How big can a shed or accessory building be in San Rafael?

Residential accessory structures are limited to 15 feet, except through design review, and 30% of the required side or rear yard areas.

Can I run a business from my home in San Rafael?

A home business may use at most 25% of the home, 1 client at a time; non-residents may work only in cottage food operations.

Can I split my lot under SB 9 in San Rafael?

San Rafael's code: One of the 2 new lots must be at least 40% of the original lot's area. (Applies to urban lot splits.) (§ 15.155.030); Each of the 2 new lots must be at least 1,200 square feet. (§ 15.155.030).

Can I park an RV or boat at my home in San Rafael?

San Rafael's code: An RV or boat may be parked in the garage, carport or parking space the zone requires. (Applies to single-family homes and duplexes.) (§ 14.18.190); In the front yard setback, an RV or boat may park only on the driveway to required parking. (Applies to single-family homes and duplexes, and only on the driveway to the garage, carport or parking spaces the zone requires.) (§ 14.18.190).

Do I need a permit for solar panels or an EV charger in San Rafael?

San Rafael's code: The city approves an EV charger administratively through a building permit or similar nondiscretionary permit. (Applies to a completed application that meets every item on the application checklist.) (§ 12.315.040); Zoning review and clearance are required before the building permit is issued. (Applies to outdoor EV chargers not attached to a building. Single-family homes are exempt.) (§ 12.315.040).

What are the pool fence and setback rules in San Rafael?

San Rafael's code: A 3-sided solid enclosure with baffles, or an equally effective measure, is required to reduce noise. (Applies when a pump, filter or similar equipment is within 15 feet of a bedroom window on a neighboring lot.) (§ 14.16.320); A private pool must be secured by an enclosure meeting Health and Safety Code 115923, plus state-required safety features. (Applies to private swimming pools.) (§ 12.265.020).

Can I keep chickens or bees at my home in San Rafael?

San Rafael's code: Chickens are allowed only with any required city permits and approvals. (§ 6.04.010); Large animals are allowed only with any required city permits and approvals. (§ 6.04.010).

General information, not legal advice.

Ask about a specific San Rafael property

Ask GoCodebook how these rules apply to your address and get an answer that cites the section.

Ask your question

More on San Rafael