Voixa Consultors · corporate services in Spain
Personal Income Tax Act · 01

Tax residence and the exit tax

Law 35/2006, articles 8 to 10, 12 to 13, 14.3 and 95 bis: the two tests that make an individual Spanish tax resident — 183 days or the centre of economic interests — the family presumption, the calendar-year rule with no split year, the four extra years for Spaniards moving to tax havens, and the exit tax on shareholdings when a long-term resident leaves.

Unofficial English translation from the Spanish by Voixa Consultors S.L. Alexander Baranov is responsible for the translation. Source: Ley 35/2006, de 28 de noviembre, del Impuesto sobre la Renta de las Personas Físicas, consolidated text, last modified 7 October 2026, BOE-A-2006-20764 ↗. Check wording, figures, dates and legal effect against the Spanish original before relying on this reading. Source snapshot: 5 November 2026. This series translates only the provisions of the Act that decide whether, and how, a person moving to or leaving Spain is taxed here.

Resident for the whole year, or not at all

Spain has no split-year rule in this Act. Article 12 makes the tax period the calendar year, and article 9 asks whether the person is resident in that year. Someone who arrives in May and spends more than 183 days in Spain by December is resident for the whole year — and taxable on worldwide income from 1 January, subject to any applicable treaty. Someone who arrives in August is not resident that year by days, but may still be by the second test, if Spain is where their main economic interests lie. The impatriate regime on the next page changes how a new resident is taxed, not whether they are resident.

Title I, chapter II. Taxpayers

Article 8. Taxpayers

1. The following are taxpayers for this tax:

a) Natural persons who have their habitual residence in Spanish territory.

b) Natural persons who had their habitual residence abroad for any of the circumstances provided for in article 10 of this Act.

2. Natural persons of Spanish nationality who evidence their new tax residence in a country or territory regarded as a tax haven shall not lose the status of taxpayers for this tax. This rule shall apply in the tax period in which the change of residence takes place and during the following four tax periods.

3. Civil partnerships not subject to Corporate Income Tax, estates in abeyance, communities of property and other entities referred to in article 35.4 of Law 58/2003 of 17 December, the General Tax Act, shall not be regarded as taxpayers. Their income shall be attributed to the partners, heirs, co-owners or participants respectively, in accordance with section 2 of Title X of this Act.

Article 9. Taxpayers who have their habitual residence in Spanish territory

1. The taxpayer shall be deemed to have their habitual residence in Spanish territory where either of the following circumstances arises:

a) That they remain in Spanish territory for more than 183 days during the calendar year. To determine this period of stay in Spanish territory, sporadic absences shall be counted, unless the taxpayer evidences their tax residence in another country. In the case of countries or territories regarded as tax havens, the tax authorities may require proof of stay there for 183 days in the calendar year.

In determining the period of stay referred to in the preceding paragraph, temporary stays in Spain resulting from obligations assumed under cultural or humanitarian collaboration agreements, free of charge, with the Spanish public administrations shall not be counted.

b) That the main nucleus or base of their activities or economic interests is located in Spain, directly or indirectly.

It shall be presumed, save proof to the contrary, that the taxpayer has their habitual residence in Spanish territory where, in accordance with the foregoing criteria, the spouse from whom they are not legally separated and the minor children dependent on them habitually reside in Spain.

2. Foreign nationals who have their habitual residence in Spain shall not be regarded as taxpayers, on a reciprocal basis, where this circumstance results from any of the cases established in paragraph 1 of article 10 of this Act and the application of specific rules derived from the international treaties to which Spain is a party does not apply.

Sporadic absences count as days in Spain. Under letter a), time spent briefly abroad is added to the days in Spain unless the person proves tax residence in another country — normally with a residence certificate from that country’s tax authority. Counting only nights physically spent in Spain, and stopping at 183, is not how the test works.
Letter b) can make someone resident with very few days. A person whose main business or economic interests are in Spain is resident even if they spend most of the year elsewhere. A founder whose only significant asset and income is their Spanish company, managed from Spain, is exposed to this test regardless of the day count.
The family presumption. If the spouse and dependent minor children live in Spain, the person is presumed resident unless they prove otherwise. It is a presumption that can be rebutted, but the burden is on the taxpayer, typically with a foreign tax residence certificate and evidence of where their life and interests actually are.

