1. Home
  2. Blog
  3. Selling With Code Violations

How to Sell a House With Code Violations in Massachusetts

Pavel Khaykin, founder of Pavel Buys HousesBy Pavel Khaykin, Founder of Pavel Buys Houses · Updated December 2026 · 9 min read

SOLD AS-IS NOTICE

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

TypeEnforced byExamples
Housing code (State Sanitary Code)Local board of healthNo heat or hot water, pests, mold, broken windows, unsafe stairs
Building codeBuilding departmentUnpermitted work, structural problems, missing permits
Fire safetyLocal fire departmentMissing or failed smoke and CO alarms
ZoningBuilding or zoning departmentIllegal 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 rightWhat it means
Rent withholdingTenants 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 deductIn some cases tenants can make repairs themselves and deduct the cost from rent.
ReceivershipFor serious, unaddressed problems, a court can appoint a receiver to collect rent and make repairs.
Retaliation protectionA 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

OptionHow it worksTrade-off
Fix, then listCorrect the violations, get sign-off from the inspector, then sell normally.Highest price, but costs money and time upfront
Sell with a creditDisclose the issues and give the buyer a credit or lower price.Many lenders still won't finance serious issues
Sell as-is for cashA 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.

Get My Cash Offer

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 listSell as-is
Upfront costNew boiler, carpentry and permitting the bathroom: often $25,000 to $45,000None
TimeContractor scheduling, inspections and sign-off: often 2 to 4 monthsWeeks
Fines and tenant issuesContinue until the order is closedTransfer to the buyer at closing
Buyer poolMost buyers, including those with mortgagesCash buyers and investors
PriceHighest, if the work passes inspectionLower, 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

  1. Get the paperwork

    Ask the board of health and building department for copies of any open orders, citations and permits.

  2. Price the repairs

    Get contractor quotes so you know what fixing them would cost.

  3. Ask about fines and deadlines

    Find out whether fines are adding up and whether the city will work with a pending sale.

  4. Choose how to sell

    Fix, credit, or sell as-is, based on cost, time and your buyer pool.

  5. Disclose honestly

    Share open orders with buyers. Hiding them can lead to legal claims after the sale.

  6. 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.

ViolationTypical fixEffort
Missing smoke or CO alarmsInstall compliant alarms and pass the fire department inspectionLow
Missing handrails, loose stairsCarpentry repairLow to moderate
Broken windows, pests, no hot waterRepair, extermination, water heater replacementModerate
No heat or unsafe heatingRepair or replace the system with a licensed contractorModerate to high
Structural problems, failing roofEngineering review, permits and major workHigh
Illegal unitGet zoning approval or remove the unitHigh, 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.

  1. Tell us about the houseShare a few details online or by phone. It takes a few minutes.
  2. Get a written offerWe walk through the house and send a written cash offer, with no obligation to accept.
  3. Choose your closing dateClose in as little as 10 to 14 days, or later if you need more time.
Get My Cash Offeror call (617) 857-2857

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.

Get your cash offer today

Get a Written Cash Offer for Your Massachusetts House

Dealing with code violations? Pavel Buys Houses buys houses across Massachusetts in any condition, with a written offer, no commissions and standard closing costs covered. Fill out the short form to request your free offer, or call (617) 857-2857 to discuss your options. There's no pressure and no obligation.

Get Your Free Cash Offer

Request an offer with no obligation to accept.

"*" indicates required fields

This field is for validation purposes and should be left unchanged.
Property Address*
By clicking Get My Cash Offer, you agree to receive calls and texts, including by autodialer, prerecorded messages, and artificial voice, and email from Pavel Buys Houses or one of its partners but not as a condition of any purchase, and you agree to the Terms & Conditions and Privacy Policy. Message frequency varies, also message and data rates may apply. Reply 'STOP' to opt out and 'HELP' for help.
Learn more

Helpful Resources for Massachusetts Homeowners

Some homeowners contact us because their house needs repairs. Others are settling an estate, managing a rental, or facing a deadline. Whatever brought you here, these guides can help you weigh your options.