Sen. Elizabeth Warren has gained a narrow lead nationally over former Vice President Joe Biden, erasing a double-digit deficit from just last month, according to a new poll released Wednesday.

Warren got 27 percent of the support from Democratic and independent voters who lean Democratic while Biden received 25 percent, the Quinnipiac University survey shows.

While her lead remains inside the poll’s margin of error, it represents the first time one of the Democratic presidential hopefuls has topped Biden.

Following Warren were Sen. Bernie Sanders at 16 percent, Mayor Pete Buttigieg with 7 percent and Sen. Kamala Harris with 3 percent.

None of the other candidates got more than 2 percent.

In the August poll, Biden was at 32 percent, Warren got 19 percent, Sanders got 15 percent and Harris was at 7 percent.

“We now have a race with two candidates at the top of the field, and they’re leaving the rest of the pack behind,” said Quinnipiac University polling analyst Tim Malloy.

The survey shows Warren topping Biden among whites with a college degree, 37 percent to 20 percent, and among those who identify with being “very liberal,” 36 percent to 13 percent.

But Biden leads Warren 40 percent to 19 percent among black voters.

The survey of 1,337 registered voters nationwide was conducted between Sept. 19 and 23. It has a plus/minus 3.2 percentage-point margin of error.