 He was educated at the High School in Edinburgh and then studied aw at the University of Oxford graduating with a BCL in 1809.The family were one of the first to occupy the new houses in Edinburgh's New Town, living in a townhouse at 128 Princes Street, facing onto Edinburgh Castle in addition to their other estates.His father had a similar house at 110 Princes Street.