EnglishEspañol
Pennsylvania flag

Pennsylvania

Pennsylvania Self-Defense Laws: Stand Your Ground & Castle Doctrine (2026)

Independently fact-checked against primary sources (last audited August 17, 2026). · Reviewed by the RecordingLaw editorial team. · Law checked current as of August 17, 2026. How we verify our legal content

Pennsylvania Self-Defense Laws: Stand Your Ground & Castle Doctrine (2026)

Frequently Asked Questions

Is Pennsylvania a stand-your-ground state?

Yes, but conditionally. Pennsylvania removes the duty to retreat in public under 18 Pa.C.S. § 505(b)(2.3) only when four conditions are all met: the actor is not engaged in criminal activity, the actor is not in illegal possession of a firearm, the actor has a right to be in the location, and the attacker displays or uses a firearm, a replica firearm, or any other weapon readily or apparently capable of lethal use. If the attacker is unarmed and retreat is safely available, the duty to retreat in a public place still applies. Inside a home, residence, or place of work, there is no duty to retreat under § 505(b)(2)(ii) regardless of whether the attacker is armed, except that the workplace no-retreat rule does not apply against a co-worker at that shared workplace.

When do I have a duty to retreat in Pennsylvania?

In a public location, you have a duty to retreat before using deadly force if the attacker has not displayed or used a lethal weapon. In your dwelling, residence, or an occupied vehicle facing an unlawful forcible entry, the presumption in § 505(b)(2.1)(i) applies. At your dwelling or place of work generally, § 505(b)(2)(ii) removes the duty to retreat, except when the attacker is a co-worker at that shared workplace. The duty to retreat never applies to non-deadly force in any location.

What is the castle doctrine in Pennsylvania?

Pennsylvania's castle doctrine is in 18 Pa.C.S. § 505(b)(2.1) through (b)(2.5). Section 505(b)(2.1)(i) creates a presumption that the occupant reasonably feared death or serious injury when the attacker unlawfully and forcibly entered a dwelling, residence, or occupied vehicle, and it applies regardless of whether the attacker has a weapon, while § 505(b)(2.2) lists the exceptions that defeat it. A related but separate rule, § 505(b)(2)(ii), removes the duty to retreat from a dwelling or place of work, except when the attacker is a co-worker at that shared workplace.

Does Pennsylvania's castle doctrine cover my car?

Yes. Section 505(b)(2.1)(i) includes occupied vehicles alongside dwellings and residences in the presumption of reasonable fear provision. If someone unlawfully and by force attempts to enter your occupied vehicle, the statutory presumption that your fear of death or serious injury was reasonable applies.

Can I use deadly force to protect my property in Pennsylvania?

Not for property alone. Under 18 Pa.C.S. § 507, deadly force to protect property is only justified when there has been an unlawful entry into your dwelling and you reasonably believe less-than-deadly force is inadequate, or when someone is attempting to dispossess you of your dwelling, or when the force is necessary to prevent the commission of a felony in the dwelling. Shooting a trespasser or thief outside your dwelling, without any such circumstances, is not legally justified in Pennsylvania.

Does Pennsylvania have civil immunity for self-defense?

Yes. 42 Pa.C.S. § 8340.2, added by Act 10 of 2011, provides that an actor who uses force justified under 18 Pa.C.S. § 505, § 506, § 507, § 508, or § 509 is immune from civil liability for personal injuries sustained by the perpetrator. Subsection (b) requires a court to award an actor who prevails in a civil action brought by or on behalf of a perpetrator reasonable attorney fees, expert witness fees, court costs, and compensation for loss of income. The immunity depends on the force actually having been justified, so it is not established automatically by a criminal acquittal; a civil court can decide the justification question itself under the lower preponderance-of-the-evidence standard.

What changed in Pennsylvania self-defense law in 2011?

Act 10 of 2011 added the weapon-display stand-your-ground condition to § 505(b)(2.3), the castle-doctrine provisions in § 505(b)(2.1) through (b)(2.5), and the civil-immunity provision at 42 Pa.C.S. § 8340.2. Before 2011, Pennsylvania imposed a general duty to retreat before using deadly force in public, and the castle-doctrine presumption did not exist. The 2011 act did not eliminate the duty to retreat entirely; it created the conditional SYG rule tied to the attacker's weapon display.

Updates

Corrected the civil-immunity section to reflect 42 Pa.C.S. § 8340.2, which grants immunity from civil liability and mandatory fee-shifting for justified force, fixed the castle-doctrine presumption citation to 18 Pa.C.S. § 505(b)(2.1)(i), and replaced the paraphrased "dwelling" and "residence" definitions with the actual text of 18 Pa.C.S. § 501.

Independently fact-checked against the cited primary sources; governing law re-checked for recent changes

Corrected the workplace no-duty-to-retreat rule's statutory attribution from § 505(b)(2.1) (a dwelling/residence/occupied-vehicle presumption) to the actual source, § 505(b)(2)(ii), and added its omitted co-worker carve-out (no protection against an attack by a co-worker at the shared workplace), fixed throughout the article, KeyTakeaways, and FAQ.

Corrected two remaining sentences that placed the workplace under the castle-doctrine presumption; workplace coverage comes from the separate no-retreat rule in 18 Pa.C.S. 505(b)(2)(ii).

Governing law re-checked for recent changes

Reviewed and approved by an editor

Sources and References

  1. 18 Pa.C.S. § 505 (Use of force in self-protection), as amended by Act 10 of 2011(palegis.us)
  2. 18 Pa.C.S. § 507 (Use of force for the protection of property)(palegis.us)
  3. Pennsylvania HB 40 (2011), Act 10 of 2011 (amending Titles 18 and 42, signed June 28, 2011)(palegis.us)
  4. NCSL, Self-Defense and Stand Your Ground (2024)(ncsl.org)
  5. Cornell LII, Overview of self-defense law(law.cornell.edu)
  6. 42 Pa.C.S. § 8340.2 (Civil immunity for use of force), added by Act 10 of 2011(palegis.us)
  7. 18 Pa.C.S. § 501 (Definitions), defining "dwelling" and "residence"(palegis.us)
  8. 18 Pa.C.S. § 506 (Use of force for the protection of other persons)(palegis.us)
Share: