Skip to content

Walnut · Building on your lot

Building on your lot in Walnut

Walnut sets its own limits on fences, accessory buildings and home businesses. Fence height depends on the yard, and a home business needs a permit and a business license.

Key points

  • Fence height: In the R-2 zone, Walnut limits fences to 6 feet, and to 3 feet in a required front yard or street side yard.
  • Accessory buildings: In R-2 and R-3 zones, Walnut accessory buildings stay at least 5 feet from side lines and out of side yards abutting a street.
  • Home businesses: Walnut limits a home business to one room or 25% of the floor area, whichever is less, with resident family members only.

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

Fences and walls

Walnut code What Walnut's code adds
Height anywhere on the lot
  • No more than 6 feet.
    Applies: For fences and walls in an R-2 zone. 3 feet in a required front yard or a side yard next to a street.
    § 6.28.090 · code text
    Such fences and walls shall not exceed six feet in height, and where the same are located in a required front yard or a side yard abutting a street, the same shall not exceed three feet in height.
Front yard height
  • No more than 3 feet.
    Applies: For fences and walls in a required front yard in an R-2 zone.
    § 6.28.090 · code text
    Such fences and walls shall not exceed six feet in height, and where the same are located in a required front yard or a side yard abutting a street, the same shall not exceed three feet in height.
Side and rear yard height
  • No more than 3 feet.
    Applies: For fences and walls in a side yard next to a street in an R-2 zone.
    § 6.28.090 · code text
    Such fences and walls shall not exceed six feet in height, and where the same are located in a required front yard or a side yard abutting a street, the same shall not exceed three feet in height.

Sheds, garages and other accessory structures

Walnut code What Walnut's code adds
Side and rear setback
  • At least 5 feet from a side property line.
    Applies: R-2 zone. Not allowed in a side yard within 60 feet of the front lot line, or in a street side yard.
    § 6.28.030 · code text
    Accessory buildings and structures are permitted in the rear and side yards; provided, that no buildings or structures are permitted in the side yard within 60 feet of the front lot line, nor within five feet of a side property line, nor permitted at all in a side yard abutting a street.
  • At least 5 feet from a side property line.
    Applies: R-3 zone. Not allowed in a side yard within 60 feet of the front lot line, or in a street side yard.
    § 6.32.030 · code text
    Accessory buildings and structures are permitted in the rear and side yards; provided, that no building or structure is permitted in the side yard within 60 feet of the front lot line, nor within five feet of a side property line, nor permitted at all in a side yard abutting a street.
Distance from the house
  • At least 10 feet from the main building.
    Applies: In the R-2 zone, for accessory buildings that are not part of the main building.
    § 6.28.030 · code text
    All accessory buildings which are not a part of the main building shall be separated from the main building by at least 10 feet.
  • At least 10 feet from the main building.
    Applies: In the R-3 zone, for accessory buildings that are not part of the main building.
    § 6.28.030 · code text
    All accessory buildings which are not a part of the main building shall be separated from the main building by at least 10 feet.
  • At least 35 feet from a habitable building.
    Applies: For structures that house animals.
    § 6.16.040 · code text
    All structures for the housing of animals shall be no closer than 35 feet from a habitable building.

Running a business from home

Walnut code What Walnut's code adds
Space used
  • No more than 1 room or 25% of the total floor area, whichever is less.
    Applies: No part of the garage may be used.
    § 6.08.180 · code text
    The business shall not occupy more than one room or 25% of the total floor area, whichever is lesser, nor shall it occupy any part of the garage.
Employees
  • No employees or assistants on the premises except members of the resident family.
    § 6.08.180 · code text
    No employees or assistants shall be engaged for services on the premises other than members of the resident family.
Permit
  • A home occupation permit and a business license, applied for with the City Clerk.
    § 6.08.180 · code text
    Any person proposing to manage, conduct or carry on any business within the home at any location shall file a written application for a home occupation permit and business license with the City Clerk, on forms prepared and provided to the applicant.

Solar panels and EV chargers

Walnut code What Walnut's code adds
EV charger permit
  • Electronic submittal and electronic signatures are accepted.
    Applies: Applies to EV charging stations.
    § 2.42.040 · code text
    A permit application that satisfies the information requirements in the City’s adopted checklist shall be deemed complete and be promptly processed.
  • The Building Official approves the application and issues all needed permits.
    Applies: When the application meets the City-adopted checklist and all laws and health and safety standards.
    § 2.42.040 · code text
    Upon confirmation by the Building Official that the permit application and supporting documents meets the requirements of the City-adopted checklist, and is consistent with all applicable laws and health and safety standards, the Building Official shall, consistent with Government Code Section 65850.7, approve the application and issue all necessary permits.
