What Is a Criminal Code? Structure, Classification, and Proof

A criminal code is the written body of law that defines which acts count as crimes, specifies the mental state required to be convicted of each, and sets the punishments a court can impose. In the United States, every state has its own criminal code, and the federal government has one of its own, located mostly in Title 18 of the United States Code. If a given act is not prohibited somewhere in the applicable code, the government cannot punish you for doing it.

What a Criminal Code Does

The central job of a criminal code is drawing the line between behavior the law tolerates and behavior it treats as criminal. For each offense, the code spells out the conduct involved and the mental state a person must have to be convicted. Putting all of this in writing in advance reflects a principle lawyers call legality, sometimes stated in the Latin phrase nullum crimen sine lege: no crime without law. That principle has a practical effect. The state cannot invent a new offense after the fact and apply it to something you have already done.

Published penalties also give people a reason to think twice. Punishments in federal and state codes typically take the form of imprisonment, fines, probation, or some combination. A federal felony conviction, for example, can carry a fine of up to $250,000 for an individual.1Office of the Law Revision Counsel. 18 USC 3571 – Sentence of Fine

A code also pushes toward consistency. Because each offense carries a defined range of penalties, two people convicted of the same crime under similar circumstances should receive broadly similar sentences, rather than whatever a given judge happens to think is fair.

How a Criminal Code Is Organized

Most criminal codes have two main parts. The first, usually called the General Provisions, contains the rules that apply across every offense: definitions of key terms, the standards for criminal intent, jurisdictional rules, and recognized defenses such as self-defense, duress, and insanity. These provisions function as the shared foundation that every specific crime is read against.

The second and larger part lists the Specific Offenses — homicide, theft, assault, fraud, drug crimes, and so on — and defines each one. A specific offense is never read in isolation. The general provisions supply the universal rules for intent, defenses, and whether a failure to act can count as criminal conduct, so the code does not have to repeat those concepts inside every statute.

Defenses in the general provisions typically fall into two groups. Justification defenses apply when the conduct was not wrongful under the circumstances; self-defense is the standard example. Excuse defenses accept that the conduct was wrongful but treat the defendant as not blameworthy, as with duress or insanity.

The Model Penal Code’s Influence

Much of the structural similarity across American criminal codes traces back to the Model Penal Code, drafted by the American Law Institute in 1962. The MPC was never enacted as law on its own. It served as a template for state legislatures rewriting their statutes, and in the two decades after its release more than two-thirds of states used it as a blueprint. Its influence is why so many states define culpability using the same four mental states and organize their general provisions in a similar way.

How Offenses Are Classified

Codes group offenses into severity tiers so that punishment scales with the seriousness of the crime. The broadest split is between felonies (serious crimes with potential prison time over one year), misdemeanors (lesser offenses with shorter sentences), and infractions (minor violations typically punished by a fine).

The federal system breaks these categories into letter grades. Under 18 U.S.C. § 3559, any offense not already labeled by its defining statute is classified based on the maximum prison sentence it authorizes:2Office of the Law Revision Counsel. 18 USC 3559 – Sentencing Classification of Offenses

  • Class A felony: life imprisonment or death
  • Class B felony: 25 years or more
  • Class C felony: 10 to less than 25 years
  • Class D felony: 5 to less than 10 years
  • Class E felony: more than 1 year but less than 5 years
  • Class A misdemeanor: more than 6 months up to 1 year
  • Class B misdemeanor: more than 30 days up to 6 months
  • Class C misdemeanor: more than 5 days up to 30 days
  • Infraction: 5 days or less, or no imprisonment authorized

Fines track the same ladder. An individual convicted of a federal felony faces a maximum fine of $250,000, a Class A misdemeanor tops out at $100,000, and lesser misdemeanors cap at $5,000.1Office of the Law Revision Counsel. 18 USC 3571 – Sentence of Fine State codes use their own classification systems, but the architecture is similar: a graded ladder of offenses, each tied to a defined penalty range.

What the Prosecution Has to Prove

