U.S. midterm elections have historically been followed by strong stock market performance, regardless of which party gains political ground. According to CNBC’s analysis of market returns since 1980, the S&P 500 has posted an average gain of 13.7% in the 12 months following midterm elections, with positive returns recorded after all 11 midterm contests between 1982 and 2022. The historical trend suggests that once election-related uncertainty fades, investors may turn their attention back to economic fundamentals and corporate earnings.

Markets have also tended to perform better under divided government. Following 15 elections that resulted in neither party controlling both the White House and Congress, the S&P 500 gained an average of 15% over the subsequent year, compared with 11.5% after elections that delivered single-party control. This pattern suggests that investors may favor political gridlock because it can limit sweeping policy changes and reduce uncertainty surrounding government spending and regulation.

However, election outcomes alone rarely determine the market’s direction. The 2000 election was followed by a 22.1% decline in the S&P 500 over the next year as the dot-com bubble burst, while the index surged 38.3% in the year after the 2020 election amid a powerful recovery from the pandemic-driven selloff. Federal Reserve policy, corporate earnings, and broader economic conditions remain far more influential over the long term. In 2018, for example, stocks came under pressure as the Fed raised interest rates four times, despite the market eventually recovering in the following year.

This time, artificial intelligence, geopolitical tensions, and global bond markets are among the key factors investors are watching. Any sustained weakness in technology stocks could challenge the broader rally, while a Democratic sweep of Congress could bring additional regulatory scrutiny to AI infrastructure investment. Rising global bond yields and tensions add further uncertainty. Although historical patterns leave room for a post-election rally and a potential year-end Santa Claus rally, investors should remember that seasonality is not a guarantee. The Fed, corporate earnings, and the trajectory of the AI boom are likely to remain the dominant forces shaping the S&P 500.