Bakersfield is a city in and the county seat of Kern County, California, United States. The city covers about 151 sq mi (390 km2) near the southern end of the San Joaquin Valley, which is located in the Central Valley region. Bakersfield's population as of the 2020 Census was 403,455, making it the 47th-most populous city in the United States and the 9th-most populous in California. The Bakersfield–Delano Metropolitan Statistical Area, which includes all of Kern County, had a 2020 census population of 909,235, making it the 62nd largest metropolitan area in the United States. Bakersfield is a significant hub for both agriculture and energy production. Kern County is California's most productive oil-producing county and the fourth most productive agricultural county (by value) in the United States. Industries in and around Bakersfield include natural gas and other energy extraction, mining, petroleum refining, distribution, food processing, and corporate regional offices. The city is the birthplace of the country music genre known as the Bakersfield sound.