 Elgin is located east of downtown Austin and north of Bastrop, at the intersection of U.S. Highway 290 and State Highway 95.Most of the city lies in Bastrop County, with a portion extending westward into Travis and Williamson Counties.Most of north Elgin is built on blackland prairie soil.