He received his primary education at a school his father ran in Twickenham, before being sent to Merchant Taylors' School, London.[2] From there he went up in 1792 to Worcester College, Oxford, gaining the degrees of BA in 1796, MA in 1806 and both BD and DD in 1820.[3]