
A lot of homeowners reach out after months of trying to figure this out alone. They’ve got a violation notice sitting on the kitchen counter, a buyer who walked, and a real estate agent who’s gone quiet. If that’s you right now, keep reading. This situation is more solvable than it looks.
What Are Code Violations on a House in Pennsylvania and How Do They Affect a Sale
A code violation is nothing more than your property not meeting the local rules about how buildings should be maintained, built, or used. It’s not a scarlet letter, and it doesn’t mean your house is worthless.
Consider a common scenario: a family inheriting a parent’s home in Upper Darby, just outside Philadelphia. The house has been sitting vacant for a year. There’s an unpermitted addition off the back of the kitchen, and the water heater hasn’t worked properly for years. Many sellers in that position assume no one will touch it. They’re usually wrong.
Code violations occur when a property fails to meet local building, housing, or municipal ordinances. In Pennsylvania, enforcement happens at the municipal level. Philadelphia, individual Bucks County townships, and other municipalities each run their own process. A violation in Cheltenham Township can look completely different from one in the City of Pittsburgh or a borough in Lancaster County. The rules aren’t uniform, and that’s part of what trips sellers up.
Common violations include unpermitted additions or outbuildings, outdated electrical panels, failing septic systems, peeling exterior paint, missing handrails, and structural issues with roofs or foundations. Some run a few hundred dollars to resolve; others can reach into the tens of thousands. Knowing which is which before you price the home matters.
A “violation” refers to any basic violation of a local code or ordinance affecting the property. A “substantial violation” is one severe enough to make the home unfit for human habitation. This distinction matters enormously when deciding how to proceed with a sale, because it determines which buyers can even finance the purchase.
Pennsylvania’s Municipal Code and Ordinance Compliance Act: What Home Sellers Need to Know
Some sellers assume that a municipality can block their sale over a minor issue like chipped paint. The law doesn’t work that way, and it hasn’t worked that way for years.
The Municipal Code and Ordinance Compliance Act (MCOCA) is a Pennsylvania law that has been amended twice since it was originally passed. The most recent amendment addressed a real problem: before that update, municipal inspectors routinely refused to issue use and occupancy permits over issues found during point-of-sale inspections, causing sales to be delayed or canceled when sellers couldn’t afford repairs before settlement.
MCOCA states clearly that a municipality may not withhold a use and occupancy certificate based on code violations found in a point-of-sale inspection. Even if the inspector finds problems, the sale is not automatically blocked.
Municipalities aren’t even required by the act to inspect homes being sold, but roughly half of the townships and boroughs in the Philadelphia suburbs do require a municipal code inspection before a home can change hands. If your property is located within one of those municipalities, the inspection is part of the process, not a threat to your closing.
When no violations are found, a Use and Occupancy Certificate is issued. When violations exist but none are serious enough to bar occupancy, the municipality issues a Temporary Use and Occupancy Permit instead. The transaction can still close with a temporary permit. Your real estate agent or a local attorney can walk you through what happens next.
Recent Changes to Pennsylvania’s MCOCA That Protect Home Sellers
The General Assembly recently approved Act 93, amending MCOCA again. The act clarified the types of permits that municipalities may issue involving multi-family, tenant-occupied properties and, significantly, made clear that municipal authorities themselves must comply with all of MCOCA’s requirements. Before Act 93, municipal authorities sometimes operated outside the law governing municipalities. That gap is now closed.

