Cunningham was born in Lasswade and worked as a miner at the Woolmet Pits. He enlisted as a private in the Highland Light Infantry in September 1914, shortly after the First World War broke out. Cunningham was killed in France on 18 March 1915 after the Battle of Neuve Chapelle and is commemorated on the Le Touret Memorial.