Can you sell a house with code violations in Pennsylvania?

November 19, 2026 · York County Home Offer

Yes, you can sell a house with code violations in Pennsylvania. No state law makes you fix them first. The violations stay with the property, you have to disclose the ones you know about, and where a town inspects at resale, state law gives the buyer 12 months after closing to make the repairs or take the building down. What changes is who can buy it and what they will pay.

Call or text us at (717) 356-3019, or text a photo of the notices, and we will price the house as it sits, violations open.

We buy houses in York County and Adams County, and a stack of notices from a borough office is one of the most common reasons people call. Here is how the rules work across the state, and then how they play out in York, Hanover, and Gettysburg.

Do I have to fix code violations before I sell my house in Pennsylvania?

No. Pennsylvania does not require a seller to cure a violation before the deed changes hands. The rule that matters is the Municipal Code and Ordinance Compliance Act, which the legislature rewrote in Act 133 of 2016. It covers every town that requires a use and occupancy certificate when a house is sold. Under it, the town cannot hold up the sale over what its inspector finds. It has to issue one of three certificates:

What the inspector findsCertificate the town issuesWhat the buyer can do
No violationsUse and occupancy certificateMove in or rent it out
Violations, but the house is livable (missing handrail, peeling paint, bad gutters, no smoke detectors)Temporary use and occupancy certificateLive in it while making the repairs, with 12 months to finish
A substantial violation that makes it unfit to live in (no heat, failed sewer line, fire damage, structural failure)Temporary access certificateGo in to do the work and store materials, not live there, with 12 months to repair or demolish

The town can agree to more than 12 months but cannot give less. It also cannot make the buyer post an escrow or a bond as the price of getting the certificate. A buyer who lets the 12 months run out loses the temporary certificate, is personally on the hook for the repair or demolition cost, and faces a fine of $1,000 to $10,000. That last part is why the buyer matters so much. The clock is real, and it lands on whoever takes the deed.

What do I have to tell the buyer?

Everything you know about. Pennsylvania’s Real Estate Seller Disclosure Law treats a known code violation, an open notice, or a condemnation as a material defect, and it goes on the disclosure statement. Selling as is does not change that. As is means you are not making repairs. It does not mean you can stay quiet about the notice taped to the front door. An executor selling an estate house is excused from the form but still has to disclose the defects they know of.

Disclose early and it gets priced once. Disclose late, or not at all, and it comes back as a canceled contract or a lawsuit after closing.

Listing or a cash sale, by how bad the violations are

It depends on how bad the list is. Loans are the limit. A buyer using an FHA or VA mortgage needs the house to pass the appraiser’s minimum property standards, and a conventional lender will not fund a house that is condemned or posted unfit for habitation. So the pool of buyers shrinks as the violations get heavier.

Your situationHow it can sellWhat to expect
High grass, trash, or exterior paint noticeA listing with a financed buyer, or a cash saleCheap to cure, and it barely moves our number
Unpermitted deck, addition, or finished basementA financed sale if the permit can be closed out, a cash sale either wayThe town may want the work opened up for inspection
Lapsed rental license or failed rental inspection with a tenant in placeA sale with the tenant in place, or a cash saleThe license is issued to the owner, so the new owner applies fresh
Condemned, placarded unsafe, or utilities shut offA cash sale onlyNo mortgage will fund it. The repair or demolition clock passes to the buyer

What happens to the fines I already owe?

Fines that have been filed as a municipal lien get paid at closing out of your proceeds. The title company finds them in the search and pays the town the same way it pays off a mortgage. Daily fines that are still running in front of a district judge are yours until the day the deed transfers, which is a good reason not to sit on a citation for six months while you decide. Ask the code office for a written balance before you sign anything, and give it to the title company.

One more Pennsylvania wrinkle. Act 90 of 2010 lets a town refuse new permits to an owner with serious unresolved violations anywhere in the state, and go after that owner personally. Walking away from the house does not make the file go away.

How it works in York, Hanover, and Gettysburg

Every town runs its own office, so the first call is local.

  • City of York. Property maintenance runs through the Bureau of Permits and Inspections at 101 South George Street. Tenant occupied units are licensed and inspected under Article 1761. The full picture is in our article on York City code enforcement and selling with violations.
  • Hanover Borough. Rental units have to be registered every year under Ordinance 2371, and an owner living more than 40 miles away has to name a local agent. Penalties there run from $100 to $1,000 per offense.
  • Gettysburg. The borough licenses rentals and inspects again when a rental changes hands, so a buyer of a tenant occupied house there should expect a visit either way.

The county by county rules, with the offices to call, are on our York County page and our Adams County page.

Five steps to sell a house with open violations

  1. Get the whole file. Ask the code office for every open notice, the compliance dates, and any fines or liens. Do it in writing.
  2. Sort the list. Mark what is cheap (grass, trash, a handrail) and what is not (roof, sewer lateral, wiring, structural).
  3. Decide whether fixing pays. A weekend and a few hundred dollars can clear a short list. A long list costs less to sell as it sits, and that is the house we buy.
  4. Disclose it all.Put the notices in the buyer’s hands before the agreement is signed.
  5. Sell it for cash if it is condemned or unfit. No mortgage will fund it. We name the title company before you sign and take the deed in our company name.

What we do with a violation house

We buy it as it sits, with the notices open, and the compliance date becomes ours at closing. The repair list is priced into the written offer on day one, so it is not a reason to cut the number later. How that math works is laid out line by line in our cost guide. What a specific house nets depends on the repair list, the liens, and the street, and we can’t put that in an article. Every house is different. Call or text us at (717) 356-3019 with the notices in front of you, or text a photo of each one, and we will walk through it on the phone.

Want a written cash offer on the house?

Usually within a day, with the math shown. No obligation either way.

Get my cash offer

Prefer to talk? Call (717) 356-3019

Free written offer · No obligation · No fees, ever

Get my cash offerCall