Allan Macfadyen was educated at Dr. Bryce’s collegiate school at Edinburgh from 1871. In 1878 he became a student in the University of Edinburgh. He graduated there M.B., C.M. (1883), M.D. with gold medal (1886), and B.Sc. in hygiene (1888). He studied chemistry and bacteriology in Berne, Göttingen, and Munich.