Deregistering as self-employed without leaving anything open

Updated on 12 September 2026. Checked against the BOE.

Valery Grinkevich
Valery Grinkevich Licensed economist · tax adviser 20+ years of experience · Torrevieja, Costa Blanca
Quick answer

Deregistering as self-employed in Spain is two filings in two different places, and doing only one is the mistake that costs the most money. The census deregistration with the tax agency is due within one month of the cessation (article 11.2 of the general tax management and inspection regulation), and that same article warns that deregistering does not release you from returns already due. The RETA deregistration, with Social Security, is due within six calendar days (article 32.3.2.º of Royal Decree 84/1996, in the wording in force since 1 August 2026). And watch the vocabulary: the cese de actividad benefit is a different thing, claimed from your mutua and with its own requirements.

This site has explained how to register as self-employed since September, and the other half was missing until now: how to deregister without leaving anything open behind you. It is a double filing, at two bodies that do not talk to each other, with two deadlines that are not even close to each other, and the costliest mistake is not being late for one of them, it is not knowing there are two and doing only the one that comes to mind first.

This guide sorts out the census deregistration with the tax agency and the RETA deregistration with Social Security, says exactly when your monthly quota stops, lists what survives the closure (the quarter already running, the annual summaries, the income tax return for that year), explains what happens to the stock and to the assets you keep for yourself, clears up the costliest vocabulary confusion of all (the cese de actividad benefit is not deregistration) and closes with the different clock that applies to companies and with the years you still have to keep the paperwork.

Two separate deregistrations, and the costly mistake is doing one

A working autónomo is registered in two places at once, and each one requires its own filing when the activity ends: the tax agency, where you have been on the Census of Entrepreneurs, Professionals and Withholders since you filed your modelo 036 registration, and the General Treasury of the Social Security, where you are registered in the RETA scheme. Two different administrations, two different sets of rules, two different deadlines, and neither of them does the other one's filing for you.

Article 11.1 of the general regulation on tax management and inspection procedures (Royal Decree 1065/2007) requires a census deregistration from those who «cease carrying out any kind of business or professional activity», and also from anyone who, without being a business or a professional, stops paying income subject to withholding or payment on account. The Social Security side lives in a different rule altogether, Royal Decree 84/1996, and is filed electronically (article 46.1).

The costliest mistake is doing only one of the two, and it almost always goes the same way: you file the Social Security deregistration, because that is the one that stops the monthly quota and therefore the one that hurts, and you forget the census one, which keeps generating formal obligations for an activity that no longer exists. The typical result arrives months later, as demands and penalties for unfiled returns from a business that genuinely closed.

The order does not matter, because both are filed the same day online: the census filing marks when you stop invoicing and filing, and the Social Security one carries the cessation date that actually applies. The one that cannot wait is the RETA filing, with its six calendar days. The deadlines are so different that it pays to write both dates down on the day you close: one month for one, six calendar days for the other. If you are at the other end of the road, the guide on how to register as self-employed walks through these same two filings in the opposite direction.

The census deregistration: the filing due within one month

Deregistering with the tax agency is done with a census deregistration return, which is the same modelo 036 you used to register. The regulation does not fix the form: its article 13 leaves the place, the form and the deadline to whatever the ministry establishes, except where the deadline is in the regulation itself, which is exactly what happens here.

Article 11.2 is the key piece, and it is worth reading in full rather than just its first line: «The deregistration return must be filed within one month from when the conditions in section 1 of this article are met, without prejudice to the obligation of the person or entity concerned to file the returns and comply with the tax obligations incumbent on them, and without having to register in the census again for those purposes.» Three things in a single sentence: the one month deadline, the warning that deregistering cancels nothing already accrued, and the very useful detail that you do not have to register again to comply with what is still pending.

The month runs from when the conditions in section 1 are met, that is, from the real end of the activity, not from the day you find a gap to log into the electronic office. Someone who stops trading on the 15th has until the 15th of the following month, even if commercial loose ends keep them busy for weeks.

That same return closes other doors along the way. Article 14.1 says that filing it produces the effects of the cessation returns for activities subject to VAT, and article 14.3 says that, for anyone exempt from business activity tax, it replaces the specific returns for that tax. So there is no separate VAT deregistration filing: it happens inside the census return. And article 15 allows the deregistration to be done through the Documento Único Electrónico where the rules authorise its use.

