Oakhurst (formerly Fresno Flats) is a census-designated place (CDP) in Madera County, California, 14 miles (23 km) south of the entrance to Yosemite National Park, in the foothills of the Sierra Nevada mountain range. At the 2010 census, the population was 2,829, down from 2,868 at the 2000 census. According to the Oakhurst Area Chamber of Commerce, the area population was 12,787 at the 2000 census. It is part of the Madera–Chowchilla metropolitan statistical area.
Oakhurst is located on the Fresno River 3 miles (4.8 km) south-southwest of Yosemite Forks, at an elevation of 2274 feet (693 m). Its coordinates are 37°19′41″N 119°38′58″W. It is located at the junction of state highways 41 and 49, at the southern end of California's Gold Country. Nearby communities include Ahwahnee, Coarsegold and Bass Lake.
According to the United States Census Bureau, the CDP has a total area of 6.006 square miles (15.56 km2), of which 5.999 square miles (15.54 km2) is land and 0.007 sq mi (0.018 km2) (0.12%) is water.
The Fresno Flats post office opened in 1873, moved and changed its name to Oakhurst in 1912.
The pioneering computer game developer Sierra On-Line was based in Oakhurst from 1981 to 1999.