Skip to content

Merced County · Building on your lot

Building on your lot in Merced County

Merced County's code applies only in unincorporated areas of the county. There it sets limits on fences, accessory structures, home businesses and RV parking in residential zones, and fence height depends on where the fence stands.

Key points

  • Front fences: In residential zones, fences in the first 15 feet of the front setback are limited to 4 feet, outside sight-distance areas.
  • Other fences: Residential fences at least 15 feet from the property line, or in setbacks next to non-residential zones, are limited to 7 feet.
  • Accessory height: Nonexempt residential accessory structures are limited to 15 feet, or more with an administrative permit, and never above the main building.
  • Accessory size: Nonexempt accessory structures may cover at most 15% of the rear yard, and at most 600 square feet on parcels under one-quarter acre.
  • Home businesses: Home businesses need a Zoning Clearance and may use at most the lesser of 250 square feet or 25% of living space.
  • RV street parking: RVs may park in front of residences for at most 48 continuous hours, then must move at least 500 feet and wait 48 hours.

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

Merced County's code applies in the unincorporated areas of the county. Cities in Merced County have their own codes and their own pages.

Fences and walls

Merced County code What Merced County's code adds
Corner visibility
  • Anything over 2 feet 6 inches above finished grade must be at least 16 feet from the curb face.
    Applies: Corner lots; fences, walls, hedges or visual obstructions in the side yard next to the street.
    § 18.34.020 · code text
    On a corner lot, fences, walls, hedges, or visual obstructions in the side yard adjacent to the street that exceed two feet, six inches above finished grade shall be set back a minimum of 16 feet from the face of curb.
  • No higher than 2 feet 6 inches above the nearest road surface.
    Applies: Applies within sight triangles at public road intersections and private driveways.
    § 18.34.020 · code text
    No fence, wall, or hedge higher than two feet, six inches above the nearest roadway surface shall be installed or maintained within the sight distance triangles at public roadway intersections and private driveways.
Height anywhere on the lot
  • At most 7 feet.
    Applies: Applies to residential fences and walls 15 feet or more from the property line, unless other rules require more height.
    § 18.34.030 · code text
    At 15 feet or more from the property line | Fences and walls | 7′ – 0″
  • At most 7 feet.
    Applies: Applies to residential setback areas next to a non-residential district, unless other rules require more height.
    § 18.34.030 · code text
    Other setback areas abutting a non-residential district | Open or solid fences, walls, hedges, and/or landscaping, as required by Landscape Standards, See Ch. 18.36 (Landscaping) | 7′ – 0″
Front yard height
  • At most 4 feet.
    Applies: Applies to the first 15 feet of residential front setbacks, outside sight areas, unless other rules require more height.
    § 18.34.030 · code text
    Within front setbacks for the first 15 feet (except for sight distance area) | Open or solid fences, walls, hedges with vines and/or shrubs | 4′ – 0″
Permit
  • Yes. A building permit is required for fences and walls over 7 feet.
    Applies: Applies to fences and walls over 7 feet.
    § 18.34.030 · code text
    Fences and walls higher than seven feet require a Building Permit.

Sheds, garages and other accessory structures

Merced County code What Merced County's code adds
Maximum height
  • At most 15 feet tall, and no taller than the main building.
    Applies: Applies to nonexempt residential accessory structures; over 15 feet needs Director approval by administrative permit.
    § 18.32.030 · code text
    Accessory structures shall be limited to 15 feet in height.
