Taipei City is home to 2,607,428 people, while the metropolitan area has a population of 6,776,264 people. The population of the city proper has been decreasing in recent years while the population of the adjacent New Taipei has been increasing. Due to Taipei's geography and location in the Taipei Basin as well as differing times of economic development of its districts, Taipei's population is not evenly distributed. The districts of Daan, Songshan, and Datong are the most densely populated.
In 2008, the crude birth rate stood at 7.88% while the mortality rate stood was at 5.94%. A decreasing and rapidly aging population is an important issue for the city.By the end of 2009, one in ten people in Taipei was over 65 years of age. Residents who had obtained a college education or higher accounted for 43.48% of the population, and the literacy rate stood at 99.18%.
Like the rest of Taiwan, Taipei is composed of four major ethnic groups: Hoklos, Mainlanders, Hakkas, and aborigines. Although Hoklos and Mainlanders form the majority of the population of the city, in recent decades many Hakkas have moved into the city. The aboriginal population in the city stands at 12,862 (<0.5%), concentrated mostly in the suburban districts. Foreigners (mainly from Indonesia, Vietnam, and the Philippines) numbered 52,426 at the end of 2008