Sedwill was born in Ealing. He attended Bourne Grammar School in Bourne, Lincolnshire, becoming the head boy. He went to the University of St Andrews, where he gained a Bachelor of Science (BSc), and later gained a Master of Philosophy (MPhil) in economics from St Edmund Hall, Oxford.
