You can sell a house with code violations in Massachusetts. Open violations don't legally stop a sale, but they follow the property to the new owner, and many buyers' lenders won't finance a home with serious unresolved problems. Your options are to fix the violations before selling, offer a credit or lower price, or sell as-is to a cash buyer who takes on the repairs.
Key Takeaways
- Violations stay with the property, so the buyer inherits the obligation to fix them.
- Local boards of health enforce the State Sanitary Code, and building departments enforce the building code.
- Serious conditions can have short deadlines, sometimes 24 hours for the most urgent ones.
- Lenders often won't finance homes with major violations, which limits your buyer pool.
- Be upfront with buyers about open orders and known problems.
Common Code Violations in Massachusetts Homes
| Type | Enforced by | Examples |
|---|---|---|
| Housing code (State Sanitary Code) | Local board of health | No heat or hot water, pests, mold, broken windows, unsafe stairs |
| Building code | Building department | Unpermitted work, structural problems, missing permits |
| Fire safety | Local fire department | Missing or failed smoke and CO alarms |
| Zoning | Building or zoning department | Illegal units or improper use of the property |
How Massachusetts Code Enforcement and Deadlines Work
The State Sanitary Code, 105 CMR 410, sets minimum standards for housing in Massachusetts and was updated in 2023. When an inspector finds violations, the board of health orders the owner to correct them. For conditions that endanger health or safety, the order can require a good-faith effort to fix them within 24 hours. Most other violations must be corrected within 30 days.
Building code problems often show up as open or expired permits and unpermitted work. See our guide to selling a house with an open permit.
How Unpermitted Work and Open Permits Affect a Home Sale
Some of the most common problems that surface during a sale aren't violations anyone has cited. They're projects done without permits, such as a finished basement, an added bathroom, a deck, or electrical work, or permits that were pulled but never closed out with a final inspection.
Buyers' attorneys, lenders and home inspectors increasingly check the building department's permit history. If the work on site doesn't match the permits, a buyer may ask you to legalize it before closing, give a credit, or walk away. Fixing it usually means applying for a permit after the fact, opening walls so an inspector can see the work, and correcting anything that doesn't meet code.
Before you list, ask the building department for the property's permit file and compare it with what's actually in the house. Our guide on selling a house with an open permit walks through closing out old permits.
Code Violations in Rental Units and Tenant Rights
If the house has tenants, code violations carry extra weight. Massachusetts gives tenants strong tools when a landlord doesn't fix sanitary code problems.
| Tenant right | What it means |
|---|---|
| Rent withholding | Tenants may withhold rent when there are serious code violations the landlord knew about, and raise them as a defense in an eviction case. |
| Repair and deduct | In some cases tenants can make repairs themselves and deduct the cost from rent. |
| Receivership | For serious, unaddressed problems, a court can appoint a receiver to collect rent and make repairs. |
| Retaliation protection | A landlord can't evict or raise rent because a tenant reported violations. |
These issues don't stay with you after the sale. The new owner inherits the building, the tenants and the duty to fix the violations. That's why buyers price open orders carefully, and why many owners of tenant-occupied buildings with violations sell to investors who are prepared to take them on. See also our guide to selling a rental property.
Can You Sell a House With Code Violations? Your Options
| Option | How it works | Trade-off |
|---|---|---|
| Fix, then list | Correct the violations, get sign-off from the inspector, then sell normally. | Highest price, but costs money and time upfront |
| Sell with a credit | Disclose the issues and give the buyer a credit or lower price. | Many lenders still won't finance serious issues |
| Sell as-is for cash | A cash buyer takes on the violations and repairs. | Fastest, usually a lower price |
Facing violations you can't fix right now?
Get a written cash offer and let us take on the repairs.
Fix Code Violations or Sell As-Is? A Side-by-Side Example
Say a two-family has an open board of health order for no heat in one unit, missing handrails and an unpermitted bathroom. Here's how the decision often looks.
| Fix, then list | Sell as-is | |
|---|---|---|
| Upfront cost | New boiler, carpentry and permitting the bathroom: often $25,000 to $45,000 | None |
| Time | Contractor scheduling, inspections and sign-off: often 2 to 4 months | Weeks |
| Fines and tenant issues | Continue until the order is closed | Transfer to the buyer at closing |
| Buyer pool | Most buyers, including those with mortgages | Cash buyers and investors |
| Price | Highest, if the work passes inspection | Lower, reflecting the work |
If the violations are minor, fixing them first is usually worth it. If they involve heat, structure, an illegal unit or tenants who are withholding rent, selling as-is often costs less once you count time, fines and risk.
How to Sell a House With Code Violations, Step by Step
Get the paperwork
Ask the board of health and building department for copies of any open orders, citations and permits.
Price the repairs
Get contractor quotes so you know what fixing them would cost.
Ask about fines and deadlines
Find out whether fines are adding up and whether the city will work with a pending sale.
Choose how to sell
Fix, credit, or sell as-is, based on cost, time and your buyer pool.
Disclose honestly
Share open orders with buyers. Hiding them can lead to legal claims after the sale.
Close and transfer responsibility
Your attorney makes sure any unpaid fines or liens on the municipal lien certificate are handled at closing.
Common Code Violation Fixes and What They Involve
Not every violation is expensive. Some take an afternoon, while others need permits, licensed trades and several inspections.
| Violation | Typical fix | Effort |
|---|---|---|
| Missing smoke or CO alarms | Install compliant alarms and pass the fire department inspection | Low |
| Missing handrails, loose stairs | Carpentry repair | Low to moderate |
| Broken windows, pests, no hot water | Repair, extermination, water heater replacement | Moderate |
| No heat or unsafe heating | Repair or replace the system with a licensed contractor | Moderate to high |
| Structural problems, failing roof | Engineering review, permits and major work | High |
| Illegal unit | Get zoning approval or remove the unit | High, and not always possible |
Get the inspector's order in writing, then get contractor quotes for each item. Some violations must be fixed by a licensed electrician or plumber, and the work must pass inspection before the order is closed.
Do You Have to Disclose Code Violations in Massachusetts?
Massachusetts doesn't require a general seller disclosure form for most home sales, and sellers usually don't have to volunteer every defect. But you can't lie about the condition of the house or hide a problem you know about, and you must answer buyers' questions truthfully. Real estate agents have their own duty to disclose known material defects.
A few items are always required: the lead paint notification for homes built before 1978, and the Title 5 inspection report for homes on a septic system. Open violation orders are also easy for a buyer's attorney to find. In practice, disclosing them upfront protects you and can help prevent delays or a canceled sale.
Sell a House With Code Violations to Pavel Buys Houses
We buy houses with open code violations, unpermitted work and failed inspections. You don't need to make repairs or clear the orders before selling, and we handle the work after closing.
Pavel Buys Houses is a Boston-based cash home buyer. We buy houses as-is, cover standard seller closing costs and can close in as little as 10 to 14 days or on a later date you choose. And if listing with an agent would result in higher net proceeds, we'll tell you.
- Tell us about the houseShare a few details online or by phone. It takes a few minutes.
- Get a written offerWe walk through the house and send a written cash offer, with no obligation to accept.
- Choose your closing dateClose in as little as 10 to 14 days, or later if you need more time.
Pavel Buys Houses has been featured in Yahoo Finance, Realtor.com, Redfin and ABC News. See how our cash offer works.
Selling a House With Code Violations FAQs
Can you sell a house with code violations in Massachusetts?
Yes, you can sell a house with code violations in Massachusetts. Violations don't legally block a sale, but they transfer with the property and can make it hard for buyers to get a mortgage. Your options are to fix them, give a credit, or sell as-is.
Do I have to fix code violations before selling?
You don't have to fix code violations before selling a house in Massachusetts. However, open orders still carry deadlines and possible fines while you own it, and many buyers' lenders won't finance serious violations.
Do I have to disclose code violations when selling in Massachusetts?
Massachusetts has no required seller disclosure form, but you can't misrepresent known code violations or hide them from buyers. Open orders are usually public records that a buyer's attorney can find, so disclosing them upfront protects you.
What happens to fines when I sell?
Unpaid code violation fines and municipal charges can show up on the municipal lien certificate. They're typically paid from your sale proceeds at closing so the buyer gets clear title.
Will a buyer's lender approve a house with violations?
A buyer's lender often won't approve a house with code violations that affect safety or habitability. That limits you to cash buyers and investors unless the violations are fixed before closing.
How fast can I sell a house with violations?
You can sell a house with code violations in as little as 10 to 14 days to a cash buyer who takes it as-is. Fixing violations first and listing usually takes months.
Do code violations transfer to the new owner?
Yes. The order stays with the property, so the new owner becomes responsible for fixing it. Unpaid fines or charges are usually settled at closing.
Can I sell a house with an illegal apartment?
Yes, you can sell a house with an illegal apartment, but you should disclose it. Many lenders won't count or finance it as a legal unit, and buyers will price in the cost of legalizing or removing it.
Can the city put a lien on my house for fines?
Yes, unpaid municipal charges related to code enforcement can become liens on your house in Massachusetts. They show up on the municipal lien certificate and are paid from the sale proceeds at closing.
How do I find out if my house has open violations or permits?
To find out if your house has open violations or permits, ask your local board of health and building department for the property's file. Many Massachusetts towns now have permit records online.
This guide is general information, not legal, tax or financial advice. Talk to a Massachusetts attorney or tax professional about your situation.

