Stock markets gained on Wednesday, as it became clear that Democrats were set to seize control of Congress in a resounding midterm election victory that surpassed the party’s most optimistic expectations.
The S&P 500 rose 1.6 percent, its biggest daily gain in three months. The Nasdaq Composite rose 1.4 percent. The Dow Jones industrial average, which tracks 30 big companies, surged 3 percent, its second best day since President Trump was re-elected.
For investors, perhaps the most important takeaway from the midterms is that they are over. Uncertainty over what might happen on Election Day has historically weighed more heavily on the market than the clarity of a result, regardless of what that result has been.
The Democrats’ sweep is likely to produce gridlock in Washington. That can cause political problems in some areas, such as when it comes to approving government spending. At the same time, an extended stasis for policymaking tends to be a bullish signal for investors, allowing them to pay less attention to the political maneuverings behind new rules and laws.
Another reason that markets tend to respond positively to elections is that money parked on the sidelines to avoid any potential tumult re-enters the market, helping to lift stock prices.
“Stocks are breathing a big sigh of relief this morning, as the midterms are finally done,” said Ryan Detrick, chief market strategist at Carson Group, an advisory firm. “Markets hate uncertainty, and now with the election out of the way, we are seeing buyers step in across the board,” he added.
When early results on Tuesday night pointed to a landslide victory for the Democrats, Asian stocks initially tumbled, as investors fretted about the artificial intelligence trade that has lifted markets to new heights. Before the midterms, the theory was that a Democratic sweep would slow the A.I. build-out, potentially derailing the prolonged rally in technology stocks.
But such concerns appeared to be quickly pushed off. Asian markets turned around and a broad rally in European and U.S. markets followed, with most sectors posting gains.
Alicia Garcia-Herrero, chief economist for the Asia-Pacific region at the investment bank Natixis, said that she did not expect the Democrats to “kill the goose that lays the golden eggs.”
The Democratic sweep, according to a research note from Allianz Global Investors, “ultimately brings greater political tension than fundamental policy change.”
The stocks of some key “hyperscalers” at the forefront of the A.I. build-out — companies like Alphabet, Amazon, Meta and Microsoft — all rose.
Attention homed in on some of the A.I.-linked companies that investors deemed to be riskier, either because of large debt loads, runaway spending or a lack of revenue to justify such aggressive expansion. Oracle fell 1.9 percent and CoreWeave, a company whose data-center dealings have worried investors, lost more than 9 percent.
Tesla and SpaceX, Elon Musk’s companies that both make heavy use of A.I., tumbled in a choppy trading session, pointing to the probable congressional attention to come on Mr. Musk roles as a political megadonor, former government cost-cutter and as a business leader who has aligned his interest closely with those of the Trump administration.
More defensive parts of the market that investors typically move into during periods of upheaval also saw selling on Wednesday. Industrials and energy stocks were the two sectors of the S&P 500 to fall, while the other nine rose.
Several analysts said the election result could increase President Trump’s focus on foreign policy, specifically the war in Iran. In a social media post, Vice President JD Vance blamed the Republican wipeout squarely on the war with Iran. Later, Mr. Trump said the assertion was “largely true.”
Oil prices fell sharply on Wednesday, with Brent crude, the global oil benchmark, sliding more than 8 percent to $94.62 a barrel, extending declines in recent days as negotiations took place between the United States and Iran.
Government borrowing costs, which have closely tracked the price of oil for much of this year, also fell. The yield on the 10-year Treasury note, which underpins interest rates for consumers and companies, dropped on Wednesday to 4.89 percent. The dollar, which tends to move in line with the path of interest rates, fell against other major currencies.
According to the Franklin Templeton Institute, the S&P 500 averaged a 14.9 percent gain over the 12 months after the 10 midterm elections under Republican presidents since 1954, with similar market moves regardless of whether Republicans or Democrats took control of Congress.
But some analysts have warned that a conventional post-election rally may not hold for long, given the potential for renewed conflict in the Middle East and still-high borrowing costs and government spending.
“Shutdowns, debt-ceiling brinkmanship and budget gridlock under a Democratic Congress are greater risks,” strategists at the research arm of Amundi Investment Solutions wrote in a pre-election report. “In prior cycles, gridlock was a relief trade. At current yield levels, it may not be.”
River Akira Davis and Alexandra Stevenson contributed reporting.