Hamilton is a city in and the county seat of Hamilton County, Texas, United States, located in the state's central region. The population was 3,095 at the 2010 census.
Hamilton is located in central Hamilton County at 31°42′12″N 98°7′13″W (31.703274, -98.120359). U.S. Route 281 passes through the center of the city, leading north 21 miles (34 km) to Hico and south 16 miles (26 km) to Evant. Texas State Highway 36 (Main Street) crosses US 281 in the center of town and leads 32 miles (51 km) southeast to Gatesville and 33 miles (53 km) northwest to Comanche. Texas State Highway 22 leads northeast from Hamilton 33 miles (53 km) to Meridian.
According to the United States Census Bureau, the city has a total area of 3.1 square miles (7.9 km2), of which 3.0 square miles (7.8 km2) are land and 0.1 square miles (0.2 km2), or 2.11%, are water. The city is drained by Pecan Creek, an east-flowing tributary of the Leon River.
As of the census of 2010, there were 3,095 people, 1,230 households, and 777 families residing in the city. The population density was 1,067.2 people per square mile (412.7 per km2). There were 1,470 housing units at an average density of 506.9 per sq mi (196 per km2).