Penal Code: Structure, Classifications, and Defenses

A penal code is a jurisdiction’s written collection of criminal laws, organized into a single document that spells out what conduct is illegal and what punishments apply. Codifying these rules replaced the older common-law approach, where judges built legal standards case by case, with a system that gives everyone advance notice of the line between lawful and criminal behavior. That predictability is the point. No one should face prosecution for breaking a rule they had no way to find.

Every state publishes its own penal code, and the federal government maintains a parallel set of criminal statutes. Both work the same way at the structural level, and once you understand how a code is laid out, how it classifies offenses, and what a prosecutor has to prove, any specific statute becomes readable.

How a Penal Code Is Organized

The layout follows a simple hierarchy designed to make thousands of laws searchable. At the broadest level, most codes break into Titles that group related subjects. A Title covering crimes against the person, for example, collects every offense involving physical harm or threats to individuals under one roof.

Within each Title, Chapters narrow the focus to specific types of conduct. A Chapter on assault and battery contains the various degrees and variations of those acts. Each Chapter then breaks into individual Sections, and the Section is where the law actually lives. A Section defines exactly what behavior is prohibited and what the prosecution has to prove. This tiered structure lets attorneys, judges, and anyone with internet access pinpoint the relevant law quickly.

A legal citation works like a street address: code name, then Title or Chapter, then Section. “18 U.S.C. ยง 922” tells you to look in Title 18 of the United States Code, Section 922. Once the format clicks, finding any law takes seconds.

How Crimes Are Classified

Every offense in a penal code falls into a severity tier that determines where the case is heard, what procedures apply, and how heavy the punishment can be.

  • Felonies are the most serious category, carrying potential prison sentences exceeding one year in a state or federal facility. Aggravated assault, armed robbery, and large-scale fraud are typical examples. A felony conviction also triggers lasting consequences beyond the sentence itself. Under federal law, anyone convicted of a crime punishable by more than one year of imprisonment is barred from owning or possessing firearms or ammunition.1Office of the Law Revision Counsel. 18 USC 922 – Unlawful Acts
  • Misdemeanors are less serious offenses with maximum jail sentences of up to twelve months, typically served in a local or county facility rather than a state prison. Petty theft, simple assault, and minor drug possession often fall here.
  • Infractions, sometimes called violations, are the lowest tier and rarely carry any jail time. Traffic tickets and local ordinance violations are the most common examples. The penalty is usually a fine, and an infraction generally does not create a criminal record the way felonies and misdemeanors do.

The classification a prosecutor picks shapes everything that follows: which court hears the case, whether a jury trial is available, and the upper limit of punishment a judge can impose.

Wobbler Offenses

Some crimes don’t fit neatly into one tier. A “wobbler” is an offense that can be charged as either a felony or a misdemeanor depending on the specific facts and the defendant’s background.2Legal Information Institute. Wobbler Assault with a deadly weapon is a classic wobbler. A bar fight involving a broken bottle might be filed as a misdemeanor, while the same charge in a more violent scenario could be filed as a felony. Courts have broad discretion to downgrade a wobbler to the lower classification based on the circumstances of the offense and the defendant’s character.

Mandatory Minimums

Classification sets a baseline, but mandatory minimum laws can push a sentence well above it. These statutes require a judge to impose at least a specified prison term for certain offenses regardless of the circumstances. Federal drug trafficking statutes, for instance, set a floor of five years for offenses involving threshold quantities of controlled substances, jumping to ten years for larger amounts. Prior convictions ratchet those floors higher.3Office of the Law Revision Counsel. 21 USC 841 – Prohibited Acts A When a mandatory minimum applies, the judge cannot suspend the sentence or grant probation no matter how compelling the defendant’s story.

What the Prosecution Has to Prove

Every criminal statute is built from components the prosecution must prove beyond a reasonable doubt to win a conviction.4Legal Information Institute. Beyond a Reasonable Doubt Miss even one element and the case falls apart. That is why reading a penal code section well means identifying each element the statute requires.

The Physical Act

The first requirement is a voluntary physical act, sometimes called the actus reus. This is the conduct the statute prohibits: taking someone else’s property, striking another person, entering a building without permission. The act has to be voluntary. Reflexes, movements during a seizure, or conduct performed while genuinely unconscious don’t count. An omission, or failure to act, can also satisfy this element when the law imposes a specific duty, such as a parent who fails to feed a child or a driver who leaves the scene of an accident they caused.

The Mental State

The second element is the defendant’s state of mind at the time of the act. Criminal law recognizes a hierarchy of mental states, largely shaped by the Model Penal Code published by the American Law Institute in 1962. That framework, which influenced the criminal codes of most states, sorts culpability into four levels.

  • Purposely. The person’s conscious goal is to engage in the prohibited conduct or cause a specific result.
  • Knowingly. The person is aware that their conduct is practically certain to produce the prohibited result, even if causing that result isn’t their primary goal.
  • Recklessly. The person consciously ignores a substantial and unjustifiable risk. This is more than carelessness; it requires awareness of the danger and a decision to proceed anyway.
  • Negligently. The person fails to notice a substantial and unjustifiable risk that a reasonable person would have recognized. Unlike recklessness, the defendant doesn’t consciously perceive the danger.

These levels form a sliding scale. A statute that requires recklessness is also satisfied by proof of knowing or purposeful conduct, because those sit higher on the scale. Which mental state a statute requires directly affects how difficult the case is to prove. Murder statutes typically demand purpose or knowledge; manslaughter statutes often require only recklessness.

Causation

