Guides11 min read

Moving to Thailand from Spain as a Remote Worker: Hacienda, Seguridad Social, and What to File

Spain is the hardest origin to leave tax-cleanly. Modelo 030, the 183-day sporadic absences trap, Seguridad Social options, modelo 720, and the DTV from Madrid.

March 5, 2026

Hacienda counts your days in Thailand as days in Spain unless you have a foreign tax residency certificate. If your spouse stays behind, you are presumed still resident. Modelo 030 must be filed within 3 months of leaving. Of the three origins we cover, Spain is the hardest to leave tax-cleanly.

Key Takeaways

  • File modelo 030 within 3 months of leaving. Select 'no cumple artículo 9.1' to declare non-residency
  • Spain's 183-day rule counts 'sporadic absences' as days in Spain. You need a Thai tax residency certificate to break this
  • Three Seguridad Social options: stop contributing (free), convenio especial emigrantes (~258 EUR/month), or keep RETA temporarily (not available for Thailand)
  • Modelo 720: declare foreign assets above 50,000 EUR per category while you are still Spanish tax resident
  • The DTV costs ~350 EUR from Madrid. Processing takes 2 to 4 weeks via the e-Visa portal

Visa: DTV from Madrid

The DTV visa is your path. Apply via the e-Visa portal at thaievisa.go.th or through the Royal Thai Embassy in Madrid (Calle Joaquín Costa 29). Consular hours: Monday to Friday, 09:30 to 13:30. Phone: +34 915 632 903 (extensions 101 to 103, Mon to Fri 15:00 to 17:00).

Same requirements as other origins: 500,000 THB (~13,600 EUR) in a personal savings or current account for at least 3 months. Investment funds and business accounts don't count. Processing takes 2 to 4 weeks, though Madrid has been reported as one of the slower embassies.

Non-Spanish nationals need NIE or residence card for Spain or Andorra. If you are not sure whether the DTV is right for you, see our visa comparison.

This is general information based on profiles similar to yours — not tax or legal advice for your specific situation.

Hacienda: what to file before you leave

Modelo 030

Modelo 030 is the form that tells the Agencia Tributaria you are no longer a Spanish tax resident. File it within 3 months of leaving via the Sede Electrónica with certificado digital, DNI electrónico, or Cl@ve PIN.

In the residency indicator field (campos 201/202), select "no cumple artículo 9.1" — this declares you do not meet the residency criteria of Article 9.1 of the IRPF law.

Effective date matters: if you leave Spain in the first half of the year and spend fewer than 183 days in Spain that year, the effective date is January 1st of that same year. If you have already spent more than 183 days in Spain before leaving, the effective date becomes January 1st of the following year — you remain tax resident for the full calendar year.

To support your non-residency claim, you may need a certificado de residencia fiscal from the Thai Revenue Department. Obtaining one as a DTV holder is an evolving area. Have it available if Hacienda requests it.

IRPF for the departure year

Tax residency in Spain is determined per complete calendar year. If you leave in September and have spent more than 183 days in Spain that year, you are tax resident for the full year and must file IRPF on worldwide income. If you leave early enough (first half) and spend fewer than 183 days, you can claim non-residency from January 1st and file only IRNR (modelo 210) for Spanish-source income.

If you are autónomo

Two steps:

  1. Baja censal (modelo 036). File via the Sede Electrónica marking cessation of activity. Note: modelo 037 was eliminated in February 2025. Before filing, issue all pending invoices and file any outstanding quarterly IVA (modelo 303) and IRPF (modelo 130) declarations through the cessation date.

  2. Baja RETA (modelo TA.0521). File via Importass with your certificado digital. This stops your monthly cuotas immediately. All previously contributed time is preserved in your vida laboral and counts toward future pension calculations.

If you are VAT registered and your clients are all outside Spain, review your position. B2B services to overseas clients are outside the scope of Spanish IVA. If your taxable turnover drops below the deregistration threshold, you can apply to deregister.

The 183-day trap

