Skip to main content
CityRuleLookup
Property Maintenance

HOA Rules vs City Ordinances: Which One Wins?

By CityRuleLookup Editorial Team

If you live in a homeowners association, you are subject to two overlapping sets of rules: your city's municipal code and your HOA's covenants, conditions, and restrictions. Most of the time, these two systems coexist without conflict. But when they disagree, understanding the legal hierarchy determines which rule you must follow and what happens if you get caught in the middle.

The general rule is straightforward: an HOA can impose rules that are stricter than city ordinances, but it cannot create rules that are more lenient. City ordinances set the floor, and HOAs can raise the bar. If your city allows fences up to six feet in the backyard, your HOA can cap them at five feet. But if your city requires a four-foot minimum fence around a swimming pool for safety, your HOA cannot waive that requirement. This hierarchy exists because city ordinances carry the force of law, while HOA rules are contractual obligations between private parties. A contract cannot override the law.

Where conflicts actually arise

In practice, most conflicts between HOA rules and city ordinances fall into a few predictable categories. Fence height and materials are a perennial source of friction. A homeowner gets a city permit for a six-foot cedar fence, builds it, and then receives a violation notice from the HOA for exceeding the HOA's four-foot maximum. The homeowner is technically in compliance with city code but in violation of the HOA rules. In this scenario, the HOA violation stands because the HOA rule is stricter. The homeowner must either modify the fence or seek a variance from the HOA board. Exterior paint colors, landscaping choices, and solar panel placement generate similar conflicts. California and several other states have passed laws prohibiting HOAs from banning solar panels, which is an example of state law overriding an HOA restriction to serve a public policy goal.

Enforcement works differently

City code enforcement and HOA enforcement operate through completely different mechanisms. City violations typically result in a notice, a correction period, and escalating fines if the violation is not resolved. The process is governed by administrative law and includes formal appeal rights. HOA enforcement, on the other hand, is governed by the CC&Rs and your state's HOA statute. Enforcement usually starts with a written notice, followed by a hearing before the HOA board, and can result in fines, loss of amenity access, or in extreme cases, a lien on the property. In Texas and several other states, HOAs have the legal authority to foreclose on a lien for unpaid assessments or fines, which gives them significant leverage.

Dispute resolution options

If you believe your HOA is enforcing a rule that conflicts with city or state law, you have several options. Start by reviewing the CC&Rs carefully to confirm the rule exists and understand its scope. Then check whether your state has any laws that override the specific HOA restriction. Many states have passed laws prohibiting HOAs from restricting clotheslines, flagpoles displaying the American flag, drought-resistant landscaping, electric vehicle charging stations, and other items that serve public policy objectives. If the HOA rule is valid but you disagree with its application, most HOAs have an internal appeal or variance process. If internal remedies fail, mediation is often the next step, and many states require it before litigation.

Practical advice for homeowners

Before you undertake any exterior modification to your home, check both your city's requirements and your HOA's rules. Apply for HOA approval before you apply for a city permit, because there is no point in getting city approval for a project your HOA will reject. If your HOA denies a project that city code allows, ask the HOA board for the specific rule being cited and whether a variance is possible. Document all communications in writing. And when buying a home in an HOA community, read the full CC&Rs before you make an offer, not after. The rules are binding from the moment you take ownership, and claiming you did not know about them is not a defense.

The bottom line

HOAs and cities serve different functions, but their rules overlap in ways that create real consequences for homeowners. City ordinances protect public health, safety, and welfare. HOA rules protect property values and community aesthetics. When they conflict, the stricter rule generally applies, with the exception of situations where state or federal law specifically overrides HOA authority. Understanding this dynamic before you start a project is far cheaper than resolving it after the fact.