Bradley Manning will be eligible for parole after serving one third of his sentence, which will be reduced by the time he has already served in prison plus 112 days.
Defence attorneys had not made a specific sentencing request but pleaded with Judge Colonel Denise Lind not to "rob him of his youth."
More top news
The US president made the pledge as he addressed his plans to respond to Russia and North Korea following recent missile launches.
Leicester City have sacked manager Claudio Ranieri less than nine months after he guided them to a historic Premier League title
Around 40 people were in the sports hall at Southwood Middle School in Milton Keynes when the 8ft by 5ft ceiling caved in.