President Trump with Queen Elizabeth II, inspects the Guard of Honour at Windsor Castle in Windsor, England, in July 2018.
During Taoiseach Leo Varadkar's St Patrick's Day visit to Washington Mr Trump told Mr Varadkar he would visit Ireland in 2019.
The visit will take place from June 3 to June 5, the palace said in a tweet.
Trump, accompanied by his wife Melania Trump, has accepted an invitation from Queen Elizabeth, the palace confirmed this afternoon. "The state visit is an opportunity to strengthen our already close relationship in areas such as trade, investment, security and defence, and to discuss how we can build on these ties in the years ahead".
Trump later described the Queen as a "tremendous woman" who had "really never made a mistake".
Prime Minister Theresa May extended the offer of a state visit to Mr Trump early in his presidency when she met the U.S. leader for the first time in the White House in January 2017. It follows state visits by President George W. Bush in November of 2003 and President Barack Obama in May of 2011.
Speaker John Bercow said that he is "not minded" to invite the US President to address Parliament if he is to visit the United Kingdom this summer.
Around the time of the visit, the U.S. president is reportedly due to travel to Europe and attend commemorations marking the 75th anniversary of the D-Day landings.
Trump has visited both countries before, but Trump's visit to the United Kingdom will be part of a state visit - an aspect that was absent when he visited the country previous year on a working visit and where he sparked a significant anti-Trump protest in London, as well as a number of smaller pro-Trump rallies.
Tens of thousands protested against the Presidents visit, with some demonstrators flying a giant balloon depicting the President as an angry baby in Parliament Square.