Oakley is located in Contra costa county California with a geographic area of 15.9 square miles. The total population in Oakley is 41,656 with 49.3% male and 50.7% female. Children under age 5 represent 7.5% of the population, under age 18 equal 28.1% of the population and over age 65 is 9.4% of the population. The median household income is $103,552, per capita income is $34,279. There are a total of 12,133 housing units with 75.8% owner occupied. Education includes 24.8% of residents that are high school graduates and 22.9% with a bachelor's degree or higher. The average temperature in Oakley in the summer is 73 degrees, and in the winter 43 degrees.