The man received the sentence after he stole the €5 from a bank branch in the Galician capital of La Coruña and fled.
He took the money after turning up at the branch with his passbook to withdraw the last of the funds in his account. When he reached the front of the queue however, he learned bank charges meant his account was actually in the red.
At that point, the man became angry and shouted out demanding explanations, regional daily La Voz de Galicia reported.
When the bank manager emerged from his office to intervene, the customer thrust his fist into the man's face and said he was going to beat the hell out of him.
Two other members of staff then intervened but to no avail. He pushed the three aside and jumped over a counter before opening a drawer, taking out €5 and fleeing.
During a recent court hearing, the man admitted his guilt and saw his sentence reduced to two years for aggravated robbery.