Prime Minister Theresa May called Trump to talk about her plans to call an election, the second phone conversation between the two in 10 days.
A brief White House statement regarding the phone call said Trump "wished the British people the best of luck in their electoral process".
When Trump and May last spoke, on 10 April, they discussed international relations, agreeing that the situation in Syria presented an opportunity to end Russia's support for Syrian President Bashar al-Assad.
May made the unexpected announcement for a general election outside 10 Downing Street yesterday morning, saying that it was required to build "unity" in Westminster ahead of Brexit negotiations.
Polling figures have suggested the election could end in a majority of more than 100 for the Conservative party. Meanwhile, Labour is polling at historically low levels; a Guardian poll put the Tories 21 points ahead of Labour after May's announcement.