Skip to content

Rancho Santa Margarita · Building on your lot

Building on your lot in Rancho Santa Margarita

Rancho Santa Margarita sets its own rules for fences, accessory structures and home businesses on residential lots. Fence height depends on the yard and the lot, and fences need a building permit.

Key points

  • Fence height: Fences: at most 3.5 feet, or 5 feet in front yards with director approval and open bars; rear and non-corner side yards, 6 feet.
  • Accessory height: Detached accessory structures may be no taller than the main building; fireplaces, barbecues and fire pits are limited to 8 feet unless approved otherwise.
  • Home businesses: A home business may use at most 2 rooms or 20% of the home, whichever is less, with at most 1 non-resident employee.

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

Fences and walls

Rancho Santa Margarita code What Rancho Santa Margarita's code adds
Corner visibility
  • At most 3 feet within 10 feet of a corner side property line; nothing may enter unrestricted visibility areas.
    Applies: Corner lot side yards on residential and future planned community (FPC) lots.
    § 9.04.070 · code text
    Corner lot side yards shall maintain a height limit of three feet within ten feet of a corner side property line. At no time shall such fence, wall, hedge or landscape screening encroach into any area of unrestricted visibility as specified in Section 9.06.100.
Height anywhere on the lot
  • A fence or wall may be up to 8 feet tall for noise reduction.
    Applies: Lots next to arterials and highways with a noise contour of 65 dBA or more. Walls over 6 feet need administrative approval.
    § 9.04.070 · code text
    Lots adjacent to arterials and highways with a noise contour of 65 dBA or greater as shown in the General Plan noise element may, for noise attenuation purposes, install and maintain a fence or wall to a maximum of eight feet.
Front yard height
  • Front yard fences may be no more than 3.5 feet tall.
    Applies: All residential and future planned community (FPC) lots.
    § 9.04.070 · code text
    Front yard. Three and one-half feet.
  • Front yard fences may be up to 5 feet tall.
    Applies: Development Services Director approval needed. Above 3.5 feet: open vertical bars at least 3 inches apart. Sight distance must be confirmed.
    § 9.04.070 · code text
    The Development Services Director may approve fences up to five feet in height in front yards if the following requirements are met:
Side and rear yard height
  • Side yard fences may be no more than 6 feet tall.
    Applies: All residential and future planned community (FPC) lots, except corner lots.
    § 9.04.070 · code text
    Side yard. Six feet with the exception of corner lots.
  • Rear yard fences may be no more than 6 feet tall.
    Applies: All residential and future planned community (FPC) lots.
    § 9.04.070 · code text
    Rear yard. Six feet.
  • No more than 8 feet from the base of the fence or wall to the top.
    Applies: In a side or rear setback where the neighboring site is higher than the fence base; not next to a street or alley.
    § 9.04.070 · code text
    However, in no case shall such a fence or wall exceed eight feet from the base of the fence or wall to the top.
Permit
  • A building permit is required before a fence is built.
    § 9.04.070 · code text
    Building permits are required prior to the erection of fences in accordance with the requirements of the most recent Uniform Building Code adopted by the City.

Sheds, garages and other accessory structures

Rancho Santa Margarita code What Rancho Santa Margarita's code adds
Maximum height
  • No taller than the main building on the site.
    Applies: Detached accessory structures, except as allowed for accessory dwelling units.
    § 9.04.020 · code text
    The structure shall not exceed the height of the principal structure on the building site, except as may otherwise be permitted under Section 9.04.190 (accessory dwelling units).
  • If under 5 feet tall, they may extend into the rear and side setbacks.
    Applies: Detached fireplaces, barbecues, fire pits, landscape structures and similar structures.
    § 9.04.020 · code text
    Detached fireplaces, barbecues, fire pits, landscape structures and other similar structures, with a height less than five feet, shall be permitted to encroach into the rear and side setback areas unless the adopted Uniform Building Code regulations require a more restrictive setback.
  • No more than 8 feet tall.
    Applies: Detached fireplaces, barbecues, fire pits, landscape structures and similar, unless approved through the alternative development standard process.
    § 9.04.020 · code text
    No detached fireplace, barbecue, fire pit, landscape structure or other similar structures shall exceed eight feet in height unless approved through the alternative development standard process described in Section 9.08.050.
Size or lot coverage
  • No more than 60% of the length of the main building wall it is attached to.
    Applies: Decks, porches and balconies over 6 feet high, measured from finished grade.
    § 9.04.020 · code text
    Decks, porches and balconies over six feet in height measured from finished grade shall not exceed 60 percent of the total length of the principal building elevation to which it is attached and shall maintain all building setbacks of the principal structure.
