Spain · Software engineer

Sabbatical in Spain as a software engineer

Spain gives engineers something rare: a digital nomad visa that unlocks a 24% flat tax on salary. It also has a legal right to unpaid leave that most people have never heard of. Which of the two you use depends on whether you are leaving your job or taking it with you.

Updated September 2026. Figures checked against official 2026 sources; the full Spain guide has the detail.

Who this is for

You write software, you could keep a remote contract or consulting income running, and you are weighing Barcelona or Valencia for six to twelve months. You want to know what the Beckham Law does and does not cover, and what happens to your stock.

Budget assumptions that differ for a software engineer
DNV income floor€2,849 per month200% of the 2026 minimum wage, plus €1,069 for a first dependant.
Health cover€50 to 150 per monthPrivate plan required for the visa; visa-compliant plans without co-pay start around €50.
Set lunch€12 to 16Menú del día, 2026 national average about €14. Eating out is where Spain stays cheap.
Tax on salary (Beckham)24%Flat rate on employment income up to €600,000 for six years, wherever it is paid.

Keep the contract: digital nomad visa plus Beckham Law

If you keep a remote job or clients outside Spain, the digital nomad visa is the route. You need €2,849 a month in 2026, at least three months of history with your employer or clients, and the foreign company must be at least a year old. No more than 20% of your income may come from Spanish clients. Holders can opt into the Beckham Law: 24% flat on employment income up to €600,000 for six years, and 47% above that. Two things blog posts get wrong. First, the 24% applies to all your employment income, wherever it is earned or paid; it is not a rate only on Spanish salary. Second, foreign dividends, interest and capital gains stay outside Spanish tax under the regime, but Spanish wealth tax still applies to Spanish assets, and you still file the foreign-asset form if you leave the regime.

Leave the job: excedencia voluntaria

If you work for a Spanish employer, or an EU employer with a Spanish entity, you have a legal right to excedencia voluntaria after one year of service: unpaid leave of four months to five years. It gives a preferential right to return when a vacancy in your category opens, not a reserved post, so agree the return in writing. During excedencia nothing is paid into Seguridad Social and no benefit rights build up, but healthcare access continues. For an engineer at a Spanish scale-up this is often better than resigning: your options keep vesting only if the plan allows it, so read the plan before you decide.

Equity and the residency date

Spain taxes residents on worldwide income, including gains on shares, at 19% to 30% on the savings scale (the top band starts above €300,000 since 2025). Under Beckham, gains on foreign shares are outside Spanish tax; without it, they are inside. So an engineer selling a large RSU position should either sell before becoming Spanish tax resident, or make sure the Beckham election is in place first. The election has to be requested within six months of registering with social security, and it cannot be fixed afterwards.

Cost and the city choice

Valencia rents rose about 15% in 2024, among the fastest in Spain, and Barcelona and Madrid remain the expensive end; the full Spain guide has current ranges per city. Day to day, Spain is cheap where it counts: a €14 set lunch, €2 to 3 beers, and groceries of €150 to 250 a month. A comfortable engineer's budget in Valencia is €1,800 to 2,300 a month; in Barcelona add €500. The calculator below recalculates your runway for each, and the risk score will flag it if your stock position is doing all the work.

Runway calculator

Your numbers

Where and how much
Where are you based?
Where will you spend the break?
Pick another country to see how far the same money goes there.
Monthly expensesWhat you spend at home today: rent, food, insurance, subscriptions, everything.
Assets and yield

Fill in what you own. Skip what doesn't apply.

Savings
3.5% yield
Bank accounts, money market, deposits
Stocks & ETFs
7.0% yield
Index funds, individual shares, equity
Bonds
4.0% yield
Government bonds, corporate bonds
Propertyilliquid
4.0% yield
Home equity, rental properties (illiquid). Not counted in liquid runway.
Crypto
0.0% yield
Bitcoin, Ethereum, etc. (volatile, 0% yield)
Other
2.0% yield
Pensions, collectibles, side-business equity
--months

Your runway appears here

Pick your country, enter monthly expenses and at least one asset. The numbers update as you type.

Runs in your browser. Nothing is sent anywhere.

SabbaticAid uses historic averages, not a crystal ball. Not financial advice. Talk to a real advisor for big decisions.

Questions software engineers ask about Spain

Does the Beckham Law apply to my remote salary from a foreign employer?

Yes, if you hold the digital nomad visa and elect the regime in time. All employment income is taxed at 24% up to €600,000, regardless of where the employer is.

Can I sell my RSUs tax-free in Spain under Beckham?

Gains on foreign shares fall outside Spanish tax under the regime. Gains on Spanish-situated assets do not. Without the regime, all gains are taxed at 19% to 30%.

What if I do not have a remote contract?

Then the non-lucrative visa is the route: about €2,400 a month of income or €28,800 a year in savings, and no work in Spain at all. EU citizens simply register.

This page is for information, not advice. Tax and visa rules change; verify with official sources or an adviser before deciding.