He went to school at the Blue Coat School, Hertford and later at Christ's Hospital, London. He was then sent to study under Shute Barrington (1734–1826), the bishop of Durham in 1800. He left in 1807 and worked as a clerk in the Admiralty office, Somerset House, from 1807 to 1845 thanks to his uncle Admiral Stephens.[1][2]