 With the war over, the AIF was demobilised, and Mackay's appointment to the AIF was terminated on 4 April 1920.Mackay returned to lecturing in physics at the University of Sydney.Between 1922 and 1932 he was student adviser.