Pennsylvania housing code violations are conditions in a rental home that fall below state and local standards for safety and sanitation, and they trigger real consequences: landlords who ignore them can be fined up to $1,000 per day, and tenants have legal tools to force repairs or get out of the lease. What actually counts as a violation, and how it gets enforced, depends partly on your municipality’s property maintenance code and partly on a statewide habitability rule that applies to every rental in the Commonwealth.
What Counts as a Violation
Every residential lease in Pennsylvania carries an implied warranty of habitability. The Pennsylvania Supreme Court established this in Pugh v. Holmes, holding that landlords must provide “facilities and services vital to the life, health, and safety of the tenant and to the use of the premises for residential purposes.”1Justia Law. Pugh v. Holmes :: 1979 :: Supreme Court of Pennsylvania Decisions The place doesn’t have to be pretty. It has to be safe and sanitary. Whether a defect crosses the line depends on how serious it is and how long it has gone unaddressed, and the existence of a documented code violation is itself evidence that the warranty has been breached.
On top of that court-made rule, each municipality adopts its own property maintenance code, most often a version of the International Property Maintenance Code, and enforces it through a local code office. That’s why the specifics shift from city to borough to township, even though the underlying framework is statewide.
The conditions inspectors cite most often fall into a handful of categories.
No Heat
When the landlord supplies heat, habitable rooms and bathrooms must reach at least 68°F during the heating season.2ICC. 2018 International Property Maintenance Code – Section 602.3 Heat Supply The exact dates of that season are set locally; in Philadelphia, it runs from October 1 through April 30.3American Legal Publishing. Philadelphia Code – Section PM-602 Heating Facilities A dead furnace in January is the classic emergency violation.
Plumbing and Water
Every unit needs hot and cold running water and a working toilet. Broken water heaters, chronic leaks, and sewage backups all qualify as serious code breaches.
Electrical Hazards
Exposed wiring, overloaded circuits, dead outlets, and missing cover plates get treated as high-priority because the risk of fire or shock is immediate.
Structural Damage and Mold
Sagging roofs, crumbling foundations, rotted joists, and broken stairs are structural violations. They often go hand in hand with moisture intrusion, which produces mold. The EPA is explicit that the lasting fix for mold is eliminating the water source, not just wiping down the visible growth.4United States Environmental Protection Agency. Mold Remediation in Schools and Commercial Buildings Guide: Chapter 1 A landlord who paints over mold without addressing the leak has not fixed the violation.
Pests
Rodent and insect infestations compromise sanitation. The Pugh court specifically named cockroach infestation among the conditions that support a habitability claim.1Justia Law. Pugh v. Holmes :: 1979 :: Supreme Court of Pennsylvania Decisions Landlords are responsible for delivering a pest-free unit at move-in and for handling infestations tied to building-wide problems.
Missing Smoke Detectors
Property maintenance codes across Pennsylvania require working smoke detectors in every bedroom and in the hallways leading to sleeping areas. The owner installs them; the tenant handles battery changes. Removing or disabling one is prohibited. Carbon monoxide detectors are required in units with fuel-burning appliances or attached garages, with placement details set by local ordinance.
Lead Paint Disclosure Failures
For housing built before 1978, federal law requires landlords to disclose known lead-based paint hazards, provide the EPA pamphlet “Protect Your Family From Lead In Your Home,” share any lead inspection records, and include a lead warning in the lease. Signed disclosures must be kept for at least three years.5US EPA. Real Estate Disclosures About Potential Lead Hazards Some Pennsylvania cities add their own rules. Philadelphia, for one, requires lead-safe or lead-free certification before a new or renewed lease.
How to Report a Violation in Pennsylvania
Before you contact code enforcement, put your evidence in order. It is the difference between a complaint that gets acted on and one that stalls.
Take dated photos and video of every defect. Keep a written log of when each problem started, when it got worse, and every conversation you had with your landlord about it. Save texts, emails, and copies of any letters you mailed. If you sent notice by certified mail, hold onto the mailing receipt and the green return card.
Notify your landlord in writing and give them a reasonable chance to fix the problem. This step is not optional under Pennsylvania law: the Pugh rule requires notice and opportunity to repair before you can invoke any remedy, and some boroughs will not even open a file on a tenant complaint unless the landlord has been notified first.
Then file with your municipal code enforcement office. Most have a complaint form asking for the property address, the type of violation, a description, when you first noticed it, and whether you notified the landlord.
What Happens After You File
The municipality schedules an inspection. How fast depends on the locality and the severity: a gas leak or no heat in winter gets priority; routine complaints can take days to a couple of weeks.
The inspector examines the reported conditions and documents what they find. If the landlord confirms violations, the property owner receives a formal notice listing the specific defects and setting a repair deadline. Emergency hazards can require correction within 24 to 48 hours. Structural repairs or major system replacements typically get 30 days or more, depending on scope and local ordinance.
The most serious outcome is a declaration that the property is unfit for human habitation. When conditions are life-threatening or so unsanitary that patching won’t make the unit safe, the code officer issues a vacate order and physically placards the building, posting a notice on the entrance that bars anyone from living in or entering it.6American Legal Publishing. Township of Susquehanna Code 5-221 – Dwellings Unfit for Human Habitation The placard stays up until the owner pulls the necessary permits, completes the repairs, and passes a follow-up inspection. Occupying a placarded building is itself a violation.7Pennsylvania General Assembly. Pennsylvania Statutes Title 53 P.S. – 14983 Uninhabitable Houses to Be Vacated If a placard forces you out, keep records of the date and any temporary housing costs; they matter if you later sue for breach of the warranty.
What It Costs the Landlord
The financial pressure is what usually moves a slow landlord. Under Pennsylvania’s Uniform Construction Code, violating any provision is a summary offense punishable by a fine of up to $1,000 plus costs, and each day the violation continues counts as a separate offense.8Pennsylvania Department of Labor and Industry. Uniform Construction Code Statute – Section 7210.903 Penalties Two weeks of foot-dragging can mean fourteen separate citations.
Municipal ordinances stack additional penalties on top. Under Pennsylvania’s Borough Code, boroughs can prescribe civil penalties of up to $600 per violation and criminal fines up to $1,000 per violation, with each day and each applicable code section treated as a separate offense, prosecuted as a summary criminal action before a Magisterial District Judge.9Pennsylvania General Assembly. Pennsylvania Code Title 8 – Section 3321 Penalties Township and city codes work the same way. The math is why most landlords comply once the notices start arriving.
Your Options If the Landlord Still Won’t Fix It
Pennsylvania gives tenants three main self-help remedies. Each has strict conditions, and misusing them can cost you the apartment.
Rent Withholding Into Escrow
Under the City Rent Withholding Act, once an agency certifies that a dwelling is unfit for habitation, a tenant who stays in the unit can withhold rent by depositing it into an escrow account at a bank or trust company approved by the local government.10Pennsylvania General Assembly. City Rent Withholding Act You cannot just stop paying, and you cannot keep the money. The funds sit in escrow while the certifying agency sends the landlord monthly statements.11Pennsylvania General Assembly. Pennsylvania Statutes Title 68 P.S. – 250.206 Statement of Escrowed Funds Despite the “City” in the name, this remedy is available anywhere a code enforcement operation can issue the required certification.
The certification is the whole ballgame. Withholding rent on your own belief that the unit is unlivable, without an official finding, leaves you open to an eviction for nonpayment.
Repair and Deduct
If the landlord ignores a habitability problem after written notice, you can hire someone to make the repair and deduct the cost from your rent. Send the landlord a letter first stating that you intend to have the work done and deduct the cost if they don’t act within a reasonable time, and include a contractor’s estimate.
The deduction cannot exceed the total rent remaining on your lease. Four months left at $800 caps you at $3,200. On a month-to-month lease, the cap is one month’s rent. Keep the contractor’s signed receipts and send the landlord a copy along with a letter explaining the deduction.
Terminating the Lease
When conditions are severe and the landlord will not or cannot fix them after notice and a reasonable opportunity, you can terminate the lease and stop paying rent going forward. You have to actually move out. Follow the move-out steps in your lease and surrender all keys. Staying in the unit after purporting to terminate can leave you on the hook for unpaid rent.
If You’re Worried About Retaliation
Pennsylvania does not have a single comprehensive statewide anti-retaliation statute, but tenants are not defenseless. Courts have recognized that a landlord cannot evict a tenant for properly exercising habitability remedies like rent withholding or repair and deduct. Some municipalities go further. Philadelphia prohibits landlords from terminating a lease, raising rent, shutting off utilities, or trying to evict in response to a code complaint or a tenant joining a tenant organization.
Documentation is your real protection. A rent increase notice that lands two weeks after your code complaint tells its own story. Keep copies of the complaint, the inspection report, and every message from the landlord that follows. If you think you’re being retaliated against, contact a regional legal aid office; Pennsylvania’s legal aid organizations handle landlord-tenant cases at no cost for qualifying tenants.
Extra Protections for Section 8 Tenants
If you rent with a Housing Choice Voucher, everything above still applies, and federal Housing Quality Standards under 24 CFR § 982.401 add another layer. HUD requires working smoke detectors, functional plumbing and electrical systems, secure doors and windows, and intact painted surfaces free of deterioration.12U.S. Department of Housing and Urban Development. Inspection Checklist – HUD-52580 The kitchen needs a working stove with oven, a refrigerator, and a sink. The bathroom needs a flush toilet, wash basin, and tub or shower.
When a unit fails inspection, the landlord gets a deadline. Miss it, and the housing authority can abate subsidy payments until the unit passes a new inspection, with no back pay for the abated months. You still owe your share of rent during abatement, but the landlord cannot demand the government’s share from you. If abatement doesn’t produce results, the housing authority can end the contract with the landlord, which ends the lease, and you’d typically get help porting your voucher elsewhere. Report HUD-standard problems to both your local housing authority and municipal code enforcement; the federal consequences often move landlords faster than local fines.