Skip to content

Sunnyvale · Building on your lot

Building on your lot in Sunnyvale

Sunnyvale sets its own limits on accessory structures and home businesses. Its fence rule covers the required reducible front yard, and accessory setbacks depend on height and floor area.

Key points

  • Accessory structures: Sunnyvale limits accessory structures of 450 square feet or less to 15 feet in height.
  • Home businesses: Sunnyvale limits a home business to 20% of the home or 400 square feet, whichever is less, and 3 vehicles a day.
  • Front yard fences: In a required reducible front yard, Sunnyvale allows fences up to 8 feet, but fences over 6 feet need extra setback or a permit.

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

Fences and walls

Sunnyvale code What Sunnyvale's code adds
Front yard height
  • Fences can be up to 8 feet tall.
    Applies: Reducible front yards only; above 6 feet, set back 2 feet from the line per extra foot, or get a miscellaneous plan permit.
    § 19.48.020 · code text
    For fences in the required reducible front yards, fences greater than six feet up to eight feet tall may be allowed as a matter of right provided they are set back two feet from the property line for every foot in height above six feet.

Sheds, garages and other accessory structures

Sunnyvale code What Sunnyvale's code adds
Maximum height
  • Accessory structures can be at most 15 feet tall.
    Applies: Structures of 450 square feet or less: open garden features, outdoor equipment, utility buildings or detached living space.
    § 19.40.040 · code text
    Greater than 8 ft. in height up to 15 ft.
Side and rear setback
  • No side or rear setback is required (0 feet).
    Applies: Open garden features up to 8 feet tall and up to 120 square feet.
    § 19.40.040 · code text
    Up to 8 ft. in height and up to 120 sq. ft. | 0 ft. | 0 ft. | 0 ft.
  • Side: the zoning district setback. Rear: at least 10 feet.
    Applies: Open garden features up to 8 feet tall and over 120 square feet, or over 8 feet and up to 15 feet tall.
    § 19.40.040 · code text
    Up to 8 ft. in height and more than 120 sq. ft. | 20 ft. | Zoning setback | 10 ft.
  • No side or rear setback is required (0 feet).
    Applies: Outdoor equipment, utility buildings or detached living space up to 8 feet tall and up to 120 square feet.
    § 19.40.040 · code text
    Up to 8 ft. in height and up to 120 sq. ft. | N/A | 0 ft. | 0 ft.
  • Side: the zoning district setback. Rear: at least 10 feet.
    Applies: Outdoor equipment, utility buildings or living space: up to 8 feet and over 120 square feet, or over 8 up to 15 feet.
    § 19.40.040 · code text
    Greater than 8 ft. in height up to 15 ft. | N/A | Zoning setback | 10 ft.
  • Side: the zoning district setback. Rear: at least 10 feet.
    Applies: Detached required parking garages.
    § 19.40.040 · code text
    Up to 15 ft. in height | 20 ft. | Zoning setback | 10 ft.
  • Side: the zoning district setback. Rear: at least 10 feet.
    Applies: Temporary utility tents up to 15 feet tall.
    § 19.40.040 · code text
    Temporary Utility Tents up to 15 ft. in height. | 20 ft. | Zoning setback | 10 ft.
Distance from the house
  • At least 5 feet from other accessory structures, ADUs or the main building.
    Applies: Detached garages and other detached accessory structures, unless built directly next to the structure.
    § 19.48.040 · code text
    A detached garage or other detached accessory structure shall be located either directly adjacent to the structure or at least five feet away from another accessory structure, accessory dwelling unit or main building.

Running a business from home

Sunnyvale code What Sunnyvale's code adds
Space used
  • No more than 20% of the home's floor area or 400 square feet, whichever is less.
    Includes storage.
    § 19.42.010 · code text
    No more than twenty percent of the floor area within the dwelling unit or four hundred square feet, whichever is less, shall be devoted to the business (including storage described in subsection (h));
Customer visits
  • No more than 3 vehicles per day.
    Applies: Counts customer, vendor and delivery vehicles; the business must not disrupt neighborhood traffic.
    § 19.42.010 · code text
    The business shall not generate vehicular traffic which will interfere with residential traffic circulation or shall not cause more than three vehicles including vehicles used by customers, vendors or delivery services to visit the premises per day;
Employees
  • Only residents of the home can work or report to work there.
    § 19.42.010 · code text
    No persons other than residents of the dwelling shall work or report to work on the premises;
Permit
  • A business license is required.
    § 19.42.010 · code text
    Home occupations may be conducted in any zoning district with a business license, provided the director of community development has determined that the proposed use shall comply with the following restrictions:
Businesses not allowed
  • Selling merchandise, products, or tangible things on the premises
    § 19.42.010 · code text
    No merchandise, product, or tangible thing shall be sold on the premises;