Size or lot coverage
  • At most 600 square feet.
    Applies: Applies to nonexempt accessory structures on residential parcels under ¼ acre.
    § 18.32.030 · code text
    No accessory structure shall exceed 600 square feet on a parcel less than one-quarter acre.
  • At most 15% of the rear yard.
    Applies: Applies to nonexempt accessory structures in residential zones.
    § 18.32.030 · code text
    Accessory structures shall not occupy more than 15% of the rear yard; nor shall accessory structures plus the main structures on any site occupy more than the maximum parcel coverage as specified for the zone in which the parcel is located.
  • Total coverage: 40% R-R without utilities; 60% serviced R-R, R-1, R-1-5000; 70% R-2, R-3, R-4; 80% M-H.
    Applies: Applies to nonexempt accessory and main structures together, as the maximum parcel coverage.
    § 18.12.030 · code text
    § 18.12.030. Residential Zone Development Standards. A. Table 2-4 Residential Zone Development Standards. The intent of the residential zone development standards table is to clearly and precisely establish the basic site and structure regulations that apply to all developments in each of the residential zones. The table also indicates where additional site and structure requirements, including, but not limited to, off-street parking, landscaping, signing, fences and obstructions, and performance standards, apply to residential zones. B. Increased Setbacks Use Permits. The setbacks listed below may be increased for those uses requiring an Administrative or Conditional Use Permit when it is determined by the commission or director, as applicable, that increased setbacks are necessary to make the use compatible with surrounding properties and uses. C. Density. Maximum density standards shall be consistent with the General Plan or applicable community plan. D. Zoning Map. The boundaries, designations, and locations of the zones established by this Zoning Code shall be shown on the map(s) entitled "Zoning Map for Merced County" and referred to in this Zoning Code as the Zoning Map. Any additional maps (e.g., setback map) adopted shall also be a part of this Zoning Code by reference. This Zoning Code, together with the Zoning Map, is hereby adopted in compliance with current state planning, zoning, and development laws. Changes in the boundaries of any identified zones shall be made by ordinance in compliance with Chapter 18.142 (Amendments). Table 2-4 Residential Zone Development Standards | Development Feature (minimum unless otherwise indicated) | R-R (no public sewer/water) | R-R (with public sewer/water) | R-1 | R-1-5000 | R-2/R-3/R-4 | M-H | Additional Regulations | | --- | --- | --- | --- | --- | --- | --- | --- | | Parcel Area (minimum square feet) area required for each NEWLY CREATED parcel. | Parcel Area (minimum square feet) area required for each NEWLY CREATED parcel. | Parcel Area (minimum square feet) area required for each NEWLY CREATED parcel. | Parcel Area (minimum square feet) area required for each NEWLY CREATED parcel. | Parcel Area (minimum square feet) area required for each NEWLY CREATED parcel. | Parcel Area (minimum square feet) area required for each NEWLY CREATED parcel. | Parcel Area (minimum square feet) area required for each NEWLY CREATED parcel. | Parcel Area (minimum square feet) area required for each NEWLY CREATED parcel. | | Interior Parcel | 1 net ac. | 14,520 | 6,000 | 5,000 | 6,000 | 4,000 | § 18.12.040A | | Corner Parcel | 1 net ac. | 14,520 | 6,400 | 6,000 | 6,400 | 4,500 | § 18.12.040A | | Parcels Shall Front a Publicly Maintained Street | No | No | Yes | Yes | Yes | Yes | § 18.12.040A | | Setbacks (minimum). Property lines are measured in feet, with those adjacent to the street measured from the face of the curb, adopted plan line, or edge of right-of-way. | Setbacks (minimum). Property lines are measured in feet, with those adjacent to the street measured from the face of the curb, adopted plan line, or edge of right-of-way. | Setbacks (minimum). Property lines are measured in feet, with those adjacent to the street measured from the face of the curb, adopted plan line, or edge of right-of-way. | Setbacks (minimum). Property lines are measured in feet, with those adjacent to the street measured from the face of the curb, adopted plan line, or edge of right-of-way. | Setbacks (minimum). Property lines are measured in feet, with those adjacent to the street measured from the face of the curb, adopted plan line, or edge of right-of-way. | Setbacks (minimum). Property lines are measured in feet, with those adjacent to the street measured from the face of the curb, adopted plan line, or edge of right-of-way. | Setbacks (minimum). Property lines are measured in feet, with those adjacent to the street measured from the face of the curb, adopted plan line, or edge of right-of-way. | Setbacks (minimum). Property lines are measured in feet, with those adjacent to the street measured from the face of the curb, adopted plan line, or edge of right-of-way. | | Front | 50 | 30 | 20- Garage 15- Livable Area | 20- Garage 15- Livable Area | 20 | 10 | § 18.12.040(A) & B | | Side (interior side) | 15 | 10 | 5 | 5 | 5/12 | 3 | § 18.12.040B | | Side (facing street) | 50 | 30 | 20 | 20- Garage 15- Livable Area | 20 | 10 | | | Rear | 25 | 20 | 10 | 10 | 15 | 10 | § 18.12.040B | | Parcel Depth, Width, and Coverage (maximum) area measured in feet | Parcel Depth, Width, and Coverage (maximum) area measured in feet | Parcel Depth, Width, and Coverage (maximum) area measured in feet | Parcel Depth, Width, and Coverage (maximum) area measured in feet | Parcel Depth, Width, and Coverage (maximum) area measured in feet | Parcel Depth, Width, and Coverage (maximum) area measured in feet | Parcel Depth, Width, and Coverage (maximum) area measured in feet | Parcel Depth, Width, and Coverage (maximum) area measured in feet | | Parcel Width at Front Parcel Line (interior parcel) | 125 | 80 | 60 | 50 | 60 | 40 | | | Parcel Width at Front Parcel Line (corner parcel) | 125 | 80 | 65 | 60 | 65 | 50 | | | Parcel Width at Front Parcel Line (cul-de-sac or bulb connection parcel) | 60 | 50 | 45 | 40 | 45 | 35 | | | Minimum Parcel Depth | None | None | 100 | None | 100 | 80 | | | Maximum Depth: Width Ratio | 3:1 | 3:1 | 3:1 | 3:1 | 3:1 | 3:1 | | | Maximum Structure Coverage (percentage) | 40 | 60 | 60 | 60 | 70 | 80 | | | Height (maximum) measured in feet | Height (maximum) measured in feet | Height (maximum) measured in feet | Height (maximum) measured in feet | Height (maximum) measured in feet | Height (maximum) measured in feet | Height (maximum) measured in feet | Height (maximum) measured in feet | | Height (main structure) | 35 | 30 | 30 | 30 | R-2:45 R-3:60 R-4:60 | 15 | | | Height (accessory structure) | 35 | 15 | 15 | 15 | 15 | 15 | | | Additional Regulations | Additional Regulations | Additional Regulations | Additional Regulations | Additional Regulations | Additional Regulations | Additional Regulations | Additional Regulations | | Accessory Structures | Accessory Structures | Chapter 18.32 | Chapter 18.32 | Chapter 18.32 | | | | | Additional Dwelling Units | Additional Dwelling Units | Chapter 18.62 | Chapter 18.62 | Chapter 18.62 | | | | | Animal Confinement Facilities | Animal Confinement Facilities | Chapter 18.64 | Chapter 18.64 | Chapter 18.64 | | | | | Fences, Walls, and Hedges | Fences, Walls, and Hedges | Chapter 18.34 | Chapter 18.34 | Chapter 18.34 | | | | | Landscaping | Landscaping | Chapter 18.36 | Chapter 18.36 | Chapter 18.36 | | | | | Off-Street Parking Regulations and Design Standards | Off-Street Parking Regulations and Design Standards | Chapter 18.38 | Chapter 18.38 | Chapter 18.38 | | | | | Performance Standards | Performance Standards | Chapter 18.40 | Chapter 18.40 | Chapter 18.40 | | | | | Sign Regulations | Sign Regulations | Chapter 18.44 | Chapter 18.44 | Chapter 18.44 | | | | | Solid Waste and Recycling Materials Storage | Solid Waste and Recycling Materials Storage | Chapter 18.46 | Chapter 18.46 | Chapter 18.46 | | | | (Ord. 1976 § 2, 2019; Ord. 1990 § 1, 2020; Ord. 2039, 5/21/2024; Ord. 2062, 6/2/2026)
