Mayor Pete Buttigieg doesn’t believe he’ll be the first gay president if elected in 2020.

“I would imagine we’ve probably had excellent presidents who were gay — we just didn’t know which ones,” he told “Axios on HBO.”

“I mean, statistically, it’s almost certain.”

FILE: Democratic presidential candidate Mayor Pete Buttigieg speaks at a grassroots event on Friday, June 14, 2019, in Alexandria, Va. (AP)

Asked if he possibly knew which commander-in-chief was playing for the other team, the Democratic hopeful said: “My gaydar even doesn’t work that well in the present, let alone retroactively. But one can only assume that’s the case.”

BUTTIGIEG SAYS TRUMP USING JUSTICE DEPARTMENT AS 'HIS OWN PERSONAL LAW FIRM'

Buttigieg — who is mayor of South Bend, Ind. — has been rising in the polls as of late. He would be the first openly gay presidential candidate, if nominated next next year.

The 37-year-old has been asked in the past about the possibility of there ever being a gay president, with BuzzFeed posing the question back in March.

GET THE FOX NEWS APP

“My gaydar is not great to begin with and definitely doesn’t work over long stretches of time,” he repeated. “I think we’ll just have to let the historians figure that out.”

To read more from The New York Post, click here