SEBASTIAN, Fla.—

Was Florida whispering? Was Wisconsin shouting? Suddenly these two questions, rooted in states that Donald Trump carried only five months ago, are at the forefront of American political discussion and calculation.

Not since 1969 has a special congressional election represented a substantial rebuff to a sitting president.

But the two victories in special Florida elections merely returned Republicans to House seats they won in November, with both new lawmakers’ margins of victory half as large as their predecessors’ were in November. The Wisconsin Supreme Court election confirmed a 4-3 liberal majority in an election that Mr. Musk, who poured $20 million into the race even as he invested his own credibility, suggested might “decide the future of America and Western Civilization.”

Advertise with us

Shrinking margins

Both parties poured enormous amounts of money into the three campaigns.

Total spending in the Wisconsin court race may hit $100 million, making it the most costly judicial race in history. Democrats raised 10 times as much money as the GOP candidate in a losing cause in the coastal Florida race.

Mr. Musk gave $1 million checks to two Wisconsin voters, offered those signing petitions and providing their contact information $100 each; and presented voters with $20 if they were photographed holding a picture of the Republican candidate.

The surface results in Florida sent GOP state Senator Randy Fine into the House seat vacated when Michael Waltz became Mr. Trump’s national-security advisor, and Jimmy Patronis, Florida’s chief financial officer, into the opening created when Matt Gaetz resigned his House seat.

The twin congressional special elections, conducted in Florida’s midcoast and in its western Panhandle, suggest the possibility of significant seepage in the 2026 contests, when Mr. Trump will not be on the ballot. The Democrats gained 41 seats in the 2018 midterms, when Mr. Trump was in the White House but wasn’t running himself. Those results returned the Democrats to control of the House, a result they hope to repeat next year.

Advertise with us

In the coastal Florida district, located midway between St. Augustine and Daytona Beach, a third of the registered voters receive Social Security benefits. Democrats, who have profited from fears about the stability of the income supplement for older Americans since the 1982 midterms, have revived the issue as Mr. Musk has sent his DOGE warriors into the Social Security Administration.

Democrats and Republican reactions

Spencer Goidel, an Auburn University political scientist, said the Democrats overperformed in deeply conservative districts, primarily by appealing to the college-educated voters who once were reliable elements of the Republican political coalition but who, in recent years have migrated to the Democratic Party.

“Democrats have a long way to go, but they should feel better about the world right now,” said Thomas A. Devine, a Democratic political strategist. “These races tell us people are upset about what is happening in Washington — and they tell us that Americans are worried about these disbursements of money that threaten democratic government and our institutions. People are repulsed by it.”

Republicans sought to minimize the damage in the three elections. “Any reprieve from the hangmen, no matter how brief, is always welcome, and that’s what the Democrats have,” Alex Castellanos, a GOP strategist who had close ties to establishment Republicans such as George W. Bush and Mitt Romney, said in an interview.

“They still don’t have any idea how to govern, they don’t have a vision, they don’t have leaders, they don’t have protagonists for the movie much less a script. The leader of the Democrats is Donald Trump because all the Democrats are today is a brake pedal on his car. Cars need brake pedals, but that doesn’t mean they trust them to take them where they need to go.”

Advertise with us

Even with the optimism that the Democrats feel after the Tuesday results, the party remains convulsed in debate about its path forward and worried about its future.

Just before the balloting began in Florida and Wisconsin, Governor Gavin Newsom of California, speaking on “Real Time With Bill Maher,” characterized the Democratic Party’s brand as “toxic,” saying, “This is an existential moment, and our unity against Trump is not increasing our trust, it’s not belong the Democratic brand.”

The Democratic divide

Mr. Castellanos is correct in arguing that the Democrats are virtually leaderless, with the party’s standard being held high principally by Senator Bernie Sanders of Vermont, who caucuses with the Democrats but who describes himself as a democratic socialist, and by Representative Alexandria Ocasio-Cortez of New York. Mr. Sanders has an 85% score in the most recent Americans for Democratic Action ratings, considered a measure of political liberalism, and Ms. Ocasio-Cortez scored 100%.

And while Ms. Ocasio-Cortez minimizes the friction between left-leaning Democrats like herself and more moderate party members, that is the axis on which the debate revolves. The Democratic candidates who performed well Tuesday were moderates. But it was Mr. Sanders, who twice ran for president, who brought his “Fighting Oligarchy” campaign to the Florida district that was the political base of Governor Ron DeSantis.

David M. Shribman, the former executive editor of the Pittsburgh Post-Gazette, is a scholar-in-residence at Carnegie Mellon University and a columnist for the Post-Gazette. His previous column was “The Pittsburgh journalist who changed baseball.”