US District Judge Theodore Chuang told Bolton, 78, that he endangered US national security by sending diary entries containing highly sensitive information about his tenure during Trump's first administration to his wife and daughter.
"As national security adviser, the defendant, perhaps more than anybody else in the United States government, should have known better than to do this," Chuang said in imposing the sentence.
Federal prosecutors requested Bolton serve five years in prison while Bolton's lawyers asked the judge for a sentence of probation and no prison time.
Bolton, speaking in court ahead of the sentence, expressed "deep remorse" for his actions.
"In my haste to convey all that happened so rapidly in my 17 months as national security adviser, and to make sure that my record was accurate, I broke the law," Bolton told the judge.
"I would never intentionally put our nation's security at risk."
Bolton's indictment focused on hundreds of pages of diary-style notes about his work that he shared with his wife and daughter.
After sending one document, Bolton wrote in a message to his relatives, "None of which we talk about!!!".
In response, one of his relatives wrote, "Shhhhh," prosecutors said.
Trump, in a social media post, said Bolton "did not serve our Country well and, when you don't, this is what should happen!"
Bolton's legal team cited letters of support from several prominent former officials, including former vice president Mike Pence, whom Bolton served with during Trump's first term.
The case stems from personal diary entries Bolton created and shared with his wife and daughter that detailed his daily work as national security adviser to Trump during his first term in 2018 and 2019.
The documents spanned more than 1000 pages and included notes on intelligence briefings and meetings with senior government officials and foreign leaders, according to prosecutors.
Bolton used the notes to prepare his 2020 book The Room Where It Happened, which detailed foreign policy debates in Trump's first administration and accused Trump of being uninformed on foreign affairs and unfit for office, triggering a public rift.
No classified information appeared in the book.
Bolton was indicted in 2025 on 18 criminal counts and pleaded guilty in June to a single charge of unlawful retention of national defence information.
A plea agreement provided for him to pay a $US2.25 million ($A3.42 million) fine and be sentenced to between zero and 60 months in prison.
Bolton, a prominent advocate for an interventionist foreign policy, has served in multiple Republican administrations.
His lawyers have depicted the case as retribution for his criticism of Trump.
with AP