Skip to content

What happens if part of a contract is illegal?

We signed the contract, but one clause may violate the law. Does that make the entire agreement unenforceable?

ARTICLE SUMMARY

Answer

Not necessarily. If part of a contract is illegal, it does not automatically mean the entire agreement is unenforceable. In some situations, only the illegal provision is affected, while the remaining terms continue to apply. In others, the illegal provision may be so central to the agreement that it affects the entire contract.

The outcome depends on the contract language, the importance of the illegal provision, and the applicable law.

When can the rest of the contract still be enforced?

Whether the remaining terms survive often depends on how the agreement is structured, such as:

  • Whether the illegal provision can be separated from the rest of the contract.
  • Whether the remaining terms still make sense on their own.
  • The importance of the illegal clause to the overall agreement.
  • Whether the contract includes a severability clause.
  • The intent of the parties when the agreement was made.
  • Applicable laws governing the contract.

These factors can help determine whether the rest of the agreement remains effective.

What if the illegal provision is essential to the agreement?

Some illegal terms are so closely tied to the contract that removing them may change the entire bargain. Potential issues include:

  • The illegal provision is a key reason the parties entered the agreement.
  • The remaining terms cannot operate independently.
  • The contract's main purpose cannot be achieved without the unlawful provision.
  • The agreement conflicts with public policy.
  • The parties dispute how the contract should be interpreted without the illegal term.
  • Applicable law requires a different result.

The effect of an illegal provision depends on the facts and the governing law.

What to do next…

  1. Identify the provision that may be unlawful.
  2. Review the contract for a severability clause or similar language.
  3. Gather documents and communications related to the agreement.
  4. Consider how the contract would operate if the disputed provision were removed.

What to consider in your specific situation

  • The type of contract and business relationship involved.
  • The specific provision that may violate the law.
  • Whether the provision is central to the agreement.
  • Whether the contract includes a severability clause.
  • The parties' intentions and actions after signing.
  • Applicable federal, state, or local laws governing the agreement.

Since every situation is different, consider getting more information through Rocket Copilot or an attorney review to move forward more confidently.

Explore more about contract enforceability and validity

Explore more about illegality or unenforceable purpose

A contract's validity may be affected by the legality of its purpose. These questions explore the enforceability of contracts involving illegal activity, what happens if only part of an agreement is illegal, and the legal consequences of refusing to perform an illegal contract.

Explore more legal topics and questions

Browse related topics to learn more about contracts, common clauses, business filings, and other legal issues that may apply to your situation.

Pro Reviewed
Published on 07/31/2026
Reviewed by Rocket Lawyer

At Rocket Lawyer, we follow a rigorous editorial policy to ensure every article is helpful, clear, and as accurate and up-to-date as possible. This page was created, edited and reviewed by trained editorial staff who specialize in translating complex legal topics into plain language, then reviewed by experienced attorneys to ensure legal accuracy.

Please note: This page offers general legal information, but not legal advice tailored for your specific legal situation. Rocket Lawyer Incorporated isn't a law firm or a substitute for one. For further information on this topic, you can Ask an Attorney.

Laura Bojart
Laura Bojart
Editorial Researcher and Copywriter

Laura Bojart is an SEO copywriter and editor at Rocket Lawyer. She researches legal and business topics and translates complex ideas into clear, practical content for everyday readers. With her background in journalism and endless curiosity, she approaches each subject by asking the questions readers are likely to have first, making legal information approachable and easy to understand even to those with no legal background.

Discover more articles: Rocket CopilotLegal answers