Voters in liberal strongholds across the country, from city centers to suburban stretches, failed to show up to vote for Vice President Kamala Harris at the levels they had for Joe Biden four years earlier, contributing significantly to her defeat by former President Donald Trump, according to a New York Times analysis of preliminary election data.

The numbers fill in the picture of Trump’s victory, showing it may not represent the resounding endorsement of his agenda that the final Electoral College vote suggests.

Trump won the White House not only because he turned out his supporters and persuaded skeptics, but also because many Democrats sat out this election, presumably turned off by both candidates.

Counties with the biggest Democratic victories in 2020 delivered 1.9 million fewer votes for Harris than they had for Biden. The nation’s most Republican-heavy counties turned out an additional 1.2 million votes for Trump this year, according to the analysis of the 47 states where the vote count is largely complete.

The drop-off spanned demographics and economics. It was clear in counties with the highest job growth rates, counties with the most job losses and counties with the highest percentage of college-educated voters. Turnout was down, too, across groups that are traditionally strong for Democrats — including areas with large numbers of Black Christians and Jewish voters.

The decline in key cities, including Detroit and Philadelphia, made it exceptionally difficult for Harris to win the battlegrounds of Michigan and Pennsylvania.

The drop-off is an extraordinary shift for Democrats, who, motivated by Trump’s surprise victory in 2016, had turned out in eye-popping numbers for the three subsequent elections. They clipped his power in Washington in 2018, removed him from office in 2020 and defeated many of his hand-picked candidates for battleground races in 2022.

Democrats said they need a new way to re-engage voters who are fatigued by the anti-Trump message and distrustful of both parties.

The reasons behind the drop-off are varied. For one, some backsliding could be expected after the record turnout in 2020, aided by pandemic rule changes that increased mail voting.

Some analysts point out that Harris was the latest political casualty of a postpandemic global trend favoring challengers, no matter the incumbents’ politics, in places like Japan, South Africa, South Korea and Britain.

But narrow results in swing states indicate that Democrats had an opportunity to beat Trump again. Some party officials said Harris did not have enough time to overhaul the campaign after taking over for Biden, whose popularity has plunged.

Others were more critical of her messaging, suggesting the campaign was chasing ghosts in trying to appeal to Republican crossover voters by campaigning with conservatives like former Rep. Liz Cheney and talking about threats to democracy. Instead, these people said, the Harris campaign should have spent more time talking about how her economic policies would affect an important, but disaffected, part of her party.

Structural differences between the Republican and Democratic operations may have played a role too.

The Harris campaign, flush with cash, relied on a turnout program that stationed field staff members in campaign offices across the battleground map. The data suggest that program worked; Harris won more voters than Biden in four of the six battleground states where the count is nearly complete. But that increase was swamped by Trump’s gains.

The former president seized on new federal election rulings that, for the first time, let campaigns directly coordinate with outside groups focused on pushing voters to the polls. Elon Musk, the world’s richest man, poured at least $175 million into canvassers for America PAC, whose team took its marching orders from the Trump campaign.

“It’s really a question of playbooks,” said Donna Brazile, the former chair of the Democratic National Committee. “Trump had edgier and stronger material that he was constantly communicating at rallies, on podcasts and in other appearances. Democrats tried to compete in seven battleground states and call it a day.”

In Pennsylvania, Trump’s victory received an outsize boost from an unlikely place — the five counties with the highest percentage of registered Democrats: Allegheny, Delaware, Lackawanna, Montgomery and Philadelphia.

Harris won these counties, but not by the margins needed to overcome Republican-heavy areas of the state. Total turnout was down from 2020 in all five Democratic strongholds, which could partly explain how Harris received 78,000 fewer votes than Biden. Trump added 24,000 votes to his total in these same counties.

This gap left Harris with little chance of winning Pennsylvania. Trump’s victory margin in the state, as of Sunday, was about 145,000 votes.

In Michigan, Trump’s victory was mainly a result of the drop-off in Wayne County, home to Detroit and diverse suburbs like Dearborn and Hamtramck that supply the state with its most significant source of Democratic votes.

While Harris easily won Wayne County, she did it with 61,000 fewer votes than Biden had, a decline of about 10%, while Trump added 24,000 votes, a jump of about 9%.

That swing limited Harris’ hopes of winning Michigan, where Trump was ahead by about 81,000 votes.

Branden Snyder, a liberal organizer in Detroit, said he had conversations with other activists in the final weeks of the race about how strange they thought it was for Harris to bring Cheney, a former Republican House member from Wyoming, on the campaign trail in Detroit. Many progressive voters in the city viewed Harris as a centrist, he said, and they may have been better served hearing from a fellow liberal who could explain why they should be excited to support the vice president.

He recalled realizing that Democrats were in trouble during the final weekend of the race when he was knocking on doors on the east side of Detroit and he could not find a way to persuade a middle-age Black woman to cast her ballot. Black women have long been some of the Democratic Party’s most reliable voters.

“When you have Black women not voting because they say nothing is going to happen — that neither candidate is going to change anything — that is doomsday for Democrats,” Snyder said.