The Stock Market Just Flashed a Warning We Haven't Seen for More Than 20 Years. Here's What History Suggests Will Happen Next.

Source Motley_fool

Key Points

  • The rise of artificial intelligence (AI) ushered in a period of historic gains in the stock market.

  • The stock market is trading near record levels, and history suggests a reversal could be in store.

  • In the long run, smart investors buy the dip during market downturns.

  • 10 stocks we like better than S&P 500 Index ›

For the last three years, the stock market has been heavily influenced by one key theme: artificial intelligence (AI). The rise of AI has spawned an unprecedented level of demand in the technology sector in particular. However, adjacent industries including energy and infrastructure are also beginning to benefit from AI-driven tailwinds.

Against this backdrop, the S&P 500 posted a 70% gain throughout the AI revolution. As the stock market continues to soar, some investors are beginning to grow suspicious that we may be headed for a bubble-bursting event.

Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now. Continue »

History suggests that a significant shift in stocks may be on the horizon. Let's dig into the market's recent fluctuations and index this data against longer-term trends. From there, investors should have a clearer idea of where to invest, given the market's current elevated state.

A confused investor at the New York Stock Exchange.

Image source: Getty Images.

The stock market has been a roller coaster this year

The direction of the S&P 500 has been anything but linear this year. While stocks began 2025 on a high note, things took a pronounced turn in early April following President Donald Trump's "Liberation Day" tariff announcement.

At the flip of a switch, the S&P 500 plummeted by 15% -- dragging high-flying stocks into an epic reversal.

Nevertheless, as trade negotiations took shape and corporate earnings continued to show strength, investor panic began to wane. As of this writing, the S&P 500 has soared 16% on the year. Should the index sustain these levels, it would mark the third consecutive year of double-digit gains.

Is the stock market in a bubble?

While the term "bubble" gets used a lot on financial news programs, there isn't a specific indicator or singular definition that determines whether the market is in one.

However, the S&P 500 Shiller CAPE ratio is a useful metric to consider. This tool accounts for current stock prices relative to the 10-year average of earnings (profits) in the market. In essence, the CAPE ratio attempts to smooth out market anomalies, such as periods of economic expansion or recession.

S&P 500 Shiller CAPE Ratio Chart

S&P 500 Shiller CAPE Ratio data by YCharts

The S&P 500 Shiller CAPE ratio is currently at 39.4. The last time it was even remotely close to this level was more than two decades ago. In case investors need a reminder, the dot-com bubble burst in early 2000.

Newspaper with stock market headline.

Image source: Getty Images.

Is the stock market about to crash?

As the trends show, the stock market entered a prolonged correction following the end of dot-com euphoria. Moreover, the only other time in history that the CAPE ratio was within shouting distance of its current levels besides the dot-com era was during the late 1920s -- just prior to the Great Depression.

Given the historical data above, it appears that the S&P 500 is almost certain to head for a downward spiral. Nevertheless, there are some additional details that smart investors should be aware of.

First, the dot-com bubble was rooted in hype-driven narratives around user engagement and clicks. The reality is that many early pioneers of the internet had little business traction, limited revenue, and enormous operating losses. These companies should never have experienced skyrocketing valuations to begin with.

AI is fundamentally different. The industry's largest developers -- Nvidia, Alphabet, Amazon, Microsoft, Palantir Technologies, among others -- have already turned AI into several multi-billion dollar businesses across chips, software, and cloud infrastructure.

Additionally, sell-offs vary in terms of their duration. In other words, if stocks begin to crater, it's not necessarily an indicator that the economy is about to fall off a cliff like it did in the 1920s.

^SPX Chart

^SPX data by YCharts

Despite some road bumps along the way, the S&P 500 has proven to be an incredibly resilient investment vehicle over time.

While I can't say for certain which direction the market is headed, I can say with a high degree of confidence that it will continue to move higher over the coming decades. I bring this up to drive home one main point: Even if stocks sell off next year, history shows that it would be a winning idea to buy the dip on hold on for the long run.

Should you buy stock in S&P 500 Index right now?