Spain's residency rules under Article 9.1 of Ley 35/2006 are more aggressive than the UK or US equivalents. There are three independent criteria — meeting any one makes you a Spanish tax resident.

Criterion 1: Physical presence over 183 days

Days in Spain during the calendar year, including partial days. Days do not need to be consecutive.

The sporadic absences trap (ausencias esporádicas): days spent abroad count as days IN Spain unless you prove tax residency in another country, according to the Agencia Tributaria manual and AGM Abogados. Leave Spain for 2 months in Thailand, come back, and Hacienda adds those 2 months to your Spanish count.

The only way to break this: a certificado de residencia fiscal from Thailand proving you are tax resident there. Without it, every day abroad is presumed a day in Spain.

Criterion 2: Center of vital interests

If the main base of your economic activities or interests is in Spain, you are resident. This includes: where your income originates, where your property and investments are, and where your financial decisions are managed from, according to the Tribunal Supremo interpretation.

Criterion 3: Family presumption

If your non-legally-separated spouse or minor children habitually reside in Spain, you are presumed to be a Spanish tax resident. This is rebuttable, but the burden of proof is on you, according to LexTax.

If your family stays in Spain while you move to Thailand, Hacienda presumes you are still resident. Breaking this presumption requires strong evidence: lease in Thailand, Thai tax residency certificate, proof that your center of vital interests has moved. Get tax advice before leaving if this applies to you.

Modelo 720: foreign assets

If you are Spanish tax resident during any part of a transition year and hold foreign assets exceeding 50,000 EUR per category on December 31, you must file modelo 720 by March 31 of the following year, according to the Agencia Tributaria.

Three independent blocks, each evaluated separately:

BlockCategoryThreshold
1Bank accounts (balance on Dec 31 or Q4 average)50,000 EUR aggregate
2Securities, investment funds, life insurance50,000 EUR
3Real estate abroad50,000 EUR

Thai bank accounts count. So do Wise balances (Belgium IBAN) and Revolut balances (Lithuania IBAN), according to Finantres and multiple tax advisory sources. Convert non-EUR balances at the official exchange rate as of December 31.

The EU Court of Justice struck down Spain's disproportionate penalties for modelo 720 violations in 2022 (Case C-788/19). Spain's response (Ley 5/2022) eliminated the specific penalties and restored normal statute of limitations. The reporting obligation itself still exists fully. Current penalties for non-filing: 100 EUR per data item, minimum 1,500 EUR.

Cryptocurrency holdings have their own declaration (modelo 721) with the same 50,000 EUR threshold.

Once you are no longer Spanish tax resident, you do not need to file modelo 720 for future years.

Seguridad Social: three options

There is no bilateral social security agreement between Spain and Thailand. EU Regulation 883/2004 does not apply. This limits your options.

Option A: Baja — stop contributing. Simplest. File baja RETA and stop paying cuotas. You lose accumulation of new contribution years, incapacidad temporal, and cese de actividad. All previously contributed years are preserved in your vida laboral.

Option B: Convenio especial para emigrantes. Voluntary contributions that cover jubilación, incapacidad permanente, and muerte y supervivencia. Does NOT cover desempleo, asistencia sanitaria, or incapacidad temporal. At minimum contribution base, approximately 258 EUR per month (paid quarterly). Request via modelo TA.0040 at the Tesorería General. Can be requested at any time, no deadline, according to Orden TAS/2865/2003.

Option C: Desplazamiento temporal (modelo TA.300) — NOT available for Thailand. This mechanism only works for countries covered by EU regulations or bilateral social security agreements. Spain has no such agreement with Thailand.

Quick decision: check your vida laboral at Importass. Under 15 years contributed and plan to return to Spain? Convenio especial (~258 EUR/month) keeps the clock ticking toward the 15-year pension minimum. Over 15 years and not planning to retire in Spain? Baja is simpler and free. Over 15 years but want a higher pension base? Convenio especial increases your final calculation.

Tax treaty and Thai tax

