Calculator
The calculation runs in your browser: what you enter is not sent or stored anywhere.
How the calculator works
Larga duración-UE requires five years of legal and continuous residence in Spain immediately before the application (Article 176.a of the Regulation)[1]. National long-term status has the same condition (Article 183)[1]. What counts is time with a residence permit, not time since your first entry or since you got your NIE.
| Rule | Limit | Article |
|---|---|---|
| One absence in a row | up to 6 months | Art. 176.a and 183.2[1] |
| All absences in the five years | up to 10 months | Art. 176.a and 183.2[1] |
| All absences, if they are for work | up to 18 months | Art. 176.a and 183.2[1] |
| Study stay (estancia) | counts at 50%, EU status only | Art. 176.a[1] |
- Five-year date: start of residence plus five years. If you studied before your residence, half of the study period is taken off this date for the EU status.
- Absences: each trip from departure to return. The departure day counts as a day abroad, the return day as a day in Spain. For totals a month is 30.44 days.
- Six months in a row is checked by the calendar: leaving on 1 March and returning after 1 September already breaks the limit.
- If continuity is broken, the calculator looks for the first date whose preceding five years fit the limits, using the trips you entered and no study credit.
- Citizenship: start of residence plus the period you chose under Article 22 of the Civil Code[2].
| Period for citizenship | Who |
|---|---|
| 10 years | General rule, including nationals of Russia, Belarus, Ukraine and Kazakhstan |
| 5 years | People granted refugee status |
| 2 years | Nationals of origin of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea, Portugal, and Sephardic Jews |
| 1 year | People born in Spain, a year married to a Spanish national without separation, widows and widowers, people born abroad to a parent or grandparent who was originally Spanish, and the other cases in Article 22.2 |
You apply for long-term residence in the last two months of your current permit, and applying in that window extends the permit until the decision. If the permit is still valid and you already meet the conditions, you do not have to wait for that window (Article 177.2)[1].
What the calculator leaves out: gaps between permits (time without a document is not legal residence), late renewals, irregular departures, and force majeure or work for recognised NGOs, which under Article 183 do not break continuity[1]. Take the start date from your resolution. The rules in detail: how to count the five years for long-term residence and how many years until citizenship.
Years on the digital nomad visa, including the consular visa year, count as temporary residence[3][4], and the main risk for nomads is long trips. You can switch to another basis without leaving Spain: switching from the DNV to another permit. Rules checked against BOE on 20 Oct 2026.
Frequently asked questions
Do years on the digital nomad visa count towards the five years for long-term residence?
From what date do the five years start?
How long can I be away without breaking continuity?
What if I was away for 7 months?
When do I apply for long-term residence?
How many years until I can get Spanish citizenship?
Does study count towards the citizenship period?
Official sources
- BOE · Royal Decree 1155/2024 (Immigration Regulation), Articles 176, 177 and 183 ↗
- BOE · Civil Code, Article 22 (nationality by residence) ↗
- BOE · Ley Orgánica 4/2000, articles 31 and 32 (temporary residence and larga duración) ↗
- BOE · Ley 14/2013, article 74 quater and additional provision 6 ↗
A guide based on the 2026 rules, not legal or tax advice.
Turn the information into questions.
The navigator helps you gather topics for an individual review. It does not determine your right to a residence permit and does not submit an application.
Build your checklistHow ReloVictory works: a 15-minute consultation is free, a full consultation costs €121 for 45 minutes; case handling is priced by quote, and fees and translations are paid separately. The legal side is handled by the team’s lawyer, tax and administrative matters by a graduada social. More: about the team.
Prefer to do it yourself? Step-by-step guides: residence permit in Barcelona: from empadronamiento to TIE and route cards by residence ground.
Related articles
ReloVictory · Sources reviewed 20.10.2026 · Not a substitute for individual legal advice.
