Born to an Irish father and Scottish mother, Gallagher was raised and educated in Edinburgh, Scotland, where his father John was and is a greenskeeper.
Gallagher won three important Scottish amateur tournaments - the 2005 Craigmillar Park Open, the 2006 Tennant Cup, and the 2007 Scottish Amateur Championship.