Gestoría guides

Remote working from Spain for a foreign company

Last updated 22 September 2026 · Reviewed by Jaime Piñeira Pardo, lawyer registered with the ICAM bar, no. 138826 · English version of our Spanish guide.

The short answer

If you live in Spain and work remotely for a foreign company, you pay taxes on your worldwide income and pay social security here unless an exception applies. Your company registers as an employer without an establishment. The critical deadline is form 149 for the impatriate regime, 6 months from the start date on your registration with the Seguridad Social (the Spanish social security system). Managora prepares and submits it for you.

We handle the whole procedure for you, from start to finish.

You describe your case in a chat and sign; we file it with the Spanish authorities. Fixed price from €180.00 (21% VAT included), plus the tasa (official fee) where there is one.

See the procedure

What is new, and the law that applies

  • Ley 28/2022, of 21 December, on the promotion of the startup ecosystem, in force since 1 January 2023: lowered the previous years without tax residency in Spain from 10 to 5, opened the impatriate regime to those who provide their work remotely with telematics means and allowed the spouse and children under 25 years of age to be covered.
  • Orden HFP/1338/2023, of 13 December (BOE of 15 December 2023): approved forms 149 and 151 used today and established their electronic submission.
  • European Framework Agreement on habitual cross-border telework, applicable since 1 July 2023: among the States that have signed it, it allows maintaining the contribution in the company's country when teleworking from the country of residence remains below 50% of the working time, provided it is requested, with agreements of up to 3 renewable years.
  • Ley 14/2013 (the Spanish Entrepreneurs Act), with the international telework chapter added by the startups law: it is the basis for the visa of up to 1 year and the 3 year residence authorisation resolved by the UGE-CE in 20 days, with positive administrative silence. The 20% limit for those who work as freelancers is measured on the total of their professional activity (article 74 bis), not on the number of clients.
  • Freelancer contributions based on real income: 2026 has left behind the transitional brackets from 2023 to 2025, so the contribution depends on the table in force this year and the net income you expect, not on a fixed contribution.

Am I a tax resident in Spain if I work remotely here for a foreign company?

Tax residency is not decided by your contract or your nationality: it is decided by where you are. You are a resident if you stay more than 183 days of the calendar year in Spanish territory, counting sporadic absences, or if the main core or base of your activities or economic interests is located in Spain. Furthermore, if your legally non-separated spouse and your underage children live here, Hacienda (the Spanish tax agency) presumes that you also reside here, unless proven otherwise.

Spain does not split the tax year. If you cross the threshold, you are a resident for the 12 months, including those you lived abroad. And a resident pays taxes on their worldwide income, including the salary paid by a company that has neither an office nor a NIF (tax identification number) in Spain.

The double taxation agreement does not change that result. In the agreements followed by Spain, the salary from work physically performed in Spanish territory is taxed in Spain, even if the payer is abroad. Usually, the company's country stops withholding taxes as soon as you hand them your Spanish tax residency certificate: if they have already withheld taxes, the refund is requested there, not here. Managora obtains that certificate for you and prepares the communication for your employer.

Can a foreign company hire me without opening a branch in Spain?

Yes, and it is the cleanest route. A company with no headquarters or branch here can register with the Spanish Seguridad Social as an employer without an establishment, obtain its contribution account code and register you in the general regime. There is no need to set up a company or register a branch in the Commercial Registry. What is required is that the company first obtains a non-resident NIF from the tax agency and, if the registration is processed by a representative in Spain, grants a power of attorney: this power of attorney usually requires a notario (notary) from the company's country or a consular notary office and, in many cases, an apostille and a sworn translation. Managora tells you exactly what power of attorney is needed and prepares it for you.

There remains the part that generates the most resistance in the company: paying contributions every month from abroad. The European social security regulation (article 21.2 of Regulation 987/2009, since 21.1 imposes the general obligation on the employer) allows a written agreement by which you assume compliance with that obligation, with the company and worker contributions, and the company pays them to you together with your payroll. The company remains responsible if you do not pay, but it no longer has to operate with the treasury month by month. This is the argument that usually unlocks a no from human resources.