Side and rear setback
  • Set back from the rear and side property lines at least as far as the structure is tall.
    Applies: Detached accessory structures under 450 square feet of gross floor area.
    § 9.04.020 · code text
    If less than 450 square feet in gross floor area, the structure shall be located a minimum distance from the parcel's rear and side property line equal to the height of the structure.
  • They must meet the zoning district's minimum side and rear setbacks.
    Applies: Detached fireplaces, barbecues, fire pits, landscape and similar structures 5 feet or taller, or 450 square feet or more.
    § 9.04.020 · code text
    If such structures are five feet or greater in height or if the structure is 450 square feet or more in gross floor area, they shall maintain the minimum side and rear yard setback for the zoning district.
  • At least 3 feet from the rear property line.
    Applies: Open patio covers in the required rear yard.
    § 9.04.020 · code text
    An open patio cover may be erected within the required rear yard to a minimum of three feet from the rear property line.
Distance from the house
  • At least 5 feet from the main building.
    Applies: Detached accessory structures.
    § 9.04.020 · code text
    The structure shall maintain a minimum separation of five feet between the detached accessory structure and the main building.

Running a business from home

Rancho Santa Margarita code What Rancho Santa Margarita's code adds
Space used
  • No more than 2 rooms or 20% of the home, whichever is less.
    § 9.05.060 · code text
    No more than two rooms in the dwelling or 20 percent of the residence, whichever is less, shall be employed for the use of the home occupation.
Employees
  • No more than 1 employee who does not live on the site may work on the premises.
    § 9.05.060 · code text
    There shall be no more than one employee, who is not a resident of the site where the home occupation is established, working on the premises.
Permit
  • Allowed as an accessory use to a home.
    Applies: Any residential zoning district.
    § 9.05.060 · code text
    Home occupations are permitted when conducted as an accessory use to a residential use in any residential zoning district.
Businesses not allowed
  • wholesale and retail sales of automobiles
    § 9.05.060 · code text
    Wholesale and retail sales of automobiles is not permitted.
  • dating services
    § 9.05.060 · code text
    Dating services are not permitted.
  • fortunetelling, palm reading, psychics, and similar activities
    § 9.05.060 · code text
    Fortunetelling, palm reading, psychics, and similar activities are not permitted.
  • massage services
    § 9.05.060 · code text
    Massage services are not permitted.

RV and boat parking

Rancho Santa Margarita code What Rancho Santa Margarita's code adds
Size limit
  • Vehicles over 25 feet long or over 10,000 pounds may not park on any public street.
    Applies: Except active loading or unloading, emergency repairs (up to 12 hours in a row), or serving a property on the block (up to 72 hours).
    § 12.02.060 · code text
    Any vehicle of a length in excess of 25 feet or a weight in excess of 10,000 pounds.
Parking on the street
  • Up to 12 hours in a row.
    Applies: Vehicles over 25 feet long or 10,000 pounds on a public street, during emergency repairs to the vehicle.
    § 12.02.060 · code text
    When performing repairs of an emergency nature on the vehicle itself not to exceed 12 consecutive hours.
  • Up to 12 hours.
    Applies: Vehicles over 25 feet long or 10,000 pounds on a public street, while actively loading, unloading or preparing for travel or storage.
    § 12.02.060 · code text
    Loading and unloading, as used in this section, shall mean active loading and unloading, including the performance of those activities required to prepare the vehicle for either travel or storage for a period of time not to exceed 12 hours, during which the vehicle cannot reasonably be taken on the road or moved to a place of otherwise lawful storage.

Solar panels and EV chargers

Rancho Santa Margarita code What Rancho Santa Margarita's code adds
EV charger permit
  • Administrative, nondiscretionary approval with all needed permits when the application meets the City checklist.
    Applies: Applies to EV charging stations.
    § 10.10.060 · code text
    Upon confirmation by the Building Official that the application and supporting documents meet the requirements of the City's checklist, and is consistent with all applicable laws and health and safety standards, the Building Official shall, consistent with Government Code § 65850.7, approve the application and issue all necessary permits.
Solar permit process
  • Administrative, nondiscretionary review; permit issues when the application meets checklist and standard plan; 1 inspection, scheduled within 2 business days.
    Applies: Applies to small residential rooftop solar systems eligible for expedited review.
    § 10.08.060 · code text
    Only one inspection shall be required and performed by the Building Department for small residential rooftop solar energy systems eligible for expedited review.
