Contracts Prohibited by Statutory Law: Voidness and Exceptions

A contract prohibited by statute is void from the moment it is formed, meaning neither side can sue to enforce it, collect damages for breach, or ratify it later to make it valid. Courts treat the agreement as if it never existed, and the usual rule is that they will not help either party unwind it, even the one who paid and got nothing. Whether you knew about the prohibition when you signed makes little difference to the contract’s legal status, though it can matter for the narrow set of exceptions that let some parties recover.

Void Versus Voidable

A void contract is treated as though it never existed. No party can enforce its terms, sue for breach, or ratify it after the fact. A court presented with a void contract will not order anyone to perform or award damages for nonperformance. Lawyers describe this as “void ab initio”: invalid from the start, not just from the moment a court says so.

That is different from a voidable contract, which starts out valid but gives one party the right to walk away. A contract with a minor is the classic example: enforceable unless the minor rejects it before or shortly after turning 18. Contracts tainted by fraud or duress work the same way. The wronged party gets to choose whether to cancel or keep the deal. A void contract offers no such choice, because there was never a legally recognized agreement in the first place.

When a Statute Actually Voids a Contract

Statutes are written laws passed by Congress or state legislatures. When a statute expressly prohibits a type of transaction, any contract built around that transaction is automatically void. Courts do not weigh the equities or ask whether the deal was otherwise fair. If the legislature banned the activity, an agreement to do it is dead on arrival.

The harder cases are the ones where the statute does not spell out that violating contracts are void, but clearly reflects a policy that enforcement would undermine. The Restatement (Second) of Contracts handles this with a balancing test: a term is unenforceable if legislation says so, or if the public policy against enforcement clearly outweighs the interest in holding parties to their bargain.1Open Casebooks. Restatement Second of Contracts 1-2, 178

So not every contract that brushes up against a statute is automatically void. A kitchen renovation contract is not void just because the contractor never pulled a building permit, if the permit statute is really a revenue measure rather than a safety rule. Courts distinguish between regulatory licensing statutes, which protect the public by requiring competence, and revenue-raising statutes, which mostly generate government income. Contracts with unlicensed parties are typically void only when the missing license is regulatory.

Common Contracts Voided by Statute

Contracts for Criminal Activity

The most straightforward category. An agreement to buy controlled substances, commit fraud, or carry out any other crime is unenforceable from the moment it is made. The illegal purpose swallows the whole contract, and courts will not sort out who owes what under a deal that was criminal to begin with.

Contracts With Unlicensed Professionals

When a statute requires a license to protect public safety, a contract for services performed by someone without that license is void. This comes up most often with medical practitioners, attorneys, and certain contractors. The licensing rule exists to keep unqualified people from doing the work, so enforcing a contract that dodges the rule would gut the statute.

The distinction that trips people up is between a competency license and a fee-collection license. If a plumber does quality work but forgot to renew a business license that is essentially a tax receipt, most courts will not void the contract. But if that same plumber performs electrical work without the electrician’s license required by safety regulations, the contract is on much shakier ground. The nature of the licensing statute matters more than the bare fact that someone is unlicensed.

Usurious Loans

Every state has usury laws capping the interest a lender can charge on certain loans. A loan that exceeds the statutory maximum is usurious, and the consequences for the lender can be severe. Depending on the jurisdiction, the lender may forfeit all interest charged, be forced to return interest already collected, or in extreme cases lose even the right to collect the principal. Some states treat criminal usury as a felony carrying prison time.

Prohibited Employment Provisions

Some employment clauses are void because a statute specifically forbids them. The most prominent current example is the non-compete. No federal ban exists as of 2026, but four states prohibit non-competes entirely in the employment context, and over thirty states plus the District of Columbia significantly restrict their use. A non-compete that violates the applicable state statute is void, even if the employee signed it voluntarily. Other commonly voided provisions include clauses that waive minimum wage protections or force employees to give up rights that labor statutes say cannot be waived.

Illegal Gambling and Wagering

Contracts for illegal wagers are unenforceable. If you lend someone money to place bets at an unlicensed operation, you cannot sue to get it back through contract enforcement. Legal sports betting and state lotteries have narrowed this category, but the principle still applies to wagers that fall outside what a given state has authorized.

Why Courts Won’t Help Either Side

Here is where people get surprised. When a court finds a contract void for illegality, the default rule is that it leaves both sides where they stand. Not the one who got shortchanged, not the one holding the money. The court simply refuses to act, even if that means someone walks away with a windfall.

The reasoning is blunt. If you entered an illegal agreement, you do not get to ask the courts to clean it up. The Latin phrase is in pari delicto: both parties are equally at fault. When that is the case, whoever is currently holding the money or property has the stronger position by default. The point is not to punish one side or reward the other. It is to deny both sides the machinery of the legal system and, ideally, to discourage people from entering illegal agreements in the first place.