Lot splits under SB 9

Sunnyvale code What Sunnyvale's code adds
How the lot may be divided
  • At least 40% of the original parcel's lot area.
    Applies: Applies to each new parcel.
    § 18.26.030 · code text
    At least forty percent of the lot area of the original parcel;
Minimum new lot size
  • At least 1,200 square feet.
    Applies: Applies to each new parcel.
    § 18.26.030 · code text
    At least one thousand two hundred square feet in size;
Standards
  • No more than 2 new parcels.
    Applies: Applies to a proposed urban lot split.
    § 18.26.030 · code text
    The proposed urban lot split will create no more than two new parcels, and each of the newly created parcels is:
  • Each parcel borders the public right-of-way or has access to it at least 10 feet wide along its whole length.
    Applies: Applies to each new parcel.
    § 18.26.030 · code text
    Each parcel either adjoins the public right-of-way or has access to the right-of-way that is at least ten feet in width for the entire length;
  • At least 40 feet wide or deep in one direction.
    Applies: Applies to each new parcel.
    § 18.26.030 · code text
    Each parcel has a width or depth measurement of at least forty feet in one direction.
  • No more than 2 dwelling units on each new lot, including any ADUs.
    Applies: Applies to each new lot.
    § 18.26.030 · code text
    The applicant proposes to build no more than two dwelling units on each of the newly created lots, inclusive of any accessory dwelling units.
  • Only in R-0, R-1, R-1.5, R-1.7/PD or R-2 zones, or residential DSP zones.
    Applies: Applies to the parcel being split.
    § 18.26.030 · code text
    The parcel to be subdivided is located in R-0, R-1, R-1.5, R-1.7/PD, or R-2 zoning districts, or residential DSP zoning districts.
Owner occupancy
  • The owner must intend to live in one unit as principal residence for at least 3 years.
    Applies: Counted from approval; not required for a community land trust or qualified nonprofit corporation.
    § 18.26.030 · code text
    The owner of the parcel intends to occupy one of the housing units as their principal residence for a minimum of three years from the date of the approval of the urban lot split.

Solar panels and EV chargers

Sunnyvale code What Sunnyvale's code adds
Solar permit process
  • Lot coverage or floor area ratio may be exceeded by up to 1% with a miscellaneous plan permit.
    Applies: Single-family homes whose solar gives at least 270 kWh a month, or solar hot water of at least 50 gallons.
    § 19.56.150 · code text
    For single-family residential, the incentives provided in subsection (a) for the installation of solar, wind or solar-wind hybrid energy systems shall be based on providing a minimum monthly energy output of 270 kWh or a minimum of fifty gallons for solar hot water systems.
  • Approved with all permits when complete and meeting the checklist; one inspection; apply in person or electronically.
    Applies: Applies to small residential rooftop solar systems eligible for expedited review.
    § 16.66.030 · code text
    Application submittal may be made in person or electronically.

Tree removal

Sunnyvale code What Sunnyvale's code adds
Permit to remove
  • Yes, a protected tree removal permit, filed at least 10 working days before removal.
    Applies: Applies to protected trees on private property in any zoning district.
    § 19.94.050 · code text
    In order to remove any protected tree from private property in any zoning district, or from any city owned golf course or park, it is necessary to obtain a protected tree removal permit from the department of community development.
  • Yes, plus a landmark alteration permit.
    Applies: Applies to a tree designated as a heritage landmark.
    § 19.94.050 · code text
    Any tree which has been designated as a heritage landmark, pursuant to the provisions of Chapter 19.96, shall not be removed without obtaining a tree removal permit in addition to a landmark alteration permit in accord with Chapter 19.96.
Replacement trees
  • A replanting plan is required; the number and size of replacement trees are reviewed case by case.
    Applies: Applies when protected trees are removed for development needing a discretionary permit and public hearing.
    § 19.94.110 · code text
    When protected trees must be removed, replanting plans shall be submitted as part of the landscaping plan for the proposed project. The replanting plan shall be subject to the requirements of Section 19.94.090, but actual number and sizes of replacement trees shall be reviewed on a case by case basis.

Swimming pools

Sunnyvale code What Sunnyvale's code adds
Pool barrier
  • Covers are required.
    Applies: Applies to new pool or spa installations.
    § 19.48.090 · code text
    Covers are required for new pool or spa installations.
Setback from property lines
  • At least 3 feet from any property line or other structure.
    Applies: Applies to pool and spa equipment.
    § 19.48.090 · code text
    Pool and spa equipment shall not be constructed or located within three feet of any other structure or any property line, and shall comply with adopted noise requirements.
  • Must meet the zoning district's side and rear yard setbacks.
    Applies: Applies to spas and pools more than 18 inches above grade.
    § 19.48.090 · code text
    Spas and pools which extend more than eighteen inches above grade must meet the side and rear yard setback requirements of the zoning district of the property where such pool or spa is located.

Pets, chickens and bees

Sunnyvale code What Sunnyvale's code adds
Bees
  • Up to 5 hives per lot.
    Applies: Except agricultural use in any zone under a use permit.
    § 6.08.010 · code text
    No more than five hives shall be maintained on any one lot or parcel of land except that this condition shall not apply to any agricultural use within any zone pursuant to a use permit.
  • Hives at least 25 feet from side and rear lot lines and 100 feet from other homes, whichever is stricter.
    § 6.08.010 · code text
    No hive shall be kept or maintained within twenty-five feet of any side or rear property line of the lot or parcel of land upon which situated, as those property lines are determined pursuant to Title 19, or within one hundred feet of any dwelling unit, other than that occupied by the person maintaining the hives, whichever distance is greater and more restrictive.
  • Allowed in front-yard areas only if at least 100 feet from the street right-of-way edge.
    Applies: Applies to the area between the main building's front face and the street.
    § 6.08.010 · code text
    No hive shall be kept or maintained on any parcel or lot between the line of the front face of the main building extended and the street adjoining the front yard as defined in Title 19, unless such hive is located not closer than one hundred feet from the edge of the street right-of-way.
  • A solid fence at least 6 feet high, no more than 30 feet from the hives.
    Applies: Applies to hives not on a building or structure with entrances more than 10 feet up.
    § 6.08.010 · code text
    All hives shall be oriented so that the entrance faces the house or building occupied by the person maintaining the hives, and shall be surrounded by a solid fence not less than six feet in height, located no farther than thirty feet from such hives.
  • Allowed if entrances are more than 10 feet above ground and face a house or building on site.
    Applies: Applies to hives on or attached to a building or structure.
    § 6.08.010 · code text
    This condition may be met by locating such hives upon or affixed to a building or structure so that their entrances are more than ten feet from the ground and face a house or building on the premises.
Large animals
  • Livestock are not allowed in any R district.
    § 6.09.010 · code text
    No person shall keep any livestock in any R district as defined in Title 19.
Pet limit
  • Up to 4 adult dogs and cats combined, for example 2 dogs and 2 cats.
    Applies: Per dwelling unit.
    § 6.02.020 · code text
    It is unlawful for any person to maintain, at any dwelling unit, more than any of the following combination of dogs and cats:

Who this affects

HomeownersContractorsDesigners

Frequently asked questions

How tall can a fence be in Sunnyvale?

In a required reducible front yard, Sunnyvale allows fences up to 8 feet, but fences over 6 feet need extra setback or a permit.

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

Sunnyvale limits accessory structures of 450 square feet or less to 15 feet in height.

Can I run a business from my home in Sunnyvale?

Sunnyvale limits a home business to 20% of the home or 400 square feet, whichever is less, and 3 vehicles a day.

Can I split my lot under SB 9 in Sunnyvale?

Sunnyvale's code: At least 40% of the original parcel's lot area. (Applies to each new parcel.) (§ 18.26.030); At least 1,200 square feet. (Applies to each new parcel.) (§ 18.26.030).

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

Sunnyvale's code: Lot coverage or floor area ratio may be exceeded by up to 1% with a miscellaneous plan permit. (Single-family homes whose solar gives at least 270 kWh a month, or solar hot water of at least 50 gallons.) (§ 19.56.150); Approved with all permits when complete and meeting the checklist; one inspection; apply in person or electronically. (Applies to small residential rooftop solar systems eligible for expedited review.) (§ 16.66.030).

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

Sunnyvale's code: Yes, a protected tree removal permit, filed at least 10 working days before removal. (Applies to protected trees on private property in any zoning district.) (§ 19.94.050); Yes, plus a landmark alteration permit. (Applies to a tree designated as a heritage landmark.) (§ 19.94.050).

What are the pool fence and setback rules in Sunnyvale?

Sunnyvale's code: Covers are required. (Applies to new pool or spa installations.) (§ 19.48.090); At least 3 feet from any property line or other structure. (Applies to pool and spa equipment.) (§ 19.48.090).

Can I keep chickens or bees at my home in Sunnyvale?

Sunnyvale's code: Up to 5 hives per lot. (Except agricultural use in any zone under a use permit.) (§ 6.08.010); Hives at least 25 feet from side and rear lot lines and 100 feet from other homes, whichever is stricter. (§ 6.08.010).

General information, not legal advice.

Ask about a specific Sunnyvale property

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

Ask your question

More on Sunnyvale