Tómasdóttir was elected to the largely ceremonial post with 34.3%, defeating a former prime minister, Katrin Jakobsdottir, who gained 25.2%.