Free Guide
What Is the Necessity Defense
What the necessity defense is — an affirmative defense claiming a person committed an otherwise criminal act to prevent a greater harm, where no legal alternative was available and the harm avoided outweighed the harm caused.
What the Necessity Defense Generally Is
The necessity defense is a recognized legal concept in criminal law that generally allows a person to argue that what would otherwise be an unlawful act was justified because it was necessary to prevent a greater, imminent harm — and that no reasonable lawful alternative was available at the time. It is sometimes described as a "choice of evils" defense or a "justification" defense, because the core claim is that the circumstances left no acceptable lawful path.
As a general matter, the defense does not deny that the act occurred. Instead, it asserts that the act was morally and legally justified given what was at stake. Courts in many jurisdictions have recognized the concept, though the specific contours of how it is applied — and whether it is available at all in a given case — vary considerably depending on the jurisdiction and the nature of the offense.
The necessity defense is distinct from a simple denial of guilt. It is an acknowledgment that the conduct happened combined with a claim that the circumstances made it the lesser of two evils. That distinction matters for how courts and juries are asked to evaluate it.
What Courts Generally Consider
While the precise requirements differ across jurisdictions, courts examining a necessity claim have generally looked at a cluster of related questions. These are not a fixed universal checklist — how they are framed, how many are required, and how strictly they are applied depends on where the case is being heard. That said, several themes appear commonly in how courts have described the defense.
- Imminence of the harm: Courts have generally asked whether the harm being avoided was immediate or imminent, not speculative or distant. A future harm that could have been addressed through lawful means in advance tends to weaken the claim.
- The relative magnitude of the harms: The harm caused by the defendant's conduct is typically weighed against the harm that was avoided. Courts have generally required that the harm avoided be greater than the harm caused — not merely comparable.
- Absence of a reasonable lawful alternative: A central question in many formulations is whether a lawful option existed that could have avoided the harm. If one did, necessity is generally not available, because the person was not truly forced to choose between harm and unlawful conduct.
- No culpability in creating the situation: In many jurisdictions, a person who recklessly or intentionally brought about the circumstances that made the harm imminent may be barred from invoking necessity as a result.
Understanding what an element of a legal claim means more broadly can be useful background for following how courts analyze any defense. See what is an element of a crime for that foundational concept.
How It Differs From Duress and Self-Defense
The necessity defense is related to but legally distinct from two other defenses that defendants sometimes invoke in similar contexts: duress and self-defense. The distinctions matter because courts treat them differently, and not every circumstance that might seem to qualify for one will qualify for the others.
Necessity versus duress: Necessity generally arises from the pressure of circumstances — a natural or situational emergency, for example — rather than from a threat by another person. Duress, by contrast, typically involves a person or entity threatening to cause harm unless the defendant acts in a particular way. In that sense, necessity is about the world forcing a choice; duress is about a person forcing a choice. Courts have generally kept these as separate doctrines, though the line can sometimes blur in practice. See what is duress for a fuller explanation of that defense.
Necessity versus self-defense: Self-defense generally applies to a narrower set of situations — typically the use of force to protect oneself or others from an immediate threat of physical harm by another person. Necessity is broader in the sense that it can apply to a wider range of conduct and circumstances, not just protective force. But it is also subject to its own limiting requirements that do not apply in the same way to self-defense claims. See what is self-defense for how courts approach that doctrine.
Understanding which doctrine fits a particular set of facts — and why — is one of the substantive questions a defense attorney would examine when evaluating a case.
It Is an Affirmative Defense
In many jurisdictions, the necessity defense is treated as an affirmative defense. That classification has procedural consequences. Rather than the prosecution needing to disprove the defense from the outset, the defendant typically bears the burden — at minimum — of introducing some evidence supporting the claim before it can be considered by a jury or judge.
The specific allocation of burdens varies. In some jurisdictions, once a defendant raises sufficient evidence of necessity, the prosecution must disprove it. In others, the defendant bears the burden of establishing it by some standard set by that jurisdiction's law. These procedural rules are jurisdiction-specific and can have a significant effect on how the defense plays out at trial.
What this means practically is that necessity is not a passive claim. It generally requires affirmative action — presenting evidence, making legal arguments, and in many cases satisfying a threshold showing before the defense can even be put before a factfinder. For more on the concept of affirmative defenses generally, see what is an affirmative defense.
How Availability Varies by Jurisdiction
One of the most important things to understand about this defense is that its availability is not uniform. Some jurisdictions recognize necessity broadly as a common-law or statutory defense. Others have codified it in specific, limited terms. And in some jurisdictions, it has been substantially restricted or eliminated for certain categories of offenses — particularly serious felonies or offenses where the legislature has made a judgment that no harm could justify the conduct.
Courts have also differed on whether necessity can be raised as a defense to strict liability offenses, regulatory offenses, or offenses involving specific legislative policy judgments. In those contexts, some courts have held that the defense is simply unavailable as a matter of law, regardless of the circumstances.
The type of offense charged, the jurisdiction in which the case is being prosecuted, and the specific facts of the situation all interact to determine whether necessity is even a viable theory to explore. This is one reason why understanding the charges in a particular case matters so much at the outset. See understanding your criminal charges for background on how charges are framed and what they mean.
Given this variability, general information about the necessity defense can provide conceptual grounding, but the applicability of the defense in any specific case depends on facts and law that are particular to that situation and jurisdiction.
Questions to Explore About the Necessity Defense
For anyone trying to understand how this defense concept might relate to a particular situation, some people find it useful to ask questions like the following when reviewing their circumstances or discussing them with counsel.
- Does the jurisdiction in which this case is being prosecuted recognize a necessity defense, and if so, has the legislature or case law placed any limits on which offenses it can apply to?
- What specific factors do courts in this jurisdiction generally look at when evaluating such a claim, and how strictly are those requirements applied?
- How does the necessity defense compare to duress or other justification defenses in this jurisdiction — and which, if any, might be relevant to the particular facts at issue?
- Because this defense is generally treated as an affirmative defense, what does raising it procedurally require — and what evidence would need to be presented to support it?
- Are there aspects of the situation — such as how the circumstances arose — that might affect whether this kind of claim would be available or persuasive in this case?
Related guides
How does your defense measure up?
Take the free Masked Researcher’s First Read, 10 questions, instant results, no sign-up required to start.
Take the Masked Researcher’s First ReadWant charge-specific preparation?
Whether a necessity claim fits a situation depends on the specific harm, the available alternatives, and the jurisdiction. The Case Decoder is a structured read of your case file so those details are organized.
See the Case DecoderThis guide provides legal INFORMATION, not legal ADVICE. The content draws on methods developed by elite defense attorneys. Decisions about how to use this information stay with you.