 The family moved to 1 Oakvale Place in the Hillhead district in his youth.He was a nephew of the geologist Sir Andrew Ramsay.He was educated at Glasgow Academy and then apprenticed to Robert Napier, shipbuilder in Govan.