The other 2 routes are an employer of record, which hires you here and invoices your company, and invoicing yourself as an autónomo (freelancer). The third seems the cheapest and is the one that causes the most problems: if you work exclusively for a single payer, with their schedule, their means and their instructions, the Labour Inspectorate can classify you as a false autónomo and claim the contributions for the entire period with a surcharge, in addition to the penalty. You can see the updated amount in the Registering as an autónomo file if that is your route.

Where do I pay social security, in Spain or in the company's country?

The European rule is that you pay social security where you work. If you type from your home in Valencia, your work is performed in Spain and the competent Seguridad Social is the Spanish one, even if your boss, your payroll and your clients are abroad.

There are 2 exceptions worth knowing. The first appears when, in addition to working remotely from Spain, you regularly go to the company's headquarters: then you work in 2 States and the applicable law is decided by percentages. The general criterion is that performing a substantial part of the activity in Spain, which is your country of residence (indicatively, 25% of the working time or remuneration), attracts all the social security contributions to Spain.

The second is the European Framework Agreement on habitual cross-border telework, applicable since 1 July 2023: it allows you to request to continue paying social security in the company's country when teleworking from your country of residence remains below 50% of the working time. It only works if both States have signed it, it is not applied automatically (it must be requested) and it is documented with an A1 certificate for a maximum of 3 renewable years. Checking if your country is among the signatories is the first step, because your entire contribution bill depends on it.

Outside the European Union, the European Economic Area and Switzerland, the bilateral social security agreement that Spain has signed with that country, if it exists, rules. Without an agreement, paying social security in Spain is the only way out. And when the applicable legislation is Spanish and you travel to the company's headquarters, the paper that prevents them from claiming contributions there depends on the destination: the A1 certificate is only issued within the European regulations (European Union, European Economic Area and Switzerland, and the United Kingdom due to the Withdrawal Agreement), while for a country with a bilateral agreement or with the Multilateral Ibero-American Agreement, the specific form of that agreement is issued. We process it in the A1 Certificate for posted workers file.

Can I apply for the impatriate regime while working remotely from Spain?

Yes, if you have just arrived. The special regime for posted workers, known as the Beckham law, allows you to pay taxes at 24% on the first €600,000 of employment income and at 47% on the excess, instead of applying the general progressive scale. It lasts for the year of the relocation and the following 5 years.

Since the 2022 startups law, the remote worker is expressly included: someone who moves their residence to Spain and, without being ordered by the employer, provides their work remotely through the exclusive use of computer, telematics and telecommunication means. Hacienda will ask you for a document from the employer that recognises the employment relationship, the start date of the activity shown on the registration with the Spanish Seguridad Social (or on the documentation that allows you to maintain the social security of origin) and the estimated duration of the work in Spain.

The 2 requirements that knock down the most applications are not having been a tax resident in Spain in the previous 5 tax periods and not obtaining income through a permanent establishment in Spain. And a warning about the 24%: it is the common territory rate. The Basque Country and Navarre have their own income tax and their own rules for posted workers, so that figure is not valid if you pay taxes in a foral territory.

The regime does not apply by itself: it is opted for with form 149 within the 6 months following the start date of the activity shown on the registration with the Seguridad Social in Spain and, from then on, it is declared every year with form 151 instead of the ordinary declaration. In exchange, you lose personal and family allowances and regional deductions, so on moderate salaries you may end up losing money. We compare the 2 tax liabilities before submitting anything: you can see the updated amount in the Beckham Law file.

How do I pay income tax if my company does not withhold anything?

A foreign company without a permanent establishment in Spain is not obliged to withhold IRPF (personal income tax) on your behalf. You receive the gross amount and settle the entire tax in the annual declaration of the following year. It is the most expensive cash flow problem of this situation: it is advisable to set aside every month the part that will later have to be paid all at once.

Receiving income without withholding does not exempt you from declaring, quite the opposite. The threshold that obliges you to submit the declaration is much lower when the payer is not obliged to withhold, so in practice almost any salary obliges you to file the income tax return.

If you maintain accounts, securities, real estate or cryptocurrencies outside Spain, there are 2 annual informative declarations (forms 720 and 721) that are submitted when their thresholds are exceeded. Those covered by the impatriate regime do not submit form 720 during the years in which the regime applies, because they are taxed under the rules for non-residents: only on their Spanish income, with the exception of the salary, which is taxed in full.

Can I accidentally create a permanent establishment for my company?

