Her family moved from New York to Chicago when she was a child, and Ghez attended the University of Chicago Lab School. The Apollo program Moon landings inspired Ghez to aspire to be the first female astronaut, and her mother encouraged that goal by purchasing a telescope. Her most influential female role model was her high school chemistry teacher.