Buttigieg has the edge.

A surging Pete Buttigieg has nudged ahead of Vermont Sen. Bernie Sanders in a daily tracking poll of New Hampshire Democrats — with just three days to go before its first-in-the-nation presidential primary.

The former mayor of South Bend, Ind., is at 25% in the Boston Globe/WBZ/Suffolk University tracking poll released Friday night, just after the Democrats wrapped up their debate in Manchester, N.H.

That was one percentage point ahead of the 24% won by Sanders in the same survey.

Buttigieg — at 38, the youngest candidate in the race — has gained 11 points in the poll since his strong performance in Monday’s Iowa caucuses, where he claimed victory despite the vote-count chaos that left the results in doubt for days.

Much of his gain came at the expense of Vice President Joe Biden, the national front-runner who flopped in the caucuses with a fourth-place finish.

Biden, at 11% in the Suffolk University poll, could see the same result in New Hampshire, where Sen. Elizabeth Warren (D-Massachusetts) is notching 14% in the survey.

Both Sanders and Buttigieg took fire from their rivals in Friday night’s debate. Mike Bloomberg was not in the poll because he is not on the primary ballot.