Under the law as it stands, municipalities must give homeowners 12 months to resolve any violations found during the inspection. That’s a full year. Sellers who panic and slash the price or abandon the listing often don’t realize they have that buffer built into the law.
If your home is a rental or a multi-unit property, pay close attention to the most recent update. The permit categories for those property types were clarified, and what applied before may work differently now. A local real estate attorney familiar with Pennsylvania property law is worth consulting, because rental classifications tend to have more layered compliance requirements than single-family homes.
The practical takeaway: Pennsylvania has made it progressively harder for municipalities to use code inspections as leverage against sellers.
How Code Violation Enforcement Differs Across Pennsylvania Counties
One thing most sellers don’t realize until they’re in the middle of a transaction: where your property sits in Pennsylvania changes everything about how a code violation is handled.
In Philadelphia, the Department of Licenses and Inspections runs one of the most active point-of-sale inspection programs in the state. Violations are cataloged, tracked, and tied to the property record, which means buyers and their attorneys can pull the full history before making an offer. Sellers here face the most scrutiny but also the most experienced buyer pool when it comes to navigating violations.
In Allegheny County (Pittsburgh), enforcement is fragmented across more than 130 municipalities, each with its own code officer and inspection schedule. A violation in the City of Pittsburgh goes through a different process than the same violation one mile away in Mt. Lebanon or Bethel Park. Sellers often don’t know which rules apply until they’ve already listed.
The Philadelphia suburbs (Bucks, Montgomery, Chester, and Delaware counties) are where MCOCA’s point-of-sale inspection requirements hit hardest. Roughly half of the townships in these counties require a municipal inspection before transfer. Upper Dublin, Lower Merion, and Cheltenham are among the most active. Sellers in these townships should budget extra time for the inspection cycle and be prepared for a temporary certificate rather than a full Use and Occupancy Certificate.
In central and rural Pennsylvania (Lancaster, York, Berks, and Lehigh Valley), enforcement is lighter and more inconsistent. Many smaller boroughs lack the staff to run regular point-of-sale programs. This creates an environment where violations are less likely to surface through a municipal inspection but more likely to appear during a buyer’s independent inspection. At that point, they become a negotiation issue rather than a legal one.
The practical implication for sellers: the right strategy for a property in West Chester is not the same as the right strategy for a property in rural Lancaster County. Pricing, buyer targeting, and repair decisions should all account for the local enforcement environment, not just the violation itself.
Can You Sell a House with Code Violations in Pennsylvania
Yes. Sellers who think otherwise are leaving real money on the table.
Code violations don’t freeze a sale; they change how you approach the sale. The path forward depends on the severity of the violations, your timeline, your budget, and the type of buyer you’re targeting. A lender-backed buyer using a conventional mortgage will face more friction than a cash buyer who doesn’t need an appraisal or a lender’s sign-off on the property’s condition.
Appraisals are where things get complicated with traditional buyers. If the home goes under contract with a financed buyer, the lender will order an appraisal, and that appraiser will note code issues that affect safety or habitability. The lender can then require repairs before the loan closes. This is not a legal restriction on selling; it’s a lending restriction. The practical workaround: price it honestly, or find a buyer who doesn’t need a mortgage.
According to the Pennsylvania Association of Realtors, cash transactions made up approximately 26–28% of home sales in Pennsylvania in recent years. A meaningful share of the market exists there, and for a homeowner with code violations, that buyer pool is often your primary audience. Cash home buyers in Pennsylvania don’t have a lender standing over their shoulder, so the usual friction around appraisals and underwriting conditions doesn’t apply.
Documents You Need to Sell a House with Code Violations in Pennsylvania
Once you’ve accepted that the sale is possible, the next move is getting your paperwork straight.
At minimum, you’ll want:
- The original violation notice from the municipality
- Any correspondence with the code enforcement office
- Permits for work that was properly permitted (and documentation of what was not)
- Your most recent property tax records
- Repair estimates, if you’ve had any done

