Two House Democrats who represent districts that voted for President Trump in 2016 bucked their party’s leadership Thursday and voted against formalizing the House impeachment probe.

Jeff Van Drew, 66, a freshman who represents New Jersey’s 2nd Congressional District, and Collin Peterson of Minnesota, 75, a conservative Democrat who represents Minnesota’s 7th District, were the only two lawmakers from either party to cross the aisle.

Van Drew’s district is the state’s largest and includes the southern part of the Garden State, from Salem County to the Jersey Shore and Atlantic City.

The district voted for Trump by 4.6 points over Hillary Clinton in the 2016 election, and had been represented by Republican Frank LoBiondo, who served 11 terms before announcing his retirement in November 2017.

Van Drew had told The Post recently that he had no plans to vote for the impeachment inquiry.

“I didn’t support the idea of doing this to begin with, so I can’t support a process that just further promulgates this,” he said.

Peterson is a member of the Minnesota Democratic-Farmer-Labor Party, and is the dean of the Minnesota delegation, having served since 1991.

His district is Minnesota’s largest and most rural, covering most of the western part of the state.

Trump carried the district by nearly 31 percentage points, and Peterson is facing a tough challenger in 2020, as pro-Trump former Lt. Gov. Michelle Fischbach has already announced that she would challenge Peterson.

But other Democratic lawmakers who represent red or swing districts rolled the dice and voted for the resolution.

Among them is upstate freshman Rep. Anthony Brindisi, who barely unseated GOP incumbent Claudia Tenney in 2018.

Tenney says she will seek to regain the seat in 2020.

Brindisi had earlier told The Post he was still on the fence.

“It’s hard for me to say what the rationale is behind all of this because no one has seen the language yet … or been given an explanation as to why this vote is necessary. So I’m going to hear them out and see what happens,” he said.

Staten Island’s Max Rose also backed Speaker Nancy Pelosi’s call, even though the borough gave Trump 57 percent of the vote in 2016.