For crimes that require a specific harmful result, the prosecution also has to prove the defendant’s act caused that result. This breaks into two parts. First, the act must be the factual cause, meaning the harm would not have occurred without it. Second, the act must be the legal cause, meaning the result was a reasonably foreseeable consequence of the conduct rather than something remote or accidental. If an unrelated event interrupts the chain between the defendant’s action and the eventual harm, that intervening event may cut off criminal liability entirely.

Strict Liability

Not every crime requires proof of intent. Strict liability offenses hold a person criminally responsible based on the act alone, regardless of what they knew or intended.5Legal Information Institute. Strict Liability Statutory rape is the most well-known example: a defendant who genuinely believed the other person was old enough to consent still faces conviction. Drug possession offenses often work the same way. Strict liability is mostly limited to regulatory violations and offenses where the legislature decided the harm is serious enough that ignorance shouldn’t be an excuse.

Defenses the Code Recognizes

Penal codes don’t only define crimes. They also spell out the circumstances under which conduct that would otherwise be criminal is legally justified or excused. These affirmative defenses shift the burden to the defendant, who must present evidence supporting the claim.

Self-Defense

A person who uses force to protect themselves from an attempted injury can assert self-defense, but only if the response meets several requirements: the threat must be imminent, the person must reasonably believe force is necessary to avoid harm, the level of force used must be proportional to the danger, and the person claiming the defense cannot be the one who started the confrontation.6Legal Information Institute. Self-Defense Shooting someone who shoved you in a parking lot, for instance, will almost certainly fail the proportionality requirement. The rules around deadly force and whether you have a duty to retreat vary significantly by jurisdiction.

Duress and Necessity

Duress applies when someone commits a crime because another person threatened them with imminent death or serious injury, leaving no reasonable opportunity to escape the threat.7Legal Information Institute. Duress Necessity is similar but arises from circumstances rather than human threats. A person who breaks into a cabin during a blizzard to avoid freezing to death acts out of necessity. Both defenses require the defendant to show they had no reasonable alternative and that the harm they avoided was worse than the harm they caused.8Legal Information Institute. Necessity Defense

Entrapment

Entrapment arises when a government agent induces someone to commit a crime the person was not predisposed to commit.9Legal Information Institute. Entrapment An undercover officer who simply offers an opportunity to buy drugs hasn’t entrapped anyone. An officer who badgers, threatens, or repeatedly pressures a reluctant person into a transaction may have crossed the line. The defense turns on predisposition: someone with a history of drug dealing will have a much harder time claiming they were lured into it.

Insanity

Under federal law, insanity is an affirmative defense requiring the defendant to prove, by clear and convincing evidence, that a severe mental disease or defect left them unable to appreciate the nature, quality, or wrongfulness of their actions at the time of the offense.10Office of the Law Revision Counsel. 18 U.S. Code 17 – Insanity Defense The bar is deliberately high. A mental health diagnosis alone is not enough; the disease must have been so severe that the person could not understand what they were doing. State standards vary, and a few states have eliminated the defense entirely.

State Codes and Federal Criminal Law

The United States operates two overlapping criminal justice systems, and knowing which one applies to a given situation is one of the most practically important things a penal code can teach you. State codes cover the overwhelming majority of everyday criminal conduct: robbery, assault, burglary, drunk driving. States derive this authority from their general police powers, which allow them to regulate public health, safety, and welfare within their borders.

Federal criminal law is narrower. Title 18 of the United States Code is the primary federal criminal statute, covering offenses like crimes against federal officials, illegal activity on federal property, and conduct that crosses state lines.11Office of the Law Revision Counsel. 18 USC – Crimes and Criminal Procedure Other titles address specific areas; Title 21 handles drug offenses, for instance.

A single act can violate both state and federal law. Robbing a federally insured bank, for example, breaks the state robbery statute and a federal bank robbery statute simultaneously. The Fifth Amendment prohibits being tried twice for the same offense, but under the dual sovereignty doctrine, state and federal governments are separate sovereigns with separate laws.12Legal Information Institute. Fifth Amendment A violation of each sovereign’s law counts as a different offense, so both can prosecute.

Statutes of Limitations

A statute of limitations sets a deadline for prosecutors to file charges after a crime occurs. Once that clock runs out, the case is dead regardless of the evidence. For most federal crimes, the deadline is five years from the date the offense was committed.13Office of the Law Revision Counsel. 18 USC 3282 – Offenses Not Capital Individual statutes can set longer windows. Tax evasion gets six years, for example, and certain fraud offenses get ten.

Crimes punishable by death have no statute of limitations at all. An indictment for a capital offense can be filed at any time, no matter how many decades have passed.14Office of the Law Revision Counsel. 18 USC 3281 – Capital Offenses Many states apply the same no-limit rule to murder regardless of whether the death penalty is available.

The clock can also be paused, or “tolled,” under specific circumstances. Federal law allows suspension of the limitations period for a maximum of three years when the government has requested evidence from a foreign country and is awaiting a response. State codes commonly toll the clock when the defendant flees the jurisdiction or when the crime is not discovered until years later. In an old case, a defense attorney’s first move is often a motion to dismiss on limitations grounds.

How to Read a Statute Without Getting Lost

Every state publishes its penal code online through its legislature’s website, and the entire federal criminal code is available at uscode.house.gov, searchable by keyword or section number.

The single most useful habit when reading a statute is to find the definitions section first. Most Titles and Chapters open with a section that defines key terms, and those definitions often differ from everyday usage. A code’s definition of “deadly weapon” might include objects not designed as weapons at all, and its definition of “dwelling” might extend to structures no one currently lives in. Reading the definitions before reading any substantive offense section prevents the most common misreading: assuming a word in a statute means what it means in conversation.

Courts also interpret penal code language when its meaning is disputed, and the statute alone doesn’t always tell you how it will be applied. If a specific charge or situation matters to you, read the statute, then read how courts in that jurisdiction have construed it.