On the first day of preliminaries, Liivamagi placed twenty-ninth in the 100 m breaststroke. Swimming in heat three, he posted a time of 1:01.57 to earn a fifth spot over Poland's Dawid Szulich and Israel's Imri Ganiel by one tenth of a second. In the 200 m individual medley, Liivamagi challenged seven other swimmers on the second heat, including fellow Olympic veterans Bradley Ally of Barbados and Raphaël Stacchiotti of Luxembourg. He picked up another fifth spot by 0.09 of a second behind Russia's Alexander Tikhonov in 2:01.09. Liivamagi failed to advance into the semifinals, as he placed twenty-fifth overall in the preliminaries.