Pennsylvania law sets clear limits on what landlords can do

Pennsylvania landlords cannot enter your home without notice, lock you out without a court order, shut off utilities to force you to leave, or retaliate against you for reporting code violations. They also cannot charge you for normal wear and tear, keep your security deposit without itemizing deductions, or refuse to rent based on your race, religion, national origin, disability, or familial status. These protections exist in the Pennsylvania Residential Tenants Act and the Fair Housing Act, and knowing them helps you recognize when a landlord is breaking the law.

The rules are the same whether you rent in Philadelphia, Pittsburgh, or a rural area—state law applies statewide. Local ordinances in some cities add extra protections, but they never take away the ones the state guarantees. If a landlord violates these rules, you have options: you can withhold rent, break the lease without penalty, file a complaint with the Pennsylvania Attorney General's office, or sue for damages.

Key Takeaways

  • Landlords must give you at least 24 hours' notice before entering your home, except in emergencies like fire or gas leaks.
  • A landlord cannot lock you out, remove your belongings, or shut off heat, water, or electricity—they must go through the court system to evict you.
  • Landlords cannot retaliate against you for reporting housing code violations, requesting repairs, or asserting your legal rights.
  • Security deposits must be returned within 30 days with an itemized list of any deductions, and landlords cannot charge you for normal wear and tear.
  • Landlords cannot refuse to rent to you based on race, color, religion, national origin, sex, disability, familial status, or sexual orientation.

Entry and access to your apartment

A landlord must give you at least 24 hours' written notice before entering your home, and they can only enter for specific reasons: to make repairs, show the unit to prospective tenants or buyers, inspect the property, or handle an emergency. The notice must state the reason and the date and time of entry. A text message, email, or note on your door counts as written notice if it reaches you at least 24 hours before they arrive.

The only exception to the 24-hour rule is a true emergency—fire, gas leak, burst pipe, or when ready danger to safety. Even then, the landlord should try to notify you as soon as possible. If a landlord enters without notice, enters for a reason not on the legal list, or enters at an unreasonable time (like 6 a.m. on a Sunday), you can refuse entry, change the locks, or file a complaint. Repeated illegal entries can be grounds to break your lease without penalty.

Eviction and lockouts

A landlord cannot lock you out, remove your belongings, change the locks, or remove windows and doors to force you to leave. These are called "self-help" evictions, and they are illegal in Pennsylvania even if you owe rent. The only legal way for a landlord to remove a tenant is through the court system, which takes weeks or months.

The process starts when a landlord files a complaint in District Court and serves you with a notice. You then have the right to appear in court and defend yourself. If the judge rules in the landlord's favor, you receive a judgment and a 10-day notice to vacate. Only after that period expires can a constable physically remove you. If a landlord locks you out or removes your things before going to court, you can sue them for damages, including the cost of replacing your belongings and compensation for the illegal lockout.

Utilities and essential services

A landlord cannot shut off your heat, water, electricity, or gas to force you to move or pay rent. These are considered essential services, and cutting them off is illegal retaliation. Pennsylvania law requires landlords to maintain heat of at least 68 degrees between November 1 and March 31. If your landlord shuts off utilities, you can call the police, file a complaint with the local housing authority, or withhold rent until service is restored.

If utilities are included in your rent and the landlord fails to pay the bill, causing service to be cut off, you can pay the bill yourself and deduct the cost from your next rent payment. Keep receipts and copies of the bill as proof. Some landlords claim they shut off utilities because you did not pay rent, but this does not matter—the law does not allow it under any circumstance.

Retaliation for asserting your rights

A landlord cannot retaliate against you for reporting code violations, requesting repairs, joining a tenant organization, or asserting any legal right. Retaliation includes raising your rent, decreasing services, threatening eviction, or refusing to renew your lease. If your landlord takes any negative action within six months of you reporting a violation or requesting a repair, the law assumes it is retaliation unless the landlord can prove otherwise.