This is the risk that truly worries the company's tax department and the reason why many say no to remote work from Spain. If from your home you negotiate and conclude contracts that bind the company, or if the company formally imposes your home as an office and assumes its expenses, the tax agency may consider that this company has a permanent establishment in Spain, with the obligation to declare the profit attributed to it here.

A purely technical position, without the capacity to bind the company and with a laptop as the only means, is in the reasonably safe zone. But the Directorate General for Taxes resolves case by case and looks at the material and human resources that the company actually controls in Spain, not the job title.

The detail that almost no one looks at: the OECD multilateral convention (MLI) has modified the dependent agent clause of a good part of the agreements signed by Spain and has expanded the cases in which a permanent establishment is considered. Before accepting an answer as valid, you have to read the agreement of your company's country in its already modified version, which is what we do when opening the file.

What if I am not a European Union citizen?

Then immigration comes first. Ley 14/2013 (the Spanish Entrepreneurs Act), with the chapter added by the startups law, created the visa and the residence authorisation for international telework, the digital nomad route: working remotely for companies located outside Spain, as an employee only for foreign employers, or as a freelancer provided that the work for companies located in Spain does not exceed 20% of the total of your professional activity.

If you are already in Spain in a regular situation, the 3 year residence authorisation is requested before the Large Companies and Strategic Collectives Unit (UGE-CE), which resolves in 20 days and where administrative silence is positive. If you are abroad, what is requested is the telework visa for up to 1 year at the Spanish consulate in your country. Among the requirements, you must prove financial means equivalent to 200% of the current minimum interprofessional wage, with increases for each family member accompanying you.

This authorisation is also the natural door to the impatriate regime, so the order and dates matter: the 6 month deadline for form 149 starts running with the start date of the activity shown on the registration with the Seguridad Social and does not wait for you to finish the rest of the procedures. You can see the updated amount in the Digital Nomad Visa and Residence file.

Managora prepares and submits it for you from start to finish: the registration of your company with the Seguridad Social as an employer without an establishment, your registration, the agreement so that the contributions are paid without friction, the A1 certificate when applicable, the international telework authorisation, form 149 within the deadline and your annual declaration.

Step by step

  1. 1

    Set a date for your arrival and count the days(Before moving, or as soon as you arrive)

    Set the day you start living and working in Spain and calculate how many days of the calendar year you will spend here. Whether you are a tax resident in 2026 or 2027 depends on that number, and with it everything else. Keep tickets, rental contract and empadronamiento (registration at the town hall): they are the proof.

  2. 2

    Choose the route: contract with your company, employer of record or freelancer(Before signing anything)

    Employment contract with the foreign company registered with the Spanish Seguridad Social, employer of record that hires you here, or registering as an autónomo invoicing them. If you are going to work exclusively for a single payer, the autónomo route is the one that accumulates the most risk of being a false autónomo.

  3. 3

    If you are not an EU citizen, resolve immigration first(UGE-CE: 20 days, with positive administrative silence. Consular visa: 10 working days)

    Residence authorisation for international telework before the UGE-CE if you are already in Spain in a regular situation, or telework visa at the Spanish consulate if you are abroad. Without this, the rest of the registrations cannot be sustained.

  4. 4

    Get your NIE and your Seguridad Social number(Before registration)

    Without a NIE (foreigner identity number) and without a Seguridad Social affiliation number, no registration is possible. Anyone who has never worked or been insured in Spain needs to request the number with form TA.1 before any registration.

  5. 5

    Register the company and register yourself(Always before starting to work; registration in the RETA can be requested up to 60 days in advance)

    Employment route: registration of the foreign company as an employer without an establishment (TA.6), your registration in the general regime (TA.2/S) and, if of interest, the agreement of article 21.2 of Regulation 987/2009 so that you are the one who pays the contributions. Autónomo route: census registration with Hacienda (form 036 or 037) and registration in the RETA (Special Regime for Self-Employed Workers) (TA.0521).

  6. 6

    Close where you pay social security and request the A1 if applicable(Before the first posting or the start of cross-border telework)

    If you work in 2 States or want to benefit from the Framework Agreement on cross-border telework, you must request the determination of the applicable legislation (form TA.300) and obtain the A1 certificate that proves it. The A1 is only valid within the European regulations: if the posting is to a country with a bilateral agreement, what is issued is the specific form of that agreement.

  7. 7

    Submit form 149 if you opt for the impatriate regime(6 months from the start date of the activity shown on the registration with the Seguridad Social in Spain, which is not always the day the registration is processed)

    With the document from the employer that recognises the remote employment relationship, the start date of the activity and the estimated duration. It is a strict deadline: it does not allow extension or late correction.

  8. 8

    Declare every year and keep your tax residency certificate(Income tax campaign of the following year, usually from April to June)

    Form 151 if you are in the impatriate regime, form 100 if you pay taxes under the general regime, plus forms 720 and 721 when applicable. The Spanish tax residency certificate is what prevents them from withholding taxes from you in your company's country as well.

