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 exchange was the biggest flare-up between the sides in weeks.
A report found that just six out of 96 top leaders at the corporation were non-white men.
Court of Appeal judges ruled his 30-year jail term for sex offences against boys he coached was not excessive.