HOA rules and local government rules (city ordinances, county zoning, state law) operate on different, overlapping layers — and homeowners are generally required to follow whichever is stricter. Understanding how they interact avoids a common and frustrating surprise: being fully compliant with one and still in violation of the other.
The general principle
An HOA is a private contract among homeowners, created through the CC&Rs you agree to by buying the property. City and county law is public regulation that applies to everyone regardless of HOA membership. As a rule of thumb:
- An HOA can generally be more restrictive than city law — for example, a city might allow a 6-foot fence, but your HOA can limit it to 4 feet. That's usually enforceable, since you agreed to the CC&Rs.
- An HOA generally cannot override or be less restrictive than the law — it can't authorize something the city or state explicitly prohibits, like an illegal structure or a use that violates zoning.
- Certain protections (fair housing, disability accommodations, some state-specific solar/EV/flag/political-sign laws) override HOA rules entirely, regardless of what the CC&Rs say.
Common conflict scenarios
- Short-term rentals — a city might permit them with a license, while the HOA bans them outright. The HOA's stricter rule generally still applies to its members, since it's a separate private agreement layered on top of city permission.
- Home businesses — zoning might allow a home-based business, but many HOAs separately restrict or ban commercial activity, signage, or client visits in a residential CC&R.
- Parking — city street parking rules and HOA private-street or driveway parking rules can differ, and you're bound by both simultaneously if the property involves both.
- Building permits — getting a city permit for a project (like a fence or addition) does not exempt you from also needing separate HOA architectural approval — they're independent processes, and you typically need both.
Where the law protects homeowners regardless of HOA rules
Some protections exist specifically to limit HOA authority, and these generally can't be waived by the CC&Rs:
- Fair Housing Act protections — reasonable accommodations for disabilities, including service/assistance animals
- Many states' solar access laws — see our solar panel guide
- Some states' flag display laws — often protecting the right to display the U.S. flag and, in some states, military or first-responder flags
- Political sign laws in several states — limiting how much an HOA can restrict yard signs during election periods
What to do if you think there's a conflict
Don't assume — check both sources directly. Pull the specific city ordinance or zoning code section, and the specific CC&R or rule section, and compare the actual language. If they genuinely conflict in a way that isn't just "HOA is stricter," it's worth a consultation with a real estate or HOA attorney, since resolving these disputes usually depends on the specific state's statutes governing HOA authority.
Related: Solar panels & EV chargers · Rental restrictions