A native of Shandong Province, Hao earned a bachelor's degree in civil engineering from Tsinghua University before pursuing a master's degree in environmental engineering from the same institution. Hao received a Ph.D. in environmental engineering at the University of Cincinnati.