Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

Hillary Clinton's advantage over Donald Trump has narrowed to just three points — resulting in a dead-heat general-election contest with more than five months to go until November, according to a new national NBC News/Wall Street Journal poll.

Clinton, who remains a heavy favorite to win the Democrat nomination, leads the presumptive GOP nominee 46 percent to 43 percent among registered voters, a difference that is within the poll’s margin of error of plus-or-minus 3.1 percentage points. In April, Clinton held an 11-point advantage over Trump, 50 percent to 39 percent, and had led him consistently by double digits since December.

In a more hypothetical matchup, Democrat Bernie Sanders leads Trump by 15 points, 54 percent to 39 percent.

Looking inside the numbers of her race against Trump, Clinton holds the edge among African Americans (88 percent to 9 percent), Latinos (68 percent to 20 percent), women (51 percent to 38 percent) and those ages 18 to 34 (55 percent to 32 percent).

Trump, meanwhile, is ahead among whites (52 percent to 36 percent), seniors (52 percent to 41 percent), men (49 percent to 40 percent) and independents (42 percent to 37 percent).

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

The NBC/WSJ poll — conducted May 15-19 — comes after Trump became the Republican Party's presumptive presidential nominee, but also as the ongoing Clinton-vs.-Sanders Democratic race has become more contentious in recent days.

Republicans are now supporting Trump over Clinton by an 86 percent-to-6 percent margin, which is up from 72 percent to 13 percent a month ago, suggesting that GOP voters are consolidating around their presumptive nominee.

Complete Coverage: Decision 2016

While Democrats are backing Clinton by an 83 percent-to-9 percent clip, just 66 percent of Democratic primary voters preferring Sanders support Clinton in a matchup against Trump (compared with 88 percent of Clinton primary voters who favor Sanders in a hypothetical general-election contest). Those numbers underscore Clinton’s challenge in winning over Sanders voters once the Democratic primary contest concludes.

Mr. and Mrs. Unpopular

Trump and Clinton are currently the two most unpopular likely presidential nominees in the history of the NBC/WSJ poll.

Thirty four percent of registered voters have a positive opinion of Clinton, versus 54 percent who have a negative opinion (-20) — a slight uptick from her minus-24 score last month.

Trump's rating is even worse than Clinton’s: Twenty nine percent have a positive opinion of him, while 58 percent have a negative opinion (-29) — an improvement from his minus-41 score in April.

“This has never been matched, or even close to being matched,” Democratic pollster Peter Hart, who conducted the survey with Republican pollster Bill McInturff, says of these negative ratings for Trump and Clinton.

By contrast, Sanders is in positive territory. Forty-three percent have a positive view of the Vermont senator, versus 36 percent who have a negative view (+7). One difference Clinton and Sanders: Clinton’s rating among Democratic voters supporting Sanders is 38 percent positive, 41 percent negative (-3); Sanders’ rating among Clinton supporters is 54 percent positive, 23 percent negative (+31).

President Obama’s overall score in the current NBC/WSJ poll is at 49 percent positive, 41 percent negative (+8).

Forty Seven Percent Would Consider a Third-Party Candidate

Asked if they would consider a third-party candidate if Clinton and Trump were the major party nominees, 47 percent of registered voters say yes -- a higher percentage than those who said yes on a similar question in 2008 and 2012.

Fifty percent of voters say they would not consider a third-party candidate.

The NBC/WSJ poll was conducted May 15-19 of 1,000 registered voters, including 450 cell phone-only respondents and another 46 reached on a cell but who also have a landline. The overall margin of error is plus-minus 3.1 percentage points.