The Spain-Thailand Double Taxation Agreement has been in force since 1998 (BOE-A-1998-23417). It prevents double taxation via tax credits: tax paid in Thailand can be deducted from Spanish tax on the same income, and vice versa. It does not eliminate the obligation to file in both countries during the transition year.

If you stay 180+ days in Thailand per calendar year, you become a Thai tax resident and remitted foreign income is taxable since 2024. The DTA ensures you don't pay full tax in both countries, but you may need to file in both and claim credits. For the full breakdown on Thai tax rates, remittance rules, and strategies, see our Thailand tax guide.

Banking and money

Spanish banks generally keep your account open. Unlike the UK (where Barclays closes non-resident accounts), CaixaBank, BBVA, and Santander allow existing customers to maintain accounts after moving abroad. Notify your bank of your change of residency — they may reclassify your account as "cuenta de no residente."

Spanish bank cards are expensive in Thailand. Most charge 1 to 3% on foreign currency transactions plus a fixed fee. Switch to Wise or Revolut for daily use. Order your Wise card to your Spanish address before leaving — from May 2026, Thai-registered accounts lose ATM access and auto-convert foreign currency to THB. For the full fee comparison, see our Wise vs Revolut guide. For opening a Thai bank account on a DTV (no longer possible at major banks), see our banking guide.

Modelo 720 note: Wise (Belgium IBAN) and Revolut (Lithuania IBAN) balances count as foreign bank accounts. If your combined foreign account balances exceed 50,000 EUR on December 31, you must declare them while you are still Spanish tax resident.

Before you fly

International Driving Permit. Get it from the DGT (Dirección General de Tráfico) before you leave. If you plan to ride a motorbike in Thailand, make sure it includes motorcycle endorsement. Without it, your insurance is invalidated — documented cases exceed $9,300 out of pocket.

Health insurance. Your tarjeta sanitaria europea does not cover Thailand. Private coverage is essential. SafetyWing (~60 EUR/month) or Genki (~54 EUR/month) are practical starting points. A GP visit at a Thai private hospital costs 30 to 80 EUR without insurance. A single hospital admission: 1,000 to 3,000 EUR per day.

Padrón municipal. Darse de baja in the padrón is not legally required when moving abroad, but it is recommended. Some municipalities require it to close certain administrative processes.

Empadronamiento in the Spanish consulate abroad. Once in Thailand, register at the Consulate General in Bangkok. This does not affect your tax residency but is needed for some administrative procedures (voting abroad, renewal of passport, etc.).

Get relocation tips in your inbox

Free advice for your move to Thailand. No spam, unsubscribe anytime.

Frequently asked questions

Do I need to file modelo 030 when leaving Spain?
Yes. Modelo 030 notifies the Agencia Tributaria of your change of tax residency. File within 3 months of leaving via the Sede Electrónica. Select 'no cumple artículo 9.1' in the residency indicator field.
Can I keep paying Seguridad Social from Thailand?
Yes, via the convenio especial para emigrantes. It covers jubilación, incapacidad permanente, and muerte y supervivencia at approximately 258 EUR per month. It does not cover healthcare or desempleo. The RETA desplazamiento option (modelo TA.300) is not available for Thailand.
Does Spain tax me if I live in Thailand?
Spain counts 'sporadic absences' as days in Spain unless you can prove tax residency in another country via certificate. If you spend fewer than 183 days in Spain and obtain a Thai tax residency certificate, you can break Spanish residency. If your family stays in Spain, Hacienda presumes you are still resident.
What is modelo 720 and do I need to file it?
Modelo 720 is a declaration of foreign assets above 50,000 EUR per category (bank accounts, securities, real estate). You must file while you are Spanish tax resident. Thai bank accounts, Wise, and Revolut balances all count. Filing deadline: March 31 of the following year.
Do I lose my tarjeta sanitaria if I move to Thailand?
The tarjeta sanitaria europea only covers EU/EEA countries. It has no validity in Thailand. You need private health insurance. The convenio especial para emigrantes does not include healthcare coverage — that requires a separate convenio de asistencia sanitaria.

Get a personalized relocation plan based on your situation.

Take the Free Quiz