 His father died when he was eight years old, leaving him to be raised by his mother.He was educated at Holgate Seminary.He was apprenticed to William Boyd, engineer in Newcastle from 1866 to 1868 before studying engineering at the University of Edinburgh under Peter Guthrie Tait.