The RETA deregistration: six calendar days, and when the quota stops

The Social Security deadline is not in the tax regulation but in article 32.3.2.º of Royal Decree 84/1996: deregistration and data change requests «must be filed within six calendar days following the day of the cessation in the work or the day on which the change takes place». This is a freshly changed figure: that wording came into force on 1 August 2026 with Royal Decree 643/2026, and before that the deadline had been three calendar days since the 2015 reform. A good part of the published content about deregistering still repeats the old one.

What decides how much quota you pay is not only the deadline but article 46.4, which is the rule specific to the RETA. Its letters a) and b) split the year in two: up to three deregistrations within each calendar year take effect from the day you ceased the activity, and the rest of that year's deregistrations take effect at the end of the last day of the calendar month in which you ceased. The fourth deregistration of the year therefore costs you the whole month even if you close on the 2nd.

If the deregistration is not requested, or is requested outside the form and the deadline, letter c) of that same article 46.4 is blunt: the registration stays alive, the obligation to contribute continues under article 35.2, and that period does not count as registered for benefit purposes. You pay and you are not covered. Article 35.2.1.º says it in positive terms: the request extinguishes the obligation to contribute from the cessation provided it is filed in the official form or medium and within the deadlines of article 32.3; and article 35.2.2.º says it in negative terms: otherwise, the obligation is not extinguished until the day the Treasury learns of the cessation.

One door stays open, and it is worth knowing about: article 35.2.4.º allows you to prove by any means admitted in law that the cessation happened on a different date, for the purpose of extinguishing the obligation to contribute, with any refund of quotas that follows. It is not a shortcut, it is an emergency exit with paperwork. To see which quota you were paying and under which bracket, the guide on the self-employed quota has this year's table.

What you still owe once you are no longer self-employed

The second half of article 11.2 is the one that saves the most money: deregistering does not exempt you from «filing the returns and complying with the tax obligations incumbent on you». In practice that means the quarter that was running when you closed still gets filed, with the real operations up to the cessation date and within its ordinary deadline, not earlier because you deregistered. If you were filing modelo 303 and modelo 130, the quarter of the cessation is the last one for both.

Behind the quarter come the annual summaries for the year of the cessation, due on their usual date the following year like any other year: modelo 390 if you were in the general VAT regime, and modelos 111 and 115 with their annual summaries if you were withholding. Closing in March brings none of those dates forward.

And there is the income tax return for the year in which you ceased, which is compulsory for a reason that surprises a lot of people: the last paragraph of article 96.2 of the income tax act (Ley 35/2006) requires a return, in any case, from «all natural persons who at any point in the tax period were registered as self-employed workers» in the RETA or in the equivalent sea workers scheme. No threshold applies: if you were registered for a single day of the year, you file for that year. The guide on the income tax return for the self-employed explains how the activity part is declared.

If any of those returns slips past you, it does not fix itself and it does not disappear with the deregistration: the guide on what to do when you miss a deadline sorts out the surcharges and how to regularise. And remember the end of article 11.2: you do not have to register in the census again to file what is still pending.

What is left in the stockroom: the VAT of closing down

When a business with stock, tools or a van closes, one question that almost no deregistration guide answers is what happens to all of it. The answer is in the VAT act, and it is not that it vanishes with the census filing.

Article 4.Dos.b) treats as carried out in the course of the activity «the transfers or assignments of use to third parties of all or part of any of the goods or rights forming part of the business or professional assets of the taxable persons, including those made on the occasion of the cessation». Translated: selling off the stock in order to close is a taxable sale like any other, even if it is the last one and even at clearance prices.

If instead of selling it you keep it, the operation is not neutral either. Article 9.1.º treats autoconsumo as a supply of goods for consideration, and its letter a) defines it as «the transfer, made by the taxable person, of tangible goods from their business or professional assets to their personal assets or to their own private consumption». The computer, the camera or the stock that stay at home when you close fit that definition, and their place is the final 303, not oblivion.

With capital goods there is one more layer. Article 107.Uno subjects the VAT deducted on their purchase to adjustment over the four calendar years following the one in which they were bought, except for land and buildings, where article 107.Tres stretches that period to the nine calendar years following the purchase, and article 110.Uno orders a single adjustment, for the time left in that period, when the asset is supplied within it. Closing in the second year with a deducted van is not the same as closing in the sixth, and that difference is calculated, not guessed.