Solar permit process
  • Administrative, nondiscretionary review; permit issued when a complete application meets checklist and standard plan; only 1 inspection when applicable.
    Applies: Applies to small residential rooftop solar systems.
    § 2.36.050 · code text
    The City of Walnut building and safety division shall adopt an administrative, nondiscretionary review process to expedite approval of small residential rooftop solar energy systems.

Tree removal

Walnut code What Walnut's code adds
Exemptions
  • Deadwooding does not need a permit.
    Applies: Applies to deadwooding only.
    § 6.52.340 · code text
    This activity is exempt from the requirement to obtain a permit.
  • Unsafe live limbs up to 6 inches around may be removed without a permit, if the tree consultant decides.
    Applies: Limbs unsafe from decay, rot, cavities, cracks or splitting.
    § 6.52.340 · code text
    Live limbs or branches that do not exceed six inches in circumference and are considered to be unsafe because of decay, rot, cavities, cracks or splitting can be removed without obtaining a tree permit. However, the decision to remove such limbs must be made by the tree consultant.
  • Owners may remove limited live tissue without a permit when limbs are no more than 6 inches around.
    Applies: Applies to pruning live tissue.
    § 6.52.340 · code text
    However, a property owner may remove limited live tissue when the limbs do not exceed six inches in circumference without obtaining a tree permit.
Permit to remove
  • Yes, a tree permit is required.
    Applies: Cutting, pruning, removing, moving, damaging or working in the protected zone of an oak or walnut 6 inches or more around at 4.5 feet.
    § 6.52.290 · code text
    No person shall cut, prune, remove, relocate, endanger, damage or encroach into the protected zone of any tree within the City except in accordance with the conditions of a valid tree permit issued by the City.
  • Planning Commission review; removal only if the tree would block any reasonable development and no reasonable alternative exists.
    Applies: Applies to heritage trees.
    § 6.52.290 · code text
    No heritage tree shall be removed unless one or more of the above findings are made and the decision maker also finds that the heritage tree’s continued existence would prevent any reasonable development of the property and that no reasonable alternative can be accommodated due to the unique physical constraints of the property.
Protected trees
  • Oak and walnut trees 6 inches or more around, measured 4.5 feet above natural grade.
    § 6.52.330 · code text
    There shall be no removal of/or encroachment into the protected zone of a tree measuring six inches in circumference or larger when measured at a point four and one-half feet above the tree’s natural grade, as measured from the highest ground elevation adjacent to the tree, without first obtaining a tree permit.

Swimming pools

Walnut code What Walnut's code adds
Pool barrier
  • Besides doors and gates, no openings over 50 square inches, unless rectangular with no horizontal side over 4 inches.
    § 3.48.370 · code text
    with no openings except doors or gates, with an area greater than 50 square inches, except that a rectangular opening having no horizontal dimension exceeding four inches, may have a greater area.
Barrier height
  • At least 5 feet high.
    Applies: Pools 2 feet deep or more; measured on the side away from the pool.
    § 3.48.370 · code text
    The fence, wall or other structure required by this section shall be not less than five feet high, measured from the existing surface to the top of the fence or wall on the side of the fence or wall opposite the side towards the pool,
Gates
  • Self-closing, self-latching devices at least 4 feet above grade; gates stay closed and latched when the pool is unused.
    § 3.48.370 · code text
    All gates or doors opening through the fence or structure protecting a swimming pool as required by this section shall be equipped with self-closing and self-latching devices not less than four feet above grade capable of keeping such gate or door closed at all times when not in actual use.

Other Walnut rules on this

Walnut'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 Walnut?

In the R-2 zone, Walnut limits fences to 6 feet, and to 3 feet in a required front yard or street side yard.

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

In R-2 and R-3 zones, Walnut accessory buildings stay at least 5 feet from side lines and out of side yards abutting a street.

Can I run a business from my home in Walnut?

Walnut limits a home business to one room or 25% of the floor area, whichever is less, with resident family members only.

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

Walnut's code: Electronic submittal and electronic signatures are accepted. (Applies to EV charging stations.) (§ 2.42.040); The Building Official approves the application and issues all needed permits. (When the application meets the City-adopted checklist and all laws and health and safety standards.) (§ 2.42.040).

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

Walnut's code: Deadwooding does not need a permit. (Applies to deadwooding only.) (§ 6.52.340); Unsafe live limbs up to 6 inches around may be removed without a permit, if the tree consultant decides. (Limbs unsafe from decay, rot, cavities, cracks or splitting.) (§ 6.52.340).

What are the pool fence and setback rules in Walnut?

Walnut's code: Besides doors and gates, no openings over 50 square inches, unless rectangular with no horizontal side over 4 inches. (§ 3.48.370); At least 5 feet high. (Pools 2 feet deep or more; measured on the side away from the pool.) (§ 3.48.370).

General information, not legal advice.

Ask about a specific Walnut property

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

Ask your question

More on Walnut