Skip to content

Selling a House With Code Violations: What You Can and Cannot Transfer to the Buyer

You can sell a house with code violations on it. No law in any state prevents you from transferring a property that has an open violation notice on file. What you cannot do is hide it, and in most cases you cannot close the sale when a conventional lender is financing the buyer. Those two facts shape almost every decision in this situation.

Unpermitted Work vs. an Active Violation: Not the Same Problem

These two situations come up in the same conversation, but they have different legal and financial consequences.

Unpermitted work is a past act. A previous owner converted the garage in 2007 without pulling a permit. The city may not know about it. The risk falls on whoever eventually applies for permits or sells to a buyer thorough enough to catch it during due diligence. Some lenders exclude unpermitted square footage from the appraisal. Others do not flag it at all if no permit card is on file with the county.

An active violation is different. The municipality has inspected, cited, and issued a notice. The notice is a public record. It typically runs with the property, meaning the new owner inherits the obligation to cure it. Some jurisdictions record the notice against the title directly, which makes it function like a lien. Others file it in a separate enforcement database that a standard title search may or may not catch, depending on how thorough your title company is.

A lender's underwriter almost always catches an active violation. If you have a buyer with financing, expect the appraiser to flag it and the lender to condition approval on resolution before closing.

Why Conventional Buyers Run Into a Wall

FHA loans require the property to meet HUD Minimum Property Standards, outlined in HUD Handbook 4000.1. Active violations that affect health or safety are grounds for denial. The FHA appraiser is required to report conditions that present safety hazards, and an open code violation is the bureaucratic signal that one may exist. The appraiser cannot simply overlook it.

VA loans work the same way. The VA Lender's Handbook (Chapter 12) requires properties to be free of conditions that endanger health or safety. An active structural or electrical violation will stop a VA-backed purchase unless the work is repaired and re-inspected before closing.

Conventional loans through Fannie Mae or Freddie Mac are slightly more flexible, but not by much. If the violation requires immediate repair to restore basic habitability, the underwriter will condition approval on resolution. An appraiser who knows about a material violation has to note it in the report, which triggers the lender's review regardless of the loan type.

A cash buyer has no lender. There is no appraisal file, no underwriting review, and no minimum property standard to satisfy. The buyer decides whether to accept the risk and prices the offer to reflect what it will cost to resolve it. That is why a house with a significant open violation typically draws a much shorter list of viable buyers than the same house without one.

Mortgage underwriting documents and paperwork spread on a kitchen table

What the Law Requires You to Disclose

Disclosure obligations vary by state, but the direction of the law is consistent: if you know about a material defect that would affect what a reasonable buyer would pay, or whether they would buy at all, you must disclose it. A code violation almost always meets that standard.

California's Transfer Disclosure Statement (Civil Code 1102) requires sellers to disclose all known code violations and any notices received from a public agency. The obligation applies even on as-is sales. Selling as-is does not mean selling without disclosure. It means selling without guaranteeing that defects do not exist.

Texas Property Code 5.008 requires a seller's disclosure notice that includes questions about known violations and material defects. Failure to disclose a known violation exposes the seller to post-closing liability, including claims for rescission or damages.

Florida follows the Johnson v. Davis (1985) standard from the Florida Supreme Court, which requires sellers to disclose facts that materially affect the value of the property and are not readily observable or already known to the buyer. An active code violation meets that test.

Montana has meaningful variation in how local code enforcement works. The state adopted the International Building Code under Montana Code Annotated 50-60-101, but local jurisdictions administer their own programs, and not all rural counties maintain active enforcement. A structure built in a county with minimal oversight may have no permit record and no violation history, even if the work would fail inspection elsewhere. Regardless of local enforcement activity, Montana sellers are bound by the Residential Property Disclosure Act (MCA 70-16-702), which requires disclosure of known material defects. Known structural or safety problems must be disclosed whether or not a local inspector ever issued a formal citation. If you are selling in Montana or any other state, consult a local real estate attorney on the specific disclosure form your state requires. A failed disclosure is one of the few post-closing liabilities that can follow a seller for years after the deed transfers.

The exterior of a small county building and safety department on a grey overcast morning

A Worked Example: The $265,000 House With a $19,000 Violation

Here is how the math actually looks in a mid-market scenario. A three-bedroom house has an after-repair value of $265,000. The city issued a notice of violation for an unpermitted basement conversion: the electrical work was never inspected, the egress windows are undersized for bedroom use, and the ceiling height in two rooms falls below the 7-foot minimum for habitable space required by IRC R305.1. The fix requires an electrical permit, a licensed electrician to correct the wiring, two egress window replacements, and a final city inspection. Some inspectors require drywall to be opened to verify work behind the walls.

Estimated repair cost: $16,000 to $22,000, depending on contractor availability, scope, and whether the inspection requires wall access.

