The demography of Germany is monitored by the Statistisches Bundesamt (Federal Statistical Office of Germany). According to the most recent data, Germany's population is 84,432,670 (31 March 2023) making it the most populous country in the European Union and the nineteenth-most populous country in the world. The total fertility rate was rated at 1.58 in 2021, significantly below the replacement rate of 2.1. For a long time Germany had one of the world's lowest fertility rates of around 1.3 to 1.4, however there has been a small increase in recent years. Due to the low birth rate Germany has recorded more deaths than births every year since 1972, which means 2021 was the 50th consecutive year the German population would have decreased without immigration. However, due to immigration the population has actually increased during the last half-century. In 2019 the number of people with a foreign background was 26%; this category includes foreigners, naturalized citizens, ethnic German repatriates from Eastern Europe and the children of all of the above.
Until the early 20th century Germany was also a large emigrant nation; in the 19th century more than 5 million citizens of the German Empire emigrated to the US alone, and in the early 20th century Germany lost another two million to the US as well as significant numbers to Latin America, Canada and Eastern Europe. However, after World War II immigration began to outweigh emigration, as around 14 million ethnic Germans were expelled from the former eastern provinces of the Reich and other areas in Eastern Europe. Of these, roughly 12 million made their way to present-day Germany and several hundred thousand settled in Austria and other countries, while several hundred thousand died. Some additional 4.5 million ethnic Germans from Eastern Europe repatriated after 1950, especially around the end of the Eastern Bloc and mostly from the former Soviet Union, Poland and Romania.