Pennsylvania law requires sellers to disclose all known material defects that are not readily observable. Code violations fall squarely into that category. Skipping the disclosure to avoid uncomfortable conversations is not a strategy; it’s a liability. Undisclosed violations can come back as post-sale lawsuits, and Pennsylvania courts have not been forgiving with sellers who knew and stayed quiet.
The Pennsylvania Real Estate Seller Disclosure Law spells out what sellers must reveal. Fill out the disclosure form completely. When you note the violations, attach the actual citation paperwork, not just a verbal summary. Buyers who see organized, honest documentation are less likely to walk and more likely to negotiate in good faith.
Schedule your municipality’s required Use and Occupancy inspection at least 30 days before closing, giving the inspector time to visit and both sides time to work out repair responsibilities.
Pull your title history before you do anything else. Unpaid contractor liens or municipal fines can attach to a property and surface at closing as a surprise. Finding them early means you can address them before they kill a sale.
Should You Fix Code Violations Before Selling or Sell the House As-Is in Pennsylvania
Repair costs on a code-violation property don’t just eat into your proceeds; they often exceed what the market will reward you for fixing.
A moderate electrical upgrade in an older Allentown row house might run $8,000 to $12,000. If that repair adds $6,000 to your eventual sale price, you’ve lost money on the project. The calculation isn’t about what the finished home is worth; it’s about the net improvement to your bottom line after repair costs.
Cash investors price the violations into their offers. They’re not expecting a turnkey house. Spending to impress buyers who were already planning to gut the place anyway is a recurring mistake among sellers who go the fix-and-list route without stress-testing the numbers first.
Some repairs are worth making. Small, cheap fixes that would kill a sale on sight (a broken railing, a missing smoke detector, a failing exterior light fixture) are worth addressing. They signal upkeep to buyers and reduce the leverage a buyer has in negotiations. Big-ticket structural items like roof replacements, foundation repairs, and full electrical rewires almost never make financial sense before listing because you rarely recover the cost in a higher offer price.
Selling as-is means the property transfers in its current condition. Cash investors evaluate properties based on their potential rather than their present condition, and they often move forward after basic property assessments. It’s a real advantage when you’re dealing with violations that would scare off conventional buyers or stall a financed sale.
| Violation type | Typical repair cost | Did Blocks finance the sale? | Worth fixing before listing? |
|---|---|---|---|
| Missing handrail or smoke detector | $50–$300 | Possibly | Yes |
| Peeling exterior paint | $500–$2,500 | Possibly (FHA/VA) | Usually |
| Unpermitted addition | $2,000–$15,000+ | Sometimes | Rarely |
| Outdated electrical panel | $3,000–$10,000 | Often | Rarely |
| Failing septic system | $5,000–$25,000+ | Yes | No |
| Foundation or structural issues | $10,000–$50,000+ | Yes | No |
How to Price a House with Code Violations in Pennsylvania
Price it too high, and it sits. Let it sit long enough, and buyers start assuming something is seriously wrong, beyond the violations you’ve disclosed.
Overpriced homes with code violations enter a self-defeating spiral. Every week on the market chips away at buyer confidence. Agents use days-on-market as a signal, and buyers use it as leverage. The longer the listing runs without an offer, the more the market assumes the violation is worse than stated or that the seller is unrealistic.
Start with the after-repair value of the property, then subtract the realistic cost of the repairs, then subtract a margin that accounts for the buyer’s risk and their time. That’s your baseline. Cash buyers run this calculation on their end anyway; pricing toward it from the start saves everyone the back-and-forth.
Pull comparable sales in your immediate neighborhood, not county-wide or zip code-wide, but your actual street and the blocks around it. A three-bedroom in Norristown prices differently from a three-bedroom two miles away in North Wales, even if the square footage is identical. Hyper-local comps are the most honest mirror of your price.
Don’t lean too hard on your assessed value for property tax purposes. Pennsylvania assessments lag the market and are based on data that’s often years old, sometimes a decade behind in rural counties. Local MLS data is a more useful current benchmark than your county assessment.
Real estate agents who specialize in distressed properties are better equipped to price code-violation homes accurately than general-market agents. A generalist pricing your home against turnkey comparables without adjusting for condition will overprice it every time.
How to Negotiate Repair Credits When Selling a House with Code Violations
Repair credits and escrowed funds are often more practical than pre-sale repairs for code-violation properties. The seller avoids managing contractors under deadline pressure, and the buyer typically prefers choosing their own vendors anyway. Credits can be structured as a direct reduction to the purchase price or as escrowed funds held at settlement for specific work.