Article 10. Taxpayers who have their habitual residence abroad

1. For the purposes of this Act, persons of Spanish nationality, their spouse not legally separated and minor children who had their habitual residence abroad by virtue of their status as:

a) Members of Spanish diplomatic missions, including both the head of the mission and the members of the diplomatic, administrative, technical or service staff of the mission.

b) Members of Spanish consular offices, including both the head of the office and the official or service staff attached to it, with the exception of honorary vice-consuls or honorary consular agents and the staff dependent on them.

c) Holders of an official post or employment of the Spanish State as members of the delegations and permanent representations accredited to international organisations, or who form part of delegations or observer missions abroad.

d) Active civil servants who hold an official post or employment abroad that is not of a diplomatic or consular character,

shall be regarded as taxpayers.

2. The provisions of this article shall not apply:

a) Where the persons referred to in it are not active public servants or holders of an official post or employment and had their habitual residence abroad before acquiring any of the statuses listed in it.

b) In the case of spouses not legally separated or minor children, where they had their habitual residence abroad before the spouse, father or mother acquired the statuses listed in paragraph 1 of this article.

Chapter III. Tax period, accrual and timing of income

Article 12. General rule

1. The tax period shall be the calendar year.

2. The Tax shall accrue on 31 December of each year, without prejudice to the provisions of the following article.

Article 13. Tax period shorter than the calendar year

1. The tax period shall be shorter than the calendar year where the taxpayer dies on a day other than 31 December.

2. In that case the tax period shall end and the tax shall accrue on the date of death.

Death is the only short year. Article 13 allows a period shorter than the calendar year only on death. Arriving or leaving part-way through the year does not shorten it; whether a treaty allows the year to be split is a question for the treaty with the other country, and many Spanish treaties do not.

Article 14. Timing of income (paragraph 3)

3. Where the taxpayer loses their status as such by change of residence, all income pending allocation must be included in the tax base corresponding to the last tax period that must be declared for this tax, under the conditions set by regulation, a supplementary self-assessment being made, where appropriate, without penalty, late-payment interest or surcharge.

Where the move of residence is to another Member State of the European Union, the taxpayer may opt to allocate the pending income in accordance with the preceding paragraph, or to file, as each item of income pending allocation is obtained, a supplementary self-assessment without penalty, late-payment interest or surcharge, corresponding to the last period that must be declared for this Tax. The self-assessment shall be filed within the filing period for the tax period in which that income would have been allocated had the loss of taxpayer status not occurred.

Leaving Spain brings deferred income forward. Income whose taxation was deferred — including the employment income on startup shares above the exempt amount, deferred under article 14.2.m) until a sale, a listing or ten years — becomes taxable in the last year of residence when the person leaves, unless they move to another EU country and choose to pay as the income arises. See the Startups Act page for the share rules, which remain in the wording shown there.

Title X. Special regimes

Section 7. Capital gains on change of residence

Article 95 bis. Capital gains on change of residence

1. Where the taxpayer loses their status by change of residence, the positive differences between the market value of the shares or holdings of any type of entity owned by the taxpayer and their acquisition value shall be regarded as capital gains, provided that the taxpayer had that status for at least ten of the fifteen tax periods before the last tax period that must be declared for this tax, and either of the following circumstances arises:

a) That the market value of the shares or holdings referred to in paragraph 3 of this article exceeds, in total, 4,000,000 euros.

b) Where letter a) above is not met, that on the accrual date of the last tax period that must be declared for this tax the percentage holding in the entity exceeds 25 per cent, provided that the market value of the shares or holdings in that entity referred to in paragraph 3 of this article exceeds 1,000,000 euros.

