The trade that carried the stock market for two years is suddenly the one dragging it down.

A $2.3 trillion question

The Magnificent Seven — Apple, Microsoft, Nvidia, Alphabet, Amazon, Meta and Tesla — have collectively lost about $2.3 trillion in market value through June, CNBC reported, as a monthlong rout erased a chunk of the gains built up during years of AI euphoria. The selloff has been concentrated: the group has fallen far more than the broader market, and because these seven names carry such enormous weight in the major indexes, their slide has dragged the cap-weighted S&P 500 lower even as the average stock in the index has held up, Yahoo Finance reported. (Market figures move continuously and are snapshots as of late June.)

What's spooking investors

The trigger is not profits — these companies remain hugely profitable — but the staggering scale of what they plan to spend building AI infrastructure, and growing doubt about how quickly that spending will pay off. The biggest cloud-and-AI spenders are on track to pour roughly $725 billion into capital projects in 2026, a sharp jump from the record sums spent in 2025, according to Yahoo Finance's review of earnings disclosures. All that capital flowing into data centers and chips eats into the free cash flow that funds buybacks and dividends — the cushions shareholders had grown used to — even as headline earnings keep rising. "Jitters will continue as worries around the costs of this once-in-a-generation tech buildout" mount, Wedbush analyst Dan Ives said, calling the coming earnings season a "gut check" for tech investors.

The bull case hasn't gone away

Not everyone sees a bubble bursting. Some strategists call the pullback a healthy reset after an extraordinary run rather than a structural break. The companies doing the spending are, crucially, the same ones best positioned to capture AI revenue when demand materializes — and unlike past tech booms, the hyperscalers running up these bills already operate profitable, cash-generating cloud businesses in Amazon's AWS, Microsoft's Azure and Google Cloud. Goldman Sachs has projected cumulative AI-infrastructure spending could reach several trillion dollars by 2030, and analysts remain overwhelmingly positive on chipmaker Nvidia despite its June slide.

The real test ahead

What hangs over the market is a question of patience. Investors spent two years rewarding AI ambition almost regardless of cost; now they want returns on a timeline. Whether the megacaps can show enough progress in the next few quarters to justify the spending — or whether the anxiety deepens — will go a long way toward setting the market's direction into the second half of the year.