Técnica con casco y arnés junto a un aerogenerador en Aragón

Pacto de Permanencia in Spain: Do You Have to Pay if You Leave?

Published

If you have signed, or have been presented with, a pacto de permanencia in Spain, you can speak with Fernanda Vargas, employment lawyer in Madrid, on WhatsApp or book an appointment on Calendly.

Andrea is 28, Colombian, lives in Zaragoza, and works as a maintenance technician at a wind energy company. Shortly after joining, the company pays for an international certification so she can work at height on wind turbines of a new model. In this example, that course is valued at €6,000. They also put a clause in front of her: two years of required service and, if she leaves earlier through voluntary resignation, full repayment of the course. That same year, she also takes the mandatory occupational risk prevention course. Fourteen months later, she receives a better offer. When she gives notice, human resources comes out with the phrase nobody wants to hear: “We’ll deduct it from your final settlement. And the prevention course too.”

“We’ll Deduct the Course From Your Settlement”: Andrea’s Offer

That is the moment when the real doubts begin. Is a pacto de permanencia always binding? Does the type of course make no difference? Can they take the money without asking you? Do you have to repay everything even if you have already completed a large part of the period?

The short answer is this: not every pacto de permanencia is abusive, but neither can a company automatically collect everything exactly as it has written it down. In Andrea’s case, one part of the agreement may fit the law and another part may not. And that difference changes everything.

That is why it is worth looking first at the specific situation and then at the legal rule. Because with a pacto de permanencia in Spain, it matters a great deal what training the company paid for, why it paid for it, how long the commitment lasts, and who is actually ending the employment relationship.

What a Pacto de Permanencia Is and What It Is For

Imagine that a company genuinely invests in training you so you can do a very specific job that not just anyone could take on from day one. That is what a pacto de permanencia seeks to protect: that the company does not pay for important training only for you to leave immediately afterward for another company using that specialization.

“When the worker has received professional specialization at the employer’s expense in order to launch specific projects or perform specific work, the two parties may agree that the worker will remain with that company for a certain period of time. The agreement may not last more than two years and must always be made in writing. If the worker leaves the job before the end of that period, the employer shall be entitled to compensation for damages and losses.”

Put simply: the law allows this agreement, but only in one specific scenario. It does not work for just any course or any standard clause inserted into the contract.

The expression “professional specialization” refers to real and relevant training, with value in the market, that gives you a qualification beyond the ordinary training for the role. And “compensation for damages and losses” means the financial compensation the company may claim if you leave early in a case where the agreement is valid. It is not an automatic penalty for signing. It is a claim that must be connected to the harm the company says it has suffered.

Also, the fact that a clause has been signed does not mean it is valid on any terms whatsoever. If you want to better understand how far what you sign at work can go, this guide on whether your signature can mean giving up labor rights may help.

The Law’s Three Requirements: Specialization, a Maximum of Two Years, and in Writing

Let’s go back to Andrea. Her company did not pay for an internal talk or basic onboarding training. It paid for an international certification to work at height on wind turbines of a new model. That points, in principle, to specialized training for specific work. That is where the company may have grounds to agree on a required period of service.

1. There Must Be Genuine Professional Specialization

It is not enough to call just any course “specialization.” It must be training funded by the company and connected to launching specific projects or performing specific work. In this example, Andrea’s certification fits that idea much better than routine training for the role.

For you, the practical question is this: does that course give you a specific and valuable qualification, or was it simply the normal training needed to keep doing your job?

2. It Cannot Last More Than Two Years

The law sets a clear cap: two years. Andrea’s agreement says two years, so in terms of duration it does not exceed the limit. If an agreement sets a longer period, that excess is unenforceable.

3. It Must Be in Writing

The required period of service cannot rest on a conversation, a verbal promise, or a “we already discussed it.” It must be in writing. In Andrea’s case it is, and that works in the company’s favor on this point.

That said, the fact that the agreement is in writing does not resolve everything. It is worth checking exactly which course it covers, what its real cost was, when the period starts to run, and how the amount claimed if you leave early would be calculated. That is where many clauses fail or go beyond what is allowed.

The Training They Can Never Charge You For

Here Andrea has a clear defense. That same year she also took the mandatory occupational risk prevention course. And that course does not fall within the scope of the pacto de permanencia.

“Training necessary for the worker’s adaptation to changes made in the job position. Such training shall be paid for by the company, without prejudice to the possibility of obtaining the training credits intended for that purpose. Time spent on the training shall in all cases be regarded as actual working time.”

This means something very important: training needed to adapt you to changes in your position must be paid for by the company. And, in addition, training that is mandatory by law does not justify a pacto de permanencia. The clearest example is occupational risk prevention.

Applied to this case: the company may try to rely on the specific certification for the new wind turbine model, but it cannot lump the mandatory prevention course into the same package in order to claim that cost from her as well. That part does not stand.

If your clause mixes different courses together, be careful. Very often, a single package is presented to create the appearance of a fixed debt, when in reality you have to separate specialized training from training that the company had to bear no matter what.

If You Leave Early: How Much Can They Really Claim From You?

Andrea receives a better offer after 14 months. Her clause says that, if she leaves before the two years are up, she will repay the full amount of the course. At first glance it looks blunt. But the law does not say the company automatically has the right to recover everything it spent in every case.

