Habib earned his bachelor's degree in history from the American University of Beirut, then, after spending one year at Princeton University, he joined Harvard University for his graduate studies where he earned his PhD in Modern European Intellectual History in 1985.