Moving to Spain from Switzerland: Pension, Health Insurance and NIE (2027 Guide)
Moving from Switzerland to Spain? What happens to your pillar 2 and 3a savings and your Swiss health insurance, how Swiss citizens register in Spain, and how to get your NIE and sort out your tax.

Spain is a popular destination for people leaving Switzerland, whether for a new job, remote work or an earlier retirement in the sun. Switzerland isn’t in the EU, but thanks to the free movement agreement, Swiss citizens can live and work in Spain much like EU citizens.
This guide covers what to arrange before you leave Switzerland, especially your pension savings and health insurance, and what to do in your first months in Spain. We also offer support in German, so you can ask your questions in your own language.
1. Before You Leave: Deregister and Plan Your Pension
Report your departure to your Gemeinde or commune before you move, and keep the confirmation. Your health insurer and pension fund will usually ask for it.
Your pension savings need the most planning. When you move abroad permanently, you are no longer insured in the Swiss AHV and pension fund system. For moves to an EU country such as Spain, special rules apply to cash withdrawals. See the Federal Social Insurance Office FAQ.
Pillar 2, mandatory part: you usually can’t withdraw it in cash if you are compulsorily insured for pensions in Spain, for example because you work there. It moves to a Swiss vested benefits account instead.
Pillar 2, extra-mandatory part: you can usually withdraw it when you leave Switzerland.
Pillar 3a: you can usually withdraw it when you leave Switzerland permanently, whichever country you move to.
Tax: withdrawals after you have left are subject to Swiss withholding tax, which can often be reclaimed or credited under the Swiss-Spanish tax treaty. Timing matters, so get advice before you withdraw.
2. Health Insurance
Your Swiss compulsory health insurance generally ends when you move your residence abroad. If you work in Spain, you are covered by Spanish public healthcare through your Spanish social security contributions. See the Federal Office of Public Health on compulsory insurance.
Pensioners who only receive a Swiss pension usually stay insured in Switzerland and use their cover in Spain with form S1.
Swiss and Spanish nationals living in Spain can instead ask to be exempted from Swiss insurance, if they insure with the Spanish public system. Private insurance doesn’t qualify. The request goes to the Gemeinsame Einrichtung KVG, and there is a three-month deadline, so decide early.
3. Tax: Switzerland and Spain
Switzerland and Spain have had a double tax treaty since 1966, updated by protocols in 2006 and 2011. It decides which country can tax income such as Swiss pensions, rent or salary. You usually file a final Swiss tax return for the part of the year before you leave.
4. In Spain: Register Under Free Movement
Under the free movement agreement, Swiss citizens have the same right as EU citizens to live in Spain for more than three months, if they work there or have enough money and health insurance. See the Spanish government’s residence information.
In practice, you register at the Foreigners’ Office or police station where you live, using form EX-18, within three months of arriving. You then receive a registration certificate with your NIE on it. Read How to Get an NIE Number in Spain and NIE Appointment in Spain: How to Book and Prepare.
Need an NIE before you move, for example to buy property? Read How to Get an NIE From Switzerland.
5. Empadronamiento and Social Security
Register at your town hall (empadronamiento). You will often need this certificate for your registration, healthcare and school enrolment. See Empadronamiento in Spain.
If you work for a Spanish employer, they register you with Spanish Social Security. If you work remotely for a Swiss employer, the EU coordination rules also apply to Switzerland, so you are usually insured where you physically work unless you are temporarily posted with an A1 certificate. See NIE vs. Social Security Number in Spain.
6. When Do You Become a Spanish Tax Resident?
You are generally a Spanish tax resident if you spend more than 183 days in Spain in a calendar year, or if your main business or economic interests are in Spain. As a resident, Spain taxes your worldwide income.
If you move to Spain for work, the Beckham Law can make a big difference on a Swiss-level salary: a flat 24% tax on employment income up to €600,000 for six tax years. Read Beckham Law for Swiss Professionals or use our free Beckham Law eligibility checker.
7. Quick Checklist
Before you leave: plan your pillar 2 and 3a withdrawals and talk to your pension fund.
Before your departure: deregister at your Gemeinde and keep the confirmation.
Within three months of moving: decide on Swiss or Spanish health insurance if you are a pensioner.
First weeks in Spain: empadronamiento, a Spanish bank account and Social Security registration.
Within 3 months: registration certificate with your NIE.
Within 6 months of starting work: Beckham Law application (Modelo 149), if you qualify.
Need Help With Your Move?
Spain Expat Consulting helps Swiss and international clients with their NIE, registration and Beckham Law application. We work in English, German, Dutch and Spanish. For Swiss pension questions, we recommend a Swiss pension or tax adviser alongside us.
Explore our NIE Number Spain assistance
See our Beckham Law application service
This article is general information only and not individual legal or tax advice. Rules can change and vary by region, so always check the latest official guidance or speak to a qualified adviser.
Need help applying this information to your circumstances? Speak with Spain Expat Consulting about the assistance available for your next steps.