Common examples of illegal retaliation: you report mold to the health department, and two weeks later your landlord serves you with an eviction notice; you ask for the bathroom to be fixed, and your landlord raises your rent by $200; you join a tenant union, and your landlord suddenly starts charging you for utilities that were previously included. If this happens, you can file a complaint with the Pennsylvania Attorney General's office or sue your landlord for damages and attorney fees.

Security deposits and deductions

A landlord must return your security deposit within 30 days of you moving out, minus only deductions for unpaid rent, damage beyond normal wear and tear, or cleaning costs if the lease allows it. The landlord must provide an itemized list of every deduction with receipts or invoices. If they do not return the deposit or do not provide an itemized list, you can sue for three times the amount wrongfully withheld, plus attorney fees.

Normal wear and tear—scuffed walls, faded paint, worn carpet, loose doorknobs—cannot be deducted. Damage caused by you or your guests—large holes in walls, broken windows, stains from spills—can be deducted. If your landlord charges you for painting the entire apartment or replacing carpet when only part of it is damaged, that is likely illegal. Keep photos of the apartment when you move in and when you move out to document its condition.

Discrimination in housing

A landlord cannot refuse to rent to you, charge you more rent, or treat you differently based on your race, color, religion, national origin, sex, disability, familial status, or sexual orientation. This is protected under both the Fair Housing Act and Pennsylvania law. A landlord also cannot ask you questions designed to uncover these characteristics—for example, asking what country you are from, what religion you practice, or whether you have children.

If a landlord denies you housing or charges you more because of a protected characteristic, you can file a complaint with the U.S. Department of Housing and Urban Development (HUD) or the Pennsylvania Human Relations Commission. You have one year from the date of the violation to file. Document everything: save emails, text messages, notes about conversations, and the names of any witnesses. If you have a disability and need a reasonable accommodation (like a service animal or a ramp), the landlord must allow it unless it causes undue hardship.

Rent increases and lease terms

A landlord cannot raise your rent during the term of your lease without your agreement. If your lease says rent is $1,200 per month for one year, the landlord cannot raise it to $1,300 mid-year. When your lease ends, the landlord can raise the rent for the next lease term, but they must give you notice—usually 30 to 60 days, depending on local rules. Check your lease and local ordinances for the exact notice period required in your area.

A landlord also cannot change other lease terms without your agreement, such as pet policies, parking rules, or maintenance responsibilities. If the landlord tries to force you to sign a new lease with worse terms as a condition of staying, that may be illegal retaliation. If you refuse and the landlord does not renew your lease, document the timeline and file a complaint if you believe retaliation occurred.

Frequently Asked Questions

Can a landlord enter my apartment to show it to a new tenant?

Yes, but only with 24 hours' written notice and during reasonable hours. The landlord can show the unit to prospective tenants or buyers if you are moving out or if the lease allows it. You can be present during the showing. If the landlord enters repeatedly without proper notice or at unreasonable times, you can refuse entry or file a complaint.

What should I do if my landlord locks me out?

Call the police and report an illegal lockout. Contact a local legal aid organization or tenant rights group for help. You can also sue your landlord for damages, including the cost of a hotel, replacing belongings, and compensation for the illegal lockout. Keep records of all expenses and any police report filed.

Can my landlord charge me for painting or new carpet when I move out?

Only if the damage goes beyond normal wear and tear. Scuffed walls, faded paint, and worn carpet are normal wear and tear and cannot be charged to you. If the landlord charges you for these, you can dispute the deduction and sue for three times the wrongful amount plus attorney fees if you win.

What counts as retaliation?

Retaliation includes raising rent, decreasing services, threatening eviction, or refusing to renew your lease within six months of you reporting a code violation or requesting a repair. If your landlord takes negative action shortly after you assert a legal right, the law assumes it is retaliation unless the landlord proves otherwise.

Can a landlord refuse to rent to me because I have a service animal?

No. Service animals are not pets and are not subject to pet policies or fees. A landlord must allow a service animal as a reasonable accommodation under the Fair Housing Act. If the landlord refuses, you can file a complaint with HUD or the Pennsylvania Human Relations Commission.