The prison term is on top of a previously agreed fine of $2.25 million, about 1.73 million pounds.
Bolton, a former Trump ally who later became a critic, was sentenced for sharing diary entries covering high-level briefings and meetings with his family.
He was also accused of transmitting some of the classified material from his time as national security adviser to two relatives.
The case concerns how a senior official treated classified records after leaving government, including material later used in a book.
The judge said the sentence was for"a serious mistake in the broader context of otherwise honourable service"by Bolton.
The judge acknowledged that Bolton's offense was not as serious as similar cases involving high-ranking government officials who got lenient sentences.
The judge ordered Bolton to surrender himself for imprisonment on 8 February.
"I had no intention to share classified information with our country's adversaries,"Bolton said.
"I wince at hearing these words, and I am truly sorry for the hypocrisy they embody,"Bolton told the court, referring to his previous criticisms of others.
Known as a staunch hawkish neo-conservative, Bolton has long advocated decisive military involvement and regime change abroad.
Iran-linked actors later hacked Bolton's accounts.