Shafter is a city in Kern County, California, United States. It is located 18 miles (29 km) west-northwest of Bakersfield. The population was 16,988 at the 2010 census, up from 12,736 at the 2000 census. Wired telephone numbers in Shafter follow the format (661) 746-xxxx and the ZIP Code is 93263.
The city is located along State Route 43. Suburbs of Shafter include areas or communities named:
The city of Shafter began as a loading dock along the Santa Fe Railroad right-of-way. The community was named for General William Rufus Shafter who commanded US Forces in Cuba during the Spanish-American War. Property was sold beginning in 1914 and the city incorporated in 1938.