Deregistering as an Autonomo: Baja With Hacienda and Seguridad Social
Sandor Farkas
Founder and editor of Mallorca Plus
Helps expats and residents navigate authorities, housing and everyday life on Mallorca.
If you stop working as an autonomo on Mallorca, it is not enough to simply stop invoicing. Deregistering as an autonomo means two separate procedures with two different authorities, each with its own deadline and its own form. Miss one, whether it is the Seguridad Social or Hacienda, and you end up paying twice over: fines and contributions that should no longer be due. This post walks through the order, both deadlines, what happens to your last tax return, and what changes if you move back to your home country afterward, for your tax residency, health insurance, and your Spanish pension contributions.
At a glance
Deregistering as an autonomo runs through two independent bodies: the baja in RETA with the Seguridad Social via Import@ss, and the baja censal with Hacienda using Modelo 036. You still have to file Modelo 303 and 130 for the final quarter, followed by the annual filing in January. A regularizacion of your contributions can still arrive up to two years later. If you move back to your home country, your tax residency changes, and your Spanish contribution record still counts toward benefits there, under your country's social security coordination with Spain.
What Baja Autonomo Means
Baja autonomo is the official end of your self-employment: a notice to the Seguridad Social that you are no longer paying contributions as a trabajador autonomo, and a separate notice to Hacienda that your economic activity has ended. Only once both steps are done are your obligations fully closed out.
If you are giving up self-employment because business has dried up and you may be entitled to a benefit, it is worth checking our post on cese de actividad first. The requirements for that benefit differ from the simple deregistration covered here.
The Order: Seguridad Social First, Then Hacienda
Deregister with RETA first, then with Hacienda. Both deadlines run in parallel, but one of them is much shorter:
- The baja in RETA via Import@ss is due within six calendar days of your last working day. Since 1 August 2026, Real Decreto 643/2026 extended the previous three-day deadline to six days. You need Cl@ve or a digital certificate to access it.
- The baja censal with Hacienda using Modelo 036 (box 150) has a deadline of one month after your activity ends.
One authority is not enough
Many autonomos only deregister with the Seguridad Social and consider the job done. Without the baja censal at Hacienda, your quarterly filings keep running, with fines starting at 100 euros per missed filing and 200 to 400 euros for a late baja censal itself.
Our guide to filling out Modelo 036 walks through each field step by step, in case the form itself is still unclear.
The Final Quarter and the Annual Filings in January
The baja ends your ongoing activity, but not your filing obligations for the period before it. For the quarter in which you deregister, you still file Modelo 303 (IVA) and Modelo 130 (IRPF advance payment), limited to the days you were actually active.
In January of the following year, two more filings come due: Modelo 390, the annual summary of your IVA activity, and, if you were still active in the fourth quarter, your last Modelo 130. Both are due by 30 January.
| Posten | Kosten | Dauer |
|---|---|---|
| Baja RETA (Import@ss) | 0 EUR | 6 days after your last working day |
| Baja censal (Modelo 036) | 0 EUR | 1 month after your last working day |
| Modelo 303 / 130, final stretch | depends on your tax bill | regular quarterly deadline |
| Modelo 390 annual filing | 0 EUR | by 30 January |
And then there is the regularizacion: the Seguridad Social later compares the contribution base you paid against your actual income from your Renta filing, even for years in which you were already deregistered. This reconciliation often arrives up to two years later through the NOTESS electronic mailbox. Our post on the regularizacion explains how to read that notice and what to watch for if you want to appeal it.
Open Invoices and Business Assets
Deregistering does not erase invoices you already issued. If you billed a client before your baja date, you still report it in the relevant quarterly filing, even if payment only arrives after you have deregistered.
Business assets you move into personal use, such as a laptop, a company car, or tools, raise a separate tax question. This can count as self-supply and trigger IVA, but under Article 7.7 of the IVA law only if you actually deducted input VAT when you bought the item. If you never claimed that deduction, taking the item for personal use stays tax-free.
Moving Back to Your Home Country: Tax Residency, Health Insurance, and Pension
If you move back to your home country after deregistering, the 183-day rule flips around. Spend fewer than 183 days in Spain in the calendar year and shift the center of your life back home, and your Spanish tax liability ends, with your home country taxing you again instead. Our post on Spanish income tax for expats covers how that threshold works in detail.
For health insurance, you typically re-enroll with a provider in your home country once you are resident there again. The exact deadlines depend on your previous cover and your future employment status.
Your contribution record as an autonomo in the Spanish Seguridad Social is not lost in the process. If your home country is in the EU, the EEA, or Switzerland, Spanish contribution periods count toward the qualifying period for a pension there under EU social security coordination rules, even though each country still pays out only its own share in the end. If you are moving somewhere outside that group, for example the US or the UK, check whether your country has a bilateral social security agreement with Spain. Several do, and they can cover similar ground, but the details vary by country.
Do my Spanish autonomo contributions count toward a pension back home? For EU, EEA, and Swiss citizens, yes, they count toward the minimum qualifying period, though each country calculates and pays its own share separately based on what you actually contributed there. For other nationalities, it depends on whether your country has a bilateral social security agreement with Spain.
Do I need to register back home retroactively from my baja date? No. What matters is the day you actually move your habitual residence back, not the date of your baja in Spain.
Conclusion
Deregistering as an autonomo follows a clear order: the baja in RETA via Import@ss within six days, then the baja censal with Hacienda via Modelo 036 within one month. The final quarterly filing and the annual settlement in January are still mandatory on top of that, and a regularizacion can still show up two years later. If you are moving back to your home country, keep an eye on your change in tax residency and your health insurance, your Spanish pension contributions are generally protected either way through EU coordination or a bilateral agreement. A gestoria often helps with the paperwork itself, keeping both deadlines in view at once, especially if the move happens at the same time.