Elgin is a city located in Bastrop County, Texas. Elgin has a 2026 population of 12,438. Elgin is currently growing at a rate of 1% annually and its population has increased by 26.89% since the most recent census, which recorded a population of 9,802 in 2020.