An illegal contract is an agreement whose purpose or performance violates a statute or conflicts with public policy, and courts will not enforce it. Treat it as if it never existed. Neither side can sue to force performance or collect damages, and depending on what the deal involves, both parties may face fines or criminal charges on top of losing the bargain.
That is the short answer. The longer answer matters, because the category covers more ground than most people expect, and the consequences depend heavily on which kind of illegality is at play and how much each party knew.
What Makes a Contract Illegal
Illegality comes from two places. Either the contract breaks a specific law, or it offends a public policy strong enough that courts refuse to lend their power to it. The second category is broader and less obvious than the first.
Contracts That Break a Statute
The clearest illegal contracts are the ones that directly violate a criminal statute or regulatory requirement. A few recurring examples:
Illegal gambling. Federal law makes it a crime to operate a gambling business that violates state law and involves five or more people, with penalties of up to five years in prison and asset forfeiture.1Office of the Law Revision Counsel. 18 U.S. Code 1955 – Prohibition of Illegal Gambling Businesses Separately, the Unlawful Internet Gambling Enforcement Act bars businesses from accepting payments to settle unlawful online gambling debts.2Federal Trade Commission. Unlawful Internet Gambling Enforcement Act A bet placed through an illegal operation cannot be enforced in court. Licensed and regulated gambling is a different matter, because the underlying activity is authorized.
Usurious loans. A loan that charges interest above the legal limit is usurious. Under federal law governing national banks, a lender that knowingly charges excessive interest forfeits all interest on the loan, not just the excess, and a borrower who already paid the inflated interest can sue to recover double the amount paid if they file within two years.3Office of the Law Revision Counsel. 12 U.S. Code 86 – Usurious Interest; Penalty for Taking; Limitations State usury laws add their own caps and penalties, with ceilings and remedies that vary widely.
Contracts to commit crimes or torts. Hiring someone to commit theft, paying for illegal drugs, arranging a fraud scheme, paying someone to defame a competitor, contracting for industrial sabotage. The purpose itself is unlawful, and courts will not sort out who owes whom. The same goes for contracts that sound neutral on their face but exist to facilitate a crime, such as leasing a warehouse you know will be used as a drug lab.
Services from an unlicensed professional. Where a state requires a license to practice construction, medicine, law, or real estate, a contract with an unlicensed provider is typically unenforceable. The provider cannot sue for payment, cannot place a lien, and may have to return money already collected. Fines for unlicensed work range from a few hundred dollars to $50,000 or more depending on the state and the profession. Clients, by contrast, often retain remedies for substandard work.
Contracts That Violate Public Policy
Even without a specific statute to point to, courts refuse to enforce agreements that cut against deeply rooted principles of public welfare. Common examples:
Restraints on trade. The Sherman Antitrust Act declares every contract in restraint of trade illegal. Violations are felonies: corporations face fines up to $100 million, individuals up to $1 million, and prison sentences can reach 10 years.4Office of the Law Revision Counsel. 15 U.S. Code 1 – Trusts, Etc., in Restraint of Trade Illegal; Penalty Courts apply a “rule of reason” to most arrangements, weighing scope, duration, and geography. A supplier agreement allocating territories might survive; a price-fixing agreement among competitors will not.
Non-compete agreements. These sit in a gray zone. The FTC’s attempted nationwide ban on most non-competes was officially withdrawn in early 2026 and removed from the Code of Federal Regulations, though the agency can still challenge specific agreements case by case. With no federal ban, enforceability depends on state law. Four states prohibit non-competes outright, and more than 30 others plus the District of Columbia restrict them in some way. In states that allow them, courts examine whether the duration, geographic area, and definition of prohibited activity are reasonable. A non-compete that effectively bars someone from earning a living in their field is far more vulnerable than one keeping an executive out of a direct competitor for 12 months.
Liability waivers for serious misconduct. Exculpatory clauses can be enforceable for ordinary negligence in contexts like recreational activities. But a majority of states refuse to enforce them when they try to shield a party from gross negligence, recklessness, or intentional wrongdoing. Waivers that are overly broad, buried in paperwork, or not clearly explained are also vulnerable.
Agreements interfering with marriage. A condition in a will or trust that says “you get nothing if you marry” is void in most states. Partial restraints, such as a minimum age or a bar on marrying one specific person, are sometimes upheld if they serve the beneficiary’s interests rather than punishing marriage generally. A blanket prohibition is consistently struck down.
Bribery. Federal law criminalizes offering anything of value to a public official to influence an official act, defraud the government, or induce a violation of duty, and criminalizes the official’s side of the exchange as well.5Office of the Law Revision Counsel. 18 U.S. Code 201 – Bribery of Public Officials and Witnesses Any contract built on the exchange is void, and the parties face prosecution regardless.
What Courts Do When Asked to Enforce One
The default is that they do nothing. Courts refuse to order performance, award damages, or sort out who got the better end of the deal. Both sides are left wherever they happen to be when the music stops, which often means one party performed and the other kept the benefit without paying. The outcome is intentional. The legal system does not want to become a tool for enforcing illegal bargains.
The doctrine behind this is in pari delicto, Latin for “in equal fault.” When both parties knowingly participated in the illegal arrangement, neither can ask a court to bail them out. The idea deters people from entering illegal contracts and keeps the courts clear of unlawful schemes. The result can feel deeply unfair in individual cases, and courts generally accept that unfairness as the price of the rule.
When Part of the Contract Can Still Stand
Illegality does not always kill the entire agreement. If one provision crosses the line but the rest of the deal is legitimate, courts may sever the offending clause and enforce what remains. This is called severability.
The test is whether the illegal provision was essential to the parties’ bargain. If removing the bad clause still leaves a coherent, meaningful agreement, courts are willing to salvage it. If the illegal term was the whole point of the deal, there is nothing left to enforce. A severability clause written into the contract helps, because it signals that both parties intended the surviving provisions to stand on their own. Courts give those clauses significant weight, though they are not a guarantee.
Employment contracts with overly broad non-compete clauses are the common example. Rather than voiding the whole agreement, a court might strike the non-compete or narrow its terms and leave the salary, benefits, and other provisions intact.
When a Less Culpable Party Can Still Recover
The equal-fault rule has exceptions, and courts have carved them out for situations where strict application would produce an unjust result.
- Unequal knowledge or blame. If one party did not know the contract was illegal, or was tricked or pressured into it, courts may let them recover. A homeowner who unknowingly hires an unlicensed contractor is not in equal fault with the contractor who concealed the licensing problem, and the less culpable party can sometimes sue for restitution to get back what they paid.
- Unjust enrichment. When one side has received a substantial benefit and keeping it would be deeply unfair, courts may order restitution. The claimant generally has to show they were unaware of the illegality, did not participate in the wrongdoing, and genuinely believed a valid contract existed. Active participation in the illegal arrangement takes restitution off the table.
- Protective statutes. Some laws exist specifically to protect one class of party. Usury statutes protect borrowers; consumer protection laws protect buyers. When a contract violates one of these, the protected party can typically recover because the whole point of the law is to give them a remedy. The lender or seller gets nothing.
These exceptions are narrow. Courts apply them reluctantly, and the burden falls on the person claiming innocence to prove they genuinely did not know about or contribute to the illegality.
Criminal Exposure Beyond the Lost Deal
An illegal contract is not just a failed business deal. It can be evidence of a crime. A written agreement to commit fraud, bribery, or drug trafficking does not create a defense of “we had an agreement.” It creates a paper trail.
Federal law treats anyone who aids, counsels, or induces a federal offense as equally punishable with the person who committed it. You do not have to sign the fraudulent document or hand over the bribe. If you associated yourself with the venture, participated in it, and took action to help it succeed, you face the same penalties as the principal actor. The government must show you personally took some action, but the bar for “some action” is not especially high.
The specific penalties track the underlying offense. Mail fraud alone carries up to 20 years in prison, rising to 30 years if the scheme affects a financial institution.6Office of the Law Revision Counsel. 18 U.S. Code 1341 – Frauds and Swindles Antitrust violations can bring 10 years.4Office of the Law Revision Counsel. 15 U.S. Code 1 – Trusts, Etc., in Restraint of Trade Illegal; Penalty Bribery of a federal official is a separate felony.5Office of the Law Revision Counsel. 18 U.S. Code 201 – Bribery of Public Officials and Witnesses The fact that the underlying contract is unenforceable does nothing to insulate anyone from prosecution. If anything, the contract makes the case easier to prove.
If You Think You Are in One
Talk to a lawyer before taking any further steps under the agreement, making payments, or trying to renegotiate the problem terms. An illegal contract cannot be ratified or fixed by rewriting the bad clauses and continuing on. The tainted portion is void from the start, and continuing to perform under a contract you know is illegal can turn a civil mess into a criminal one.