The 30-year-old Fulham playmaker has won 63 caps in a lengthy international career, scoring 18 goals in the process, but he did not make the starting line-up in Erwin Koeman's team on Wednesday.
Gera, who has struggled to hold down a first-team place in recent games, has decided to step down from Hungary, although he did not rule out a return in the future.
"I told Erwin Koeman that I don't consider myself as a member of the squad anymore," he told www.pepsifoci.hu.
"I'm ready to face the consequences. My close friends know that this is not a headstrong decision from me.
Belief"In the past months I felt it several times that the national coach doesn't really believe in me and there were many things that were undeserving with me.
"I did my best and I accepted when my captain belt was taken away from me and I had to sit on the bench. I tried to prove my abilities with extra resolve.
"The coach told me on Wednesday that I wouldn't play against Denmark (not even from the bench). This time I decided to tell him my decision and added that I don't want to bother the team in the evening with my presence.
"I don't say that the decision will last until the end of my career because it can happen in the far future that my name will be in the national team again - but it can also happen that I'll never play again."
Hungary finished fourth in Group One of the World Cup qualifiers, and miss out on a place in South Africa next year.