Does a House Have to Be Up to Code to Sell? Disclosures and Loans

No, a house does not have to be up to current code to sell. Older homes are routinely sold with wiring, plumbing, and structural features that would never pass a modern inspection, and that’s legal because of grandfathering. What can still force repairs before closing is a narrower list: specific safety mandates written to apply retroactively, local point-of-sale inspection ordinances, disclosure obligations, unpermitted work, and the buyer’s mortgage lender.

Grandfathering and Where It Stops

Building codes change on a regular cycle, and if every update forced immediate retrofits, most housing stock would be unsellable. Instead, a home generally only has to comply with the codes that applied when it was built or when permitted work was last done. A house wired in 1975 doesn’t need to meet 2026 electrical standards, provided the original wiring was compliant then and hasn’t been altered without a permit since.

That protection has real limits. Renovating a bathroom means the plumbing and electrical work in that bathroom must meet current code, even if the rest of the house stays grandfathered. Installing new equipment triggers the same obligation. Work done previously without permits, or work that wasn’t compliant when done, doesn’t get grandfathered at all, and local officials can require it to be brought up to current standards.

Some newer code provisions are also written to apply retroactively. Basic life-safety items like smoke alarms and emergency egress fall into this category because legislators decided the risk justified requiring all homes to comply, not just new construction.

Safety Systems That Must Work at Transfer

Even without a local inspection program, most jurisdictions require certain safety features to be present and functional at sale. These can’t be waived by agreement between buyer and seller.

Smoke and Carbon Monoxide Alarms

The International Residential Code, which forms the basis for most local codes, requires smoke alarms in every sleeping room, immediately outside each sleeping area, and on every level of the home including basements. Carbon monoxide alarms are required on each story with a sleeping area and on any story with a fuel-burning appliance or an attached garage. Many jurisdictions have adopted these rules for existing homes at the point of sale. Compliance typically costs under $200.

Emergency Egress Windows

Any room marketed as a bedroom must have an emergency escape window or door meeting minimum size requirements. Under the IRC, that’s at least 5.7 square feet of net clear opening, a minimum height of 24 inches, a minimum width of 20 inches, and a sill no more than 44 inches above the floor. Basement bedrooms often fail this test. A room without compliant egress cannot legally be called a bedroom, and advertising a bedroom count that includes non-compliant rooms invites misrepresentation claims.

Regional Requirements

In earthquake-prone areas, water heaters must be strapped to the wall. Coastal regions may require hurricane straps or impact-resistant windows at resale. These vary by region and are targeted carve-outs from the general grandfathering rule.

Local Point-of-Sale Inspections

Hundreds of municipalities require a city-conducted inspection before a home can change hands. These are separate from the buyer’s private home inspection and carry legal force. The city sends an inspector, and if violations turn up, they have to be corrected before the deed transfers, or the buyer must formally agree to assume the violations and escrow funds for the repairs.

Point-of-sale programs are especially common in older cities in the Midwest and Northeast, though they exist in parts of every region. The inspection typically focuses on housing code items rather than a full building code review: handrails, smoke detectors, electrical panel safety, water heater installations, structural deficiencies. Fees generally run between $100 and $200 for a single-family home, and the certificate is usually valid for about a year.

If your city has one of these programs and you skip it, the title company or county recorder will refuse to process the transfer. Check with the local building department before you list. Discovering this requirement two days before closing can blow up the deal.

How the Buyer’s Mortgage Can Force Repairs

Even when the law doesn’t require a repair, the lender might. Every mortgage lender orders an appraisal, and the appraiser evaluates condition, not just value. Significant health and safety problems will stall or kill the loan until they’re fixed. If the buyer is paying cash, this concern vanishes. In the vast majority of transactions that involve financing, the lender functions as an unpaid inspector with veto power.

FHA Loans

Federal Housing Administration loans have some of the strictest condition requirements. HUD Handbook 4000.1 directs appraisers to flag defective paint on any pre-1978 home (including cracking, chipping, peeling, or scaling on interior and exterior surfaces), plumbing that doesn’t supply adequate water pressure or shows leaks, water heaters without a proper temperature and pressure relief valve, roofing with less than two years of remaining life, and evidence of structural settlement, termite damage, excessive dampness, or hazardous materials.1U.S. Department of Housing and Urban Development. HUD Handbook 4000.1 – FHA Single Family Housing Policy Handbook Anything flagged must be corrected before closing, or in some cases inspected and cleared by a qualified specialist.

FHA also offers a limited repair escrow. When needed repairs are minor and don’t affect habitability, the borrower can close and deposit funds into escrow to cover the work, which must then be completed shortly after closing. The scope and dollar limit are restricted, so it won’t solve major code problems, but it can keep a deal alive when the issue is something like exterior paint touch-ups or a missing handrail.

VA Loans