Side and rear setback
  • At least 5 feet rear setback.
    Applies: Applies to nonexempt accessory structures in residential zones.
    § 18.32.030 · code text
    The minimum rear setback shall be five feet.
  • At least 5 feet side setback.
    Applies: Applies to nonexempt accessory structures on interior residential parcels.
    § 18.32.030 · code text
    If the parcel is an interior parcel, the minimum setback shall be five feet.
  • At least 3 feet from side and rear property lines.
    Applies: Applies to residential decks and platforms; tall decks or those with listed features within 5 feet of the house follow house setbacks.
    § 18.32.030 · code text
    decks, and platforms shall be located at least three feet from any rear or side property lines.

Running a business from home

Merced County code What Merced County's code adds
Space used
  • At most 250 square feet or 25% of the living space, whichever is less.
    Includes related storage space.
    § 18.60.070 · code text
    Space for the home occupation, including related storage, is limited to the lesser of 250 square feet or 25% of the living space.
Employees
  • 1 non-resident employee.
    § 18.60.070 · code text
    Home occupations shall be operated by individuals that reside in the household, with the exception of one non-resident employee.
Permit
  • A Zoning Clearance must be reviewed and approved.
    Applies: Applies in zones where home occupations are allowed.
    § 18.60.070 · code text
    In zones where permitted, home occupations shall require review and approval of a Zoning Clearance subject to the following standards:
