MacLeod was born in Port Hastings, Nova Scotia, Canada, one of eight children of a schoolteacher and a Scottish Presbyterian minister. He entered McGill University at the age of 16 after skipping three grades in primary school, and completed his medical studies by age 23.