This can feel deeply unfair. Someone who paid $50,000 under a void contract might get nothing back. Courts have long concluded that helping one party recover would effectively mean enforcing half of an illegal deal, which is what the doctrine exists to prevent.

Exceptions That Let You Recover

The “leave them where they lie” rule has important exceptions. Courts recognize that treating every illegal contract the same way sometimes produces worse outcomes than the illegality itself.

  • The less guilty party. When the two sides are not equally at fault, courts may grant relief to the one who bears less blame. Someone induced into an illegal agreement through fraud, undue influence, or duress can typically rescind and recover money already paid.
  • People the statute was designed to protect. When a statute makes a transaction illegal specifically to protect a certain class, members of that class can still recover. The classic example is a borrower on a usurious loan. The usury statute exists to protect borrowers, so the borrower can still seek relief.
  • Withdrawal before performance. A party who backs out of an illegal contract before it is carried out can recover consideration already paid. Courts reward the decision to abandon the arrangement.
  • Excusable ignorance. Someone who entered an illegal contract without knowing about the illegality, and without reason to know, may be able to recover. Courts are more willing to fashion a remedy when one party genuinely did not know than when both sides went in with open eyes.

These exceptions share a common thread: the party asking for help is less culpable, or has a reason the law finds sympathetic. Two experienced parties who knowingly structure a deal to dodge a statute will not find relief under any of them.

When Only Part of a Contract Is Illegal

Sometimes a single clause in an otherwise legitimate contract violates a statute. A consulting agreement might be perfectly legal except for a non-compete that goes further than state law allows. Voiding the entire contract in that situation would be overkill.

Courts handle this through severability. A court will strike the illegal term and enforce the rest if the illegal provision was not an essential part of the bargain. The practical question is whether the parties would have entered the contract without the offending clause. If yes, the court removes the clause and enforces the remainder. If the illegal provision was the heart of the deal, the whole contract falls.1Open Casebooks. Restatement Second of Contracts 1-2, 178

Many commercial contracts include a severability clause that says explicitly: if any provision is unenforceable, the rest survives. These clauses help, but they are not magic. A court will not sever a provision so central that removing it transforms the deal into something neither party intended. And even without a severability clause, courts have inherent power to sever an illegal term when doing so serves the interests of justice.

The Blue Pencil Doctrine

A narrower tool comes up mostly with overly broad non-competes. Under the strict version of the blue pencil doctrine, a court can cross out offending language but cannot rewrite or add words. If what remains still reads as a sensible agreement, the court enforces it. If striking the illegal language leaves gibberish or fundamentally changes the deal, the entire provision fails.

Some jurisdictions take a more liberal approach and let courts rewrite unreasonable terms to make them enforceable. Others take an all-or-nothing stance, voiding any restrictive covenant that contains an unenforceable provision. Where your contract lands depends heavily on jurisdiction, which is one reason overbroad non-competes are such a litigation magnet.

Federal Preemption Can Change the Answer

A contract that appears to violate a state statute may be perfectly valid if federal law preempts that statute. Usury is the clearest illustration. Under 12 U.S.C. ยง 85, a national bank can charge interest at the rate allowed by the state where it is located, exporting that rate to borrowers in states with lower caps.2Office of the Law Revision Counsel. 12 USC 85 – Rate of Interest on Loans, Discounts and Purchases Federal regulations expand on this, allowing national banks to charge whichever rate the state permits to any state-chartered or licensed lending institution, without needing to hold the same type of state license.3eCFR. 12 CFR 7.4001 – Charging Interest by National Banks That is why a credit card issued by a bank in one state can charge rates that would be illegal for a local lender where you live.

The practical point: before concluding that a financial agreement is void under state law, check whether the other side operates under a federal charter or a federal regulatory scheme that displaces the state rule. A loan a state court would void as usurious may be fully enforceable under federal banking law.

Penalties Beyond the Contract

Voiding the contract is just the starting point. Parties to illegal agreements can face independent consequences that go well beyond losing enforcement rights.

Courts can order disgorgement, forcing a party who profited from illegal conduct to surrender those profits. The purpose is to strip the financial incentive for wrongdoing, not to compensate the other side. District courts have broad discretion over whether to order disgorgement and how much must be returned. This remedy appears often in securities fraud, antitrust violations, and regulatory enforcement actions where one side made substantial money from an illegal arrangement.

Criminal penalties are also on the table when the underlying activity violates criminal statutes. A contract to commit fraud, evade regulations, or carry out other crimes can mean fines, imprisonment, or both, entirely apart from what happens to the agreement itself. The void contract offers no shield. The written agreement can become evidence of the crime.