Ainlay ran in provincial and federal elections a total of four times, each time under the banner of the Co-operative Commonwealth Federation.
Ainlay's lone bid for federal office took place in the 1945 federal election, when he ran in the riding of Edmonton East.