Before you buy stock in S&P 500 Index, consider this:

The Motley Fool Stock Advisor analyst team just identified what they believe are the 10 best stocks for investors to buy now… and S&P 500 Index wasn’t one of them. The 10 stocks that made the cut could produce monster returns in the coming years.

Consider when Netflix made this list on December 17, 2004... if you invested $1,000 at the time of our recommendation, you’d have $505,695!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $1,080,694!*

Now, it’s worth noting Stock Advisor’s total average return is 962% — a market-crushing outperformance compared to 193% for the S&P 500. Don't miss the latest top 10 list, available with Stock Advisor, and join an investing community built by individual investors for individual investors.

See the 10 stocks »

*Stock Advisor returns as of December 16, 2025.

Adam Spatacco has positions in Alphabet, Amazon, Microsoft, Nvidia, and Palantir Technologies. The Motley Fool has positions in and recommends Alphabet, Amazon, Microsoft, Nvidia, and Palantir Technologies. The Motley Fool recommends the following options: long January 2026 $395 calls on Microsoft and short January 2026 $405 calls on Microsoft. The Motley Fool has a disclosure policy.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
Gold's Historic 2025 Rally: Can the Momentum Last Through 2026?Following a historic surge in 2025 that saw prices climb over 60% and break records more than 50 times, gold investors are now looking ahead to assess whether the precious metal can sustain its momentum into 2026. Despite outperforming most major asset classes and heading for its best annual performance since 1979, analysts are divided on the outlook—with some seeing further room for gains and others cautioning that risks are rising.
Author  Mitrade
Dec 09, Tue
Following a historic surge in 2025 that saw prices climb over 60% and break records more than 50 times, gold investors are now looking ahead to assess whether the precious metal can sustain its momentum into 2026. Despite outperforming most major asset classes and heading for its best annual performance since 1979, analysts are divided on the outlook—with some seeing further room for gains and others cautioning that risks are rising.
placeholder
Oracle's Weak Earnings Prompt Concerns Over AI Spending, Pressuring Nvidia and Industry RivalsOracle's disappointing earnings and soaring expenses have raised fears about AI spending sustainability, causing Nvidia and other related stocks to decline amidst heightened competition and concerns over mounting debt.
Author  Mitrade
Dec 11, Thu
Oracle's disappointing earnings and soaring expenses have raised fears about AI spending sustainability, causing Nvidia and other related stocks to decline amidst heightened competition and concerns over mounting debt.
placeholder
Cryptocurrencies Extend Losses as Year-End Caution and Thinning Liquidity Weigh on MarketThe cryptocurrency market declined on Monday, mirroring a pullback in global risk assets as investors turned cautious ahead of key U.S. economic data. The broad-based retreat highlighted thinning liquidity and growing risk aversion across financial markets as the year draws to a close.
Author  Mitrade
Dec 16, Tue
The cryptocurrency market declined on Monday, mirroring a pullback in global risk assets as investors turned cautious ahead of key U.S. economic data. The broad-based retreat highlighted thinning liquidity and growing risk aversion across financial markets as the year draws to a close.
placeholder
Australian Interest Rate Cuts Postponed to 2027 Amid Rising Inflation Pressures, Westpac PredictsWestpac analysts forecast the Reserve Bank of Australia will hold interest rates steady through 2026, with potential cuts now expected in early to mid-2027 due to resurging inflation and labor market concerns.
Author  Mitrade
Yesterday 03: 31
Westpac analysts forecast the Reserve Bank of Australia will hold interest rates steady through 2026, with potential cuts now expected in early to mid-2027 due to resurging inflation and labor market concerns.
placeholder
Asian Stocks Rise, Oil Jumps as Trump Orders Blockade on Venezuela TankersAsian equities advanced on Wednesday, supported by strong buying in technology shares, while oil prices surged more than 1% following an escalation of U.S. sanctions pressure on Venezuela.
Author  Mitrade
22 hours ago
Asian equities advanced on Wednesday, supported by strong buying in technology shares, while oil prices surged more than 1% following an escalation of U.S. sanctions pressure on Venezuela.
goTop
quote