Businesses not allowed
  • Beauty and barber shops; Medical, dental, or chiropractic offices; On-site vehicle repair, bodywork, and painting (including recreational vehicles); Large appliance and machine repair; Contractor storage yard
    § 18.60.070 · code text
    The following home occupations are prohibited in the county: 1. Beauty and barber shops; 2. Medical, dental, or chiropractic offices; 3. On-site vehicle repair, bodywork, and painting (including recreational vehicles); 4. Large appliance and machine repair; and 5. Contractor storage yard.

RV and boat parking

Merced County code What Merced County's code adds
Where it may be parked
  • Only on the lot where the vehicle owner lives; outdoor storage on a driveway.
    Applies: Applies in residential zones.
    § 18.38.120 · code text
    Storage is permitted outside a structure on a paved, graveled, or approved alternative material driveway, provided all of the following conditions exist:
  • At least 3 feet from side and rear property lines.
    Applies: Applies in residential zones to vehicles stored outside a structure.
    § 18.38.120 · code text
    The vehicle is stored at least three feet from side and rear property lines;
Front-yard parking
  • Only if side or rear setbacks are unreachable and indoor storage impossible; 1 vehicle per unit, perpendicular to the curb.
    Applies: Applies in residential zones where the owner lives on the lot; the vehicle may not overhang the sidewalk.
    § 18.38.120 · code text
    Storage is permitted in the front setback only when space is not accessible in the rear or side setback, or the parcel is not on a corner and has no reasonable access to either the side or rear setback;
Screening and surface
  • A paved, graveled or approved alternative-material driveway.
    Applies: Applies to outdoor storage in residential zones.
    § 18.38.120 · code text
    Storage is permitted outside a structure on a paved, graveled, or approved alternative material driveway, provided all of the following conditions exist:
Parking on the street
  • No more than 48 hours in a row.
    Applies: RVs parked in front of homes on public or private roads; then 48 hours must pass and the vehicle move at least 500 feet.
    § 18.38.120 · code text
    Recreational vehicles may be temporarily parked on public or private rights-of-way in front of residences for not more than 48 continuous hours.
  • 48 hours must pass, and the vehicle must move at least 500 feet, before a new 48-hour period.
    Applies: Applies to temporary parking on public or private roads in front of homes.
    § 18.38.120 · code text
    A total of 48 hours must elapse before the start of a new 48-hour period, together with movement of the vehicle a distance of at least 500 feet.
