Yes. California’s castle doctrine is Penal Code 198.5. If someone unlawfully and forcibly enters your home, and you use deadly force against them inside it, the law presumes you reasonably feared for your life or safety. The presumption isn’t immunity, and it doesn’t reach your porch, yard or driveway.
Example: At 2 a.m., Maria hears glass break and finds a stranger climbing through her kitchen window in San Diego. She shoots him. Because he was forcibly entering her home and isn’t part of her household, California law presumes she reasonably feared death or serious injury. To convict her, the prosecutor would have to prove she didn’t.
In this post, our California self-defense lawyers answer 5 common questions about the castle doctrine:
- 1. What does California’s castle doctrine do?
- 2. When does it apply, and when doesn’t it?
- 3. Can you shoot a trespasser or someone in your yard?
- 4. Do you have to retreat outside your home?
- 5. Castle doctrine vs. stand your ground
- 6. FAQ
1. What does California’s castle doctrine do?
In California, the castle doctrine is a legal presumption written into Penal Code 198.5. It doesn’t give you a separate right to use force. Instead, it helps you prove self-defense when you use deadly force against an intruder in your own home. The law reads:
“Any person using force intended or likely to cause death or great bodily injury within his or her residence shall be presumed to have held a reasonable fear of imminent peril of death or great bodily injury to self, family, or a member of the household when that force is used against another person, not a member of the family or household, who unlawfully and forcibly enters or has unlawfully and forcibly entered the residence and the person using the force knew or had reason to believe that an unlawful and forcible entry occurred.”1
In plain terms: if the law’s conditions are met, the jury starts from the assumption that you were reasonably afraid of being killed or seriously hurt. “Great bodily injury” means a significant or substantial physical injury, more than moderate harm.
Who has to prove what?
The presumption shifts the burden. In a California criminal case, the prosecution must overcome it by proving you did not have a reasonable fear of imminent death or injury.2 If it can’t, the jury must find that your fear was reasonable.
The idea behind the law is simple: California courts have described the purpose as recognizing that “the very act of forcible entry entails a threat to the life and limb of the homeowner.”3
It’s a presumption, not immunity
The castle doctrine doesn’t stop the police from investigating or the district attorney from filing charges, such as murder or assault with a deadly weapon. The presumption can also be rebutted, for example with evidence that the intruder had already given up or was fleeing. It mostly matters at trial, when the jury decides whether you acted in lawful self-defense.
In our experience, the first police investigation after a home-defense shooting often decides whether charges are filed at all. That’s why it’s wise to speak with a criminal defense lawyer before giving a detailed statement.
Even when a killing doesn’t fit Penal Code 198.5, it can still be a justifiable homicide under California’s general self-defense rules.4
2. When does it apply, and when doesn’t it?
California’s castle doctrine presumption applies only when all 4 of these conditions are met:5
- Unlawful, forcible entry: someone unlawfully and forcibly entered, or was in the process of entering, your home.
- You knew it: you knew, or had reason to believe, that an unlawful and forcible entry happened.
- Not family or household: the intruder isn’t a member of your family or household.
- Force inside the home: you used force likely to cause death or great bodily injury against the intruder inside your residence.

The limits of the castle doctrine
California’s castle doctrine has clear limits:
- Inside the home only. The presumption doesn’t cover a front porch, yard, driveway or sidewalk.
- Someone outside trying to get in isn’t enough. Penal Code 198.5 requires an entry, or an entry in progress. If someone violently tries to break into your home to hurt the people inside, you may still be able to use deadly force under Penal Code 197, but without the presumption.6
- Family and household members are excluded. The presumption doesn’t apply to force used against a roommate, spouse or relative who lives with you.
- The danger must still be present. Once an intruder has fled or can no longer hurt anyone, fear of future harm doesn’t justify deadly force.7
The porch case
In People v. Brown (1992), a Sacramento homeowner argued with a bricklayer he had just fired. The bricklayer stepped onto the homeowner’s unenclosed front porch with a raised hammer, and the homeowner shot him in the leg from his doorway. A California appeals court held that the castle doctrine instruction didn’t apply, because entering an open front porch isn’t entering a residence.8

