The CAPE ratio has crossed 40 only twice in history. The first was at the peak of the dot-com bubble in 1999.
Unlike the dot-com era, today's market is led by profitable tech giants, but a quirk of accounting may be masking the true cost of AI spending and inflating current earnings.
While the CAPE flashes a warning, it's not a timing tool -- sitting in cash when it passed 30 in 2017 would have meant missing years of gains.
The CAPE ratio is flashing a warning that, in over a century of stock market history, has only shown up once before: near the top of the dot-com bubble.
With the S&P 500 (SNPINDEX: ^GSPC) and Nasdaq Composite indexes both near record highs, it stands to reason to ask, should I be worried? Here's what you need to know.
Missed Nvidia in 2009? This Rare Signal Is Flashing Again. In 2009, a "Double Down" signal flashed for a little-known chipmaker called Nvidia. For the first time in years, that same "Total Conviction" signal is flashing for a company 1/100th the size of Nvidia. Continue »
CAPE stands for the cyclically adjusted price-to-earnings ratio. It's basically a smoothed-out version of the regular price-to-earnings (P/E) ratio -- a standard valuation metric for a stock -- but applied to the whole market. It takes the price of the S&P 500 and divides it by the average of its inflation-adjusted earnings over the past 10 years.
The decade-long average helps smooth things out and remove the noise. It gives you a cleaner read on what investors are really paying. When the ratio runs high, the market is expensive relative to what companies have actually earned. The historical average sits around 17, and right now we're north of 40 -- more than double the long-run norm.
The only other time the CAPE crossed 40 was in 1999, right at the top of the dot-com bubble. The S&P 500 had roughly tripled over the prior five years, fueled by enthusiasm for internet stocks that mirrors today's enthusiasm for all things artificial intelligence (AI).
Take a look at the CAPE over the last 100 years.

S&P 500 Shiller CAPE Ratio data by YCharts
It might be a mistake to assume this ends the same way, however. There's certainly a good argument for why this is not the same market.
The dot-com highs were driven by speculation on companies that were, in many cases, barely businesses. This was the era of Pets.com and eToys -- stocks were sent soaring based more on a concept than any fundamentals.
Today, the market is dominated by tech giants with massive earnings. Apple, Microsoft, Nvidia, Alphabet, and Amazon have the balance sheets and income statements to back up their stock prices.
Earnings have been soaring, and it's not hard to see the CAPE retreating to more reasonable levels, not through a crash in stock prices, but the steady rise of the net income these companies book.
While there's merit to this argument, I'm inclined to push back on it for a key reason: Today's earnings might not be as "real" as they seem. This is because of a pretty straightforward accounting quirk that many investors miss but is critical to understand.
The bulk of the money sloshing around in the AI economy, driving the market, comes from the capital expenditures of the big tech hyperscalers like Alphabet and Microsoft. This money flows out immediately, boosting revenue and earnings across the entire ecosystem, but it isn't counted against the hyperscalers' own earnings up front. It gets spread out over time.
Image source: Getty Images.
This leads to a lag in which the benefits of that spending are reflected in the CAPE, while the costs show up later. To be sure, there's nothing nefarious going on here; it's just the way accounting works. But when this window closes, the CAPE could suddenly look even more extreme. And that could be coming soon.
OK, so where does this leave us? Well, you definitely shouldn't go running for the hills. It matters that the CAPE is at historic levels, but it's not some crystal ball. It guarantees nothing -- most of all, timing. The truth is, while the CAPE is now the second-highest it's ever been, it's been in "danger" territory for more than a decade. You would have missed out on quite a bit of growth had you sat in cash when the CAPE passed 30 in 2017.
It's a cliche, yes, but it's not a tired one, in my opinion: Time in the market beats timing the market. Patient investing over the long term is always the winning formula.
With that said, now is not the time to chase high-flying growth stocks, nor is it the time to be all in on companies with mind-numbing valuations based on the promise of future revenue. Companies that will do well with or without an AI revolution are a great bet.
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 $398,052!* 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,181,688!*
Now, it’s worth noting Stock Advisor’s total average return is 892% — a market-crushing outperformance compared to 205% 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 June 30, 2026.
Johnny Rice has no position in any of the stocks mentioned. The Motley Fool has no position in any of the stocks mentioned. The Motley Fool has a disclosure policy.