The judge also ruled that Bergdahl's rank be reduced from sergeant to private. Additionally, he will be required to pay a $1,000 fine from his salary for the next 10 months.
"Sgt. Bergdahl has looked forward to today for a long time," Eugene Fidell, Bergdahl's civilian attorney, said at a news conference after the sentence was announced.
"As everyone knows he was a captive of the Taliban for nearly five years, and three more years have elapsed while the legal process unfolded. He has lost nearly a decade of his life."
The sentence is effective immediately, except for the dishonorable discharge, which Bergdahl is appealing, according to Fidell.
Bergdahl appeared visibly shaken as the sentence was announced, according to CNN affiliate WRAL
. Two of his attorneys stood by his side with their hands on his back while the judge, Army Col. Jeffery R. Nance, read the sentence.