Contains AI-generated informationMore information

Counting your years of residence

You can work out which of your years count, how trips abroad affect them and your earliest eligibility dates.

Spain gives you long-term residence and citizenship only after a set number of years of legal residence. This topic shows you how those years are counted: when the count starts, which permits add to it, what a gap or a trip abroad does to it, and how to prove it.

6 articlesAbout 32 min of readingEssentialPermanent residence and citizenship

Start with the first articleSee all 6 articles

Pick the article that fits your situation

  1. When your residence clock starts and which years count

    Explains where your residence clock starts and how years are counted for long-term residence and for Spanish nationality. For non-EU newcomers planning their path from first permit to a Spanish passport.

    6 min read

  2. Which permit years count toward permanent residence and citizenship

    Shows which kinds of residence permit add up toward long-term residence and nationality: student years, non-lucrative, nomad, investor, arraigo and work permits. For newcomers on any of these permits, or planning to switch from one to another.

    4 min read

  3. Gaps between permits and late renewals: is your residence still continuous?

    Explains when a gap between permits or a late renewal only delays your count of years in Spain and when it breaks it. For people counting years toward long-term residence or nationality.

    5 min read

  4. How long you can be away without breaking the five years

    Explains how much time you can spend outside Spain before your five-year count towards long-term residence is broken, which absences can be excused, and which version of the rules applies to you. For anyone planning travel while building up long-term residence.

    5 min read

  5. Trips abroad and effective residence when you apply for citizenship

    Spain sets no fixed number of days you can spend abroad before a citizenship application fails. This page explains how your travel pattern is judged as part of effective residence, and what to prepare, for people applying for nationality by residence.

    4 min read

  6. Partners and children: whose years count for what

    Your partner and children run their own residence clocks, not yours. This page shows which years count for each family member, where shortcuts exist, and how to plan a household timeline when people arrive on different dates.

    4 min read

About this topic

It is for anyone thinking about moving to Spain, planning the move or already living there. Once you have read it, you can work out which of your years count, how time abroad affects them and the earliest dates you may be eligible.

Start with "When your residence clock starts and which years count". It sets out the start date and the counting rules for long-term residence and for citizenship, which differ. The other pages build on it. They cover the permit types, gaps and late renewals, time away for each status, and how your partner's and children's years are counted.

Key rules

  • Absence limits: Your long-term residence count is not broken by absences of up to 10 consecutive months, as long as total time away stays within 18 months in the five years.
  • Gaps between permits: Gaps of up to three months between permits do not break continuity, and one gap of up to six months is also allowed within the five years.
  • Clock start: Your five years run from the date your first residence permit takes effect, not from arrival or the date the card is issued.
  • Start date: Your clock starts when your first permit takes effect, not on arrival or card issue.
  • Nationality count: For nationality, the legal, continuous period is counted back from the day you apply.
  • Student years: For long-term residence, two years of study count as one; for nationality they usually count in full.

Counting your years of residence: the whole process, step by step

  • Find your start date: your first permit taking effect (read "When your residence clock starts and which years count"): Before you plan anything else; your five years run from the date your first residence permit takes effect, not from arrival or the date the card is issued

  • Check which permit years count fully, partly or not at all (read "Which permit years count toward permanent residence and citizenship"): Right after you know your start date

  • Renew each permit on time so the pending period still counts (read "Gaps between permits and late renewals: is your residence still continuous?"): From 60 days before expiry up to 90 days after expiry; the earlier permit stays extended until the decision

  • Keep any gap between permits short (read "Gaps between permits and late renewals: is your residence still continuous?"): Gaps of up to three months do not break continuity, and one gap of up to six months is also allowed within the five years

  • Plan your travel across the whole period (read "How long you can be away without breaking the five years"): Throughout the five years: absences of up to 10 consecutive months, with total time away within 18 months

  • Check your travel pattern before a citizenship file (read "Trips abroad and effective residence when you apply for citizenship"): Before you apply for nationality, counting back from the application date

  • Plan a household timeline if family arrived on different dates (read "Partners and children: whose years count for what"): Before you file for any family member

  • If your permit was granted or your application filed before 20 May 2025, confirm which regulation applies to you: Before you file; applications filed before 20 May 2025 are normally resolved under the old regulation, and later filings follow the new one

Documents you may need

Counting your years of residence: questions that cross several articles

Do I count from arrival or from my first permit?

You count from the date your first residence permit takes effect, not from your arrival or the date the card is issued. This applies to long-term residence and, in practice, to nationality.

How many years do I need for Spanish nationality by residence?

You need 10 years in the general case, but some groups need fewer. Refugees need 5 years. Nationals of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea, Portugal and Sephardic Jews need 2 years, and people married to a Spaniard need 1 year. Read "When your residence clock starts and which years count" for how the period is counted.

Do my student years count toward long-term residence and nationality?

Student years count only half toward long-term residence, but they usually count in full for nationality. Later permits can change how they are treated. Read "Which permit years count toward permanent residence and citizenship" next.

Do non-lucrative, nomad, investor, work and arraigo permits all count?

Yes, these permits all count as legal residence for long-term residence and for nationality, as long as your residence is continuous. See Which permit years count toward permanent residence and citizenship.

Does the time while my renewal is pending still count?

Yes, if you filed the renewal on time, the pending period counts for both long-term residence and nationality. Your earlier permit stays extended until the decision. Read "Gaps between permits and late renewals: is your residence still continuous?" for late filings.

Explore places

Where you live changes the details. See how Spanish regions and cities compare on rent, jobs, weather, safety and healthcare.

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.