San Ramon is a city in Contra Costa County, California, United States, located within the San Ramon Valley, and 34 miles east of San Francisco.