 A railroad spur line was constructed to connect the coal field to the Hannibal & St. Joseph main line.Hamilton is located at (39.743791, -93.998765).According to the United States Census Bureau, the city has a total area of , of which is land and is water.