Changing, pausing and closing self-employmentArticle 5 of 6 · 8 min read
What closing your self-employment (baja) really involves
Closing as self-employed in Spain means two separate deregistrations, one with Social Security and one with the tax office, followed by final tax returns. This page shows what each step does, how the deadlines differ and what happens to your quota. It is for anyone stopping work.
Terms used
- Baja — The baja is your formal deregistration, ending your registration as self-employed.
- TGSS — The TGSS is Spain's Social Security treasury, where self-employed workers register and pay their quota.
- AEAT — The AEAT is Spain's tax office.
- Modelo 036 — Modelo 036 is the census form used to register, change or close an activity with the tax office.
- Modelo 037 — Modelo 037 is the simplified census form, available only to some taxpayers.
- Modelo 303 — Modelo 303 is the quarterly VAT return.
- Renta — The renta is the annual personal income-tax return.
- Quota — The quota is the monthly Social Security payment made by self-employed workers.
Key rules
- Two bajas: Social Security and the tax office are separate, so closing one does not close the other.
- Late baja: A late Social Security baja may only take effect from the filing day, so your quota keeps running until then.
- Daily quota: If you close mid-month, you pay the quota only up to your baja date.
- Final returns: Your last VAT and income-tax returns are still due after you stop, and the final VAT return must be marked as final.
Closing means two bajas and then final returns
Stopping work does not close you automatically. You must do two things, each with its own deadline: a baja with the TGSS (Social Security), and a census deregistration with the AEAT (the tax office). After that, you still file your last VAT and income-tax returns. Doing only one of the two leaves you exposed on the other side.
Step 1: the baja with Social Security
Request your baja in the self-employed scheme within 3 natural days after you stop working, so it takes effect on the day you stopped. Natural days include weekends and holidays, so do not wait.
You can file it online with a digital certificate, Cl@ve or DNIe, or in person at a TGSS office with an appointment. A gestor registered in the RED system can also file it for you. You will need your personal data, your social security number, the date you stopped and the reason. The paper route uses form TA.0521/2.
If you file late, the baja may only take effect from the day you file, and your quota keeps running until then. Only up to three baja requests per calendar year can have retroactive effect.
What happens to your quota
Since 2023 the quota is charged by the day. If you close mid-month, you pay only for the days from the first of the month up to your baja date. Before 2023, you would have paid the full month. This only works in your favour if the baja date is correct, so check the filing date against the effective date.
Step 2: the census baja with the tax office
Tell the tax office within one month of stopping, using modelo 036, or the simplified modelo 037 if you may use it. Tick the box for ceasing activity.
The Social Security baja does not cancel your tax obligations. Until the census baja is filed, the tax office may keep expecting periodic returns from you.
Step 3: your final returns
Returns stop at your closing date, but the last ones are still due:
- VAT: file the last modelo 303 for the quarter in which you stopped, in the normal window, and mark it as the final return. The yearly VAT summary (modelo 390) follows in January, unless you are exempt from it.
- Stock and assets: VAT may be due on stock or assets you keep for private use, treated as if you sold them to yourself.
- Income-tax instalments: file modelo 130 or 131 for the quarter in which you stopped.
- Withholdings: file modelo 111 (employees or professionals) and modelo 115 (rent) for the last period in which you made payments.
- Yearly summaries: modelos 390, 190 and 180, as they apply to you, are filed in January after the year you closed.
- Annual renta: include your income up to the closing date in your income-tax return for the year you closed, filed in the normal campaign (roughly April to 30 June of the following year). Assets you keep are treated as moved to private use, which can create a gain or loss.
If you live in the Canary Islands, Ceuta or Melilla, indirect tax works differently, so ask a gestor. The same goes for monthly VAT filers and special VAT regimes, which have other deadlines. If you are not a Spanish tax resident, you file a different income-tax form (modelo 210 or 150).
The timeline, documents and checklist below walk you through the order and the paperwork.
Timeline and deadlines
-
Your quota stops, counted only for the days up to your baja date: from the baja date if you filed on time; if you filed late, the quota can run until the day you filed
-
File the census baja with the tax office (modelo 036, or 037 if you may use it): within one month of the date you stopped
-
File your last VAT return (modelo 303) for the quarter you stopped, marked as the final return: from the 1st to the 20th of the month after that quarter ends; for the last quarter of the year, from 1 to 30 January
-
File the yearly VAT summary (modelo 390), unless you are exempt from it: in January of the year after you closed, together with the last-quarter return, up to 30 January
Documents you need
-
Your personal data and social security number, to request the baja in the self-employed Social Security scheme.
-
The date you stopped working and the reason for stopping, which Social Security asks for in the baja request.
-
A digital certificate, Cl@ve or DNIe, to file the baja online. Without one, you need an appointment at a Social Security office.
-
Form TA.0521/2, the paper baja form, only if you file the baja on paper instead of online.
-
The census declaration modelo 036, or the simplified modelo 037 if you may use it, with the baja box for ceasing activity marked. The tax office takes it online with a digital certificate or Cl@ve, or in person with an appointment.
Final filings and records checklist when you close
-
File the census baja (modelo 036, or the simplified 037 if you may use it) within one month of stopping, marking the box for ceasing activity.
-
Check that the same census filing also removes your IAE heading and your EU operator (ROI/VIES) status.
-
Declare VAT on any stock or assets you keep for private use, as it may be due as a self-supply.
-
File your last IRPF instalment return (modelo 130 or 131) for the quarter in which you stopped.
-
File the yearly summaries that apply to you (390, 190, 180) in January after the year you closed.
-
Include your income up to the closing date in your annual IRPF return (renta) for the year you closed, filed in the normal campaign from April to 30 June.
-
Cancel your professional body (colegio profesional) or mutualidad membership by written request to each.
-
Tell your town hall to cancel any municipal licence or declaración responsable (a declaration that allowed you to open).
-
Cancel bank direct debits, your invoicing software contract and any registered business name that no longer applies.
-
Keep your invoices and accounting records for at least 6 years after the last entry, and longer if an inspection or dispute is open.
What if you stopped working but never deregistered?
Late baja is usually not backdated
Ending your work does not end your registration. Until the baja is filed, you stay on the books as an active self-employed person, and the monthly quotas keep running.
If you file late, the baja normally takes effect on the day you request it, not the day you really stopped. Social Security can backdate it only when the delay has a cause you can prove, such as a death, a hospital stay, or a deregistration that was already done elsewhere. Do not count on it for ordinary forgetfulness. Ask for it anyway, with proof of the real end date: the tax office's census baja, the closing of your company, or an end-of-contract document.
Social Security can also deregister you on its own if it finds evidence that you stopped. Quotas already charged are not cancelled automatically.
What debt builds up
Unpaid quotas are treated as ordinary debt from an active self-employed person. It grows in steps:
- Pay after the deadline and a 20% surcharge applies.
- Social Security then sends a formal demand for payment. You get a short window, around 10 days, to pay or appeal.
- If you do nothing, it issues an enforcement order. A further 20% surcharge applies, plus interest and costs.
- Enforcement can then seize money from your bank accounts, wages, pensions and tax refunds. The debt can also block public contracts, grants and instalment plans.
Social Security debts expire after 4 years. You can appeal at each stage, and you can ask to pay in instalments. Do this early, before the seizure stage.
Tax office: the same problem
Without a census baja, the tax office also still treats you as active. Your periodic returns stay due, even with zero figures. Late or missing returns bring surcharges and fines, and the tax office can also fine you for not reporting that you stopped. File the census baja as soon as you notice, and file any overdue returns.
Getting quotas back
You can recover quotas paid for months when you did no work, but it is not automatic. Send two requests to your provincial Social Security office: a retroactive baja and a refund of wrongly paid quotas. The 4-year limit applies to refund claims.
Gather proof that the work really ended:
- Invoices showing no activity
- Closure papers for your company
- Employment contracts, if you started a job
- Your work-life record
- Bank statements
If the office refuses, you can file an administrative appeal and then go to court. Your chances are better when the delay was not your fault. The office decides each case on the evidence.
Frequently asked questions
How do I request my baja in the self-employed Social Security scheme?
You request your baja online through the Social Security Import@ss service or its electronic office, using a digital certificate, Cl@ve or DNIe. You can also go in person to a Social Security office with an appointment, or have a registered gestor file it for you.
Do I pay a full month's quota if I close in the middle of the month?
No, since 2023 you pay the quota only for the days from the first of the month up to your baja date. This holds when you file on time, because the baja stops the quota from that day.
What happens if I file my baja late?
If you file after the deadline, the baja may take effect only from the day you file, and your quotas keep running until then. Up to three times per calendar year, you can ask for the baja to take effect on the date you actually stopped.
Will the tax office keep expecting returns if I only do the Social Security baja?
Yes, the tax office may keep expecting your periodic returns until your census baja is filed. The Social Security baja does not close your tax registration. Once the census baja is processed, no more periodic returns are required.
More in Changing, pausing and closing self-employment
- Changing your activity, address or regime after registering
- Moving region or leaving Spain: what happens to your self-employment
- Registering a family member who helps in your business (colaborador familiar)
- Pausing or closing your self-employment: which fits your situation?
- Starting again after a break: effect on the reduced quota
← Back to Changing, pausing and closing self-employment · Find your city
Need certainty before you act?
For important relocation decisions, speak with a qualified human specialist.
Always verify important information with the relevant official authority or a qualified adviser before acting. This website uses large language models together with various public data sources, official government documents and other established sources. Due to the amount of data on this website, some information might be wrong. Information may also be incomplete or outdated.