What the law recognizes is the right to compensation for damages and losses. That matters a great deal. Because compensation must be reasonable and connected to the specific case. And when the agreed amount is disproportionate, judges may reduce it, for example by taking into account the time you have already completed.

In this example, Andrea has already stayed 14 of the 24 months. So if the company intends to demand 100% of the certification cost from her as if she had left shortly after finishing the course, that is clearly open to dispute. It does not mean the company cannot claim anything. It means that claiming everything may not hold up.

When reviewing a claim like this, three things are usually key: the specific training covered by the agreement, the real cost to the company, and the time that remained to be completed. The more automatic and rigid the clause is, the more reasons there are to review it carefully.

In a situation like Andrea’s, what is usually reasonable is to negotiate an amount proportionate to the remaining time, leaving the mandatory prevention course completely out of it. That is a legal negotiation, not a simple calculation improvised by human resources.

When You Do Not Have to Pay Anything

The agreement is designed for cases where it is you who leaves the job voluntarily before the agreed time. If that does not happen, the basis for the claim changes completely.

  • If the company dismisses you, there is no basis to claim compensation from you under the pacto de permanencia.
  • If your fixed-term contract ends, there is also no basis to require that compensation from you.
  • If you leave because of a serious breach by the company, you would not have to pay it either.

In other words: the agreement applies when you “leave” the job before the agreed time. If Andrea had been dismissed instead of leaving, she would not have to pay anything for that required period of service. And if you also want to understand what rights may arise when the company ends the employment relationship, you can read how compensation for unfair dismissal in Spain works.

The Final Settlement and Deductions: How to Protect Yourself

The threat Andrea receives has two parts: deducting the certification from the final settlement (finiquito) and also adding the prevention course. The second, as you have already seen, should not be included. And they cannot simply close off the first one if you dispute it.

If you do not agree with the amount, the company should not treat that payroll or settlement deduction as if it had already been accepted. If they present the settlement with that deduction and you dispute it, you can sign “not in agreement” or “received, not in agreement” and make a claim.

It is also in your interest to keep a copy of the agreement, identify which course it actually covers, ask for the items to be separated, and check what the training really cost. In disputes like this, the difference between a “specialization course” and “mandatory training” is not a detail: it is the heart of the issue.

If an amount has been deducted from you or you want the clause reviewed before signing, Fernanda Vargas, employment lawyer in Madrid, can help you through her employment law service.

Checklist: Is My Pacto de Permanencia Valid?

  • Does the agreement identify specific training rather than making a generic reference to “courses”?
  • Is that training genuine professional specialization rather than ordinary training for the role?
  • Did the company pay for it in order to launch specific projects or perform specific work?
  • Is the agreement in writing?
  • Is the duration two years or less?
  • Can you determine what the course actually cost?
  • Does the clause state when the required period starts to run?
  • Is the repayment proportionate to the time remaining, or does it automatically impose the full amount?
  • Are occupational risk prevention, training mandatory by law, and training needed to adapt you to changes in the role excluded?
  • Would the claim only be triggered if you leave voluntarily before the agreed time?

If you apply this checklist to Andrea’s case, the result is fairly clear: the agreement may be valid as to the specific certification, because there is specialization, it is in writing, and it does not exceed two years. But that does not authorize charging her everything without nuance. Full repayment is debatable after 14 months completed, and the prevention course cannot be claimed in any event. Andrea can negotiate an amount proportionate to the remaining time and, if the company deducts it without agreement, sign the settlement as not in agreement and make a claim. If she had been dismissed, she would not have to pay anything.

Frequently Asked Questions

Do I Have to Repay the Course if I Leave the Company?

It depends. There may be an obligation to pay compensation if there is a valid agreement, the training was genuine professional specialization paid for by the company for specific work or a specific project, the agreement is in writing, it does not exceed two years, and it is you who leaves voluntarily before the end of the period.

No, if the course was training mandatory by law, occupational risk prevention, or training needed to adapt you to changes in the role. Nor if the company dismisses you, if your fixed-term contract ends, or if you leave because of a serious breach by the company. And in addition, the existence of the agreement does not automatically mean you have to repay the full cost: the amount must be reasonable.

Can a Pacto de Permanencia Last More Than Two Years?

No. The law sets a maximum of two years. If a clause provides for a longer period, that excess is unenforceable.

What Happens if I Am Dismissed Before the Period Ends?

If the company dismisses you before the required period of service ends, there is no basis to claim compensation from you under the agreement. The same applies if a fixed-term contract comes to an end. The agreement is designed for cases where it is you who voluntarily leaves the job early.

Can They Deduct It From My Settlement?

No, not just like that if you dispute it. If the company includes the deduction in the settlement and you do not agree, you can sign “not in agreement” or “received, not in agreement” and make a claim. If the issue appears on your payslip or in the settlement, it is worth first reviewing whether the agreement is valid, what training it covers, and whether the amount claimed is reasonable.

Is a Pacto de Permanencia Valid for an Occupational Risk Prevention Course?

No. Occupational risk prevention training is mandatory training paid for by the company and does not justify a pacto de permanencia. Nor does training needed to adapt you to changes in the role.

If you would like Fernanda Vargas to review your pacto de permanencia, your settlement, or a claim from the company, you can write to her on WhatsApp or book an appointment on Calendly.

How we can help

Does this affect you? Fernanda Vargas reviews your case and explains your options. More about Employment lawyer in Madrid.