In 2015 there were 2,048,700 foreign nationals with permanent residency (meaning those granted a permit for 12 months or longer) in the country, just under a quarter (24.6 percent) of the total population, said the Swiss statistics office (SS).
The 2015 figure includes 393,600 people who were born in Switzerland but do not have Swiss citizenship, with the rest being foreign-born immigrants.
Of those born outside Switzerland, 44 percent have lived here for ten years or more.
The biggest foreign populations are Italians, Germans, Portuguese, French and Kosovans, which make up more than half (54 percent) of permanent foreign residents in Switzerland.
Geneva has the highest number of foreigners, at 41 percent, followed by the cantons of Basel-City (35 percent) and Vaud (34 percent).
So where do you fit in?
Foreigners by Nationality
% of foreigners applying and receiving Swiss citizenship
Languages spoken at home