Hercules is a city in western Contra Costa County, California. Situated along the coast of San Pablo Bay, it is located in the eastern region of the San Francisco Bay Area, about 10 miles (16 km) north of Berkeley, California. As of 2010, its population was 24,060.