Sgt Bergdahl was held captive by the Taliban for five years after he left his Afghan post in 2009, sparking a massive manhunt in the region.
A U.S. army sergeant, who was court martialled after deserting his post in Afghanistan, has been given a dishonorable discharge.
But a military judge ruled on Friday that a lesser punishment was appropriate.
President Donald Trump on Friday reacted to the news on Twitter.
While on the campaign trail past year, current US President Donald Trump called Bergdahl "a no-good traitor who should have been executed". Donald Trump called him "a no-good traitor who should have been executed". Now, Bergdahl has been sentenced and, contrary to Trump's wishes, he will not be given the death penalty. Bragg, North Carolina has ruled that Bowe Bergdahl won't be behind bars after pleading guilty to desertion and misconduct.
According to Fidell, Bergdahl plans to appeal the dishonorable discharge. They also said Bergdahl had suffered enough confinement during five years in Taliban captivity.
Bergdahl told the sentencing hearing he was sorry for the wounds suffered by searchers.
A psychiatrist said his decision to leave his post was influenced by a schizophrenia-like condition called schizotypal personality disorder that made it hard to understand consequences of his actions, as well as post-traumatic stress disorder brought on partly by a difficult childhood.
Prosecutors had asked for a sentence of 14 years in prison.
"We're exhausted of Sgt. Bergdahl, who's a traitor, a no-good traitor, who should have been executed", Trump said at an October 2015 rally, for example.
The 31-year-old, from Hailey, Idaho, was brought home by Mr Obama in 2014 in a swap for five Taliban prisoners at Guantanamo Bay. Bergdahl is seen as either a hero and fearless POW or a traitor who left his post and went AWOL, endangering the lives of everyone who went to look for him.
Bergdahl's defense lawyers twice tried to have the case dismissed over campaign trail comments from President Trump.