Two clocks, and the second is longer
Costa Rica asks for three consecutive years of temporary residence before it offers permanent residence. Spain asks for five, and counts a year on a student stay as six months. Behind both numbers sits one question: which of your years does the immigration office actually count?
Most destinations run two clocks. The first ends the renewals and gives an indefinite right to stay. The second is citizenship, and it is the longer of the two wherever both numbers are published, except in France, where both are five years. The table sets out the permanent-residence clocks.
The two clocks do not behave alike. Permanent residence can end through a long absence, as Spain's 12 months outside the EU shows, while citizenship in Spain, Mexico and Malaysia looks at the years immediately before the day you apply. The same stretch of residence can satisfy one and fail the other.
| Detail | Years | What the clock counts |
|---|---|---|
| Spain | 5 | Temporary residence, for long-term residence |
| Portugal | 5 | Holding a temporary residence permit |
| France | 5 | Legal, uninterrupted residence, for the EU long-term resident card |
| Italy | 5 | A valid permit, for the EU long-term residence permit |
| Mexico | 4 | Consecutive years as a temporary resident |
| Costa Rica | 3 | Consecutive years of temporary residence |
| Thailand | 3 | Consecutive years on one-year extensions, then a place in a yearly quota |
| Malaysia | Not listed | Permanent-resident Entry Permit, by category |
Which permits build the count
A retired couple on Spain's non-lucrative residence are on the right clock from the first day, and the cards show how four systems decide which of your years count. Portugal's permanent residence is for holders of a temporary residence permit for at least five years. Costa Rica's temporary categories include pensionados and rentistas, each granted for up to two years and renewable, and three consecutive years in temporary residence is the doorway to the permanent category.
Mexico's four years are consecutive years as a temporary resident, so a gap between two permits is worth raising with the Instituto Nacional de Migración before it happens, not after. Thailand and Italy work the other way round: they look at the permit you held, so a visa-free stay or a short-stay permit adds nothing however long it lasted.
For citizenship, Portugal's clock starts when the residence title is obtained.
Which permits build the count
Spain
The non-lucrative authorisation is a temporary residence authorisation under the regulation, and temporary residence for five continuous years is what long-term residence asks for.
France
The long-term card counts the long-stay visa that doubles as a residence permit, the visitor card and the salaried, freelance and talent cards, among others.
Italy
The long-term permit can be requested only by someone who has held a valid residence permit for at least five years. Periods on a short-stay permit or with diplomatic status are not counted.
Thailand
A non-immigrant visa extended in one-year steps for at least three consecutive years up to the day you apply. Visa-free entries are not part of it.
Study stays count for half in Spain
A New Zealander who spends two years in Madrid on a student stay and then moves onto a residence permit has added one year, not two, to the long-term count.
France's list of cards that build the five years toward the EU long-term resident card leaves out the student card. The count is built from the cards on the list, so a student who moves to a salaried or talent card is counting from that move.
Run the sum for a longer study period. Four years on a student stay count as two years toward long-term residence, so a graduate who then holds a salaried permit for three years has five counted years after seven calendar years (our calculation, using the 50% rule). The condition still applies: you must hold a residence authorisation in Spain on the day you apply.
Absences: six months in a row, ten in total
Three EU countries use almost the same arithmetic, and the table sets them side by side. Italy also excuses longer gaps for military service, serious documented health reasons and other serious, proven reasons.
Take a Spanish resident who spends three months with family in each of two winters, then four months on an assignment abroad in the fourth year. Every absence is under six continuous months, and the total is ten months, which is the limit (our calculation). One more trip of two months in the fifth year takes the total to twelve months, over the limit, unless the absences were for work, where the total can reach 18 months.
Spain has two more edges. If your absences were for work, the total can reach 18 months, with the six-month limit per absence unchanged. And once you hold long-term residence, 12 consecutive months outside the EU ends it.
Mexico sets its test later. For naturalisation, absences do not interrupt residence unless they fall in the two years before you apply and add up to more than six months.
| Detail | Spain | France | Italy | Mexico | Portugal | Costa Rica |
|---|---|---|---|---|---|---|
| One absence | Up to 6 continuous months | Up to 6 consecutive months | Under 6 consecutive months | Not listed | Not listed | Not listed |
| Total over the five years | 10 months, or 18 if for work | 10 months | Within 10 months | Not listed | Not listed | Not listed |
Thailand and Malaysia: permanence by decision
Thailand does not give permanent residence to everyone who completes three years. The Interior Ministry sets a yearly quota, and the Immigration Commission then weighs income, assets, professional expertise, ties to a Thai citizen, health and other conditions. Timing varies each year.
Malaysia's Entry Permit is described as lasting without a time limit and as revocable if its conditions are broken. The department lists four categories of permanent-residence application: the wife of a citizen, the husband of a citizen, a child under 18 of a citizen, and a fully foreign national.
So three years on one-year extensions is the first gate in Thailand, not the last. Malaysia's category depends on who you are, which is why the years of stay below are asked of the department and not given as one number.
Citizenship: the longer clock
Spain asks for ten years of residence that is legal, continuous and immediately before the petition. Shorter periods exist for refugees and for nationals of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea and Portugal, and a US, Canadian, Australian or New Zealand passport is not on that list. How many days away break continuity for nationality: Not published; ask the Ministry of Justice.
Italy's residence is met through registration in the municipal register. A permit alone does not do it, and the permit renewal has to be reported to the register within 60 days. Portugal's periods apply to applications made after 19 May 2026, and pending cases keep the earlier wording.
France is the short one. The residence has to continue to the day the decree is signed, with your material and family interests in France, and a spouse or children living abroad can lead to refusal. Language proof for every destination is covered in language tests for permanent residence and citizenship.
Put the two clocks together for one case. A Canadian who arrives in Madrid on a non-lucrative permit and stays continuously reaches Spanish long-term residence after five years, and cannot file for nationality until year ten (our calculation from the two rules above).
Italy shows the other side of the same sum. A New Zealander in Rome can request the EU long-term permit after five years on a valid permit, but the ten years for nationality are met through registration in the municipal register, so the 60-day report of each permit renewal is a date to put in the diary on the day the renewal is issued.
| Detail | Years | How it is counted |
|---|---|---|
| Spain | 10 | Legal, continuous and immediately before the petition |
| Italy | 10 | Legal residence shown by registration in the municipal register |
| Portugal | 10 for most passports, 7 for Portuguese-speaking countries and EU states | Applications made after 19 May 2026 |
| France | 5, or 2 after two years of study at a French higher-education institution | Continuing to the day the decree is signed |
| Mexico | 5 | The years immediately before the application |
| Costa Rica | 7, or 5 for Central Americans, Ibero-Americans and Spaniards by birth | Official residence |
| Malaysia | 10 within a 12-year period | Including the 12 months just before the application |
Keep the paper trail from day one
Mexico makes the record part of the application: a letter, under oath, stating how many times you left and entered the country in the period that counts for absences, along with a migration document that still has at least six months of validity. Italy treats registration in the municipal register as the proof of legal residence. Neither can be rebuilt from memory five years later.
The steps below are the records worth keeping from the first month. The last one matters most, because the office's own answer is the one that holds.
What to keep, and who to ask
Keep every permit card and its dates
Each card shows which permit you held and when, and the count is built from the ones that qualify.
Keep proof of entries and exits
Passport stamps or the boarding passes that show when you left and came back.
Keep registration papers from each town
Italy treats registration in the municipal register as the proof of legal residence.
Ask the office that decides
Does my current permit type build the years, and does a month away this winter matter? Get the answer in writing.
The office that decides is the only one whose answer counts, so put the question about your permit type to it in writing.
Questions people ask
Does time on a student visa count toward permanent residence?
It depends on the country. Spain counts a stay for studies at 50% of its duration, if you hold a residence authorisation when you apply. France's list of cards for the long-term resident card leaves out the student card.
How long can I be away before the count breaks in Spain, France or Italy?
Up to six continuous months at a time, and ten months in total across the five years. Spain allows a total of 18 months if the absences were for work.
Do visa-free days count in Thailand?
No. The guideline asks for a non-immigrant visa extended in one-year steps for at least three consecutive years up to the day you apply, so visa-free entries are not part of it.
Does permanent residence lead straight to citizenship?
No. Citizenship is a second clock, and it is the longer one wherever both numbers are published, except in France, where both are five years.
Which destination has the shortest clock to permanent residence?
Of the eight researched, Costa Rica asks three consecutive years of temporary residence, and Thailand asks three years on one-year extensions followed by a place in the yearly quota. Spain, Portugal, France and Italy ask five years and Mexico four. Malaysia's years are not published.
What proof of my years should I keep?
Each permit card and its dates, your passport stamps or boarding passes, and the registration papers from each town. Mexico asks for a sworn letter on entries and exits.
Fernshore articles explain published rules as of the dates shown in the sources. They are research, not legal, tax or financial advice for your situation.
Sources
- Ley Orgánica 4/2000, article 32 (long-term residence), Boletín Oficial del Estado. Checked 17 October 2026.
- Real Decreto 1155/2024: residence rules, articles 61 and 176, Boletín Oficial del Estado. Checked 17 October 2026.
- Código Civil, article 22 (nationality by residence), Boletín Oficial del Estado. Checked 17 October 2026.
- Long-term EU resident card (carte de résident de longue durée-UE), Service-public.gouv.fr. Checked 17 October 2026.
- French nationality by naturalisation, Service-public.gouv.fr. Checked 17 October 2026.
- EU long-term residence permit (permesso di soggiorno UE per soggiornanti di lungo periodo), Polizia di Stato. Checked 17 October 2026.
- Citizenship by residence: general information (Rome prefecture), Ministero dell'Interno, Prefettura di Roma. Checked 17 October 2026.
- Request a permanent residence permit, Portuguese government service portal. Checked 17 October 2026.
- Nationality Law: new rules in force from 19 May, Ministry of Justice, Portugal. Checked 17 October 2026.
- Government announcement on the nationality and residence laws, Portuguese government. Checked 17 October 2026.
- Change from temporary resident to permanent resident (procedure INM-03-010-B), Instituto Nacional de Migración, Mexico. Checked 17 October 2026.
- Ley de Nacionalidad, articles 20 and 21, Secretaría de Relaciones Exteriores, Mexico. Checked 17 October 2026.
- Reglamento de la Ley de Nacionalidad, articles 14 and 16, Instituto Nacional de Migración, Mexico. Checked 17 October 2026.
- Ley General de Migración y Extranjería No. 8764, articles 78 and 79, Costa Rica (published by ICODER). Checked 17 October 2026.
- Naturalisation by residence (Law 1155), Tribunal Supremo de Elecciones, Costa Rica. Checked 17 October 2026.
- Residence permit applications: yearly quota notice (2023), Immigration Bureau, Thailand. Checked 17 October 2026.
- Detailed information for residence permit applications by yearly quota, Immigration Bureau, Thailand. Checked 17 October 2026.
- Entry Permit (permanent residence categories), Immigration Department of Malaysia. Checked 17 October 2026.
- Application for citizenship under Article 19 of the Federal Constitution, National Registration Department, Malaysia. Checked 17 October 2026.
See what your situation makes possible.