Review time
  • The permit is issued within 3 business days.
    Applies: Applies to small residential rooftop solar applications that meet the City's checklist and standard plan.
    § 10.08.060 · code text
    For an application for a small residential rooftop solar energy system that meets the requirements of the City's checklist and standard plan, the Building Department shall issue a building permit or other non-discretionary permit or authorization within three business days.

Swimming pools

Rancho Santa Margarita code What Rancho Santa Margarita's code adds
Pool barrier
  • Pools, whirlpools and spas must be fenced as the adopted building code requires.
    § 9.04.120 · code text
    Pools, whirlpools and spas must be enclosed by a fence as required by the adopted Uniform Building Code.
Equipment and alarms
  • Pool equipment must be fully screened from view from public streets and neighboring property.
    Applies: Applies to all pool equipment.
    § 9.04.120 · code text
    All pool equipment shall be completely screened from view from any public right-of-way and from any adjacent property.
Setback from property lines
  • At least 3 feet from any side or rear property line.
    Applies: Measured from the edge of the water.
    § 9.04.120 · code text
    Pools, whirlpools and spas shall be located no closer than three feet from the edge of the water to any side or rear property line.

Pets, chickens and bees

Rancho Santa Margarita code What Rancho Santa Margarita's code adds
Large animals
  • Livestock must be kept in by a good, strong fence that meets zoning rules.
    Applies: Applies to livestock kept on the owner's or keeper's premises.
    § 5.12.900 · code text
    Every owner, keeper, custodian or harborer of livestock shall erect and/or maintain a fence as herein described to contain and confine, consistent with zoning requirements, all livestock kept or maintained on his or her premises.
Permit
  • An additional animal license is required for 5 or more dogs.
    Applies: Applies to dogs over 4 months old kept for the purpose the code describes.
    § 5.12.360 · code text
    Every person owning or having custody of five or more dogs, over the age of four months, for the purpose as described in Section 5.12.1100, must obtain an additional animal license as required under Article XI of this Chapter
  • An additional animal license is required for 5 or more cats.
    Applies: Applies to cats over 4 months old kept for the purpose the code describes.
    § 5.12.410 · code text
    Every person owning or having custody of five or more cats, over the age of four months, for the purpose as described in Section 5.12.1100, must obtain an additional animal license as required under Article XI of this Chapter.

Who this affects

HomeownersContractorsDesigners

Frequently asked questions

How tall can a fence be in Rancho Santa Margarita?

Fences: at most 3.5 feet, or 5 feet in front yards with director approval and open bars; rear and non-corner side yards, 6 feet.

How big can a shed or accessory building be in Rancho Santa Margarita?

Detached accessory structures may be no taller than the main building; fireplaces, barbecues and fire pits are limited to 8 feet unless approved otherwise.

Can I run a business from my home in Rancho Santa Margarita?

A home business may use at most 2 rooms or 20% of the home, whichever is less, with at most 1 non-resident employee.

Can I park an RV or boat at my home in Rancho Santa Margarita?

Rancho Santa Margarita's code: Vehicles over 25 feet long or over 10,000 pounds may not park on any public street. (Except active loading or unloading, emergency repairs (up to 12 hours in a row), or serving a property on the block (up to 72 hours).) (§ 12.02.060); Up to 12 hours in a row. (Vehicles over 25 feet long or 10,000 pounds on a public street, during emergency repairs to the vehicle.) (§ 12.02.060).

Do I need a permit for solar panels or an EV charger in Rancho Santa Margarita?

Rancho Santa Margarita's code: Administrative, nondiscretionary approval with all needed permits when the application meets the City checklist. (Applies to EV charging stations.) (§ 10.10.060); Administrative, nondiscretionary review; permit issues when the application meets checklist and standard plan; 1 inspection, scheduled within 2 business days. (Applies to small residential rooftop solar systems eligible for expedited review.) (§ 10.08.060).

What are the pool fence and setback rules in Rancho Santa Margarita?

Rancho Santa Margarita's code: Pools, whirlpools and spas must be fenced as the adopted building code requires. (§ 9.04.120); Pool equipment must be fully screened from view from public streets and neighboring property. (Applies to all pool equipment.) (§ 9.04.120).

Can I keep chickens or bees at my home in Rancho Santa Margarita?

Rancho Santa Margarita's code: Livestock must be kept in by a good, strong fence that meets zoning rules. (Applies to livestock kept on the owner's or keeper's premises.) (§ 5.12.900); An additional animal license is required for 5 or more dogs. (Applies to dogs over 4 months old kept for the purpose the code describes.) (§ 5.12.360).

General information, not legal advice.

Ask about a specific Rancho Santa Margarita property

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

Ask your question

More on Rancho Santa Margarita