Contains AI-generated informationMore information

Deciding how and when to leaveArticle 2 of 6 · 7 min read

When is the best time to leave Spain?

Helps you pick a departure date by checking four things against each other: your tax year, the school year, your lease notice and your residence card expiry. Written for anyone leaving Spain, with or without children.

Key rules

  • Tax year: Leaving even a few days too late can make you a Spanish tax resident for the whole calendar year.
  • Lease notice: Rent is owed through the notice period, so count back from your handover date.
  • Card absence: Staying abroad too long can end your residence authorisation, which matters only if you may return.
  • School: The end of a term or June is the easiest time to move children.

Start with tax: the 183-day line

Tax usually decides the date. You are a Spanish tax resident for the whole calendar year if you spend more than 183 days in Spain or your main centre of economic interests is there. The year cannot be split.

  • Leave early enough to be under 183 days and keep no main base of work or money in Spain: you are non-resident for that whole year and file only the non-resident return.
  • Leave later: you are resident for the full year. You file the IRPF return on your worldwide income the following spring, roughly April to June 30.

Short trips back to Spain count as days in Spain unless you prove tax residence elsewhere with a certificate of tax residence from your new country. If your spouse and dependent children still live in Spain, you are presumed resident unless you prove otherwise. A tax treaty can override these tests in some cases, so ask a tax adviser if you split your time between two countries.

Then fit the lease

After the first six months of a lease, you can end it by giving the landlord 30 days' written notice. You owe rent through the notice period, so count back 30 days from the day you want to hand over the keys. Send the notice in a form you can prove, such as burofax. Your contract may say something different, and it may ask for compensation if you leave early, so read it first. Holiday and seasonal lets work differently.

The landlord should return your deposit within one month of you handing back the keys.

School year, if you have children

Children can be withdrawn at any time by telling the school. The cleanest moment is the end of a term or the end of the school year in June. Mid-year places in your new country depend on the school system there. Cut-offs vary by region and school, so ask the school early for the enrolment certificate and records.

Residence card expiry

If you are a non-EU resident with a TIE and you are leaving for good, renewing is usually not worth it. If you might return, check the absence limit: a temporary residence authorisation can lapse if you are outside Spain for more than 6 months in a year. Long-term residents have longer limits. A renewal can be filed from 60 days before expiry up to 90 days after, though late filing may bring a fine. A card that expires while you are abroad can usually be renewed only through a consulate or with proof you were in Spain. Time away can also break the continuity you need for permanent residence or nationality later.

Putting it together

  1. Choose your tax target: under 183 days, or accept full-year residence and the spring return.
  2. Count back 30 days for lease notice, and check the six-month point has passed.
  3. Move to a term break or the end of June if you have children.
  4. Check your card: renew only if you might return and it is close to expiry.
  5. Allow 15 to 30 days' notice to cancel utilities and social security.

The timeline, documents and questions below cover the steps and papers. The planner lets you work out dates from your leaving day.

Timeline and deadlines

  • Send written lease notice to your landlord: at least 30 days before you hand over the keys, once the first six months have passed

  • Cancel utility and social security contracts: usually 15 to 30 days before you leave

  • Withdraw your children from school and collect their records: at the end of a term or in June, when the school year ends

  • Hand over the keys and ask for your deposit: the landlord must return it within one month of the handover

  • Stay under 183 days in Spain if you want to be non-resident for that year: count your days across the calendar year

  • Return within 6 months if you want to keep your authorisation: do not spend more than 6 months outside Spain in a year

Plan your exit dates from your leaving day

Pick your leaving day first, then work backwards. The longest lead times are the lease notice, the appointments and the school year-end, so start with those.

Step 1: Check the tax-year cut-off

Spain has no split-year rule. You are a Spanish tax resident for the whole calendar year if you spend more than 183 days in Spain or your main centre of economic interests is there. If you leave after day 183, you file a Spanish return for worldwide income the following spring (April to June). If you leave earlier and keep no main economic base in Spain, you are non-resident for that whole year. If your spouse and children stay in Spain, the tax office may presume you are still resident.

