A contract can appear complete, include signatures, and still be legally unenforceable if it requires conduct that a statute forbids. In the United States, the result depends on the wording and purpose of the law, the type of violation, and the rules of the state involved. Knowing why a contract prohibited by statutory law may be void helps people recognize legal risks before they sign—and understand why courts do not always treat every statutory violation the same way.

What Makes a Contract Prohibited by Statutory Law?

A contract is prohibited by statutory law when its terms, purpose, or required performance conflict with a law enacted by a legislature. A statute may expressly say that a particular agreement is “void,” “unenforceable,” or invalid. In other cases, it may prohibit the underlying activity without specifying what happens to a related contract. Courts then interpret the law and consider its purpose.

For example, a contract to perform an illegal act is different from an ordinary agreement that happens to involve someone who failed to meet a regulatory requirement. A bargain to commit fraud is plainly unlawful. A transaction with a business that lacks a required license may raise a more complicated question: the applicable statute might invalidate the agreement, impose a penalty, or provide a remedy only to certain parties.

✓
Quick, confidential phone check
Tell us the basics and we’ll point you to the right next step. No long forms.
Confidential • Fast • Helpful guidance

Contract rules vary by state, and federal law may also apply. The governing statute, relevant court decisions, and facts of the transaction determine the outcome. The label “illegal contract” alone does not answer every question about enforcement or repayment.

Why Courts May Treat an Illegal Contract as Void

Courts generally avoid using their authority to enforce an agreement that would require or reward conduct the law forbids. Enforcing such a bargain could undermine the statute, encourage future violations, or make an unlawful activity more profitable. Declining enforcement can therefore protect the public interest as well as the parties affected by the law.

When a statute expressly declares a contract void, courts typically give that language substantial weight. If the statute is silent, courts may examine its text, purpose, structure, and enforcement provisions. They may ask whether denying contractual recovery advances the law’s objective or instead creates a penalty the legislature did not intend.

The U.S. Supreme Court has addressed this type of issue in Kaiser Steel Corp. v. Mullins (1981). The Court held that a court could not enforce a contract provision if doing so would violate federal labor law. The decision illustrates a basic point: a contractual promise does not override a controlling statute.

Void, Voidable, and Unenforceable: Important Differences

These terms are sometimes used loosely, but they can describe different legal consequences. A void contract is generally treated as having no legal effect from the outset. A voidable contract may remain effective unless a party with the right to do so chooses to cancel it. An unenforceable contract may be valid in some respects, but a court will not provide a particular remedy for its breach.

The distinction matters. If an agreement is void, neither party may be able to sue for the promised performance. If it is voidable, one party may have an option to rescind it. If it is unenforceable, the result might depend on the type of claim, the parties’ conduct, or a statutory exception.

✓
Quick, confidential phone check
Tell us the basics and we’ll point you to the right next step. No long forms.
Confidential • Fast • Helpful guidance

Statutes can define these consequences directly. For instance, a law might bar a party from collecting compensation while allowing a customer to recover money already paid. Another law may impose a civil fine without invalidating every related agreement. The specific statutory language is more useful than assuming that any violation automatically erases a contract.

Common Situations Involving Statutory Prohibitions

Unlicensed Work

States and cities require licenses for many occupations, including certain construction, medical, financial, and professional services. The consequences of working without a license differ. Some licensing laws protect public safety and expressly prevent an unlicensed provider from collecting payment. Others impose administrative penalties but do not automatically void the customer’s agreement. The law’s purpose and wording are key.

Usury and Lending Restrictions

State and federal laws regulate interest rates and lending practices in particular contexts. A loan that violates an applicable limit may expose the lender to penalties or restrict the interest it can collect. The result can depend on the borrower, loan type, lender, and statutory exceptions. A rate that is lawful for one transaction may be restricted for another.

Agreements to Violate Regulatory or Criminal Laws

A contract requiring bribery, fraud, unlawful discrimination, or another prohibited act is unlikely to receive judicial enforcement. The same concern can arise when an agreement is designed to evade a regulatory rule. A court may refuse to enforce the unlawful term or, if it is central to the bargain, the entire agreement.

Restrictions on Certain Business Terms

Statutes may limit particular clauses, including some noncompete provisions, consumer contract terms, or agreements affecting protected rights. These laws change, and their scope can depend on location, occupation, and timing. A restriction might be invalid while the rest of the contract remains enforceable, if the law and applicable severability rules permit that result.

When Only Part of a Contract Is Illegal

An unlawful provision does not always invalidate the entire agreement. Courts may apply a severability clause, strike an offending term, or limit its application while enforcing the lawful remainder. Whether they can do so depends on the statute, the contract’s language, and whether the remaining promises still form a meaningful bargain.

Severability is less likely to solve the problem when the unlawful term is central to the transaction or when removing it would defeat the statute’s purpose. A court may also decline to rewrite a contract to save a party from an agreement it chose to make. A severability clause is helpful evidence of the parties’ intent, but it cannot compel a court to enforce an arrangement that the law forbids.

Can Either Party Get Money Back?

Refusing to enforce a contract does not automatically determine who keeps money, property, or benefits already exchanged. Courts may consider restitution, statutory remedies, and equitable principles, but recovery is not guaranteed. In some cases, allowing a party to reclaim payment could frustrate the law’s deterrent purpose; in others, denying recovery could unfairly benefit a party who violated the statute.

Some statutes expressly give consumers or other protected parties a right to cancel, recover payments, or seek damages. Others provide government enforcement rather than a private lawsuit. A court may also distinguish between parties based on their knowledge, responsibility, or degree of involvement in the unlawful conduct. The relevant statute and state law determine what remedies are available.

How to Assess a Potentially Illegal Contract

Before signing or performing a questionable agreement, a careful review can help identify issues. The parties should locate the statute or regulation that may apply, check whether it expressly addresses contract validity, and confirm which state’s law governs. They should also determine whether a license, permit, disclosure, or other legal requirement is involved.

  • Read the exact legal text. Search for terms such as “void,” “unenforceable,” “may not recover,” and “civil penalty.”
  • Check current law. Statutes and agency rules can change, and online summaries may be outdated.
  • Separate the unlawful term from the rest. Determine whether the contract includes a severability clause and whether the disputed term is essential.
  • Preserve relevant records. Keep the signed agreement, payment records, messages, licenses, and notices.
  • Seek advice for consequential disputes. A lawyer licensed in the relevant state can assess the statute, available remedies, and deadlines.

Legal information published by Cornell Law School’s Legal Information Institute explains the general doctrine of illegality, but it is not a substitute for reviewing controlling state law. Federal statutes and agency regulations may also affect a contract, particularly in regulated industries.

Why the Statute’s Purpose Matters

The central question is not simply whether a law was violated. Courts also consider what consequence the legislature intended. A statute designed to protect consumers may support a remedy for the customer, while a law aimed at public safety may bar an unlicensed provider from enforcing payment rights. In another setting, the law may impose a fine without invalidating the agreement.

That is why a contract prohibited by statutory law may be void, voidable, partially unenforceable, or subject to a specific statutory remedy. The result turns on the governing law—not merely on the parties’ wording or their belief that the agreement is valid. This article provides general U.S. legal information, not advice about a particular contract.