Under the Beckham Law your salary is taxed in Spain wherever the work is paid, but your investments are taxed only when the income comes from Spain. Selling shares in a company that is not Spanish produces no Spanish tax at all: the Directorate General for Taxes (DGT) confirmed it in binding ruling V2195-22 for a holder of UK shares. Spanish shares, dividends from Spanish companies, interest paid by a Spanish bank and any property you own in Spain are a different story. Those are taxed, at rates from 19% to 30%, and losses cannot be set against gains. Below is how the rule works, item by item, with the article of the law behind each answer.
Investments on top of your salary?
We file your yearly Beckham return, modelo 151, and sort out which of your gains, dividends and rents are Spanish-source before anything is declared.
Modelo 151: 250 € + VAT a year · opting in (modelo 149): 545 € VAT included (450.41 € + VAT)
Prefer to talk it through first? A 45-minute call costs 75 € + VAT (90.75 € incl. VAT), and the 75 € are deducted from the fee if you then hire us.
Prices exclude VAT unless stated. Spanish VAT (21 %) applies to clients resident in the EU. If you live outside the EU, our advisory services are not subject to Spanish VAT; we confirm it in your quote.
See the Beckham Law service · Book the 75 € + VAT call on WhatsApp
Two different rules inside one regime
Article 93 of the Personal Income Tax Law (LIRPF) lets you pay under the Non-Residents Income Tax rules while you remain a Spanish taxpayer. Paragraph 2 then splits your income into two groups, and this is the part most summaries skip:
- Work income: everything counts as Spanish. Article 93.2.b says that all your employment income during the regime is deemed obtained in Spain. A bonus paid by the parent company in New York, or days worked from another country, still go into the Spanish return.
- Everything else: only what is Spanish-source. For investment income the regime applies the non-resident rules. Article 13 of the Non-Residents Income Tax Law (TRLIRNR) lists which income counts as obtained in Spanish territory. If an item is not on that list, it is outside the Spanish return.
So the question for each investment is not where you live, because you live in Barcelona either way. It is where the income comes from under article 13 TRLIRNR.
Item by item: what Spain taxes and what it leaves out
| Income | Taxed in Spain under the regime? | Rule |
|---|---|---|
| Gain on selling shares of a non-Spanish company (US, UK, German…) | No | Art. 13.1.i.1.º TRLIRNR covers only securities issued by Spanish residents; DGT V2195-22 |
| Gain on selling shares of a Spanish company | Yes, savings scale 19%–30% | Art. 13.1.i.1.º TRLIRNR; art. 93.2.e.2.º LIRPF |
| Gain on shares of any company, Spanish or not, whose assets are mainly Spanish real estate | Yes, savings scale | Art. 13.1.i.3.º TRLIRNR |
| Dividends from a Spanish company | Yes, savings scale | Art. 13.1.f.1.º TRLIRNR |
| Dividends from a foreign company | No | Not listed in art. 13 TRLIRNR |
| Interest paid by a Spanish bank or borrower | Yes, savings scale | Art. 13.1.f.2.º TRLIRNR |
| Gain on selling a flat in Spain | Yes, savings scale; the buyer withholds 3% of the price | Art. 13.1.i.3.º and 25.2 TRLIRNR; art. 114.5 of the Regulation (RIRPF) |
| Rent from a flat in Spain | Yes, general rate 24%, on the gross rent | Art. 13.1.g and 24.1 TRLIRNR; DGT V2201-25 and V2207-25 |
| A second flat in Spain that is neither rented nor used for business | Yes, as imputed income at 24% | Art. 13.1.h and 24.5 TRLIRNR |
Two lines in that table surprise people. The first is that an investment fund or company outside Spain stays outside the Spanish return even if you hold it through a Spanish bank: for income tax, article 13.1.i.1.º looks at who issued the security, not where it is kept. (Wealth tax looks at custody instead, which is why the same fund can matter there; see our guide to the Beckham Law, modelo 720 and wealth tax.) The second is the rent. A non-resident landlord in the EU may deduct expenses, but the DGT has said twice, in November 2025, that this rule in article 24.6 TRLIRNR is written for residents of other EU states. You are resident in Spain, so it does not reach you. Your Spanish rent is taxed on the gross amount, with no expenses and no reduction for long-term housing lets.
The rates: the savings scale since 2025
Dividends, interest and gains on the sale of assets are the items listed in article 25.1.f TRLIRNR. Under the regime they go into their own bracket scale, set by article 93.2.e.2.º LIRPF as amended by Law 7/2024 with effect from 1 January 2025:
- up to 6,000 €: 19%;
- from 6,000 € to 50,000 €: 21%;
- from 50,000 € to 200,000 €: 23%;
- from 200,000 € to 300,000 €: 27%;
- above 300,000 €: 30%.
Rent and imputed income are not in article 25.1.f, so they join your salary on the general scale: 24% up to 600,000 € and 47% on the part above.
No offsetting: a loss stays a loss
In the ordinary Spanish system, a loss on one sale reduces a gain on another, and an unused loss can be carried forward. Under the regime it cannot. Article 93.2.c LIRPF says that income obtained in Spain during the year is taxed cumulatively “without any offsetting between items”. If you sell one block of Spanish shares at a profit and another at a loss in the same year, you pay on the profit and the loss is wasted. If a sale of Spanish shares is on the table, talk to us before you place the order, not after. Keeping the order of your sales in mind is part of the yearly modelo 151 we file for you, at 250 € + VAT.
Shares and equity you earned before the move
Stock awards from a previous employer abroad are work income, not investment income, and they follow their own rule. Article 114.2.a of the Regulation says that income from work done before the date of your move is not treated as obtained during the regime. In ruling V0425-25 (March 2025) the DGT applied this to restricted stock units vesting after the move but earned for work in earlier years. They are taxed in Spain only if they derive from work done in Spain. The selling of those shares later is a separate event, and it follows the table above: foreign company, no Spanish tax.
Relief for tax paid abroad is narrow
The regime gives a credit for foreign tax only on foreign employment income and on income from an entrepreneurial activity. That is article 114.2.b of the Regulation, and the credit is capped at 30% of the tax on that income. There is no credit for foreign tax on investments, which is logical, because foreign investment income is not taxed here in the first place.
Another country, though, may still want to tax your gains. Spain can issue you a tax residence certificate (article 120.1 RIRPF), but not one that works for the purposes of a double tax treaty, unless the Minister has agreed reciprocity with that country (article 120.2). Whether a foreign broker or tax office treats you as resident in Spain is a question for that country. Before a large sale, it is worth checking what the country of the company or of your broker will do.
When the regime ends
The regime covers the year you become resident and the five that follow. From the next year you are an ordinary resident taxpayer, taxed on your worldwide income, so the foreign share sale that was outside Spain becomes part of your Spanish return. The same happens earlier if you are excluded or waive the regime. If you are thinking about the timing of a sale near that boundary, check the year your certificate says the regime ends. It is printed on the document the Tax Agency issues after modelo 149 (article 119.4 RIRPF). Our Beckham Law calculator compares the salary side under both systems, but it does not model investments. Those we check case by case.
What can end the regime early is covered in what happens to the Beckham Law if you change jobs or lose your job.
Frequently asked questions
Do I pay Spanish tax when I sell my US or UK shares? No, while the regime applies, as long as the company is not resident in Spain and its assets are not mainly Spanish real estate. That is the conclusion of DGT ruling V2195-22.
Are dividends from my foreign brokerage account taxed in Spain? Dividends from foreign companies are not Spanish-source income, so they do not go into modelo 151. Dividends from Spanish companies do, on the 19% to 30% scale.
Can I deduct a loss on one sale from a gain on another? No. Article 93.2.c LIRPF rules out any offsetting between items of income under the regime.
I rent out my flat in Spain. Can I deduct the community fees and the mortgage interest? The DGT’s answer, in V2201-25 and V2207-25, is no: you pay 24% on the gross rent.
What about crypto? The Spanish-source test of article 13 TRLIRNR still decides, and for crypto the location is not obvious. We look at the platform and the asset before giving an answer, rather than guessing here.
Official sources (checked on 18 November 2026): Law 35/2006, article 93; Royal Decree 439/2007, articles 114, 119 and 120; Royal Legislative Decree 5/2004, articles 13, 24 and 25; DGT binding rulings V2195-22, V0425-25, V2201-25 and V2207-25 on the DGT database. Rules and rates change, so we check every case against the text in force before filing. This content is pending professional review.
Gains, dividends or a flat in Spain this year?
We prepare your modelo 151 from Barcelona, in English, and tell you before filing which items are Spanish-source and at what rate.
250 € + VAT a year · 45-minute call 75 € + VAT
The call fee is deducted if you then hire us. Not yet in the regime? Opting in with modelo 149 is 545 € VAT included (450.41 € + VAT).