Count the days from 1 January to your leaving day. Moving the date across day 183 changes which return you file. If your new country may also treat you as resident, ask a tax adviser how the treaty between the two countries applies.

Step 2: Work back from your leaving day

When What to do
4 to 6 months before Book anything with a long wait: police appointments for fingerprints and your residence card, and foreign-office appointments in big cities. Waits can run from several weeks to a few months.
3 months before If you have children, plan the leaving date around the end of a term or the school year (see Step 3).
2 months before Check each phone, internet and other contract for a minimum commitment (permanencia). It only applies if you got a real benefit, such as a subsidised handset or installation, and it generally cannot exceed 12 months. Without a subsidy there should be no penalty. You still owe any unpaid handset instalments.
At least 30 days plus a few days' margin before Send your landlord written notice in a form you can prove, such as a burofax.
2 to 3 weeks before Book a tax office appointment if you need one. Many tasks, including a change of tax address, can be done online with a digital certificate or Cl@ve. Waits are usually one to three weeks, and longer during the income tax campaign (April to June).
1 to 2 weeks before Book the town hall appointment to leave the padrón (the local residents' register). These are often available within days to a few weeks, and many town halls allow online or walk-in removal.
Leaving day Hand over the keys and note the date. The rent for the whole notice period is still due.
Within one month after the keys The landlord must return the deposit, or interest starts to build up.

Step 3: Time the school exit

Spanish school years run September to June. You can withdraw a child at any time by telling the school (this is called a baja). The school then issues a certificate of enrolment and a transfer of records. Primary pupils get an academic record, and secondary pupils get a certificate of grades.

Leaving at the end of a term or school year is cleanest. A mid-year start at the next school depends on free places there. If the new school asks for documents to be legalised with an apostille or translated, allow extra weeks. Cut-offs vary by region and school, so ask the school office for its dates.

Step 4: Check your lease

After the first six months of a lease, you can end it by giving the landlord 30 days' written notice. A contract cannot ask you for more than that. It may, however, include compensation for early exit, so read that clause before choosing your date. This does not apply to holiday or seasonal lets, and older contracts may differ.

Leave a few days' margin on top of the 30 days so the notice is clearly received in time.

Documents you need

  • Certificate of enrolment from your child's school, needed when you withdraw the child.

  • Transfer of records from the school: the historial académico for primary, or the certificado de notas for secondary. Foreign schools may ask for it apostilled and translated.

  • Certificate of tax residence from your destination country, to show you live there if you want to prove you are not resident in Spain.

  • Written lease notice sent in a form you can prove, such as burofax, to end your rental.

Frequently asked questions

Can I withdraw my child from school in the middle of the year?

Yes, you can withdraw your child at any time by telling the school (a baja), but the best moment is the end of a term or of the school year in June. Ask the school for the certificate of enrolment and the transfer of records. Foreign schools may want them apostilled and translated.

When do I get my deposit back after I hand over the keys?

Your landlord must return the deposit, normally one month's rent, within one month of you handing over the keys. After that, interest accrues at the legal rate. Give your notice in a form you can prove, such as burofax.

Does time abroad affect permanent residence or nationality later?

Yes, time away can break the continuity you need for permanent residence or nationality. Long-term residents have longer absence limits, 12 months, or 24 for EU long-term. If you may return, check the limits for your authorisation before you go.

Need certainty before you act?

For important relocation decisions, speak with a qualified human specialist.

Consult with a human specialist

For decisions that depend on your own circumstances, a qualified human professional should look at your case. Tell us what you need help with and we will reply by email.

Always verify important information with the relevant official authority or a qualified adviser before acting. This website uses large language models together with various public data sources, official government documents and other established sources. Due to the amount of data on this website, some information might be wrong. Information may also be incomplete or outdated.

What matters to me

Tell us who you are and what you care about. Fit scores and rankings across the site follow your answers.