Skip to main content
Code ViolationsSell As-IsCash Offer

How to Sell a House With Code Violations

Code violations do not have to stop your home sale. Learn what types of violations exist, whether you must fix them, and how a cash buyer can purchase the home as-is.

Published 4 min read
HT Written by Homewise Team
JL Edited by Joshuan Le
How to Sell a House With Code Violations

The Short Version

You can sell a house with code violations, but most financed buyers cannot purchase one. A lender will not fund a loan on a property with open municipal violations. Cash buyers have no lender, so they can purchase the home as-is, violations and all, and handle the resolution themselves after closing. You disclose what you know, price accordingly, and close fast.

A municipal code violation on your home is a legal notice that something about the property does not meet local building, safety, or maintenance standards. It could be an unpermitted addition, faulty electrical work, an overgrown yard that violated a nuisance ordinance, or a structural issue flagged by the city. Whatever the cause, an open code violation complicates a traditional sale significantly.

This guide explains what code violations mean for your sale, whether you have to fix them first, and why cash buyers are often the right solution.

What types of code violations affect home sales most

Not all code violations carry the same weight. Minor violations, like a missing fence gate or an improper address number, are easier to navigate than major ones. The violations most likely to block a financed sale include:

Violation typeTypical impact on sale
Unpermitted additions or structuresLender will not fund; title issues possible
Electrical code violationsLender flagged as safety issue
Plumbing code violationsLender flagged as health/safety
Structural violationsMajor lender block
Zoning violationsComplicates transfer
Nuisance or maintenance violationsVaries; some close without resolution

The distinction that matters for your sale is whether the violation rises to the level where a lender will refuse to fund a mortgage on the property. Minor maintenance violations may not reach that threshold. Structural, electrical, or major unpermitted work violations almost always do.

How code violations block traditional buyers

When a buyer is financing a purchase, the lender orders an appraisal that includes a property condition review. If the appraiser notes open code violations, or if a mandatory municipal inspection turns up violations, the lender can:

  • Require the violations to be fixed before closing
  • Reduce the loan amount
  • decline the loan entirely

This creates a problem for you as the seller: you either fix the violations out of pocket before closing, negotiate a price reduction so the buyer pays for them, or watch the deal fall apart.

For sellers who cannot fund the repairs or who want to avoid the delay of completing permitted work, a cash buyer is the alternative.

Selling as-is with code violations

A cash buyer has no lender. That single difference removes the main obstacle code violations create. The process looks like this:

  1. You disclose the known violations to the buyer upfront
  2. The cash buyer does their own inspection and estimates the cost to resolve the violations
  3. The buyer makes an offer that reflects the as-is condition, including the estimated violation remediation cost
  4. You close without completing any repairs
  5. The buyer takes ownership and handles the violations as the new owner

Your net proceeds will be lower than if the violations had never existed, because the buyer’s cost to fix them comes out of the offer price. But you avoid the time, expense, and complexity of managing permitted repairs on a timeline driven by someone else’s closing date.

See how as-is cash sales work at HomeWise for a detailed breakdown of what the buyer handles after closing.

Disclosure: what you are required to tell buyers

Even in an as-is cash sale, you are generally required to disclose known material defects, including violations you are aware of. Selling as-is means the buyer accepts the condition; it does not exempt you from telling them what that condition is.

Disclosure requirements vary by state. Some states require specific forms; others rely on general disclosure duties. If you are unsure what your obligations are, a real estate attorney in your state is the right person to ask. Do not assume that “as-is” means “say nothing.”

For more on how as-is disclosure works in a cash sale, see the HomeWise situations page for as-is properties.

What happens to open violations after you sell

In a cash as-is sale, the responsibility for resolving open violations transfers to the new owner after closing. The buyer becomes responsible for obtaining any required permits, completing the work, passing inspections, and getting the violations cleared from the municipal record. This is standard for investment buyers who purchase distressed properties and are accustomed to navigating the permit and code compliance process.

The bottom line

Code violations make a traditional financed sale very difficult. They do not make a cash sale difficult at all. If your home has open violations and you want to avoid the cost and delay of fixing them, a cash buyer will assess the property as-is and make an offer that reflects the condition.

Request a no-obligation offer at /get-offer/ and know your number within 24 hours, violations and all.

FAQ

Frequently Asked Questions

Can I sell a house with code violations?
Yes, you can sell a house with code violations, but your buyer pool is significantly limited. Most mortgage lenders will not fund a loan on a property with open municipal code violations, which means financed buyers are largely off the table. Cash buyers, who purchase without lender involvement, can buy the property as-is with violations in place. They take on the responsibility of resolving the violations after closing and factor the estimated cost into their offer.
Do I have to fix code violations before selling?
In most cases, you are not legally required to fix code violations before selling, but you are required to disclose known violations to buyers. The disclosure requirements vary by state. Some municipalities have transfer inspection requirements that must be completed before a sale closes, which can expose violations you were not aware of. If you sell to a cash buyer, they typically purchase as-is and handle the violations themselves, so you do not need to complete repairs before closing. Check your local ordinances and consult a real estate attorney if you are unsure about your disclosure obligations.
Who pays to fix code violations after a sale?
In a traditional sale, the seller is often expected to remedy violations as a condition of closing, or a price reduction or repair credit is negotiated. In a cash as-is sale, the buyer accepts the violations and pays to resolve them after they take ownership. The cost of fixing violations is reflected in the buyer's offer: they will price the offer lower to account for the anticipated repair and permit costs. You receive less upfront but avoid the complexity and expense of managing the repairs yourself.
Will a financed buyer's lender allow code violations?
Generally no. Conventional lenders, FHA, and VA lenders typically require a property to be safe, sound, and free of significant health and safety issues as a condition of loan approval. Open municipal code violations, particularly those related to electrical, plumbing, structural, or health and safety issues, can cause a lender to decline funding until they are resolved. This is why most sellers with code violations either fix them before listing or sell to a cash buyer who has no lender requirement to satisfy.
Do I have to disclose code violations when I sell?
In most states, sellers are required to disclose known material defects, including open code violations. Failing to disclose a known violation can expose you to legal liability after closing. Disclosure requirements vary by state, and some states have specific forms that must be completed. You should disclose any violations you know about, even if you are selling as-is. An attorney or a licensed real estate professional in your state can advise you on exactly what your disclosure obligations are.

Sell a house that needs work

Free cash offer · 24 hours · No fees

Get Offer