Deregistering is not the cese de actividad benefit

This is where the costliest vocabulary confusion lives, and the name itself feeds it: cese de actividad is a cash benefit, the self-employed equivalent of unemployment pay, whose cover is arranged with a mutua (a Social Security partner insurer). Deregistering, by contrast, is simply telling two administrations that the activity has ended. Deregistering gives no right to the benefit, and the benefit does not save you the deregistration.

The requirements are in article 330.1 of the General Social Security Act and they are demanding: being affiliated and registered, having covered the minimum contribution period for cessation of activity set by article 338, being in a legal situation of cessation of activity and signing the activity agreement under the Employment Act, not having reached ordinary retirement age in the case of a definitive cessation, and being up to date with contributions, with an invitation to pay within thirty calendar days if you were not up to date on the day of the cessation.

The minimum period is the one most often quoted wrongly. Article 338.1, in the wording in force since 2023, measures the periods contributed within the forty-eight months before the cessation, «of which at least twelve months must fall within the twenty-four months immediately preceding». The old wording, which spoke of twelve continuous months immediately before, is still circulating around half the internet and is no longer the one that applies.

Nor does any reason for closing qualify. Article 331.1 lists the causes: in the economic scenario, for instance, losses over a full year above 10 per cent of the income for that same period, excluding the first year of activity, or judicial or administrative enforcement proceedings amounting to at least 30 per cent of the previous year's income, or insolvency proceedings that prevent continuing. Closing because business is slow, without any of those documented circumstances, does not open the benefit, but it does not stop you deregistering at all.

Registering again: what you keep and what you do not

Nothing stops you coming back. What changes is the terms on which you come back. Social Security affiliation is never lost: article 6.1 of Royal Decree 84/1996 says it is «single and general for all the schemes» and that it «extends throughout the lifetime of the persons concerned», and the Social Security number of article 21 is the same one as always. Registering again is not starting from zero in that sense.

The reduced quota, on the other hand, has a memory. Article 38 ter of Ley 20/2007 reserves it for those who register for the first time or who «had not been registered in the two years immediately before», counted from the effective date of the registration. And its section 4 adds two hard rules: the right is extinguished if you deregister during any of the periods in which it was being applied, and the period out of the scheme required to enjoy it again is three years for anyone who already enjoyed it in their previous registration. Whoever deregistered halfway through the reduced quota does not pick it up again on the way back. The details are in the guide on the flat rate.

The contribution base carries no history either: on returning you choose again the bracket matching the income you expect in this new stage, with this year's table in hand.

And there is a symmetry with deregistration worth keeping in mind if you plan to move in and out of the RETA in the same year: just as only the first three deregistrations of the calendar year take effect from the day of cessation, article 46.2.a) gives effect from the real starting day to the affiliation and to up to three registrations within each calendar year; the following ones take effect from the first day of the relevant calendar month. Going in and out many times in one year has a cost.

If what closes is a company, the clock is a different one

Everything above describes the deregistration of an individual. When the one ceasing is a company, article 11.3 of the general management and inspection regulation changes the starting point of the deadline: the deregistration return is filed within one month «from when the effective cancellation of the corresponding entries in the Commercial Registry has taken place, where applicable», not from when the company stops trading.

The practical consequence matters and runs against intuition: a company that no longer invoices but whose dissolution and liquidation is not yet registered is still registered for census purposes, with its formal obligations running, because its deregistration deadline has not even started to count. Until that cancellation arrives, it follows the rules of a dormant SL, which are not those of an autónomo who has already ceased.

The same article 11.3 provides for what happens when those entries do not exist: the tax administration informs the Commercial Registry of the deregistration request so that it enters a marginal note on the company's page, and from then on the Registry reports to the administration any act concerning that entity presented for registration. And if it is the administration that holds enough data about the cessation, it is the one that tells the Registry to enter that note of its own motion.

Article 11.4 adds a third clock, for the saddest scenario: in the event of the taxpayer's death, the heirs file the deregistration return within six months of the death, and within that same period they report the change in ownership of any rights and obligations of tax relevance still in force. Article 11.2 adds that, in the succession scenarios of articles 39 and 40 of the General Tax Act, the successors' details are reported in the deregistration return itself.

