There is a particular kind of client who arrives at a Spanish immigration practice with a very good problem: a founder in their late fifties or early sixties who has just signed, or is about to sign, the sale of the business they spent twenty years building. The plan is elegant. Sell the company, take the Section 1202 exclusion, retire to Andalucía on a non-lucrative visa, and live off the proceeds. They have a US tax adviser who has confirmed the qualified small business stock analysis line by line. What nobody has asked is a question that sits between the two halves of the plan: on the day the sale is treated as happening, which country do you live in?
Because that date, and nothing else, decides whether the gain is tax-free or whether roughly three dollars in ten leave for Madrid. This page is written for American business owners and founders retiring to Spain, and it belongs to the same family as our note on whether a Roth IRA is taxed in Spain — the same structural trap, at ten or a hundred times the scale. It is general orientation, not tax advice: your figures belong with a Spanish asesor fiscal and your US adviser working together, and preferably before the ink dries.
On this page
Why Section 1202 stops at the Spanish border What QSBS looks like in 2026 after the OBBBA changes How Spain taxes the gain instead The rebasing myth: Spain taxes the whole history The sting: an excluded gain has no credit to give Three doors: US resident, NLV retiree, Beckham impatriate The date that decides everything Earn-outs, escrows and instalments After the sale: proof of income, wealth tax, reporting Frequently asked questions
"This is the conversation I most want to have early, because it is the one where a few weeks of calendar are worth more than anything else we can do for a client. A founder tells me the sale closes in March and they want to be in Spain by summer, and they are genuinely surprised when I ask which one we should move. Nothing about the visa is difficult. The order of the two events is the whole case."
— Lola Jurado · Immigration lawyer, Ilustre Colegio de Abogados de Málaga (nº 10907)
Why Section 1202 stops at the Spanish border
Qualified small business stock is a bargain with the United States Congress. Hold stock in a qualifying C corporation for long enough, satisfy the original-issuance and active-business conditions, and federal law excludes the gain on sale from your income up to a cap. It is one of the most generous provisions in the Internal Revenue Code, and it is entirely a creature of that code. It binds the IRS. It does not bind the Agencia Tributaria.
Spain simply has no equivalent. There is no Spanish exclusion for gains on shares in a foreign operating company held for five years, and no rule obliging Spain to honour a foreign country's decision not to tax something. So the analysis on the Spanish side is short and unsentimental: are you a Spanish tax resident in the year the sale is attributed to you? If yes, Spain taxes your worldwide income, a capital gain is income, and the gain goes in your IRPF return. The American exclusion is not an exemption travelling with the shares; it is a promise from one government to one taxpayer under one system, and it does not cross the Atlantic.
What QSBS looks like in 2026 after the OBBBA changes
The US rules changed materially in 2025, and the version of QSBS your adviser is working with depends on when the stock was issued. It is worth being precise, because the holding-period arithmetic is exactly what tends to collide with a relocation timetable.
For stock acquired after 4 July 2025, the exclusion became tiered rather than all-or-nothing: broadly 50% of the gain after a three-year hold, 75% after four years and 100% after five. The per-issuer cap rose to the greater of $15 million or ten times your adjusted basis, with inflation indexation of the cap starting in 2027, and the company-level aggregate gross assets test rose from $50 million to $75 million. One trap inside the good news: the portion of gain that is not excluded under the three- and four-year tiers is generally taxed at 28%, not at the preferential long-term capital gains rates. For stock acquired on or before 4 July 2025, the older regime continues to apply — more than five years of holding for any exclusion at all, and a cap at the greater of $10 million or ten times basis.
Why does an immigration page care? Because a tiered holding period creates dates. If your stock crosses from 75% to 100% in November, and your Spanish residency clock starts in July, you have a genuine conflict between two calendars — and only one of them is negotiable. The founder who waits eleven months for the last quarter of the exclusion, while already living in Málaga, can lose far more to Spain than the extra 25% was ever worth.
How Spain taxes the gain instead
Spanish personal income tax splits income into a general base and a savings base. A gain on the transfer of shares belongs in the savings base, which for 2026 runs on progressive bands: 19% up to €6,000, 21% from €6,000 to €50,000, 23% from €50,000 to €200,000, 27% from €200,000 to €300,000, and 30% above €300,000.
Read those bands next to the size of a QSBS gain and the arithmetic writes itself. On a gain in the millions, the first €300,000 of banding is a rounding error; effectively the entire amount is taxed at the top 30% rate. A gain of, say, €13 million produces a Spanish bill in the region of €3.9 million — against a US bill, on the same transaction with a full exclusion, of nothing. That is not a marginal-rate nuance to be managed. It is the difference between two entirely different retirements.
Two mechanical points sit underneath. First, Spain computes in euros, so the exchange rate on the relevant dates enters the calculation — a live variable when the sum is this large, and one worth reading alongside our note on USD-EUR currency risk. Second, whether you are resident at all turns on the tests in our note on the 183-day rule: broadly more than 183 days in the calendar year, or your main centre of economic interests in Spain. Spain runs on calendar years and does not generally offer a split-year treatment, which is precisely what makes the date of a sale so consequential.
The rebasing myth: Spain taxes the whole history
The most common piece of wishful thinking is the assumption that Spain will only tax what happens on its watch — that the shares are somehow marked to market when you land, and only the appreciation from that point is Spanish. They are not. Spain does not rebase your holdings to their value on the day you become resident. The gain is generally measured from your original acquisition cost.
For a founder that is a brutal sentence. Your basis may be the nominal amount you paid for your founder shares in 2008. Every euro of value the company created between then and the sale — built in Ohio or California, funded by American investors, taxed nowhere else because Congress said so — sits inside the Spanish taxable gain if you sell as a resident. You do not get credit for having been elsewhere while you earned it. Moving first and selling later does not split the gain between two countries; it hands the entire history to one.
The sting: an excluded gain has no credit to give
At this point the reasonable objection arrives: surely the treaty stops me being taxed twice? It does — but being taxed twice was never the risk. Being taxed once, unnecessarily is.
Under the US-Spain treaty as amended by the 2013 protocol, gains on the sale of shares are generally taxable only in the seller's state of residence, with an exception where the shares derive their value from real property. So if you are resident in Spain, Spain has the taxing right, cleanly. The United States may still tax you as a citizen under the saving clause — except that Section 1202 excludes the gain, so the US tax is zero. And there is the trap, in one line: the relief machinery needs US tax to work on, and there isn't any. A gain excluded from US taxable income does not generally support a foreign tax credit you can use. There is no US liability for the Spanish tax to reduce and nothing for a credit to absorb. The Spanish tax is a pure, uncompensated cost.
The nearby but different problem is a Qualified Opportunity Fund deferred gain. There the US break usually did not exclude the gain; it delayed it, with the old regime's backstop inclusion no later than 31 December 2026. That means there may be US tax for a credit to work with, but the real question becomes whether the US inclusion year is also your first Spanish resident year. QSBS is a zero-tax trap. QOF is a calendar trap. The same calendar problem appears whenever a sale is structured to pay you over time — see installment sales and seller financing before the move, where the deferral you built for US reasons can deliver its taxable pieces during your Spanish years. There is a separate immigration lane too: closed cash from the exit can be documented as business sale proceeds for the non-lucrative visa, while a carried note can make the amortized payments double as proof of means — a contractual stream that reads to a consulate much like a pension.
This is the same mechanism that makes the Roth IRA sting, and it deserves the same counter-intuitive summary: the better your US tax result, the worse your Spanish exposure. An asset the US taxes normally is largely self-correcting across the border, because the credit has something to grip. An asset the US taxes at zero is naked.
There is one refinement worth knowing, because it inverts the usual advice. If your gain exceeds the Section 1202 cap, the excess is ordinary taxable long-term gain in the US — and that slice does have US tax attached, so the credit machinery can engage on it. The paradoxical result is that the excluded portion of your gain is the part most exposed to Spain, while the "unprotected" excess is partly shielded by the very tax you were trying to avoid. Which portion is which, and how the sourcing rules apply to it, is a question for your US adviser — but it is one worth asking explicitly rather than assuming the cap is simply bad news.
Three doors: US resident, NLV retiree, Beckham impatriate
Stripped of detail, the same transaction produces three very different outcomes depending on who you are on the day it happens.
| Sell as a US resident (before the move) | Sell as an NLV retiree (Spanish resident) | Sell as a Beckham impatriate (if you qualify) | |
|---|---|---|---|
| US tax on an excluded QSBS gain | Nil, up to the cap | Nil, up to the cap | Nil, up to the cap |
| Spanish taxing right | None — Spain has no claim | Yes — worldwide income | Generally no — foreign-source gain |
| Spanish tax on the gain | None | Savings base, approaching 30% | Generally outside the Spanish net |
| Foreign tax credit help | Not needed | Little or none — no US tax to offset | Not needed |
| Who can actually use this | Anyone willing to move the date | The default if you do nothing | Only with a qualifying work or entrepreneurial trigger |
The third column is the one that causes trouble in conversation, so let it be stated plainly. The Beckham regime taxes an impatriate broadly as a non-resident on Spanish-source income, which is why foreign-source capital gains typically fall outside Spanish tax while the regime runs — and it is why founders who relocate to work are advised so carefully about liquidity-event timing and about selling before or after arrival. But the regime is not a menu option you select on arrival. It requires a qualifying trigger: an employment, a directorship, a highly qualified professional activity or an entrepreneurial project. A retiree on the non-lucrative visa is, by the visa's own terms, not permitted to work in Spain, which forecloses the route by definition. If you are genuinely still building something, that is a different conversation and a different visa — and it is worth having before you commit to the retirement framing. If you are genuinely retiring, column three is not available and column one is the only lever you have.
The date that decides everything
So the whole page reduces to a sequencing question: does the sale happen before Spanish tax residency begins, or after? Get that right and the exclusion survives intact. Get it wrong by a few months and it evaporates into the savings base.
In practice the sequencing is more delicate than "sell first, then fly", for three reasons. First, a sale is not a single moment — signing, closing, payment and the transfer of risk can fall in different months, and which one fixes the Spanish attribution is a question of fact, not of preference. Second, Spanish residency turns on a calendar year, so someone who arrives in March is likely resident for that entire year, including a sale that closed in February, while someone who arrives in August generally is not resident for that year at all. That single asymmetry is why the arrival month is a tax decision, not a lifestyle one. Third, the American side has its own exit to manage: your state may want its share on the way out, and the state rules do not always follow the federal exclusion. Our overview of cutting US state tax residency before moving to Spain covers the states that make this hard.
None of this requires heroics. It requires that the deal calendar and the immigration calendar be drawn on the same sheet of paper, early, while both are still moveable. The non-lucrative visa timeline is long enough — consular appointments, apostilles, medical certificates — that it can usually be shaped around a closing date if anyone thinks to try. It cannot be reshaped afterwards.
Earn-outs, escrows and instalments
The cleanest plan in the world fails if the money arrives in pieces. Modern deals rarely pay everything at closing: there are earn-outs tied to performance, escrows held against warranty claims, holdbacks, promissory notes and rollover equity. Each is a payment that may land after you have become a Spanish resident, from a sale you thought you had safely completed as an American.
Spanish law does contain an instalment rule. Where a price is received through successive payments and more than a year passes between handing over the asset and the final instalment, the taxpayer may attribute the gain proportionally as the payments become due rather than all at once. Whether that rule helps you or hurts you depends entirely on where you are resident in each of the years concerned — it can spread a gain into years when Spain is taxing you, which is the opposite of what you want. Rollover equity is a further layer, because you have not sold at all: you are holding shares in the acquirer, with a fresh gain waiting and a Spanish resident's tax profile when it crystallises. Founders relocating for work face the mirror of this problem, which is why we treat earn-outs and deferred consideration as their own subject. The practical instruction is the same for a retiree: map every future payment against the residency calendar before the purchase agreement fixes it, because afterwards the payment schedule is a contract and your tax year is not.
One more piece of wishful thinking to retire early: some clients ask whether Spain's own relief for investment in new companies might catch their situation. Spanish law does offer a reinvestment exemption for gains on shares in newly or recently created entities, but it is built on the domestic deduction for investing in such companies and is designed around Spanish-facing conditions, reinvestment within a year, and holding periods. It is not a hidden Spanish QSBS for the sale of an established American corporation, and it should not be planned around as one.
After the sale: proof of income, wealth tax, reporting
Assume you time it perfectly and land in Spain with the proceeds intact. Three things follow that founders consistently underestimate.
The first is a visa problem, not a tax one, and it is genuinely counter-intuitive: a large lump sum is not income. The non-lucrative visa asks you to evidence sufficient recurring means to live without working — roughly 400% of the IPREM for the main applicant plus 100% per dependant — and consulates are far more comfortable with a pension statement than with a bank balance, however impressive. A founder who has just sold a company may have $15 million and no monthly income at all, which is a weaker file than a retired teacher with a steady pension. It is entirely workable, but it needs to be built deliberately from investment income, distributions and documented liquidity rather than assumed. If the company is not fully sold and you will still draw owner distributions, read the separate note on business owner income and the non-lucrative visa, because the source of the money must look passive rather than like continued management from Spain. Our note on proof of income for the non-lucrative visa explains what actually persuades a consulate.
The second is wealth tax, and it is the reason a clean sale can still cost you every year. The proceeds are now visible, liquid and easy to value — the ideal wealth-tax asset. Andalucía applies a broad regional relief that removes the regional charge for most residents, but the state-level solidarity tax still bites above roughly €3 million of net wealth, and a sale of this size lands squarely in its range. Where you settle changes the answer materially, which our note on wealth tax by region sets out. This is also the moment where the rest of the private-client package matters: what the money is invested in, whether a US living trust helps or hinders in a country that does not recognise trusts, and how it will pass under a Spanish will.
The third is reporting, on both sides. Foreign accounts and securities above the threshold are declarable on the Modelo 720, and the reinvested proceeds will almost certainly cross it. On the US side you remain a citizen: annual returns, FBAR and Form 8938 continue for life, as covered in our note on US filing obligations for American retirees in Spain. And what you buy with the money matters too — European funds solve the Spanish problem and create a PFIC problem, which is exactly the bind described in our note on PFIC, US mutual funds and ETFs.
Which brings the point back where it started. The sale is the largest single financial event of most founders' lives, and the Spanish exposure on it is decided by a date that almost nobody thinks to make a decision about. Everything downstream — the visa file, the wealth tax, the estate plan — is manageable. The date is manageable too, but only until it isn't.
Frequently asked questions
Does Spain recognise the QSBS Section 1202 exclusion?
No. Section 1202 is US federal tax law and binds the IRS, not the Spanish Agencia Tributaria. Spain has no equivalent exclusion for gains on shares in a foreign operating company. If you are a Spanish tax resident on the date the sale is attributed to you, Spain generally brings the whole gain into your IRPF return as savings income, regardless of how the same gain is treated on your US return.
How much Spanish tax would I pay on a QSBS sale?
A share sale gain generally falls in the savings base: for 2026, 19% up to €6,000, 21% to €50,000, 23% to €200,000, 27% to €300,000 and 30% above that. On a gain of the size QSBS is designed for, almost the whole amount sits in the top band, so the practical cost approaches 30% of the entire gain. Your exact figure depends on your other savings income and should be modelled with a Spanish asesor fiscal.
Can the foreign tax credit offset the Spanish tax on an excluded gain?
Generally not, and that is the heart of the problem. The credit sets tax in one country against tax in the other on the same income. If Section 1202 excludes the gain from US taxable income, there is no US tax for the Spanish tax to offset, and an excluded gain does not generally support a usable credit — so the Spanish tax lands as a straight additional cost. Any slice of gain above the Section 1202 cap is different, because it is taxable in the US and the credit machinery can engage on it. Confirm with a US tax adviser.
Does Spain only tax the growth after I arrive?
No. Spain does not rebase your shares to their market value on the day you become resident. The gain is generally measured from your original acquisition cost, so decades of appreciation that accrued while you lived in the United States sit inside the Spanish taxable gain. Moving first and selling later does not split the gain between two countries — it hands the whole history to one.
What if the money arrives as an earn-out after I move to Spain?
Deferred consideration is the most common way a "safely pre-move" sale follows you across the Atlantic. Spanish law has an instalment rule for prices received through successive payments where more than a year separates the transfer from the final instalment, allowing the gain to be attributed as payments fall due. Whether it helps depends on your residence in each year concerned, so earn-outs, escrows and holdbacks must be mapped against the move date before signing.
Could the Beckham regime protect my business sale instead?
Only if you qualify, and a retiree generally does not. The Beckham regime taxes an impatriate broadly on Spanish-source income, so foreign-source capital gains typically fall outside the Spanish net while it applies. But it requires a qualifying work, professional or entrepreneurial trigger for the move. Someone arriving on the non-lucrative visa is not permitted to work in Spain, so that door is closed and worldwide taxation applies from the first resident year.
Sources reviewed July 2026: IRC §1202 and published practitioner analysis of the 2025 One Big Beautiful Bill Act amendments to qualified small business stock (tiered 50%/75%/100% exclusion for stock acquired after 4 July 2025, the $15 million per-issuer cap with indexation from 2027, the $75 million aggregate gross assets test, and the 28% rate on non-excluded gain); the United States–Spain income tax treaty as amended by the 2013 protocol, in particular its capital gains article and saving clause, and AEAT's published guidance for residents with US-source income; Spanish AEAT guidance on IRPF residence, on the general and savings bases and the 2026 savings-base bands (19/21/23/27/30%), on the temporal attribution of capital gains and the instalment rule at art. 14.2.d LIRPF, and on the reinvestment exemption for newly or recently created entities at arts. 38.2 and 68.1 LIRPF; the Modelo 720 informational reporting regime; and Spanish wealth tax and the state solidarity tax with their regional variation. General information only, not legal, tax or immigration advice, and not US tax advice. QSBS qualification, treaty treatment, IRPF classification and rates, regional variations and the attribution of a sale to a tax year change and are fact-specific; confirm them with a qualified Spanish asesor fiscal and a US tax adviser before you rely on them.