Skip to content

Milpitas · Building on your lot

Building on your lot in Milpitas

Milpitas sets its own fence heights, accessory-structure limits and home-business rules. Fence limits differ between the Valley Floor and the Hillside Combining District and depend on the yard.

Key points

  • Fence height: City rule: on the Valley Floor, fences are limited to 42 inches in front setbacks and 6 ft in interior side and rear setbacks.
  • Accessory structures: City rule: all accessory structures together may cover at most 30% of the required rear setback area.
  • Home businesses: Milpitas home businesses need a Home Occupation Permit, are run only by residents, and may host at most 2 clients at a time.

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

Fences and walls

Milpitas code What Milpitas's code adds
Corner visibility
  • No higher than 3 feet in the visibility triangle, unless the Public Works Director approves.
    Applies: Corner lots; the triangle is measured 35 feet from the point where the curb lines meet.
    § C.2.040 · code text
    On corner lots, fences within the visibility triangle (see Figure C.2.040-1 (Visibility Triangle)) may not exceed three feet in height unless approved by the Public Works Director. The visibility triangle is formed by lines extended from the face of the curb to their intersection and a line connecting the face of the curb extensions measured 35 feet from their point of intersection.
Height anywhere on the lot
  • No higher than 42 inches.
    Applies: Within 10 feet of the property line in required street side setbacks; Valley Floor, outside the Hillside district.
    § C.2.040 · code text
    Within 10 feet of the property line. 42 inches.
  • No higher than 6 feet.
    Applies: 10 feet or more from the property line in required street side setbacks; Valley Floor, outside the Hillside district.
    § C.2.040 · code text
    10 feet or more from the property line. Six feet.
  • Fences and walls no higher than 54 inches.
    Applies: The "H" Hillside Combining District.
    § C.2.040 · code text
    Fences and walls shall not exceed 54 inches in height.
Front yard height
  • No higher than 42 inches.
    Applies: Required front setbacks; Valley Floor, outside the Hillside district.
    § C.2.040 · code text
    Within required front setbacks. 42 inches.
Side and rear yard height
  • No higher than 6 feet.
    Applies: Required interior side and rear setbacks; Valley Floor, outside the Hillside district.
    § C.2.040 · code text
    Within required interior side and rear setbacks. Six feet.
  • Up to 12 feet high.
    Applies: Valley Floor; side or rear setback next to recreation areas, athletic fields or sports courts; the part above 6 feet at least 50% open.
    § C.2.040 · code text
    Fences within a rear or side setback area adjacent to recreational areas, athletic fields, or sports courts may be up to 12 feet in height provided that the portion of the fence higher than six feet is at least 50 percent openwork design.
  • Up to 8 feet high.
    Applies: Residential zones on the Valley Floor; rear and side setbacks, with written consent of adjoining residential owners.
    § C.2.040 · code text
    In residential zones, fences within the rear and side setback areas may be up to eight feet in height provided written consent of adjoining residential property owners is received.

Sheds, garages and other accessory structures

Milpitas code What Milpitas's code adds
Size or lot coverage
  • No more than 30% of the required rear setback area in total.
    Applies: All accessory buildings and structures in the required rear setback, combined.
    § C.2.020 · code text
    All accessory buildings and structures in the required rear setback area, as well as building additions as described in Subsection C.2.130.A.2.b (Building additions for R1 and R2 zones), are limited cumulatively to a total area not exceeding 30 percent of the area of the required rear setback area.
  • No more than 1,200 square feet.
    Applies: Accessory structures on parcels in the Hillside Combining District.
    § B.22.170 · code text
    The maximum size of an accessory structure shall not exceed one thousand two hundred (1,200) square feet.
Side and rear setback
  • At least 3 feet.
    Applies: Detached accessory buildings; from any rear lot line or the side lot line of the rear half of an adjacent lot.
    § C.2.020 · code text
    Three feet of any rear lot line or side lot line of the rear half of an adjacent lot
  • At least 7 feet.
    Applies: Detached accessory buildings; from the side lot line of the front half of any adjacent lot.
    § C.2.020 · code text
    Seven feet of the side lot line of the front half of any adjacent lot.
  • Eaves no closer than 3 feet.
    Applies: Eaves of accessory buildings and structures, from any side or rear lot line.
    § C.2.020 · code text
    Eaves of accessory buildings and structures shall not project closer than three feet to any side or rear lot line.