Keeping the paperwork: six years that do not end with the closure

Article 30.1 of the Commercial Code requires entrepreneurs to keep «the books, correspondence, documentation and supporting records concerning their business, duly ordered, for six years from the last entry made in the books, except as established by general or special provisions». The starting point is not the date of the deregistration but the last entry, which is almost always later than the day the shop closed.

In case anyone thought closing cancels that duty, article 30.2 says it without hedging: «The entrepreneur's cessation in the exercise of their activities does not release them from the duty referred to in the preceding paragraph», and if they have died the duty falls on their heirs; in the case of dissolved companies, on their liquidators. Throwing the boxes out on closing day is exactly what this section forbids.

There is one more document to keep, and this one for a different period: article 35.4 of Royal Decree 84/1996 requires the document evidencing the Social Security deregistration to be kept for four years, just like the registration one. It is the document that proves which day you reported the cessation, which is precisely the fact that decides when your obligation to contribute ended.

Keeping things properly also has a practical reward: if a review of an already closed year turns up years later, the difference between sorting it out in an afternoon and having a bad time is having the books and the invoices ordered and reachable, with or without an activity behind them.

How kontora handles this

kontora keeps your census data and your calendar in plain sight so you know exactly what is left to file before you close, and it warns you about the deadlines that stay alive after the deregistration. When you enter the cessation date, it derives the last quarter with obligations, the annual summaries for that year and the deadline for the census deregistration, and it reminds you that the books and the invoices still have to be kept. Ceasing does not erase your data or shut you out. Filling in and filing the 036 is on you, in the tax agency's electronic office, and the Social Security deregistration is requested in theirs. And what you take with you: a full export of your data, in one click, free, also after you deregister.

Frequently asked questions

Can I deregister with the tax agency and stay registered with Social Security?
Formally they are independent filings, so yes, but it is an absurd position: you would keep paying the monthly quota for an activity you yourself have declared ceased to the tax agency. The sensible move is to file both, each within its own deadline.
I deregistered halfway through the quarter, do I still file the 303?
Yes. Article 11.2 of Royal Decree 1065/2007 is explicit: deregistering does not exempt you from filing the returns already incumbent on you. The quarter of the cessation is filed with the real operations up to that date and within its ordinary deadline, and the article itself clarifies that you do not have to register in the census again to do it.
Do I have to file an income tax return for the year I deregistered?
Yes, with no threshold. The last paragraph of article 96.2 of the income tax act requires a return from anyone who at any point in the tax period was registered as a self-employed worker in the RETA. A single day of registration in the year is enough to make that year's return compulsory.
What happens if I file the RETA deregistration late?
You keep paying. Article 46.4.c) of Royal Decree 84/1996 keeps the registration alive, with the obligation to contribute under article 35.2, and that period does not count as registered for benefits. Article 35.2.2.º specifies that the obligation is not extinguished until the day the Treasury learns of the cessation.
Do I lose the reduced quota if I deregister and come back?
Article 38 ter.4 of Ley 20/2007 extinguishes the right if you deregister during any of the periods in which it applied, and requires three years out of the scheme before anyone who already had it can enjoy it again, against the two years asked as a general rule.
I am keeping the stock and the van, does that carry VAT?
Article 9.1.º of the VAT act treats autoconsumo as a supply for consideration, which covers moving goods from business assets to personal ones. And article 4.Dos.b) makes clearance sales on the occasion of the cessation taxable. With capital goods there is also an adjustment (articles 107 and 110).
What if I invoice something after deregistering?
Invoicing reopens the question of whether the activity had really ceased, with the tax and contribution consequences that drags along. If more operations are coming, the clean route is to consider registering again before issuing, not afterwards.
How long do I keep the invoices after closing?
Six years from the last entry made in the books, under article 30.1 of the Commercial Code, and article 30.2 clarifies that the cessation does not release you from that duty. The document evidencing the Social Security deregistration is kept for four years (article 35.4 of Royal Decree 84/1996).

Keep reading

Registering as self-employed in Spain: the two procedures, in order and without fines

Self-employed social security contributions in Spain 2026: the complete bracket table and how to work out yours

I missed a Hacienda deadline: what to do now

Rather have this calculated for you?

kontora generates your tax forms box by box, tells you how much to set aside and reminds you before every deadline.

Pricing · Calculators