Elgin is served by the Elgin Independent School District, which covers more than 168 sqmi in portions of Bastrop, Lee, Williamson, and Travis Counties, and provides educational facilities and resources to meet the needs of more than 4,000 students as of 2010. [