He entered King's College, Aberdeen in 1826 and completed the Arts course in 1829 but, like the majority of students who regarded it as an expensive formality, he did not bother to graduate. The Church of Scotland's Presbytery of Garioch records show that he was enrolled in divinity for part of 1829/30, 1830/31 and as a regular student 1831/32. He must have had doubts about his fitness for the ministry for he accepted a teaching appointment at the Colchester Royal Grammar School in England between 1832 and 1835. Here he experienced an evangelical conversion as he heard the sermons given in the school assembly by the Church of England preachers. This brought him back to the divinity course at Aberdeen which he completed in 1837.