Every offense in a criminal code is built from elements, and the prosecution has to prove each one beyond a reasonable doubt. Miss a single element and the conviction fails. The elements almost always include a physical act and a mental state.

The Act

The physical component, known in legal shorthand as actus reus, is the action the defendant took. In some cases it can be a failure to act, but only where the law imposed a duty to act in the first place. A stranger walking past a drowning swimmer has no general legal duty to help; a lifeguard on duty does. The act must also be voluntary. Reflexive movements and conduct during unconsciousness generally do not qualify.

The Mental State

The mental component, mens rea, is where codes get precise. The Model Penal Code set out four levels of culpability that most states have adopted in some form:

  • Purposely: it was the defendant’s conscious goal to engage in the conduct or cause the result.
  • Knowingly: the defendant was aware the conduct was of a prohibited nature, or practically certain it would cause the result.
  • Recklessly: the defendant consciously disregarded a substantial and unjustifiable risk.
  • Negligently: the defendant should have been aware of a substantial and unjustifiable risk but failed to perceive it.

The gap between recklessness and negligence is one of the most consequential lines in criminal law. A reckless person sees the risk and ignores it. A negligent person fails to notice a risk a reasonable person would have caught. That distinction can decide whether a case is charged as a serious felony or a much lesser offense.

Strict Liability Offenses

Not every crime requires proof of a mental state. Strict liability offenses hold a defendant responsible regardless of what they knew or intended. Statutory rape is the best-known example: a defendant can be convicted even if they genuinely believed the other person was old enough to consent. Many possession offenses work the same way. These are the exception, and outside of statutory rape they tend to carry lighter penalties than crimes that require a traditional mental state.

Crimes That Punish Conduct Short of Harm

A criminal code does not wait for harm to occur before imposing liability. Inchoate offenses, sometimes called incomplete crimes, punish conduct heading toward a crime even when the intended crime never happens. There are three main ones.

Attempt means taking a substantial step toward committing a crime and failing to finish it. Planning alone is not enough; the defendant has to move past preparation into action that clearly shows criminal purpose. Conspiracy requires an agreement between two or more people to commit a crime, usually paired with at least one overt act in furtherance of the plan. Solicitation involves asking, encouraging, or commanding another person to commit a crime, whether or not that person agrees or follows through.

Inchoate offenses generally merge into the completed crime. If you attempt a robbery and actually pull it off, you face robbery charges, not both robbery and attempted robbery. Conspiracy is the exception. A defendant can be convicted of both the conspiracy and the target crime that was ultimately committed.

Federal and State Codes Are Separate

The United States runs on a dual sovereignty system. The federal government and each state government maintain their own criminal codes and their own court systems. The two overlap in places, but their focus is different.

State codes handle the vast majority of criminal prosecutions. Assault, robbery, murder, burglary, and ordinary drug possession are overwhelmingly state matters. The federal criminal code, found mainly in Title 18, targets offenses that involve national interests, cross state lines, or occur on federal property. Federal prosecutions tend to involve large-scale drug trafficking, financial fraud, cybercrimes, and offenses against federal institutions or employees.

Federal sentencing also works differently from most state systems. Congress eliminated federal parole through the Sentencing Reform Act of 1984, so federal inmates serve nearly all of their imposed sentence. Many federal offenses also carry mandatory minimums that take sentencing discretion away from the judge below a statutory floor. Combined, those two features mean a federal conviction, especially for drug trafficking, often results in significantly longer actual time served than a comparable state conviction.

A Code Is Not the Same as Criminal Procedure

The criminal code is substantive law: it tells you what is illegal and what the punishment can be. Criminal procedure is a separate body of rules that governs how the system enforces that substantive law. Procedure covers when police can obtain a search warrant, how an arrest has to be made, what evidence is admissible at trial, how a jury is selected, and what rights a defendant has on appeal.

A case can fail on either side. The government might prove every element the code defines and still lose because the evidence was obtained through an illegal search. On the other end, a flawless investigation cannot save a prosecution if the charged conduct does not actually fit every element of the offense. The code protects society by defining prohibited behavior; procedure protects the individual by constraining how the government can investigate, charge, and try a case.