Moving to Spain from Germany: Abmeldung, NIE and Tax (2027 Guide)
Moving from Germany to Spain? What to arrange before you leave, from the Abmeldung and health insurance to exit tax, and how to get your NIE, register and sort out your tax once you arrive.

Spain is one of the most popular destinations for Germans moving abroad, whether for a new job, remote work, a business or retirement. As an EU citizen you don’t need a visa, but the move still involves paperwork in two countries.
This guide covers what to arrange in Germany before you leave, what to do in your first months in Spain, and the tax points Germans often miss. We also offer support in German, so you can ask your questions in your own language.
1. Before You Leave: The Abmeldung
If you move out and don’t take up another home in Germany, you must deregister (Abmeldung) at your local registration office within two weeks of moving out. You can do it at the earliest one week before your move. See the federal information on deregistration.
Many cities let you deregister online or in writing when you move abroad, and you can leave your new address in Spain. Missing the deadline can lead to a fine of up to €1,000. Keep your Abmeldebestätigung safe, because German and Spanish organisations may ask for it.
2. Health Insurance
If you start working in Spain, you are covered by Spanish public healthcare through your Spanish social security contributions.
Your German statutory health insurance (GKV) usually ends when you no longer live or work in Germany. Tell your Krankenkasse about your move.
Pensioners who only receive a German statutory pension can often stay insured in Germany and use their cover in Spain with form S1. Check this with your Krankenkasse before you move.
If you have private insurance and may return to Germany, ask your insurer about keeping your rights with a so-called Anwartschaftsversicherung. See our guide to private health insurance in Spain.
3. Pension and Contracts
The Deutsche Rentenversicherung can pay your German pension to Spain. If you already receive a pension, report your move to them in good time.
Contributions you pay in Spain later count towards your pension under EU rules, so you don’t lose your German years.
Cancel or transfer contracts such as the broadcasting fee (Rundfunkbeitrag), phone, gym and insurance policies.
4. Tax: Your Last German Return and Exit Tax
Germany and Spain have a double tax treaty from 2011, in force since October 2012. It decides which country can tax income such as German rent or pensions. You usually file a final German tax return for the year you move.
Watch out for the German exit tax (Wegzugsbesteuerung). If you held at least 1% of a company such as a GmbH or AG in the five years before you move, and you were fully taxable in Germany for at least seven of the last twelve years, Germany taxes the increase in value of those shares as if you had sold them. Since 2022 this also applies when you move within the EU. You can apply to pay the tax in instalments over seven years.
Since 2025, certain investment fund holdings can also trigger exit tax, for example if you hold at least 1% of a fund or fund units that cost at least €500,000. If any of this applies to you, speak to a German tax adviser before you move.
5. In Spain: Get Your NIE and Register as an EU Resident
Your NIE (Número de Identidad de Extranjero) is your identification number in Spain. You need it for almost everything: renting, opening a bank account, signing an employment contract and paying tax.
If you plan to live in Spain for more than three months, you don’t apply for a standalone NIE. You register as an EU resident at the Foreigners’ Office or police station where you live, using form EX-18, within three months of arriving. You then receive the EU registration certificate with your NIE on it. See the Spanish National Police information on EU registration.
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 Germany.
6. Empadronamiento and Social Security
Register at your town hall (empadronamiento). You will often need this certificate for your EU 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 German employer, agree with your employer how social security is arranged. In general, the country where you physically work is responsible, unless you are temporarily posted with an A1 certificate. See NIE vs. Social Security Number in Spain.
7. 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, you may be able to use the Beckham Law: a flat 24% tax on employment income up to €600,000 for six tax years. You must apply within six months of registering with Spanish Social Security. Germans should read Beckham Law for German Professionals first, because there are some German-specific pitfalls.
8. Quick Checklist for German Expats
Before you leave: check exit tax if you own company shares or large fund holdings, and inform your Krankenkasse, pension insurer and employer.
From one week before to two weeks after moving out: the Abmeldung.
First weeks in Spain: empadronamiento, a Spanish bank account and Social Security registration.
Within 3 months: EU registration certificate with your NIE.
Within 6 months of starting work: Beckham Law application (Modelo 149), if you qualify.
The following year: your final German tax return.
Need Help With Your Move?
Spain Expat Consulting helps German and international clients with their NIE, EU registration and Beckham Law application. We work in English, German, Dutch and Spanish.
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.