Department of Veterans Affairs loans follow a similar pattern. VA appraisers must flag foundation issues, defective mechanical systems, unpermitted improvements needing removal or correction, chipping paint on pre-1978 homes, wood-destroying insect damage, and environmental problems affecting value. Flagged conditions must be repaired before the loan closes.

Conventional Loans

Conventional mortgages sold to Fannie Mae have condition standards too, less prescriptive than the government-backed programs but real. Properties rated C6 on Fannie Mae’s condition scale (deficiencies severe enough to affect safety, soundness, or structural integrity) are ineligible for financing. Evidence of infestation, abnormal settlement, or dampness requires either proof of correction or a professional report confirming no threat of structural damage.2Fannie Mae. Property Condition and Quality of Construction of the Improvements

Unpermitted Work Is Its Own Problem

Unpermitted additions, converted garages, finished basements, and DIY electrical work are among the most common deal complications in residential real estate. The issue isn’t just that the work might not meet code. Unpermitted work doesn’t get grandfathered, can’t be verified as safe, and creates cascading headaches for both sides.

Sellers are generally required to disclose unpermitted work they know about, even if a previous owner did it. Disclosure moves the responsibility to the buyer at closing, but it doesn’t make the work legal. The municipality can still require the current owner to obtain retroactive permits or remove the noncompliant work.

Retroactive permitting is possible in many jurisdictions but rarely cheap or simple. The building department will typically require a full permit application, possibly professional drawings of the work as built, inspections that may involve opening walls to verify wiring and plumbing, and bringing everything up to current code. If the work can’t be brought into compliance, the department can order demolition. The permit fee itself is modest; making the work compliant often runs into thousands of dollars.

Unpermitted work can also block title insurance, throw off the official square footage, and violate zoning rules like setback distances or lot coverage limits. Appraisers who spot unpermitted additions will often exclude that square footage from the valuation, which can push the appraised value below the purchase price and torpedo the buyer’s financing.

Disclosure Duties and What “As-Is” Doesn’t Cover

Almost every state requires sellers to complete a property disclosure form covering the home’s condition. The specific questions vary, but the forms typically ask about structural components, the roof, plumbing, electrical, heating and cooling, water intrusion, and environmental hazards. Known code violations and unpermitted work fall squarely within the scope. If you know your deck was built without a permit or that the basement bedroom lacks a proper egress window, it goes on the form.

The duty is limited to what you actually know. You aren’t required to hire an inspector or hunt for hidden problems. But “I didn’t look” is a weak defense if the issue was obvious or if you received a violation notice and ignored it.

Selling “as-is” doesn’t get you around any of this. As-is means the buyer accepts the property in its current physical condition and the seller isn’t promising repairs. It does not override the legal duty to disclose known defects, and it won’t protect a seller who actively conceals problems. Courts have consistently held that as-is provisions don’t shield against fraud or intentional misrepresentation.

The Federal Lead Paint Rule

One disclosure requirement applies nationwide regardless of state law. If your home was built before 1978, federal law requires you to disclose any known lead-based paint hazards, provide buyers with an EPA pamphlet about lead risks, include specific warnings in the purchase agreement, and give buyers ten days to test for lead.3US EPA. Real Estate Disclosures about Potential Lead Hazards HUD can impose civil fines of up to $22,263 per violation, and sellers who knowingly violate the rule can also face criminal sanctions.4eCFR. 24 CFR 30.65 – Failure to Disclose Lead-Based Paint Hazards

What Happens If Problems Surface Later

A buyer who discovers undisclosed code violations or defects after closing isn’t necessarily out of luck. If the seller knew about a material defect and failed to disclose it, the buyer can pursue claims ranging from negligent misrepresentation to fraud. Available remedies typically include the cost of repairs, a reduction in the price paid, or in serious cases rescission of the entire sale, which unwinds the transaction and returns the property to the seller.

These claims aren’t easy to win. The buyer has to prove the seller actually knew about the problem, not just that the problem existed. Statute-of-limitations windows vary by state, typically two to six years after the defect is discovered or should have been discovered. The further you get from closing, the harder it is to distinguish the seller’s prior knowledge from ordinary deterioration.

One wrinkle matters regardless of fault: the current property owner is responsible for code compliance. If a city inspector flags a violation, you can’t ask the city to go after the previous owner instead. You fix the violation, then pursue your claims against the seller separately.

Practical Bottom Line for Sellers

You don’t have to rebuild your house to modern code before you sell. What you do have to do is narrower and more specific: install the safety devices your state or local code requires at transfer, complete any point-of-sale inspection your city runs, disclose what you know (including unpermitted work and lead-paint hazards in pre-1978 homes), and either resolve or negotiate around anything a buyer’s lender will refuse to overlook. The gap between “up to current code” and “legally sellable” is often the difference between a repair bill you can’t afford and one you can.