The stock market rallied on Wednesday after President Donald Trump said he accepted the results of the 2026 midterm elections and would work with Democrats, according to CNBC.

Trump told The New York Times and The Wall Street Journal overnight Tuesday that he accepted the results. Those reports coincided with a rebound in stock market futures.

Thomas Hempell, senior economist at Generali Investments, said Trump's acknowledgement and openness to collaboration "have helped markets to rally on hopes that contestation of the results and more adverse polarization can be avoided."

Before the midterms, some on Wall Street worried that Trump might contest the results. CNBC reported that the Department of Justice's Alaska election lawsuit raised fears of delays in the outcome. In a CNBC Fed Survey of 30 fund managers, strategists and economists, 63% said extended uncertainty over the balance of power posed "some" market risk, up from 61% in September. Another 14% said it posed "significant" risk, up from 7%.

George Saravelos, head of FX Research at Deutsche Bank, said the president's decision could "act as a break on extreme policy outcomes and bring down risk premia," as long as it holds.

Jay Woods of Freedom Capital Markets said the overnight rebound was partly due to Trump's "initial tone and reaction to the results." He said the key question is whether the move has staying power. Woods also cited possible headwinds, including inflationary pressure from higher energy prices tied to the conflict in the Middle East.

Philip Blancato of Osaic said the market could have a "very strong" end to the year if Trump "continues to play nice" with Democrats. He said reaching 8,000 on the S&P 500 by year-end is not totally out of the question, but it depends on Trump.

The S&P 500 gained more than 1% on Wednesday, according to the report.