A worked example

Single Irish engineer who moves to Madrid on 1 March 2026 and remains employed by her Dublin company, which registers as an employer without an establishment and registers her on that same day. Gross annual salary: €90,000. She has never lived in Spain.

  • Days in Spain in 2026: from 1 March to 31 December is 306 days. More than 183, so she is a tax resident in Spain for the entire 2026 financial year, including the months she lived in Ireland.
  • The work is physically performed in Spain, so that salary is taxed in Spain. With the Spanish tax residency certificate in hand, she asks her company to stop applying Irish withholding tax and claims the over-withheld amount in Ireland.
  • She opts for the impatriate regime: she meets the requirement of not having been a resident in the 5 previous periods and her relocation responds to a remote work activity with telematics means.
  • Tax liability for the salary with the special regime: 24% on €90,000, without personal allowances or regional deductions, that is €21,600.
  • Form 149 deadline: 6 months from 1 March 2026, which is the start date of the activity shown on her registration with the Seguridad Social, meaning it expires on 1 September 2026.
  • Since the Irish company has no permanent establishment in Spain, it does not withhold anything from her: she receives €90,000 gross and pays the €21,600 in the 2027 income tax campaign. By setting aside €1,800 a month, she arrives without surprises.

€21,600 tax liability for the 2026 salary applying the 24% rate of the impatriate regime in common territory, compared to the general progressive scale, which at that income level is significantly higher. The date to note on the calendar is 1 September 2026: if form 149 is not submitted that day, the option is lost.

Forms, who submits them and when

FormWhat it is forWho submits itDeadline
TA.6Register the foreign company with the Seguridad Social as an employer without an establishmentThe companyBefore you start the activity in Spain
TA.2/SRegistration of the employeeThe company, or yourself with the agreement of article 21.2 of Regulation 987/2009Before starting, and up to 60 days in advance
TA.300Request the applicable social security legislation and the A1 certificate (or, with bilateral agreement countries, the specific form of that agreement)The company or the workerBefore the posting or cross-border telework
TA.0521Registration in the RETA through the autónomo routeYouBefore starting, and up to 60 days in advance
Form 036 or 037Census registration with Hacienda as an autónomoYouBefore starting the activity
Form 149Opt for the special impatriate regimeYou6 months from the start date of the activity shown on the registration
Form 151Annual declaration for those covered by the regimeYouIncome tax campaign of the following year
Form 100Ordinary income tax declarationYouIncome tax campaign of the following year

The thresholds that decide your case

ConceptThresholdWhat it decides
Stay in SpainMore than 183 days in the calendar yearMakes you a tax resident for the entire financial year: Spain does not split the year
Centre of economic interestsThat the main core of your activities or interests is located in SpainMakes you a resident even if you spend less than 183 days here
Previous years without tax residency in SpainThe 5 previous tax periodsGateway to the impatriate regime (common territory)
Duration of the impatriate regimeThe year of relocation and the following 5How many financial years you pay taxes under the special regime
Impatriate regime rate24% up to €600,000 and 47% on the excessWhat you pay for your salary if you opt in, only in common territory
Substantial part of the activity in the country of residenceIndicative 25% of working time or remunerationIf you work in 2 States, it attracts all social security contributions to Spain
Framework Agreement on cross-border teleworkLess than 50% of the time teleworked from the country of residenceAllows you to continue paying social security in the company's country, only between signatory States and upon request
Maximum duration of the cross-border telework agreement3 years, renewable with a new requestHow often the A1 must be renewed
Form 149 deadline6 months from the start date of the activity shown on the registration with the Seguridad SocialIf missed, you lose the impatriate regime
Financial means for the digital nomad visa200% of the current minimum interprofessional wage, with increases per family memberRequirement for the international telework authorisation
Work for Spain for the self-employed digital nomadMaximum of 20% of the total of your professional activityLimit to obtain and maintain the authorisation; it is measured by volume of activity, not by number of clients

