Gera made his international debut for Hungary in 2002 against Switzerland, with his nation losing 2–1. In 2009, Gera briefly retired from the national team following a dispute with then-manager Erwin Koeman. When Koeman was replaced by Sándor Egervári in 2010, Gera returned to Hungary's international squad which he later represented at the 2016 UEFA European Championship. He announced his final retirement from football on 28 June 2018.