A market valuation signal with a near-perfect historical record just flashed for only the second time in the past 100 years. The first time it flashed this bright, the dot-com bubble collapsed and the S&P 500 lost roughly half its value.

The S&P 500 Shiller CAPE ratio has stayed above 40 for three consecutive months, according to the Motley Fool. That has only happened once before in history, in the lead-up to the year 2000 crash. The ratio is currently just over 40. Its record high was 44, reached in late 1999, roughly four months before the dot-com bubble officially burst.

What the CAPE ratio is actually signaling

The CAPE ratio was developed by Nobel laureate Robert Shiller in 1988. It measures the S&P 500’s price against its average inflation-adjusted earnings over the past 10 years. The historical average is about 17. A reading of 40 is more than double that.

More significant is what the data shows about returns after the CAPE crosses this level. The S&P 500 has never had a positive three-year return after the CAPE finished a month above 40. That is not a prediction. It is a historical pattern with no exceptions.

More Warren Buffett:

A second warning light is also on. The Buffett indicator, which compares the total value of U.S. stocks to GDP, is sitting at a record high of around 238%. When Warren Buffett popularized this metric in 2001, he said that when it approaches 200%, investors are “playing with fire.” It has never been this far above that threshold.

None of this means a crash is imminent. What it does mean is that stocks are priced at levels that leave very little room for disappointment, whether from slowing earnings, rising interest rates or a shift in how investors feel about AI spending.

The lesson from Buffett that every AI investor needs to hear

During the dot-com boom, investors poured money into internet companies on the assumption that the technology would transform the economy. They were right about the technology. Many were wrong about the investments.

In a Fortune essay written during the dot-com boom, Buffett laid out why. He used the airline industry as an example. Air travel genuinely transformed society. But since the Wright Brothers flew at Kitty Hawk, 129 airlines had gone bankrupt. The industry changed the world and destroyed capital for investors at the same time.

“The key to investing,” Buffett wrote in Fortune, “is not assessing how much an industry is going to affect society, or how much it will grow, but rather determining the competitive advantage of any given company and, above all, the durability of that advantage.”

Buffett has since applied the same thinking directly to AI. He has said that if a farsighted capitalist had been present at Kitty Hawk, he would have done investors a favor by shooting down the Wright Brothers’ plane, because the airline business became “the worst sort of business.” He has suggested AI could follow a similar path: transformative for the world but destructive for investors who overpay.

Buffett’s advice is not to sell everything or try to call the market’s top.

Bloomberg / Getty Images

Why the AI boom makes the warning more urgent

The current AI rally shares a lot with the internet boom. The S&P 500 and Nasdaq have surged roughly 82% and 100% respectively over the past three years, driven heavily by AI enthusiasm. The 10 largest stocks in the U.S. now account for about 40% of the S&P 500, and most of them are betting heavily on AI.

Amazon, Alphabet, Microsoft and Meta spent a combined $303 billion on data centers in just the first half of 2026, a figure that has tripled over the past five years, according to the Motley Fool. The companies argue that AI demand will justify the spending. There is no guarantee they are right, and if the returns disappoint, the stocks priced for success will have the furthest to fall.

The dot-com parallel is not precise. Many of today’s largest AI companies have real revenue, real profits and real competitive advantages that dot-com era internet stocks lacked. But the valuation metrics do not distinguish between good businesses and bad ones. They just measure price.

What Buffett says investors should actually do

Buffett’s advice is not to sell everything or try to call the market’s top. He has consistently said that timing the market is a mistake most investors cannot pull off reliably.

His current behavior says something. Berkshire Hathaway ended the first quarter of 2026 with a record $397.4 billion in cash and short-term Treasury bills, as TheStreet reported. Buffett stepped down as CEO in January 2026 with Greg Abel taking over, but the direction of the cash pile has not changed. Berkshire has been a net seller of equities for 14 consecutive quarters. Neither Buffett nor Abel has found enough businesses at prices they consider fair.

His core advice still applies: Focus on companies with durable competitive advantages. Avoid paying extreme prices for uncertain growth. Stay within what you understand. For investors who cannot analyze individual businesses confidently, broad low-cost index funds remain his preferred alternative to trying to pick winners.

The CAPE ratio and the Buffett indicator are not crystal balls. They are readings of how much investors are currently paying for future earnings. When those readings are at historic extremes, the margin for error shrinks. That is the warning both metrics are flashing right now, and it is the same lesson Buffett drew from the dot-com era.

Related: Warren Buffett has a stark message for stock market investors