In this case the provisions of this article shall apply only to the capital gains corresponding to the shares or holdings referred to in this letter b).

2. The capital gains shall form part of savings income in accordance with letter b) of article 46 of this Act and shall be allocated to the last tax period that must be declared for this Tax, under the conditions set by regulation, a supplementary self-assessment being made, where appropriate, without any penalty, late-payment interest or surcharge.

3. To compute the capital gain, the market value of the shares or holdings on the accrual date of the last tax period that must be declared for this tax shall be taken, determined in accordance with the following rules:

a) Securities admitted to trading on any of the regulated securities markets defined in Directive 2004/39/EC of the European Parliament and of the Council of 21 April 2004 on markets in financial instruments, and representing holdings in the equity of companies or entities, shall be valued at their quoted price.

b) Securities not admitted to trading on any of the regulated securities markets defined in Directive 2004/39/EC of the European Parliament and of the Council of 21 April 2004 on markets in financial instruments, and representing holdings in the equity of companies or entities, shall be valued, save proof of a different market value, at the greater of the following two:

The equity corresponding to the securities resulting from the balance sheet for the last financial year closed before the accrual date of the Tax.

That resulting from capitalising at a rate of 20 per cent the average of the results of the three financial years closed before the accrual date of the Tax. For this last purpose, dividends distributed and allocations to reserves, excluding those for revaluation or balance-sheet updating, shall be counted as profits.

c) Shares or holdings representing the capital or assets of collective investment institutions shall be valued at the net asset value applicable on the accrual date of the last tax period that must be declared for this tax or, failing that, at the last net asset value published. Where there is no net asset value, the value of the equity corresponding to the shares or holdings resulting from the balance sheet for the last financial year closed before that accrual date shall be taken, save proof of a different market value.

4. Under the conditions established by regulation, where the change of residence occurs as a result of a temporary move for work reasons to a country or territory not regarded as a tax haven, or for any other reason provided that in this case the temporary move is to a country or territory that has signed with Spain a convention for the avoidance of international double taxation containing an exchange of information clause, the tax authorities shall, at the taxpayer’s request, defer payment of the tax debt corresponding to the capital gains regulated in this article.

In that deferral, the provisions of Law 58/2003 of 17 December, the General Tax Act, and its implementing rules shall apply, specifically as regards the accrual of interest and the provision of guarantees for that deferral.

For the purposes of providing the guarantees indicated in the preceding paragraph, they may be provided, in whole or in part, provided that they are legally and economically sufficient, over the securities referred to in this article.

The deferral shall expire at the latest on 30 June of the year following the end of the period indicated in the following paragraph.

Where the person concerned acquires taxpayer status for this tax again at any time within the period of the five financial years following the last one that must be declared for this tax without having transferred ownership of the shares or holdings referred to in paragraph 1 above, the tax debt subject to deferral shall be extinguished, together with any interest that has accrued. In the case of moves for work reasons, the taxpayer may request the tax authorities to extend that period of five financial years where there are circumstances justifying a longer temporary move, the extension in no case exceeding five additional financial years.

That extinction shall occur at the time of filing the return for the first financial year in which they must be taxed under this tax.

In that case, the cost of any guarantees that may have been provided shall not be reimbursed.

5. If the person concerned acquires taxpayer status again without having transferred ownership of the shares or holdings referred to in paragraph 1 above, they may request rectification of the self-assessment in order to obtain a refund of the amounts paid corresponding to the capital gains regulated in this article.

The refund referred to in the preceding paragraph shall be governed by article 31 of Law 58/2003 of 17 December, the General Tax Act, except as regards the payment of late-payment interest, which shall accrue from the date on which the payment was made until the date on which payment of the refund is ordered. The request for rectification may be submitted from the end of the filing period for the first tax period that must be declared for this tax.

6. Where the change of residence is to another Member State of the European Union, or of the European Economic Area with which there is an effective exchange of tax information in the terms provided for in paragraph 4 of the first additional provision of Law 36/2006 of 29 November on measures for the prevention of tax fraud, the taxpayer may opt to apply the following special rules to the capital gains regulated in this article:

