Shafik received a Bachelor of Arts, summa cum laude and Phi Beta Kappa, with a major in economics and politics from the University of Massachusetts Amherst in 1983; a Master of Science in economics from the London School of Economics in 1986; and a Doctor of Philosophy in economics from St Antony's College, Oxford, in 1989.