quality:correction
Demographics

While Taipei City is home to 2,524,393 people (2022), the greater metropolitan area has a population of 7,047,559 people. Even though the population of the city has been decreasing in recent years, the population of adjacent New Taipei has been increasing. The population loss, while rapid in its early years, was slowed by lower density development and campaigns designed to increase the birthrate in the city in the 2010s. As a result, the population rose 2010–2015.

Due to Taipei's geography and location in the Taipei Basin as well as differing times of settlement and differing degrees 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. These districts, along with adjacent communities such as Yonghe and Zhonghe, contain some of the most densely populated neighborhoods in the world.

In 2008, the crude birth rate stood at 7.88%, while the mortality rate stood 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 subgroups: Hoklos, Waishengren, Hakkas, and aborigines. Although Hoklos and Waishengren 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 16,713 at the end of 2018 (<1%), concentrated mostly in the suburban districts. Foreigners (mainly from Indonesia, the Philippines, and Japan) numbered 71,858 at the end of 2022.