Apple has become the second company in history to pass the $5tn valuation mark, as the iPhone maker benefited from a broader technology sell-off that saw investors flee artificial intelligence and semiconductor stocks. The company's shares hit a session high of $342.89 on Tuesday, giving it a market capitalisation of $5.04tn (£3.78tn), before easing back to around the $5tn threshold.

The milestone comes amid a dramatic rotation in equity markets, with traders moving away from highly priced AI-focused stocks and towards companies with strong product demand and more conservative spending strategies. Apple, which has largely sat out the multibillion-dollar AI infrastructure race embraced by rivals such as Microsoft, Google and Meta, has been a primary beneficiary of this shift.

Analysts attribute Apple's rally to robust sales of its latest iPhone lineup, growth in its high-margin services business, and investor confidence in the company's disciplined capital allocation. Unlike many of its peers, Apple has not disclosed massive capital expenditure plans for AI data centres or custom chip development, instead focusing on integrating AI features into existing devices in a measured way.

The wider tech sector has been under pressure in recent weeks as concerns mount about the return on investment from AI spending. Major cloud providers and chipmakers have seen their shares decline as investors question whether the enormous costs of building AI infrastructure will translate into proportional revenue gains. Nvidia, the poster child of the AI boom, has lost significant market value as part of this correction.

Apple's ability to reach the $5tn valuation despite not participating in the AI spending frenzy underscores the strength of its core business. The company generates the majority of its revenue from the iPhone, which continues to attract loyal customers, particularly with the latest hardware upgrades. Its services segment — including the App Store, Apple Music, iCloud, and Apple Pay — now contributes more than $100bn annually in revenue, providing a stable and recurring income stream.

The Cupertino, California-based company first surpassed the $1tn mark in 2018, crossing $2tn in 2020, $3tn in 2022, and $4tn in early 2025. The rapid climb to $5tn — achieved in under 18 months — reflects both the outperformance of Apple shares and the overall growth of the technology sector over the past decade.

Investors have also been encouraged by Apple's ongoing share buyback programme, which reduces the number of outstanding shares and boosts earnings per share. The company repurchased more than $100bn of its own stock in the past year, signalling management's confidence in the business's long-term prospects.

The tech sell-off that has lifted Apple has been particularly harsh on pure-play AI and chip companies. Advanced Micro Devices and Intel have both seen double-digit percentage declines this month, while cloud software firms such as Salesforce and Adobe have also fallen. By contrast, Apple's relatively defensive profile — driven by consumer hardware and services rather than speculative AI bets — has made it a safe haven for nervous investors.

Apple's achievement also highlights the growing divergence within the technology sector. While the AI hype cycle has boosted a handful of companies to extraordinary heights, the market is now reassessing valuations and rewarding firms with proven business models and predictable cash flows.

Whether Apple can sustain its $5tn valuation depends on continued demand for its products and the success of its cautious AI strategy. The company is expected to reveal more details about its AI plans at its annual developer conference next year, but for now, its reluctance to join the spending spree appears to be paying off handsomely.