Distance from the house
  • At least 6 feet from any home on the same lot.
    Applies: Detached accessory buildings in residential zones; includes homes under construction.
    § C.2.020 · code text
    At least six feet from any dwelling existing or under construction on the same lot;
  • At least 14 feet from a residential structure on any adjacent lot.
    Applies: Detached accessory buildings in the R1 and R2 zones; includes structures under construction.
    § C.2.020 · code text
    In the R1 and R2 zones, at least 14 feet from a residential structure existing or under construction on any adjacent lot.

Running a business from home

Milpitas code What Milpitas's code adds
Customer visits
  • No more than 2 clients at a time.
    Applies: On the premises at any time.
    § C.10.130 · code text
    A maximum of two clients is allowed on the premises at any time.
Employees
  • Only residents may run the business; no employees may report to work there.
    § C.10.130 · code text
    Only the residents of the dwelling may operate the home occupation. No employees associated with the home occupation shall report to work on the premises.
Permit
  • A Home Occupation Permit is required.
    Applies: Before starting any business.
    § C.10.130 · code text
    All persons operating a home occupation must obtain a Home Occupation Permit prior to commencing any business.

Lot splits under SB 9

Milpitas code What Milpitas's code adds
How the lot may be divided
  • Each new lot must be between 40% and 60% of the original lot area.
    Applies: Each resulting lot.
    § XI-1-31.04 · code text
    Each of the resulting lots must be between 60 percent and 40 percent of the original lot area.
Minimum new lot size
  • Each new lot must be at least 1,200 square feet.
    Applies: Resulting lots.
    § XI-1-31.04 · code text
    The resulting lots must each contain a minimum of 1,200 square feet.
Standards
  • The lot to be split must be at least 2,400 square feet.
    Applies: Lot to be split.
    § XI-1-31.04 · code text
    The lot to be split must contain a minimum of 2,400 square feet.
  • Only lots in the R1 single-family zone may be split.
    Applies: Lot to be split.
    § XI-1-31.04 · code text
    For the purposes of this section, the R1 Zoning District shall be the only single-family residential zone.
  • No right-of-way dedication or off-site improvements are required.
    Applies: Urban lot split.
    § XI-1-31.04 · code text
    Notwithstanding section 66411.1 of the SMA, no dedication of rights-of-way or construction of offsite improvements is required for an urban lot split.

Solar panels and EV chargers

Milpitas code What Milpitas's code adds
Review time
  • Same day.
    Applies: Complete over-the-counter applications for small residential rooftop solar that meet the approved checklist and standard plan.
    § II-1.5-6.01 · code text
    The Building Department shall issue a building permit or other nondiscretionary permit the same day for over-the-counter applications or within one to three business days for electronic applications of receipt of a complete application and meets the requirements of the approved checklist and standard plan.
  • 1 to 3 business days.
    Applies: Complete electronic applications for small residential rooftop solar that meet the approved checklist and standard plan.
    § II-1.5-6.01 · code text
    The Building Department shall issue a building permit or other nondiscretionary permit the same day for over-the-counter applications or within one to three business days for electronic applications of receipt of a complete application and meets the requirements of the approved checklist and standard plan.

Tree removal

Milpitas code What Milpitas's code adds
Penalty
  • The city recovers its costs.
    Applies: Unlawful removal of a protected tree.
    § X-2-4.02 · code text
    For purposes of this section, any person, other than City personnel in the performance of their duties, that unlawfully removes a protected tree, shall be subject to City cost recovery in accordance with X -2-9.01
Permit to remove
  • Yes, a Public Works permit is required.
    Applies: Street trees, protected trees or heritage plantings; applies to everyone except city staff on duty.
    § X-2-4.02 · code text
    It shall be unlawful for any person other than City personnel in the performance of their duties to remove any street tree, protected tree or heritage planting without first applying for a permit issued by the Public Works Department.