Here’s a common example: a buyer finds a $4,500 HVAC problem during inspection. Instead of demanding the seller fix it before closing, the parties structure it as a credit at settlement, with funds escrowed until the work is confirmed complete. The seller doesn’t have to manage a contractor on a tight timeline, the buyer gets the money to fix it their preferred way, and the sale closes on schedule.
Buyers who push for repairs rather than credits sometimes do it as a negotiating tactic, hoping the seller will overspend on the fix and give the buyer a nicer house without paying for the full upgrade. Pushing back with a credit offer is fair and standard in Pennsylvania transactions.
Get the repair scope in writing as part of the sales agreement or as an addendum. Vague agreements about “addressing the electrical” create disputes at closing. State what work is covered, who holds the escrowed funds, and what documentation confirms completion. Your title company or settlement agent can hold escrowed funds, which is typically the cleanest option at closing.
One important caveat: lenders sometimes won’t allow large seller credits above a certain percentage of the purchase price, depending on the loan type. If your buyer is using FHA or VA financing, ask their lender about credit limits before you agree to a number in the contract.
Pennsylvania Disclosure Requirements When Selling a House with Code Violations
Disclosure isn’t a courtesy; it’s a legal obligation in Pennsylvania, and buyers have attorneys and title companies whose entire job is finding what sellers don’t volunteer.
Sellers who hide municipal citations, thinking they won’t surface, are regularly caught during title review. A sale falling apart days before closing over an undisclosed violation is avoidable, and the cost (lost time, lost buyers, potential legal exposure) is far higher than the discomfort of upfront disclosure.
The Real Estate Seller Disclosure Act requires sellers to surface all known material defects. Buyers who discover an undisclosed violation after closing have grounds for legal action in Pennsylvania. Post-sale liability can follow a seller for years.
Honest sellers also negotiate from a stronger position than most people expect. When you hand a buyer a clear disclosure packet (the violation notice, repair estimates, and the municipal inspection report), you signal that you know exactly what the property is and have priced it accordingly. Buyers respect that. Their attorneys trust it. Sales that start with full transparency close at higher rates than sales where the buyer’s side feels like they’re pulling teeth to get information.
A Pennsylvania licensed real estate attorney can review your disclosure statement before you sign anything with a buyer. For a few hundred dollars, that review can prevent a five-figure lawsuit down the road.
Why Cash Buyers Are the Best Option for Selling a House with Code Violations in Pennsylvania
Cash buyers rarely request inspections because they factor repair costs into their initial offers. This changes the entire dynamic of the transaction. There’s no lender requiring repairs as a condition of the sale. There’s no appraiser flagging violations as a condition of financing. The offer is based on the property’s real-world condition, priced to reflect it.
Consider the difference in outcomes: a home with a failed lateral sewer line and an open permit from a decade-old bathroom addition might sit through two separate agent listings with no offers, then close with a cash buyer inside three weeks. That outcome isn’t unusual once a seller understands why. Cash buyers have already built the problem into their numbers, so there’s nothing left to renegotiate.
For properties with active code violations, We Buy Houses cash buyers and real estate investors represent a realistic path to a clean closing on a reasonable timeline. Financed buyers can and do buy properties with violations, but the process is slow, prone to falling through, and often requires multiple rounds of negotiation as lender conditions pile up.
It’s also worth noting the carrying costs of delay. Mortgage payments, taxes, insurance, and utilities during an extended listing period add up quickly. A fast, lower cash offer often nets more than a higher conventional offer that drags on for months or doesn’t close at all.
The Pennsylvania Association of Realtors noted that Pennsylvania had over 42,000 active listings in mid-2026, up roughly 9.5% year over year. More inventory means more competition for buyer attention. A home with code violations competing in a larger pool needs either a sharp price or a direct path to a buyer who won’t walk over the violations. Swift Cash House Buyer works specifically with properties in as-is condition across Pennsylvania, including homes with active violations, open permits, and title complications.
Frequently Asked Questions
Can you sell a house if it’s not up to code?
You can sell a house that isn’t up to code in Pennsylvania. The violation doesn’t legally block a sale, though it does affect your buyer pool and how the transaction is structured. Cash buyers and investors regularly purchase properties with active violations, while financed buyers may face lender restrictions that complicate the process.
What happens if you buy a house with code violations?
If you buy a home with existing code violations, ownership of those violations transfers to you at settlement. The municipality gives the new owner up to 12 months to resolve the violations found during inspection. Depending on the severity, the municipality may fine the new owner for continued non-compliance, so buyers should factor remediation costs into their offer price.
How long are you liable after selling a house in Pennsylvania?
Pennsylvania’s statute of limitations on real estate fraud and non-disclosure claims is generally two years from when the buyer discovered or reasonably should have discovered the problem. If a seller actively concealed a known defect, liability exposure grows. Full written disclosure at the time of sale is your best protection.
What is the most common building code violation?
Unpermitted work tops the list in Pennsylvania, particularly additions, basement finishes, and garage conversions done without pulling permits. Electrical issues in older housing stock are also extremely common, especially in pre-1970s homes throughout Pittsburgh, Philadelphia, and the older mill towns across the Lehigh Valley. Both types can typically be addressed with the right contractor and a willingness to bring the work into compliance.
If you have a code violation on your property and want to know your options, contact us for a straightforward conversation. No obligation, no pressure, just an honest look at what your home is worth in its current condition.
Helpful Pennsylvania Blog Articles
- HOA Foreclosure Rights in Pennsylvania
- How To Sell Your House With Mold Problems In Pennsylvania
- FSBO Costs in Pennsylvania
- Taxes When Selling an Inherited Property in Pennsylvania
- Can an Executor of a Will Sell Property in Pennsylvania?
- Selling a Condemned House in Pennsylvania
- How Much Does a Realtor Charge to Sell a House in Pennsylvania?
- How To Sell A House With A Code Violation In Pennsylvania
