Skip to content

Question

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?

Rocket copilot

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.

Published on 07/31/2026Written by Laura BojartReviewed by Legal Pros

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.

Need to make sure your contract is legally enforceable?

Ensuring your contract is legally enforceable is one of the most important steps to protecting your business. Whether you're drafting a new agreement, reviewing terms for validity, or figuring out how to protect your interests, Rocket Lawyer gives you the tools and support to help you move forward with confidence:

  • Rocket Copilot Q&A for instant legal information
  • Ask an Attorney for human responses within a business day
  • Document insights, Contract Review, and other smart legal tools

Sign your next valid contract with trusted legal support.

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.

Disclosures

  1. This page offers general legal information, 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.