Protected trees
  • Trees with any trunk 56 inches or more around, measured 4 1/2 feet above ground.
    Applies: Trees on developed residential property.
    § X-2-7.01 · code text
    All trees which have a fifty-six-inch (56") or greater circumference of any trunk measured 4 ½ feet from the ground and located on developed residential property.
  • Trees with any trunk 37 inches or more around, measured 4 1/2 feet above ground.
    Applies: When removal relates to any project needing zoning or subdivision approval.
    § X-2-7.01 · code text
    All trees which have a thirty-seven-inch (37") or greater circumference of any trunk measured 4 ½ feet from the ground, when removal relates to any transaction for which zoning approval or subdivision approval is required.
  • Any tree existing at a zoning or subdivision approval that was a specific subject of that approval.
    § X-2-7.01 · code text
    Any tree existing at the time of a zoning or subdivision approval and was a specific subject of such approval or otherwise covered by subsection (b) above.
  • Trees with any trunk 37 inches or more around, measured 4 1/2 feet above ground.
    Applies: Trees on vacant, undeveloped or underdeveloped property.
    § X-2-7.01 · code text
    All trees which have a thirty-seven-inch (37") or greater circumference of any trunk measured 4 ½ feet from the ground and located on a vacant, undeveloped or underdeveloped property.
  • Any tree or grove of any size or species designated as a heritage tree or grove.
    Applies: Trees that are distinctive, historically valuable or of significant community benefit.
    § X-2-7.01 · code text
    Heritage tree designation may be applied by resolution of the City Council to individual trees or a grove of trees of any size or species within the City of Milpitas that are distinctive, of special historical value or significant community benefit.
Replacement trees
  • At least 2 trees for every protected tree removed by permit.
    Applies: When Public Works requires replacement planting as a condition of the removal permit.
    § X-2-4.02 · code text
    The Public Works Department may determine that a tree authorized for removal be replaced by the permittee through the compensation methods described in Section X-2-9.01, subsections (a), (b) or (c) or by planting at least two (2) trees for every one (1) protected tree removed by permit.
  • Replacement trees must be sized in proportion to the tree removed.
    Applies: Replacement planting required by Public Works.
    § X-2-4.02 · code text
    The replacement trees shall be commensurate with the size of the tree being removed, as determined by the Director of Planning or his or her designee.

Other Milpitas rules on this

Milpitas's code also has these chapters. We have not summarized their values on this page yet; read them in the library.

Who this affects

HomeownersContractorsDesigners

Frequently asked questions

How tall can a fence be in Milpitas?

City rule: on the Valley Floor, fences are limited to 42 inches in front setbacks and 6 ft in interior side and rear setbacks.

How big can a shed or accessory building be in Milpitas?

City rule: all accessory structures together may cover at most 30% of the required rear setback area.

Can I run a business from my home in Milpitas?

Milpitas home businesses need a Home Occupation Permit, are run only by residents, and may host at most 2 clients at a time.

Can I split my lot under SB 9 in Milpitas?

Milpitas's code: Each new lot must be between 40% and 60% of the original lot area. (Each resulting lot.) (§ XI-1-31.04); Each new lot must be at least 1,200 square feet. (Resulting lots.) (§ XI-1-31.04).

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

Milpitas's code: Same day. (Complete over-the-counter applications for small residential rooftop solar that meet the approved checklist and standard plan.) (§ II-1.5-6.01); 1 to 3 business days. (Complete electronic applications for small residential rooftop solar that meet the approved checklist and standard plan.) (§ II-1.5-6.01).

Do I need a permit to remove a tree in Milpitas?

Milpitas's code: The city recovers its costs. (Unlawful removal of a protected tree.) (§ X-2-4.02); Yes, a Public Works permit is required. (Street trees, protected trees or heritage plantings; applies to everyone except city staff on duty.) (§ X-2-4.02).

General information, not legal advice.

Ask about a specific Milpitas property

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

Ask your question

More on Milpitas