Can a Landlord Change the Locks Without Consent in Pennsylvania?

If you rent a home or apartment in Pennsylvania, you may wonder if your landlord can legally change your locks without your permission. Understanding your rights as a tenant regarding lock changes is essential for your protection and peace of mind. This article explains what Pennsylvania law says, what to do if your landlord changes your locks, and where to find official support and forms.

When Can a Landlord Change the Locks in Pennsylvania?

Under Pennsylvania landlord-tenant law, a landlord generally cannot change the locks on a rental property without the tenant's knowledge and consent while the tenant still has a legal right to occupy the unit. Changing the locks while the tenant is still entitled to live there is often called a "lockout." This practice is not allowed except in very limited circumstances, such as emergencies or by court order through a legal eviction process.

What Is an Illegal Lockout?

An illegal lockout happens when a landlord removes, changes, or disables locks to prevent a tenant from accessing their rental unit without following the legal eviction process. This is considered "self-help eviction," which is prohibited in Pennsylvania.[1]

  • Landlords must give proper notice and obtain a court order to evict a tenant.
  • Changing locks to force a tenant out (for nonpayment or any other dispute) is never permitted without a court’s approval.
  • Even if the lease has ended, the landlord cannot physically bar you from the property without court process.

Lawful Reasons for Changing Locks

  • Emergency Situations: For example, if locks must be changed immediately for safety (such as after a break-in), the landlord should notify the tenant as soon as possible and provide new keys.
  • Eviction by Court Order: Only a county sheriff or authorized officer may change locks after a court grants an eviction judgment and issues a writ of possession.

If the landlord needs to change locks for another lawful reason (such as routine maintenance or after a roommate moves out), they must communicate with the tenant and provide access promptly.

Ad

Your Rights if Locked Out by Your Landlord

If you are locked out without a court eviction or emergency, know that you have the right to regain access and may take legal action against the landlord. Self-help evictions are not just unlawful — they can expose landlords to liability, including claims for damages and potential penalties. Rental laws protect your right to "quiet enjoyment" and access to your home.

If you experience an illegal lockout, contact your local county court, legal aid, or tenant hotline immediately. Document each interaction and keep records of communication with your landlord.

How to File a Complaint or Get Legal Assistance

  • File a Landlord-Tenant Complaint: Most counties in Pennsylvania handle eviction and lockout disputes through the Magisterial District Court. Visit your local court to fill out the "Landlord/Tenant Complaint" form (Form AOPC 310A).
    • Form Name: Landlord/Tenant Complaint (AOPC 310A)
    • Use: To initiate a legal case to address an illegal lockout or other landlord-tenant dispute.
    • Link: Official Landlord/Tenant Complaint Form
    • Example: If your landlord has changed the locks and will not provide you a new key, you can use this form to ask the court to grant your right to return, and possibly for compensation.
  • Emergency Petition for Possession: In urgent cases, you can petition the court to immediately restore access to your unit pending a hearing.

What Should Tenants Do if Locks Are Changed Without Consent?

  1. Document the lockout: Take photos, note the date and time, and save any communications.
  2. Contact your landlord to request access, preferably in writing (email or text).
  3. If access is not restored immediately, reach out to local law enforcement (call the non-emergency number) or your county's Magisterial District Court.
  4. File a Landlord/Tenant Complaint form to request a hearing.
  5. Consult a legal aid organization if you need help with the process.

Always keep a record of all communications and steps taken for your own protection.

Relevant Pennsylvania Legislation and Tribunals

The primary regulation that governs landlord-tenant relationships in Pennsylvania is known as the Landlord and Tenant Act of 1951.[1] It protects renters and outlines both parties’ rights during a tenancy and eviction.

Frequently Asked Questions (FAQ)

  1. Can my landlord change the locks without telling me in Pennsylvania?
    No, landlords cannot change the locks without notifying you and obtaining a court order, except in case of emergencies or license-approved reasons.
  2. What if my landlord says it's because I didn’t pay rent?
    Even for nonpayment of rent, a landlord must go through the legal eviction process and may not lock you out or change locks without a court’s approval.
  3. Is it illegal for a landlord to refuse me entry to my unit?
    Yes, unless there is a court eviction order or true emergency, tenants have the right to access their unit at all times during an active lease period.
  4. How can I prove an illegal lockout happened?
    Take photos, keep written communications, gather witness statements, and file a complaint using the official Landlord/Tenant Complaint form with your county court.
  5. Where can I get help if I am locked out?
    Contact your local Magisterial District Court, tenant advocacy groups, or Pennsylvania Legal Aid for support and next steps.

Key Takeaways for Pennsylvania Renters

  • Landlords cannot change locks or lock you out without your consent and court approval.
  • If locked out, you can file a complaint and seek legal restoration of access.
  • Always keep records and know your rights for a safe and legal housing experience.

In summary, Pennsylvania law strongly protects renters from unauthorized lock changes or illegal lockouts. If you face a lockout, you have several legal avenues for immediate help.

Need Help? Resources for Renters


  1. See: Landlord and Tenant Act of 1951, 68 P.S. §250.501 et seq.; prohibits self-help eviction and mandates court-supervised process.
Bob Jones
Bob Jones

Editor & Researcher, Tenant Rights USA

Bob writes and reviews tenant law content for various regions. They’re passionate about housing justice and simplifying legal protections for renters everywhere.