The practice of conducting a periodic census began in Egypt in the second millennium BC, where it was used for tax gathering and to determine fitness for military services.
Censuses in Egypt first appears in the late Middle Kingdom and developes in the New KingdomPharaoh Amasis, according Herodotus, require every Egyptian to declare annually to the nomarch, "whence he gained his living". Under the Ptolemies and the Romans several censuses were conducted in Egypt by governements officials
A census also took place in the era of Hesham Abdel Malek ben Marwan in the year 600 AD including the number of people, their ages and residences.
In 1798, Egypt's population was estimated at 3 millions when Napoleon invaded the country.
After preliminary enumerations in some urban areas and villages the first countrywide census was carried out in 1848. The 1848 census is said to be the first in a non-Western country to include demographic, social, and economic data on practically all individuals including females, children, and slaves. Digitization of the 1848 and 1868 census records is underway based on documents in the National Archives of Egypt.
At current pace, Egypt's population is expected to reach 160 million by 2050. However, if the current rate of reproduction diminishes, the population may be limited to 120 million by 2050. Egypt already has one of the highest real population densities in the world.