Contract with your foreign company or invoicing as a freelancer

Employment contract with the foreign company registered in SpainAutónomo invoicing that company
Who registersThe company registers as an employer without an establishment (TA.6), after obtaining a non-resident NIF and, if acting through a representative, a power of attorney and registers you in the general regime (TA.2/S)You, with Hacienda using form 036 or 037 and in the RETA with TA.0521
Who pays the contributionsThe company, or yourself if you sign the agreement of article 21.2 of Regulation 987/2009 and they pay them to you with the payrollYou, with the RETA contribution corresponding to your expected net income
Social protectionFull general regime: unemployment, temporary disability, retirementNo unemployment: only the cessation of activity benefit, with its own requirements
IRPF during the yearNo monthly withholding if the company has no permanent establishment in Spain: everything is paid in the annual declarationQuarterly instalment payments with form 130 and then the annual declaration
Access to the impatriate regimeFits into the telework modality, which requires an employment relationship recognised by the employerOnly through the entrepreneurial activity or highly qualified professional modalities, with their own requirements
VATNot applicable: what you receive is a payrollYour services are located where the client is; if it is an EU company you need the registry of intra-community operators and form 349
Main riskThat the company ends up having a permanent establishment in Spain if you negotiate and close contractsFalse autónomo if you work exclusively, with the company's schedule, means and instructions
Cost for the companySpanish employer contribution on your salaryOnly your invoice, which is exactly the reason why many companies propose it

Official forms and where it is filed

Frequently asked questions

Can I keep getting paid by my foreign company without registering for anything in Spain?

No. If you live and work here, the competent Seguridad Social is the Spanish one unless you fit into an exception and have it documented with an A1 certificate. And even if no one withholds anything from you, the Spanish IRPF accrues anyway. What happens is that the non-compliance takes time to surface, and when it surfaces it comes with backdated contributions, surcharges, interest and a penalty.

How long does it take to put everything in order?

The registration of the company and your registration with the Seguridad Social are resolved in days. The international telework authorisation before the UGE-CE has a 20 day deadline and positive administrative silence; the consulate visa, 10 working days. Form 149 is submitted instantly, but only within the 6 months following the start date of the activity shown on the registration with the Seguridad Social.

What happens if I submit form 149 outside the 6 months?

You lose the impatriate regime for that relocation and pay taxes according to the general progressive scale. It is not an extendable deadline nor can it be corrected later, and it is the most expensive mistake we see in this type of files: that is why the first thing we set when opening your case is the start date of the activity shown on the registration with the Seguridad Social, which is what those 6 months count from.

My company says they cannot register in Spain, what do I answer?

That they do not have to open a company or branch: they register as an employer without an establishment, after obtaining a non-resident NIF and, if the processing is done by a representative in Spain, with a power of attorney that usually requires a notario and an apostille, and they can sign with you the agreement provided for in the European social security regulation so that you are the one who pays the contributions every month. If they still do not want to, there is the employer of record and the freelancer route. We prepare the explanation and the forms for your human resources department.

I have been working remotely from Spain for 1 year without saying anything. Can I be penalised?

Yes. On the Seguridad Social side, the contributions for the period are claimed with a surcharge, and on the tax side, the declaration submitted after the deadline carries an increasing surcharge according to the months of delay plus interest. Regularising before the requirement arrives greatly reduces the cost: it is a difference in percentage, not in nuance, and it is advisable to do it as soon as it is detected.

Do I have to declare my accounts and investments abroad?

If you are a tax resident under the general regime, yes, through the annual informative declarations of assets abroad (forms 720 and 721) when you exceed their thresholds. If you are covered by the impatriate regime, you do not submit them during the years in which the regime applies, because you are taxed under the rules for non-residents.

We handle the whole procedure for you, from start to finish.

You describe your case in a chat and sign; we file it with the Spanish authorities. Fixed price from €180.00 (21% VAT included), plus the tasa (official fee) where there is one.

See the procedure

Related procedures

The price, the tasa (official fee) and the current deadlines are on each procedure page.

Related guides

Share this guide

If you found it useful, chances are someone you know needs it right now.