Stirling was educated at St Peter's College, Adelaide, and Trinity College, Cambridge, where he graduated B.A. with honours in natural science in 1869, M.A. and M.B.
Stirling received his education at St Peter's College, Adelaide, and Trinity College, Cambridge, graduating with first-class honors in natural sciences in 1869, as well as earning master's degrees in both subjects.