WASHINGTON — President Trump’s re-election campaign and the Republican National Committee said on Tuesday they had raised $105 million in the second quarter of this year, outraising President Barack Obama in the equivalent period during his 2012 re-election campaign and signaling that Mr. Trump will have far more resources than he did in 2016.

The campaign and the committee said that they had a combined $100 million in cash on hand, and that they had raised more money online in the second quarter than in the first half of 2018. Mr. Trump and his committees raised $54 million, they said, and the Republican National Committee raised $51 million, money that can be plowed into television and digital advertising, get-out-the-vote efforts and other activities related to the 2020 election.

While Mr. Trump may be trailing the Democratic front-runners in the polls, his second-quarter numbers were a reminder that as an incumbent, he has advantages that were unavailable to him as an untraditional, first-time candidate in 2016.

Mr. Trump rose to the presidency with fewer staff members and less money than his opponent, Hillary Clinton. This time, he will have the Republican Party’s fund-raising mechanism, as well as the powers of the presidency, bolstering his raw personal appeal to his base, even as he tries to present himself as the outsider to the political establishment that he once was.