Can Either Party Sue for Breach of an Illegal Contract?

If you signed an illegal contract and the other side walked away or cheated you, suing for breach of an illegal contract will almost always fail. Courts refuse to enforce agreements whose purpose requires breaking a law or harming the public interest. When both parties knew what they were doing, a judge will not referee the dispute, will not order performance, and will not order anyone to give back what they already received. You are left where you stand.

The rule is harsh on purpose. If courts routinely untangled illegal deals, most of the risk of entering one would disappear. Leaving the parties stuck is what gives the rule its bite.

Why Courts Will Not Hear the Case

An illegal contract is void, not merely unenforceable. In the eyes of the law it never existed, so there is nothing for a court to interpret or enforce. A judge does not need to decide who breached first or who owes what. The analysis stops at the illegality.

The formal name for the bar on suing is in pari delicto, Latin for “in equal fault.” The doctrine denies relief to a party injured by its own intentional wrongdoing and keeps courts from spending resources sorting out who should have profited from an illegal arrangement. If you knowingly entered the deal and the other side cheated you, asking for help means asking a judge to decide how the illegal gains should have been split. Courts refuse to make that call.

Two broad types of agreements trigger the rule. The first is any contract whose formation or performance requires breaking a statute: selling controlled substances, lending at interest above the usury cap, paying for an assault. The second is any contract that violates public policy without necessarily breaking a specific statute, such as an overly broad non-compete that prevents someone from earning a living, an agreement to improperly influence a government official, or debts from unlicensed gambling.

What Happens to Money and Property Already Exchanged

This is where most people are caught off guard. When a court refuses to enforce an illegal contract, it does not order anyone to return anything. If you paid $50,000 under an illegal agreement and received nothing in return, you are generally out $50,000. The other party keeps the money, not because they earned it, but because the court will not lift a finger to move it.

The same applies to property, services, and anything else transferred under the agreement. A person who performed work under an illegal contract typically cannot sue for payment. A person who paid in advance typically cannot sue for a refund. Courts acknowledge the harshness and keep the rule anyway, because the alternative would eliminate most of the deterrent against entering illegal deals in the first place.

When the Type of Illegality Changes the Outcome

Not every illegality is treated the same way. Courts distinguish between conduct that is inherently wrongful and conduct that is merely prohibited by regulation.

Contracts built around inherently wrongful acts, such as violence or fraud, are void without exception. No court will enforce them regardless of the circumstances. Contracts that violate a regulatory requirement get more nuance. Judges look at what the legislature intended. If the regulation protects public safety, the contract is more likely to fall entirely. If the requirement is primarily administrative, like a license or registration, some courts allow limited recovery when the work was competently performed and the violation was technical.

This matters because many disputes that reach court involve regulatory violations rather than criminal conspiracies. A contractor who did quality work but let a license lapse may find that one state bars recovery completely while a neighboring state allows recovery for the value of materials or labor. The outcome depends on whether the court reads the licensing statute as consumer protection or as administrative housekeeping.

When One Party Can Still Sue

The bar is strong but not absolute. Each exception exists because applying the standard rule would produce a worse outcome than the illegality itself.

Unequal Fault

The in pari delicto bar only applies when both parties share roughly equal blame. A person tricked, threatened, or pressured into an illegal agreement did not freely choose to break the law. Someone coerced into participating in an illegal investment scheme through threats may be allowed to recover what they put in. The question a court asks is whether the party seeking relief bears meaningful responsibility for the illegality or was essentially a victim of it.

Statutes That Protect a Specific Group

When a law exists specifically to protect a certain class of people, members of that class can enforce their rights even though the contract violates the statute meant to shield them. Wage law is the clearest example. Federal law sets a minimum wage floor, and an employer who pressures a worker into accepting less violates the Fair Labor Standards Act.1U.S. Department of Labor. Minimum Wage The worker can still sue for the wages owed, because the whole point of the statute is to protect employees. Barring that claim would punish the person the law was written to help.

Securities law works the same way. Contracts for the sale of unregistered securities violate federal regulations, and buyers are given an explicit right to rescind the transaction and recover their money.

Withdrawal Before the Illegal Act

A party who backs out of an illegal agreement before its unlawful purpose is carried out may recover what they already paid. This exception, sometimes called locus poenitentiae, rewards people for abandoning illegal plans. The timing is strict. The withdrawal has to happen before the illegal act is accomplished, not after. Someone who pays another person to commit a crime and then calls it off before anything happens may be able to get the money back. Once the act is complete, the window closes.

When a Court Saves Part of the Contract

If only one provision is illegal, the whole agreement does not necessarily fall. Courts may strike the offending term and enforce what remains, provided the illegal piece was not the heart of the bargain. If removing it leaves a coherent agreement, the rest survives. If the illegal term was central, the whole contract fails.

The Restatement (Second) of Contracts captures this: a court may enforce the rest of an agreement when the unenforceable portion is not an essential part of the exchange, provided the party seeking enforcement did not engage in serious misconduct.2LexisNexis. Restatement (Second) of Contracts Section 184 – When Rest of Agreement Is Enforceable Many contracts include a severability clause that explicitly directs courts to take this approach.

Judges sometimes call the process the “blue pencil test,” crossing out the offending language and reading what is left. Strict blue-pencil courts will only delete, never rewrite. Roughly 30 states take a more flexible approach called equitable reformation, where the court can actually revise an unreasonable term to bring it within legal bounds. The difference matters most with non-compete agreements that cover too large an area or last too long. In some states a court will trim an overbroad clause down to reasonable limits; in others the employer who drafted it is simply out of luck, and the entire restriction fails.

If your dispute involves what you suspect is an illegal contract, the question to answer before anything else is which category it falls into, how much of the illegality you knew about going in, and whether any of the exceptions might apply. A lawyer who handles contract disputes in your state can tell you quickly whether a court will hear your claim at all.