Figuring out whether something is illegal in the United States comes down to two questions: whose rules apply where you are, and what kind of trouble you’d be in if you broke them. Federal statutes, state criminal codes, city ordinances, and agency regulations each define their own prohibited conduct, and the same behavior can be perfectly legal in one place and a felony a few miles away. The answer also depends on whether you’re worried about criminal prosecution, a civil lawsuit, or a regulatory penalty, because those are three separate systems that can run at the same time over the same act.
Criminal Trouble and Civil Trouble Are Not the Same Thing
Most people use “illegal” to mean “I could go to jail for this,” but prohibited conduct splits into two tracks that operate independently.
Criminal law covers offenses the government treats as wrongs against society. A prosecutor brings the case, and the state has to prove guilt beyond a reasonable doubt, the highest standard in the court system. A conviction can mean jail, prison, fines paid to the government, probation, or community service.1Legal Information Institute. Burden of Proof
Civil law handles disputes between people or organizations. If someone’s conduct injures you or costs you money, you can sue. The standard of proof drops to a preponderance of the evidence, which means more likely than not. Nobody goes to jail over a civil case, but a court can order the defendant to pay damages, return property, or stop doing something.1Legal Information Institute. Burden of Proof
The same act can trigger both tracks at once. An assault can lead to a criminal prosecution by the state and a separate civil lawsuit by the victim for medical bills and lost wages. A criminal acquittal doesn’t block the civil case, because the lower civil proof standard can be satisfied even when the criminal one isn’t. So when you ask whether something is illegal, the honest answer is sometimes “yes on more than one track.”
Figure Out Whose Rules Apply
Three layers of government can make the same conduct illegal, and the first step in any real analysis is identifying which ones are in play.
Federal Law
Federal crimes apply everywhere in the country and are mostly collected in Title 18 of the United States Code, which covers bank robbery, wire fraud, crimes on federal property, and much more.2Office of the Law Revision Counsel. Title 18 – Crimes and Criminal Procedure Federal jurisdiction generally attaches when conduct crosses state lines, involves interstate commerce, targets a federal agency, or occurs on federal land. Mailing a threatening letter, running a fraud scheme over the internet, or trespassing on a military installation are all federal matters. Federal offenses are classified by severity, with Class A felonies at the top carrying life imprisonment or the death penalty.3Office of the Law Revision Counsel. 18 USC 3559 – Sentencing Classification of Offenses
State Law
States handle the vast majority of criminal prosecutions. The Tenth Amendment reserves to the states all powers not granted to the federal government, and criminal law is one of the broadest uses of that authority.4Constitution Annotated. State Police Power and Tenth Amendment Jurisprudence Each state writes its own code, which is why drug possession, firearm rules, gambling, knife laws, phone recording consent, and even window tint rules shift when you cross a border.
Nearly every state draws the felony-misdemeanor line at one year of possible incarceration. If the maximum sentence exceeds a year, the offense is a felony; if it’s a year or less, it’s a misdemeanor. Misdemeanor penalties usually run to months in jail, fines in the low thousands, probation, or community service. Felony convictions bring prison time measured in years and much larger fines.
Local Ordinances
Cities, counties, and townships add a third layer. Ordinances cover noise, property maintenance, signs, parking, zoning, and business licensing, and they bind you only within the municipality that passed them. Violations are usually handled through citations and fines rather than arrests, though repeat problems can escalate.
Local rules can’t contradict state or federal law. The Supremacy Clause of the U.S. Constitution puts federal law over conflicting state law, and state preemption lets state legislatures override local ordinances.5Constitution Annotated. Overview of Supremacy Clause A city can’t legalize what the state has banned, and a state can’t authorize what federal law prohibits. Some states do let local governments set stricter rules than the state baseline, which is why firearm and short-term rental regulations get so tangled.
Why Intent Changes the Answer
Criminal law treats the same physical act very differently depending on what was going on in your head. Four levels of criminal intent run from most to least blameworthy: acting purposely (you meant to cause the result), knowingly (you were practically certain of it), recklessly (you consciously ignored a serious risk), and negligently (you should have seen the risk but didn’t).6Legal Information Institute. Mens Rea
Higher intent almost always means harsher punishment. Deliberately burning down a building is treated far more seriously than carelessly starting a fire, even though both can be crimes. Prosecutors must prove the required mental state for the specific offense, and failing to do so can mean acquittal even when the physical act is obvious.
Some offenses skip intent entirely. Strict liability crimes convict you based on the act alone, regardless of what you knew. Drug possession is the common example: having a controlled substance on you creates liability whether you knew it was there or not. Statutory rape works the same way, where the defendant’s belief about the other person’s age doesn’t matter. Strict liability charges tend to carry lighter sentences, but they are much easier to prove.7Legal Information Institute. Strict Liability
Regulatory Penalties Are Their Own Category
Agencies like the Environmental Protection Agency and the Occupational Safety and Health Administration write detailed rules that carry the force of law. These regulations cover workplace safety, environmental emissions, food handling, financial reporting, and dozens of other specialized areas. Breaking them is usually handled as a civil matter rather than a criminal one, but the financial consequences can be enormous, and the per-violation and per-day penalties are adjusted for inflation every year.8Occupational Safety and Health Administration. OSHA Penalties9eCFR. 40 CFR Part 19 – Adjustment of Civil Monetary Penalties for Inflation
Agencies can also shut down operations, revoke permits, bar companies from government contracts, and refer serious or willful cases for criminal prosecution. If you’re asking whether a business activity is “illegal,” the regulatory layer often matters more than the criminal code does.
Not Knowing Is Not a Defense
One of the oldest principles in American law is that ignorance of a rule doesn’t excuse breaking it. This applies whether the law is a well-known prohibition or an obscure regulatory requirement you’d never heard of. If “I didn’t know” were a valid defense, every defendant would use it and enforcement would collapse.
There are narrow exceptions. Where a crime requires proof of specific intent, genuine ignorance of the law can sometimes undermine the prosecution’s ability to establish the required mental state, and courts have occasionally shown leniency for brand-new laws that haven’t been publicized. These are thin threads, and planning to rely on them is a losing strategy. The time to find out whether something is illegal is before you do it.
The Sentence Is Often Just the Start
A criminal conviction sets off a chain of restrictions that outlast whatever jail time or probation the court imposes. Collateral consequences reach into employment, housing, education, and civil rights, and most people don’t see them coming when they weigh whether an action is worth the risk.
A felony conviction can disqualify you from professional licenses in healthcare, law, finance, and education. Background checks narrow job prospects. Certain convictions restrict working with children or the elderly, handling firearms, or holding positions of public trust. Sex offense convictions can carry registration requirements for life. Some states strip voting rights from people with felony convictions, with restoration processes that vary widely.
Federal student aid rules have loosened. Drug convictions no longer affect eligibility, and students released from incarceration have their eligibility limitations removed. Students on probation, parole, or in a halfway house can qualify, while those currently incarcerated face significant restrictions on which types of aid they can receive.10Federal Student Aid. Eligibility for Students With Criminal Convictions
Losing a professional license you spent years earning, or getting rejected from an apartment because of a background check, can reshape your life more than the original sentence did. The downstream effects deserve as much weight as the statutory penalty.
How to Check Before You Act
Start by identifying which jurisdiction governs. If the conduct crosses state lines, happens on federal property, or involves a federal agency, look at federal law first. Otherwise, start with the state where it will happen. For noise, zoning, and similar quality-of-life questions, go to the city or county code.
For federal statutes, the most reliable source is the United States Code hosted by the Office of the Law Revision Counsel, which is updated continuously.11Office of the Law Revision Counsel. United States Code The Legal Information Institute at Cornell Law School publishes the same federal statutes and most state codes in a more readable format. State legislatures publish their statutes online as well, and most are keyword-searchable. When you open a statute, read the definitions section before anything else; it often appears at the start of a chapter and can completely change what the law actually covers.
Reading a statute and understanding how it applies to your situation are two different things. Statutes interact with each other, with case law interpreting them, and with regulations implementing them. A section can appear to prohibit something while an exception sits buried elsewhere, or a court may have read a key term in a way the plain language doesn’t suggest. Public law libraries, including those inside courthouses, give you access to case law databases and research librarians who can steer you.
If real consequences are on the line, your own research is a starting point, not a replacement for a lawyer. A licensed attorney in the right state can tell you how the statutes, regulations, case law, and local rules actually fit together for what you’re planning to do.