Renters, guests and apartments
You don’t have to own the home. In People v. Grays (2016), a man had lived in an apartment for 4 or 5 months, paid rent and had a key, but wasn’t legally subletting it. A California appeals court held that a jury could find the apartment was his “residence” under Penal Code 198.5, because he could have had a reasonable expectation of protection from intruders there.9
3. Can you shoot a trespasser or someone in your yard?
Generally no. In California, you can’t use or threaten deadly force just to protect property. In People v. Chen (2020), a California appeals court said deadly force is presumptively acceptable in a home invasion covered by Penal Code 198.5, “But it is never acceptable to use or threaten deadly force solely to defend property.”10
Example: Ana sees a stranger walking off with a bicycle from her front yard in Los Angeles and fires a shot toward him. He never threatened her or tried to get into the house. The castle doctrine doesn’t apply outside the home, and deadly force to protect property isn’t allowed, so Ana could face charges.
Pointing a gun at a trespasser can also lead to a brandishing charge under Penal Code 417. Different rules apply if the trespasser threatens you or someone else with violence: then ordinary self-defense rules decide what force was reasonable.
4. Do you have to retreat outside your home?
No. California has no duty to retreat, inside or outside your home. You may stand your ground and, if reasonably necessary, pursue an attacker until the danger has passed.11
Outside the home, there’s no presumption, so the usual California self-defense test applies. Deadly force is justified only if you reasonably believed you were in imminent danger of being killed or seriously injured, reasonably believed deadly force was immediately necessary, and used no more force than reasonably necessary.12 “Imminent” means immediate and present, not something that might happen later.13
One exception: if you started the fight or agreed to fight, you must try in good faith to stop fighting before you can claim self-defense.14
5. Castle doctrine vs. stand your ground
The castle doctrine is a presumption that helps you only inside your home. “Stand your ground” is the broader California rule that you don’t have to retreat before defending yourself anywhere. For a side-by-side comparison, see our post on the castle doctrine vs. stand your ground, or read whether California is a stand your ground state.
6. FAQ
Does California’s castle doctrine apply to renters and apartments?
Yes. California’s castle doctrine (Penal Code 198.5) protects people in their residence, owned or rented. Courts ask whether you had a reasonable expectation of protection from intruders there, not who holds the lease.
Does the castle doctrine cover my porch, yard or driveway?
No. In California, the castle doctrine presumption applies only to force used inside your home. An unenclosed front porch isn’t part of the residence, though ordinary self-defense rules can still apply.
Can I shoot an intruder who is running away in California?
Usually not. California self-defense requires an imminent danger. Once an intruder has fled and the danger has passed, fear of future harm doesn’t justify deadly force.
Call us for help…
If you’re under investigation or charged after defending yourself or your home, our California criminal defense lawyers can review what happened and how the castle doctrine and self-defense laws apply. Contact us for a free consultation.
Legal references:
- California Penal Code 198.5 PC: “Any person using force intended or likely to cause death or great bodily injury within his or her residence shall be presumed to have held a reasonable fear of imminent peril of death or great bodily injury to self, family, or a member of the household when that force is used against another person, not a member of the family or household, who unlawfully and forcibly enters or has unlawfully and forcibly entered the residence and the person using the force knew or had reason to believe that an unlawful and forcible entry occurred. As used in this section, great bodily injury means a significant or substantial physical injury.” (Full text as of November 2026.)
- CALCRIM No. 3477 (2026 edition): “The People have the burden of overcoming this presumption. This means that the People must prove that the defendant did not have a reasonable fear of imminent death or injury…”
- People v. Brown (1992) 6 Cal.App.4th 1489, 1496–1497, quoting People v. Owen (1991) 226 Cal.App.3d 996, 1005: the presumption reflects the view “that the very act of forcible entry entails a threat to the life and limb of the homeowner.”
- California Penal Code 197(2) PC: homicide is justifiable “When committed in defense of habitation, property, or person, against one who manifestly intends or endeavors, by violence or surprise, to commit a felony, or against one who manifestly intends and endeavors, in a violent, riotous, or tumultuous manner, to enter the habitation of another for the purpose of offering violence to any person therein.”
- CALCRIM No. 3477 (see note 2 above): “An intruder unlawfully and forcibly (entered/[ or] was entering) the defendant’s home”; and “Great bodily injury means significant or substantial physical injury. It is an injury that is greater than moderate harm.”
- California Penal Code 197(2) PC (see note 4 above); CALCRIM No. 506 (2026 edition): the defendant reasonably believed he or she was defending a home against someone who “violently[[,] [or] riotously[,]/ [or] tumultuously] tried to enter that home intending to commit an act of violence against someone inside.”
- CALCRIM No. 505 (2026 edition): the defendant must have reasonably believed he or she “was in imminent danger of being killed or suffering great bodily injury,” reasonably believed “the immediate use of deadly force was necessary,” and “used no more force than was reasonably necessary to defend against that danger.” Also: “Belief in future harm is not sufficient, no matter how great or how likely the harm is believed to be.”
- People v. Brown, 6 Cal.App.4th at pp. 1498–1499 (see note 3 above): “entry onto such a porch does not constitute entry into a residence for section 198.5 purposes.”
- People v. Grays (2016) 246 Cal.App.4th 679, 687–688: the jury “could reasonably have found he had a reasonable expectation of protection against unwanted intruders in unit 930.”
- People v. Chen (2020) 50 Cal.App.5th 952, 960: “Using or threatening deadly force is presumptively acceptable in a home invasion situation covered by section 198.5… But it is never acceptable to use or threaten deadly force solely to defend property.”
- CALCRIM No. 3470 (2026 edition): “A defendant is not required to retreat. He or she is entitled to stand his or her ground and defend himself or herself and, if reasonably necessary, to pursue an assailant until the danger of (death/bodily injury/<insert crime>) has passed. This is so even if safety could have been achieved by retreating.”
- CALCRIM No. 505 (see note 7 above).
- People v. Lopez (2011) 199 Cal.App.4th 1297, 1303–1306 (upholding an instruction that “the danger must appear to the defendant as immediate and present and not prospective or even in the near future”).
- California Penal Code 197(3) PC (see note 4 above): a person who “was the assailant or engaged in mutual combat, must really and in good faith have endeavored to decline any further struggle” before using deadly force.