Skip to content
SetbackIQ

Do you need a permit for a fence in Sunnyvale, CA?

It depends on the details of your project.

Sunnyvale needs a building permit only for fences over 7 ft, or any fence on top of a retaining wall.

Side and rear fences up to 8 ft need no planning permit.

In the front yard, fences up to 4 ft need no permit; 4 to 6 ft needs a Miscellaneous Plan Permit; over 6 ft needs a Use Permit.

A person last checked these rules on November 3, 2026. This is guidance only, so confirm with Sunnyvale before you build.

Check your exact lot

Your zoning district sets the setbacks, and a flood zone can change the permit answer. Enter your address to see both.

What are you building?

The answer is free. If you need to file, the $19 permit packet adds a site plan with your fence drawn on your lot, an application worksheet and a permit-desk checklist. See a sample packet

Permits a fence can need in Sunnyvale

PermitWhen it applies
Building permitSunnyvale exempts fences up to 7 ft, but not pool barriers.
Miscellaneous Plan Permit (front yard)A front-yard fence over 4 ft needs a Miscellaneous Plan Permit, or a Use Permit over 6 ft.
Floodplain development permitIf the lot is in a FEMA special flood hazard area, all development there needs a permit.

Limits that apply citywide

Front yard4 ft without a permit; 3.5 ft in vision triangles
Side and rear8 ft without a planning permit

Draw your fence on your Sunnyvale lot

PlanIQ finds your parcel, lets you place the fence on it, and checks the placement against the Sunnyvale limits above (front yard 4 ft; side and rear 8 ft). Draw my lot

Local details

  • Call 811 at least a few days before you dig footings or post holes. Utility locating is free.
  • HOA covenants and deed restrictions can be stricter than city rules. Check yours before you build.

How to apply

Common questions

When does a fence need a building permit in Sunnyvale?
Sunnyvale exempts fences up to 7 ft, but not pool barriers. Fences 7 ft or less that aren't pool barriers need no building permit.
Do I also need a zoning permit for a fence in Sunnyvale?
A front-yard fence over 4 ft needs a Miscellaneous Plan Permit, or a Use Permit over 6 ft.
Where do I apply for a fence permit in Sunnyvale?
Apply through Sunnyvale, Work Not Requiring a Building Permit, or call 408-730-7444.

Sources

  1. City of Sunnyvale, Work Not Requiring a Building Permit (rev. 1/2026). Checked 2026-11-03
    Building permits shall be obtained from the City's Building Safety Division before erection, construction, reconstruction, installation, moving, or alteration of any building or structure. However, the following projects do not require building permits... 2…
  2. City of Sunnyvale, Residential Fences handout (rev. 1/2023). Checked 2026-11-03
    Fences within Front Yards (between face of building and street) Fence Height Review Process Up to 4 feet No permit required. Fence may not exceed 3.5 ft. in any vision triangles unless it is an "open fence." 4+ to 6 feet MPP Over 6 feet Use Permit required.…
  3. 44 CFR 59.1, definition of development (NFIP). Checked 2026-10-19
    Development means any man-made change to improved or unimproved real estate, including but not limited to buildings or other structures...
  4. 44 CFR 60.3, floodplain management criteria. Checked 2026-10-19
    Require permits for all proposed construction or other development in the community...