The primary grounds of acquisition of citizenship under ordinary naturalisation is a certain period of residence in the country The minimum period of residence required for ordinary naturalisation in EU countries ranges from 3 to 10 years. Important to note that only certain types of residence (permanent, continuous, etc.) may count for naturalisation purposes. Some countries require you to hold permanent residence, pass civic and language test, before naturalising application is submitted. Poland has the lowest naturalisation period (3 years) based on residence offering the fastest citizenship path among all the other EU countries.

The grounds  of citizenship for third country nationals is set based on the following

– Permanent residence permit, temporary permit, refugee or stateless status
– Proof of Continuous or interrupted residence.
– Language, or integration test.
– Ordinary or discrete naturalisation.
– Good character

Here is the list of EU countries and naturalisation period.

Member StateNaturalizationContinous ResidenceInterrupted ResidencePermanent Residence Permit (PRP)Temporary Residence Permit (TRP)
Austria10 years6 or 10 years (with exceptions)6 or 10 year6 or 10 year
Belgium5 years5 years with max. 6 months interruptionno minimum5. years
Bulgaria5 years5 yearsx
Croatia8 years8 yearsuninterrupted residence period of 8 years, which can include prior temporary residence status and residence period as beneficiaries of international protection)
Citizenship not granted on basis of temporary residence permit. Only if permanent resi- dence is granted plus uninterrupted residence period of 8 years, which can include prior temporary residence status)
Cyprus5 years5 years5 years7 years
Czechia5 years5 yearsOr 7.5 years with the last 2.5 years without interruption5 years
Denmark9 years9 years2 years
Estonia8 years8 years, of which at least five years on a permanent basis(5 years)x
Finland5 years5 yearsOr 7 years with the last 2 years without interruptionx
Only if afterwards continuous residence permit is granted and if the applicant has a continuous residence permit for min 1 year prior to the decision on the application.
France5 years5 years5 years5 years
Germany8 years8 yearsInterruptions of max. 6 months permitted. In total, duration of absence may not exceed half of the minimum period required.(8 years); applicants who successfully attended an integration course (7 years); special integration achievements (6 years)
(8 years) Only time-limited residence permit which may also lead to permanent residence;
Greece7 years3, 7 or 12 years7 years(7 or 12 years)
Hungary8 years8 years8 years
Ireland5 years1 year, immediately prior to the application4 years during the 8 years prior to the year immediately preceding the application5 years
(5 years), with the exception of student permits
Italy10 years10 years
10 years of temporary or permanent permit)
Latvia5 years5 years, interruptions possible, but last year prior to applica- tions needs to be continuous5 years
Lithuania10 years10 years, interruptions possible(citizenship is granted only to holders of permanent residence permit plus uninterrupt- ed residence period of 10 years which can include prior temporary residence).
(citizenship is granted only to holders of permanent residence permit plus uninterrupt- ed residence period of 10 years which can include prior temporary residence).
Luxembourg7 years5 years, including one year of continuous residence immedi- ately prior to the application5 years5 years
Malta5 years6 yearsContinuously for at least one year and for four years out of the preceding six years5 years5 years
Netherlands5 years5 years5 years5 years
Poland3 years3 years3 years
(10 years, but the condition is to obtain a permanent residence permit before submitting the application)
Portugal6 years5 years5 years5 years
Romania8 years8 years8 years
Slovakia8 years8 years8 years
Slovenia10 years5 years
Spain10 years10 yearsx
Sweden5 years5 years5 years

Source: European commission