Artificial Intelligence (AI) advances are expected to reshape vast swaths of the global economy in the coming years. Shrewd investors who position themselves to profit from this powerful megatrend stand to make fortunes.

Number One AI Stock to Buy: Advanced Micro Devices

Investors have crowned Nvidia (NASDAQ: NVDA) the early winner of the AI arms race. The semiconductor behemoth designs the cutting-edge chips that power many leading AI applications. But no business likes to be beholden to just one supplier for its most crucial computing hardware. Chip buyers want more competition among AI chipmakers, and Advanced Micro Devices (NASDAQ: AMD) intends to provide it.

The stakes are massive. AMD CEO Lisa Su sees sales of chips that accelerate AI workloads growing by over 60% annually to a whopping $500 billion by 2028. AMD is just beginning to penetrate this lucrative market. The chipmaker expects sales of its graphics processing units (GPUs) used in AI data centers to top $5 billion in 2024. Its AI chip sales are already booming—AMD’s data center revenue soared by 122% year over year to $3.5 billion in the third quarter—and the company anticipates much more growth ahead.

Tech giants are eager to deploy AMD’s chips in their rapidly expanding cloud computing operations. Microsoft uses AMD’s MI300X accelerators to power its popular “copilot” AI assistants. Meanwhile, Meta Platforms uses MI300X chips to deliver predictions from its high-performing Llama 405B AI model. AMD’s forthcoming MI325X accelerators, which promise substantial performance upgrades, should also be well received by chip buyers.

AMD has another powerful growth opportunity in the burgeoning AI-enabled personal computers (PC) market. PC makers like HP and Lenovo are set to roll out more laptops featuring AMD’s new Ryzen AI Pro 300 Series processors. The chipmaker believes these high-performing AI chips will help it win market share, especially as more businesses choose to upgrade their devices after Microsoft discontinues technical support for Windows 10 PCs in 2025. AMD is already seeing a boost in its client segment, which houses its PC-based business. Sales in the division jumped 29% to $1.9 billion in the third quarter.

Number Two AI Stock to Buy: Palantir Technologies

While AMD wants to provide companies with the hardware they need to realize their AI ambitions, Palantir Technologies (NASDAQ: PLTR) supplies the software. The analytics leader enables customers to discern valuable insights from their data faster than their competitors.

Palantir’s top-rated machine learning technology can find patterns across disparate data sources. Its software strengthens its clients’ decision-making processes, whether on the battlefield or in the boardroom. Furthermore, Palantir boosts the productivity of frontline personnel by bringing advanced AI and real-time data into its customers’ daily workflows.

The U.S. military is partnering with Palantir to bolster its intelligence-gathering and AI capabilities. The value of these increasingly vital services can be seen in Palantir’s U.S. government revenue, which surged by 40% year over year to $320 million in the third quarter.

Companies are also beginning to recognize the value of Palantir’s AI offerings. Mining giant Rio Tinto is working with the analytics leader to improve the safety and throughput of its railway network. Meanwhile, energy producers like APA and BP use Palantir’s new Artificial Intelligence Platform (AIP) to make their oil and gas production operations more efficient and reliable.

Palantir is highly profitable and cash-rich. Its Q3 net income more than doubled to $144 million, bringing its cash reserves and investments to $4.6 billion as of Sept. 30. The company also recently struck partnerships with major cloud computing providers like Microsoft and Oracle, which are further accelerating Palantir’s growth. The rapidly expanding company’s U.S. commercial revenue soared by 54% to $179 million in the third quarter.