He  grew up in Edenshead and Arlary, and attended Milnathort Parish School then the High School of Edinburgh from 1807.
He received an upbringing in Edenshead and Arlary, attending Milnathort Parish School followed by the High School of Edinburgh from 1807.