 At the end of hostilities he was appointed to the Imperial War Graves Commission.Gosling first stood for election to parliament as a Liberal Party candidate at the December 1910 general election but failed to win a seat at Lambeth North.At the next General Election in 1918 he stood as a Labour Party candidate at Uxbridge but was again defeated.