Mary Ranken Lyle was born in the Melbourne suburb of Carlton on 31 March 1895, the eldest of four children of Sir Thomas Ranken Lyle, a mathematical physicist, and his wife, Frances Isobel Clare née Millear.
In 1913 she entered the University of Melbourne as a medical student.