Citizenship · Residence periods

How many years do you need to live in Spain for citizenship — and why your time might not count

10, 5, 2 years or 1 — it depends on your situation. But refusals reach even people who "did their time": not just any time in Spain counts, only legal, continuous and provable residence.

Based on arts. 21–22 of the Código Civil, arts. 29–32 of LO 4/2000, RD 1004/2015 and Orden JUS/1625/2016

Review my situation

The basic periods: art. 22 of the Civil Code

Citizenship by residence (nacionalidad por residencia) is governed by art. 22 of the Spanish Civil Code. The general rule is 10 years of legal residence. Reduced periods:

PeriodWho qualifies
10 yearsThe general rule for everyone
5 yearsPeople granted refugee status
2 yearsNationals by origin of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea or Portugal, and Sephardic Jews
1 yearSix cases under art. 22.2: born on Spanish territory; an unexercised right of option; two years under guardianship or foster care; marriage to a Spanish citizen (1 year); widowed spouse of a Spanish citizen; descendants of Spaniards
§ Art. 22.1 CC: «Para la concesión de la nacionalidad por residencia se requiere que ésta haya durado diez años. Serán suficientes cinco años para los que hayan obtenido la condición de refugiado y dos años cuando se trate de nacionales de origen de países iberoamericanos, Andorra, Filipinas, Guinea Ecuatorial o Portugal o de sefardíes.»

Three conditions — miss one and the clock doesn't count

Art. 22.3 CC sets three requirements for your residence — all three at once:

  • Legal — time spent in residence status, not merely being in the country.
  • Continuous (continuada) — no breaks in status and no moving your real life outside Spain.
  • Immediately before the application (inmediatamente anterior a la petición) — the period must run right up to the moment you apply. Years lived long ago, followed by leaving the country, don't work.
§ Art. 22.3 CC: «En todos los casos, la residencia habrá de ser legal, continuada e inmediatamente anterior a la petición.»

Separately, art. 22.4 CC requires you to prove buena conducta cívica (good civic conduct) and sufficient integration into Spanish society — that's what the DELE and CCSE exams of the Instituto Cervantes are for.

"Residencia" and "estancia" are not the same thing

The Civil Code doesn't spell out what "legal residence" means — the immigration law (LO 4/2000) does. Art. 29 distinguishes two situations a foreigner can be in: estancia (stay) and residencia (residence). Only residence counts towards citizenship.

§ Art. 29.1 LO 4/2000: «Los extranjeros podrán encontrarse en España en las situaciones de estancia o residencia.» Estancia — a stay of no more than 90 days (art. 30; special regime for studies — art. 33); residencia temporal — over 90 days and under 5 years (art. 31); residencia de larga duración — indefinite (art. 32).
✗ Common mistake
"I studied in Spain for 3 years — those years count." No. Student status (estancia por estudios) is legally a "stay", not "residence". The Audiencia Nacional has confirmed this consistently: time on a student card does not count towards citizenship (among others, judgment of 21.09.2017, rec. 779/2016).

Continuity: what breaks the clock and what doesn't

Continuity doesn't mean "not a single day abroad". The Tribunal Supremo held back in its judgment of 23.11.2000: a short, justified absence doesn't break continuity as long as you don't move your habitual home outside Spain. Residence is where your life is centred, not physical presence every single day.

Under settled administrative practice (a practice benchmark, not an article of law), what's considered acceptable is a single absence of up to 6 consecutive months for the 10-year period and up to 3 consecutive months for the reduced periods (1/2/5 years). This is about one continuous absence, not the sum of all your trips.

⚠ What resets the clock
A break in the legality of your status — for example, a residence renewal filed late (in practice called "irregularidad sobrevenida") — resets the accumulated period under settled practice: the count starts over with the new permit. Another practical point: the period is normally counted from the date you applied for your residence permit, not the date it was granted.
ℹ Asylum seekers
Under settled practice, time as an asylum seeker (solicitante de asilo) does not count on its own. But if asylum is granted, the period is recalculated retroactively from the date of the asylum application.

How the state checks your period

The check is not a formality. Under the current procedure (Orden JUS/1625/2016, art. 7), in every citizenship file the administration must:

  • Request your padrón (empadronamiento) records directly from the INE — the statistics institute hands over your entire registration history. A gap in your padrón = a gap in your file, and they'll see it without your involvement.
  • Request a mandatory report from the Ministry of the Interior on whether you meet the requirements of art. 22 CC — including an assessment of your "conduct and situation" regarding your entry and residence obligations.
  • Check criminal records in the Registro Central de Penados, your DELE and CCSE results, residence data held by the immigration authorities, and request a report from the CNI.

A formal permit is not yet proven residence

The most underestimated reason for refusals: a residence card alone doesn't prove you actually lived in Spain. The courts (Tribunal Supremo, Audiencia Nacional) require effective residence — a real connection to the territory: work, family, social ties. If some period shows no trace of life in the country, that period may not be counted even if your status was in order.

What works as proof of real residence:

  • An unbroken empadronamiento history — the baseline document, checked first.
  • Vida laboral — your employment and contributions record.
  • A rental contract or property, utility bills.
  • Health insurance, work, family and social ties.
✓ Key takeaway
The citizenship clock has three components: the right status (residence, not stay) + continuity (no breaks in legality, no long absences) + provability (padrón and traces of real life for every year). Check all three before you apply — fixing things after a refusal takes longer and costs more.

Read next

Related reading

Not sure your time will count?

A specialist will go through your status history, padrón and absences and tell you where the weak spots are — before you apply, not after a refusal.