a) The capital gain must be self-assessed only where, within the ten financial years following the last one that must be declared for this tax, any of the following circumstances occurs:

1.º The shares or holdings are transferred inter vivos.

2.º The taxpayer loses the status of resident in a Member State of the European Union or of the European Economic Area.

3.º The obligation to notify referred to in letter c) of this paragraph is breached.

The capital gain shall be allocated to the last tax period that must be declared for this tax, a supplementary self-assessment being made, where appropriate, without any penalty, late-payment interest or surcharge.

The self-assessment shall be filed within the period between the date on which any of the circumstances referred to in this letter a) occurs and the end of the immediately following filing period for the tax.

b) In the case referred to in number 1.º of letter a) above, the amount of the capital gain shall be reduced by the positive difference between the market value of the shares or holdings referred to in paragraph 3 above and their transfer value.

For these purposes, the transfer value shall be increased by the amount of the profits distributed or any other receipts that have resulted in a reduction of the entity’s equity after the loss of taxpayer status, unless those receipts have been taxed under Non-Resident Income Tax.

c) The taxpayer must notify the tax authorities, on the terms established by regulation, of the option for the application of the special rules provided for in this paragraph, the capital gain arising, the State to which they move their residence, indicating the address and subsequent changes, and the continued ownership of the shares or holdings.

d) Where the person concerned acquires taxpayer status again without any of the circumstances provided for in letter a) of this paragraph having occurred, the provisions of this article shall cease to have effect.

7. The provisions of this article shall likewise apply where the change of residence is to a country or territory regarded as a tax haven and the taxpayer does not lose their status under paragraph 2 of article 8 of this Act.

In these cases the following special rules shall apply:

a) The capital gains shall be allocated to the last tax period in which the taxpayer has their habitual residence in Spanish territory, and the market value of the shares or holdings referred to in paragraph 3 on the accrual date of that tax period shall be taken for their computation.

b) Where the shares or holdings are transferred in a tax period in which the taxpayer retains that status, the market value of the shares or holdings taken into account to determine the capital gain provided for in this article shall be taken as the acquisition value for the purposes of calculating the capital gain or loss on the transfer.

8. In the case of taxpayers who opted for the special tax regime applicable to workers posted to Spanish territory, the period of ten tax periods referred to in paragraph 1 of this article shall begin to be counted from the first tax period in which that special regime does not apply.

Who the exit tax catches. Three conditions together: resident for at least ten of the last fifteen years; shares worth more than four million euros in total, or a holding of more than 25 per cent in one company worth more than one million; and leaving Spain. The gain is the unrealised increase in value, taxed as savings income in the last year of residence as if the shares had been sold. Unlisted shares are valued at the higher of book equity and 20 per cent capitalisation of the average profit of the last three years, unless a different market value is proved.
Moving within the EU defers it for ten years. Paragraph 6 lets a person moving to another EU or EEA state with effective information exchange pay only if, within ten years, they sell the shares, leave the EU and EEA, or fail to report. For other moves, paragraph 4 allows a deferral — with interest and a guarantee — for a temporary posting to a non-haven country or a temporary move to a treaty country, cancelled if the person returns within five years still holding the shares.
Impatriate years do not count towards the ten. Paragraph 8 starts the ten-year count only after the special regime on the next page stops applying. Someone who comes to Spain under the impatriate regime for six years and then leaves is not caught by the exit tax for those years.

Where this sits

The next page translates article 93 as it now stands: the special regime that lets a person who becomes resident on moving to Spain be taxed, for six years, largely as a non-resident.

Related on voixa.es: The EU counts your days, Spain counts them differently; Digital nomad visa, 120 days in Spain: where is he taxed?; Spain tax residency planning.

Nothing here is advice on your own position, and this reading is not the official text. Spain publishes no official English version of this Act; where the wording matters to a decision, read it against the Spanish original linked above.