Living in an RV
  • Not allowed, except temporarily while a permanent home is built, with a temporary use permit.
    Applies: Applies to stored RVs and trailers in residential zones.
    § 18.38.120 · code text
    Used for dwelling purposes, except for temporary residential use during the construction of a permanent dwelling with the approval of a temporary use permit (See Chapter 18.124 Temporary Use Permits).

Solar panels and EV chargers

Merced County code What Merced County's code adds
EV charger permit
  • Administrative, nondiscretionary fast review using a checklist.
    Applies: Applies to electric vehicle charging stations.
    § 16.42.010 · code text
    The county of Merced building and safety division shall adopt an administrative, nondiscretionary expedited review process consisting of checklists for electric vehicle charging stations.
Solar permit process
  • Apply in person, by mail or electronically, with any required fees; only 1 inspection.
    Applies: Applies to small rooftop home solar systems eligible for fast review.
    § 16.18.030 · code text
    The applicant may submit the permit application and associated documentation to the Merced County building and safety division by personal, mailed, or electronic submittal together with any required permit processing and inspection fees.
  • All permits are approved administratively once the complete application meets the checklist.
    Applies: Applies to small rooftop home solar systems.
    § 16.18.030 · code text
    Upon confirmation by the building official of the application and supporting documentation being complete and meeting the requirements of the checklist, the building official shall administratively approve the application and issue all required permits or authorizations.

Swimming pools

Merced County code What Merced County's code adds
Equipment and alarms
  • Final alarm and mechanical inspections must pass before plastering or filling; equipment must be fastened to structures or concrete slabs.
    § 16.12.140 · code text
    The final plumbing, electrical, structural, pool barrier, alarms and mechanical inspections must be completed on all swimming pools prior to the application of the finished coat of plaster and/or filling the pool with water.

Pets, chickens and bees

Merced County code What Merced County's code adds
Large animals
  • No straying off the owner's land, except led on roads by day, on fenced land with consent, or open range.
    Applies: Applies to livestock.
    § 7.04.080 · code text
    No person shall permit or suffer livestock to stray from private property owned by the owner or custodian of such livestock, or from private property to which such owner or custodian has a right of possession, except in the following situations:

Who this affects

HomeownersContractorsDesigners

Frequently asked questions

How tall can a fence be in Merced County?

In residential zones, fences in the first 15 feet of the front setback are limited to 4 feet, outside sight-distance areas. Residential fences at least 15 feet from the property line, or in setbacks next to non-residential zones, are limited to 7 feet.

How big can a shed or accessory building be in Merced County?

Nonexempt residential accessory structures are limited to 15 feet, or more with an administrative permit, and never above the main building. Nonexempt accessory structures may cover at most 15% of the rear yard, and at most 600 square feet on parcels under one-quarter acre.

Can I run a business from my home in Merced County?

Home businesses need a Zoning Clearance and may use at most the lesser of 250 square feet or 25% of living space.

Can I park an RV or boat at my home in Merced County?

RVs may park in front of residences for at most 48 continuous hours, then must move at least 500 feet and wait 48 hours.

Do I need a permit for solar panels or an EV charger in Merced County?

Merced County's code: Administrative, nondiscretionary fast review using a checklist. (Applies to electric vehicle charging stations.) (§ 16.42.010); Apply in person, by mail or electronically, with any required fees; only 1 inspection. (Applies to small rooftop home solar systems eligible for fast review.) (§ 16.18.030).

What are the pool fence and setback rules in Merced County?

Merced County's code: Final alarm and mechanical inspections must pass before plastering or filling; equipment must be fastened to structures or concrete slabs. (§ 16.12.140).

Can I keep chickens or bees at my home in Merced County?

Merced County's code: No straying off the owner's land, except led on roads by day, on fenced land with consent, or open range. (Applies to livestock.) (§ 7.04.080).

General information, not legal advice.

Ask about a specific Merced County property

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

Ask your question

More on Merced County