Working remotely from Spain for a foreign company: payroll or invoices?
More and more people live in Spain while being paid by a company in the US, Germany or the UK. Tax-wise it works very well, as long as it's set up properly. Set up badly, it's one of the most expensive situations to untangle.
First: where are you tax resident?
If you spend more than 183 days a year in Spain, or the centre of your economic interests is here, you're a Spanish tax resident and you pay tax here on your worldwide income, wherever the money comes from. Being paid into a foreign account or in dollars changes nothing. The details are in tax residency in Spain.
The two valid setups
- Remote employee: the foreign company hires you and meets the Spanish obligations (Social Security contributions here, often through an employer of record). You get a payslip and file your annual return like any employee.
- Autónomo (contractor): you register as self-employed and invoice the company every month. It's more flexible and very common in tech.
If you're an employee
Working physically in Spain, you'll normally pay Social Security contributions in Spain. For that, the company either registers as an employer here or hires you through an employer of record: a Spanish company that is your formal employer and invoices the cost to the foreign one.
Check your payslip. If it has no Spanish income tax withheld, nobody is paying your tax in advance: your annual return will come out to pay, all at once. Set money aside every month. And if part of your pay comes in company shares (RSUs, stock options), that's also taxed as employment income.
If you've just moved to Spain as an employee, look at the special regime for people moving here straight away: it has a six-month deadline. We explain it in the Beckham Law.
If you're autónomo
Your invoices to a company abroad generally carry no Spanish VAT and no withholding. If the client is in the EU, you also need to be in the ROI register and file form 349. If it's outside the EU (US, UK), you don't. More in freelancing from Spain for foreign clients.
No withholding doesn't mean no tax: you pay it in advance yourself every quarter with form 130. Say you invoice €4,000 a month to a US company and have €1,500 of expenses in the quarter, Social Security fee included. You receive the full €12,000, but in the 130 you pay 20% of the profit: €2,100. The final settlement comes in the annual return.
If you're paid in another currency, each invoice is declared in euros at the exchange rate of its date. And a warning: if you work only for that company, with its hours, its managers and its tools, you may really be an employee with an invoice. If that's your case, review it before you sign.
The classic mistake: the grey zone
Being paid "as if nothing happened" into a foreign account, with no Spanish contract and no autónomo registration, thinking nobody will notice because the company is abroad. Banks exchange information between countries automatically: Hacienda ends up seeing those accounts.
Having an account abroad isn't illegal; it just can't be hidden. If your accounts abroad add up to more than €50,000 (on 31 December or as an average balance in the last quarter), you report them on form 720, filed between January and March.
What about double taxation treaties?
If the company's country withholds tax from you, treaties prevent you from paying twice for the same income. The key point: when you work physically in Spain, the usual treaty rule is that the salary or fees are taxed only here. If you're still being withheld in the other country, the right fix isn't to subtract it in your Spanish return but to stop that withholding or claim it back there. That's what the tax residence certificate issued by the Spanish Tax Agency is for. US companies will usually also ask you for form W-8BEN, where you state you're not a US taxpayer.
The other way round: if you're resident in Spain and your employer sends you to work physically in another country for periods, an exemption may apply to that part of your salary. Teleworking from your home in Spain doesn't count.
Can I do it myself?
Yes. Registrations and quarterly returns are filed online, with a digital certificate or Cl@ve.
Even so, it's always better to have an expert do it: whether you go as an employee or as autónomo changes your taxes, your Social Security and even whether special regimes are open to you, so it's worth deciding with the numbers in front of you. Write to us on WhatsApp or by email and we'll reply in English. Our Self-employed plan includes free registration.
Frequently asked questions
I'm paid in dollars into an account abroad. Do I declare it in Spain?
Yes. If you're a tax resident here, you pay tax on everything you earn in the world, wherever and in whatever currency you're paid.
Can a company with no office in Spain hire me as an employee?
Yes. It doesn't need to open a subsidiary: it can register as an employer with Spanish Social Security or use an employer of record. What doesn't work is a foreign contract with no contributions anywhere.
Which is better for me, employee or autónomo?
As an employee you have unemployment benefits, paid holidays and severance, and the company pays its share of contributions. As autónomo you usually negotiate a higher figure, but the monthly fee, quarterly taxes and risk are yours. Always compare the net annual amount, not the gross monthly one.
Official sources (in Spanish)
- BOE: Personal Income Tax Act, article 9 (tax residence in Spain)
- BOE: Personal Income Tax Act, article 7 (exempt income, including letter p)
- BOE: Personal Income Tax Act, article 93 (special regime for people moving to Spain)
- BOE: VAT Act, article 69 (where services are taxed)
- BOE: Income Tax Regulation, article 109 (who files form 130)
- BOE: General Tax Management Regulation, article 42 bis (reporting bank accounts abroad)
- BOE: General Social Security Act, article 305 (who is included in the self-employed scheme)
Reviewed on 16 November 2026. General information: your case may have details that change the answer.
Starting out on your own?
With the Self-employed plan we register you with the Tax Agency and Social Security for free, and we handle your quarterly taxes and bookkeeping, with written support in English. €85 + VAT a month, no lock-in.
Message an advisor