 Stockman was born on 3 August 1861 at Wellington Street in Leith the son of William J. Stockman.The family moved to 2 Bonnington Place in his youth, soon after the birth of his younger brother, Stewart Stockman.Ralph was educated at the Royal High School in Edinburgh then studied medicine at the University of Edinburgh graduating with a MB ChB in 1882.