Employment law

Post-Contractual Non-Compete Clauses in Spain: Validity Rules

By the AbogadoAI editorial team · Updated 18 July 2026 · 11 min read

🇪🇸 Read the original in Spanish

When a qualified employee or someone with access to strategic information ends their employment relationship with a company, an obvious conflict of interest arises: the constitutional right to the free choice of profession or trade versus the company's right to protect its client portfolio and know-how. In the Spanish legal system, the legal tool used to balance this scale is the post-contractual non-compete clause. However, because it restricts fundamental rights, Spanish courts strictly demand compliance with a series of validity requirements so that this agreement is not declared null and void. In this article, we will analyse in depth how this clause works, what financial compensation the law requires, and how to avoid the most common mistakes that invalidate these agreements.

Legal Framework: Where is the Post-Contractual Non-Compete Regulated?

The regulation of this agreement in Spanish labour law is seemingly simple, but it is backed by a vast body of case law that complements the written statute. The reference legal framework is built upon the following pillars:

Validity Requirements: The Substantive Rules

For a post-contractual non-compete agreement to be fully valid and binding before Spanish courts, it must strictly comply with three cumulative requirements. The lack of any of them leads to the absolute nullity of the clause.

1. The actual industrial or commercial interest of the company

The company cannot impose this limitation out of mere whim or as a generalized deterrent for its entire workforce. There must be a real risk that the worker, upon leaving for the competition or starting their own business, could use the acquired knowledge, internal methodologies, or direct relationship with the client portfolio to cause financial harm to the original company.

This interest must be demonstrable. For example, it is fully valid for a software development director, a commercial director with access to rates and margins, or a key account manager. Conversely, it lacks cause and is null and void for positions where confidential information is not handled and clients are not retained on a highly personal basis.

2. Strict time limitation

The law imposes insurmountable time limits that start counting from the day following the termination of the employment contract:

If a contract sets a longer term (for example, three years for an engineer), the majority of case law tends to declare the total nullity of the clause, or in some very specific cases, reduce it to the legal limit of two years. However, the safest way to avoid risks of nullity is to adjust strictly to the legal limits.

3. "Adequate" financial compensation

This is the most contentious point in court. The law does not establish a fixed percentage or a mathematical formula to determine what constitutes "adequate financial compensation". However, the case law of the Tribunal Supremo (Supreme Court) has shaped this concept under the premise that the payment must effectively compensate for the harm caused to the worker by limiting their ability to earn a living in their specialized sector.

To assess whether the compensation is adequate, judges analyze:

Generally, purely symbolic amounts are considered null and void. Case law usually validates compensations ranging between 20% and 50% of the salary the worker was receiving, paid monthly during the employment relationship or in a single lump sum (or monthly installments) after the termination of the contract.

Practical Examples of Application and Calculation

To understand how these rules operate in the reality of the Spanish job market, we analyze two opposing scenarios based on real figures.

Example 1: Carlos's Case (Valid Agreement)

Carlos works as a Sales Director at a logistics software company in Madrid. His gross annual salary is €60,000 (equivalent to €5,000 gross per month). Upon signing his contract, a post-contractual non-compete clause is included with the following conditions:

Validity analysis: This agreement is fully valid. There is a clear commercial interest (access to clients and pricing), the duration (1 year) is below the 2-year limit for technical staff, and the total accumulated financial compensation after several years of service represents a very significant sum that amply compensates the worker for the temporary limitation of working in that specific market niche.

Example 2: Sofía's Case (Null Agreement due to Disproportion)

Sofía is hired as a junior web programmer with a gross annual salary of €24,000 (€2,000 gross per month). A clause is inserted into her contract prohibiting her from working in any company in the technology or software development sector throughout the European Union for 2 years after her departure. As compensation, a single payment of €1,500 is agreed upon, to be paid alongside her finiquito (final settlement payment).

Validity analysis: This agreement is null and void for three concurrent reasons:

  1. Duration: Sofía is a junior programmer; assigning her the category of technical staff with a 2-year restriction based on an entry-level position is disproportionate.
  2. Geographical scope: Restricting the entire European Union for a junior position is abusive and lacks real justification for a local SME.
  3. Inadequate compensation: Preventing a professional from working in her sector for 24 months in exchange for a single payment of €1,500 (which equates to barely €62.50 for each month of prohibition) is a derisory amount that fails to meet the "adequate" requirement. Sofía could challenge the clause and be freed to work wherever she wishes.

Step-by-Step Practical Procedures for the Company and the Worker

If you are facing the signing or execution of a non-compete clause, these are the practical steps you must follow to guarantee the legal certainty of your position:

  1. Drafting and signing in writing: The post-contractual non-compete agreement can never be verbal or presumed. It must be in writing, either in the initial employment contract itself or through an annex signed by both parties during the employment relationship.
  2. Precise definition of terms: The prohibited sector of activity must be specified with total clarity (using CNAE codes if possible), as well as the geographical scope of the restriction (for example, "Comunidad de Madrid" or "Spain") and the exact duration in months or years.
  3. Breakdown on the payslip (if payment is monthly): If the compensation is paid during the employment relationship, this item must appear on the worker's payslip (nómina) in a completely differentiated manner under the concept "Post-contractual non-compete bonus" or similar. It must not be hidden within the base salary or other generic bonuses.
  4. Communication upon contract termination: When the employment relationship ends (whether due to dismissal, voluntary resignation, or end of contract), both parties must review the agreement. The company cannot unilaterally waive the agreement at the last minute to save the payment, unless it had expressly reserved that right contractually and with reasonable notice—something that case law scrutinizes closely to prevent abuse.
  5. Legal claim in case of breach:

Mistakes You Must Avoid

Whether you are an employer or a worker, making these common mistakes can lead to serious financial and legal consequences:

Frequently Asked Questions (FAQ)

What happens if the worker breaches the non-compete agreement?

If the worker violates the agreement and starts working for a competing company or starts a competing self-employed activity within the restricted period, they commit a breach of contract. The original company can file a lawsuit before the Labour Courts demanding the cessation of the prohibited activity, the full return of all financial compensation received for this concept, and, additionally, payment for the damages actually caused (or the penalty set in the contract if it is proportional).

Can I work for the competition if the clause does not define what "competition" is?

Generic or ambiguous clauses that abstractly prohibit "working in any company in the sector" without defining the specific field of activity are usually declared null and void by the courts. For it to be valid, the company must clearly specify which concrete activities or companies constitute direct competition based on its own corporate purpose and market.

Can the compensation be paid monthly during the life of the contract?

Yes, this is a completely legal and very common practice in Spain. The company can pay a monthly amount on the worker's payslip under a specific concept. However, if the contract is terminated prematurely, the worker will have received the proportional part corresponding to the time worked, and must respect the agreement for the total agreed time after their departure.

What happens if I am dismissed via an unfair dismissal? Is the agreement still active?

Yes, as a general rule, the post-contractual non-compete agreement remains fully active after an unfair dismissal (despido improcedente), provided that the validity requirements (commercial interest and adequate compensation) are met. The nature of the contract's termination (voluntary resignation, objective dismissal, or disciplinary/unfair dismissal) does not by itself extinguish the validity of this bilateral agreement, unless the parties had expressly agreed otherwise in the clauses of the contract.

In Summary

General legal information, not personalised legal advice. For your specific situation, ask your question for free at AbogadoAI — answers grounded in Spanish law (BOE), in English.

Have a specific legal question?

Ask AbogadoAI and get an answer based on Spanish law (BOE), with sources — in English.

Ask for free

This is general information, not legal advice. Verify on the BOE or consult a lawyer for your specific case.