For most of the past five years, as the Nasdaq has more than doubled, investors have debated whether technology stocks are in a bubble.

For the most part, however, the market shrugged off those arguments and the buying continued. Some of that was speculative excess, but the rally has been about more than enthusiasm. Many of the companies leading it have also delivered strong earnings, wide margins and enough cash flow to support continued investment.

That makes it too simple to dismiss the gains as part of a frenzy. Still, it’s fair to ask how durable those gains are, especially as AI spending rises and investors begin to question the return on investment.

This is where the dot-com comparison becomes useful, but only if investors draw the right lesson.

The bubble then did not implode because too many people misunderstood the internet’s potential. It happened because too many investors assumed that every company connected to the internet would turn into a great business.

AI carries a similar risk now. The technology is reshaping large parts of the economy. Still, not every company spending heavily on AI, or benefiting from that spending, will create lasting value.

MORE FOR YOU

So far, though, this cycle still looks healthier than the dot-com boom did at its peak.

In the late 1990s, company profits peaked before the market did, and margins weakened even as stock prices kept rising. Today, margins are much more stable, and all the S&P 500’s return over the last 12 months has come from earnings growth rather than multiple expansion.

Balance sheets look different, too. Then, companies borrowed heavily to fund record levels of investment, and leverage rose sharply. Today, capital spending is still high, especially among large technology companies, but much of it is being funded through free cash flow.

Granted, that spending is not risk-free. Recent equity and debt issuance by some large AI-related companies is worth watching, but for now, those moves remain small relative to the size of their balance sheets.

Incidentally, the same is true of the concerns about IPOs. At first glance, the expectation for record dollar volume of IPOs this year sounds alarming, especially when investors are already worried about too much supply hitting the market.

But the numbers look less extreme when measured against the size of today’s market. This year’s total new equity issuance is expected to represent about 1% of the Russell 3000’s market value, roughly in line with the 2015-to-2019 average. Moreover, IPO activity is on track for roughly 100 deals in 2026, close to the 25-year average, compared with nearly 400 in 1999.

In other words, the headline dollar amount may be high, but the market is also much larger. Gross buybacks of roughly $1 trillion should also outweigh supply, with additional demand from mergers and acquisitions, international investors and households.

Credit markets are calmer as well. From 1998 to 2000, credit spreads widened, giving investors an early warning before the market fell. We have not seen that kind of stress this time.

Even so, how companies finance their spending still matters. Debt issuance can make a company less flexible, while issuing more stock can dilute current shareholders. Of course, heavy spending can also hurt future profits if the returns do not come fast enough.

That may be what the recent market shift is starting to show. Investors are not giving up on AI, but they are becoming less willing to treat every dollar spent on AI as equally valuable. That is healthier than the alternative, even if it creates short-term pain in some popular stocks.

The AI boom does not have to be a bubble to get tougher for investors. Stock prices can drop, market leaders can change and money can move elsewhere long before the bigger trend ends.

For now, the AI trade is still backed by stronger profits, much better balance sheets and calmer credit markets than investors saw during the dot-com era. But companies now have more to prove.