 He was educated at the University of Edinburgh, studied Latin, Greek, logic, mathematics, moral and natural philosophy.In 1817 he was admitted a student into the Divinity Hall, under the inspection of the General Associate Synod of the Presbyterian Secession Church