Option A: Fix the violation and list conventionally.

  • Repair outlay: $19,000 (midpoint estimate)
  • Sale price after repair: $263,000
  • Agent commission (5.5%): $14,465
  • Seller closing costs (2%): $5,260
  • Net to seller: $224,275

Option B: Sell as-is to a cash buyer.

  • Cash offer: $218,000 (reflects the buyer's cost to cure, their margin, and the risk they absorb)
  • No commission, no repair outlay required
  • Net to seller: $218,000

The gap is about $6,300. Option A nets more, but it requires $19,000 upfront, a contractor who can start within a reasonable timeframe, 6 to 10 weeks for the permit-and-inspection cycle, and then 30 to 60 days on the market. Total realistic timeline: 4 to 6 months. Option B closes in 7 to 21 days and requires no capital outlay.

If you have $19,000 available and 5 months to spare, Option A is the better financial trade. If you do not have the capital, if contractors in your area have a long wait, or if the 5-month timeline is not workable, the $6,300 gap is the cost of solving those constraints. That is not a pitch. It is the math.

Who Should Not Take a Cash Offer Over a Code Violation

A cash sale is not the right answer when the violation is minor. A smoke detector in the wrong location, an outdated GFCI outlet, a handrail that is two inches too short: these cost less than $1,000 to correct and do not meaningfully obstruct a conventional sale. Accepting a 15 percent discount on your sale price to avoid a $500 repair is not a good trade in almost any market.

If the house is in solid condition otherwise, the violation is straightforward to fix, and you have the time and capital to manage it, fix it and list it. The pool of buyers is larger, the offers are more competitive, and you will see the difference at closing. A traditional listing almost always nets more when the house is in good shape and you have the time.

A cash sale makes sense when the violation is serious enough to block conventional financing outright, when you do not have the capital to fund repairs before closing, when the inspection-and-permit cycle would take months you cannot afford to wait, or when the property has compounding problems that would make a traditional listing unlikely to generate strong offers regardless.

What Happens to the Violation After You Sell

In most jurisdictions, the violation notice transfers with the property. The new owner takes on the obligation to cure it. If the city has not yet recorded the notice against the title, it may not appear in a standard title search, but the new owner can still receive enforcement action after closing.

A cash buyer who regularly purchases properties with active violations has already priced this in. They have contractor relationships, permit experience, and familiarity with the local enforcement system. Part of what you are paying for when you accept a lower offer is the transfer of that problem to someone who is set up to handle it.

If there is a recorded municipal lien tied to the violation rather than just a notice, that is a separate issue. Recorded liens attach to the title and must be cleared at closing regardless of who the buyer is. Our code violations page covers the lien-vs-notice distinction in more detail and explains how we work through each scenario.

Common Questions

Can you sell a house with an open building permit?

Yes. An open permit (a permit was pulled but the final inspection never happened) shows up in many title searches as a defect. Conventional lenders may require it to be closed before funding. A cash buyer will price the cost of resolving it into the offer. In most cases, completing the work and scheduling the final inspection is cheaper than the discount a buyer demands to accept the open permit, so it is usually worth closing if you have the ability to do so before listing.

Does a code violation have to be disclosed on an as-is sale?

Yes, in most states. Selling as-is means you are not warranting the condition and the buyer accepts the property without requiring you to make repairs. It does not mean you can withhold known defects. California (Civil Code 1102), Texas (Property Code 5.008), Florida (Johnson v. Davis standard), and most other states require disclosure of known material defects regardless of whether the sale is as-is. Concealing a known violation can result in post-closing liability even after the deed has recorded.

Will a code violation stop my sale from closing?

It depends on how the buyer is financing. FHA and VA buyers will almost always hit a wall: both loan programs require the property to meet minimum safety standards, and an active violation flags a potential issue the lender must resolve before funding. Conventional buyers may face the same problem if the appraiser notes the violation as requiring immediate repair. A cash buyer has no lender and can close with the violation in place, provided it is properly disclosed and both parties agree in writing.

What are the most common violations that come up when selling?

Unpermitted additions and conversions rank first: garage conversions, finished basements, bonus rooms, and bathroom additions done without permits. Electrical issues rank second: outdated panels, aluminum branch-circuit wiring in homes built in the 1960s and 1970s, missing arc-fault or ground-fault interrupters. Smoke and carbon monoxide detector compliance catches many sellers by surprise because several states (including California and Massachusetts) require a compliance certification at closing. Egress window deficiencies in basement bedrooms are another frequent flag on both FHA and conventional appraisals.

If your house has an active violation and you want to know what a cash offer looks like before deciding whether to fix it first, we buy houses in all 50 states, including Montana and every other state where enforcement situations come up. Visit our selling with code violations page for more on how we approach these properties. When you are ready to see a number, request a written offer. We will explain how we arrived at it and you decide from there. If you would rather talk through the situation first, call us at 801-421-4212.

Ready for Your Free Cash Offer?

No obligation, no fees, and no repairs. Find out what your house is worth in cash today.

Get My Cash Offer Call 208-540-8257