Riverside is a city in and the county seat of Riverside County, California, United States, in the Inland Empire metropolitan area. It is named for its location beside the Santa Ana River. It is the most populous city in the Inland Empire and in Riverside County, and is about 50 mi southeast of downtown Los Angeles. It is also part of the Greater Los Angeles area. Riverside is the 59th-most-populous city in the United States and the 12th-most-populous city in California. As of the 2020 census, it had a population of 314,998. Along with San Bernardino, Riverside is a principal city in the nation's 13th-largest Metropolitan Statistical Area (MSA); the Riverside-San Bernardino-Ontario MSA (pop. 4,599,839) ranks in population just below San Francisco (4,749,008) and above Detroit (4,392,041).