President Trump could be the unlikely benefactor of Andrew Yang ending his White House bid — a new poll finding he is the second-most popular alternative among the Yang Gang.

Of the 200 Yang supporters surveyed in the hours after the businessman threw in the towel at Tuesday’s New Hampshire primary, 11 percent of people said they would now support re-electing Trump, the Stanford University/Reality Check study obtained by The Post found.

Democrat socialist Bernie Sanders was still the preferred alternative with 33 percent of the disbanded “Yang Gang,” but the survey showed supporters of the zany tech entrepreneur were failing to coalesce around the field of Democratic candidates.

A third of all supporters were still undecided while just 4 percent realigned with former Vice President Joe Biden. Sen. Amy Klobuchar of Minnesota received 2.5 percent and ex-South Bend, Ind. Pete Buttigieg just 1 percent.

Stanford university graduates and Reality Check pollsters Benjamin Leff and Sam Riber said this is because Yang and Trump have a similar message on the importance of job creation on US soil.

“Yang’s message of job loss due to technological change likely resonated with previous Trump supporters whole felt excluded from America’s modern economy,” Leff said.

“Only 50 percent of the Yang Gang identify as Democrats. This presents a challenge for the remaining Democratic candidates hoping to rally the Yang Gang behind them,” he continued.

According to the study, 13 percent of Yang’s supporters identify as Republican while the other 36 percent are independent.

An energetic entrepreneur with no previous political experience, Yang became a minor celebrity on the campaign trail — spearheading calls for a universal basic income to his legion of fans who dubbed themselves the “Yang Gang.”

Speculation is now rife the 45-year-old from Schenectady, New York is now mulling a NYC mayoral run.