2 AI Stocks Poised for Outperformance Over the Next 5 Years

Source Motley_fool

Key Points

  • As AI cloud demand grows, Microsoft's recent dip provides investors a timely entry point.

  • Advanced Micro Devices saw its CPU market share gains accelerate in the first quarter.

  • 10 stocks we like better than Microsoft ›

The tech-centric Nasdaq-100 has outperformed the S&P 500 (SNPINDEX: ^GSPC) over the last one-, five-, and 10-year periods. The growing adoption of artificial intelligence (AI) is a long-term tailwind for this streak to continue. Morgan Stanley sees data center construction becoming a global force in economic expansion, with spending expected to reach nearly $3 trillion by 2028.

Two stocks that will benefit from this growth are Microsoft (NASDAQ: MSFT) and Advanced Micro Devices (NASDAQ: AMD). Here's why these stocks can outperform over the next five years.

Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now, when you join Stock Advisor. See the stocks »

Growth investing chart.

Image source: Getty Images.

1. Microsoft

Microsoft stock has fallen 30% from its recent highs, creating a timely buying opportunity. Demand for the software giant's cloud and Copilot services remains robust.

Its annual recurring revenue from AI surged 123% year over year to $37 billion, while Microsoft 365 commercial cloud revenue is also showing strong growth. The company's remaining performance obligations doubled over the year-ago quarter to $627 billion, with 25% of that backlog expected to be earned in the next 12 months.

To deliver on the rest of its growing backlog, Microsoft is on track to double its data center capacity over the next two years. Wall Street might be concerned about near-term earnings pressure from additional capital spending, but management said these assets are expected to generate returns over a longer time frame, in the next five to 15 years.

The leading hyperscalers are well positioned to deliver long-term returns for investors thanks to their massive data center infrastructure. This is a strategic advantage in an AI-driven economy that Wall Street is underestimating.

Microsoft has the resources it needs to invest in technology, generating a whopping $170 billion in cash flow from operations over the last year. This ultimately funds investment in expanding compute capacity and designing its custom Maia AI chips, among other initiatives.

There are risks, including near-term weakness in the consumer PC market due to high memory costs. The company is expected to spend roughly $190 billion on capital expenditures this year, which may weigh on its earnings and free cash flow.

Still, the stock trades at a reasonable forward price-to-earnings (P/E) ratio of 20, while analysts project earnings to grow at an annualized rate of 16% in the next several years. This is an attractive valuation relative to expected growth, which could set the stage for superior returns.

2. Advanced Micro Devices

Shares of Advanced Micro Devices have surged 157% year to date, but this could be the start of a longer bull run through the end of the decade. This chip company could see substantial growth driven by demand for AI inference.

Demand for inference has become more pronounced since the beginning of the year, with the launch of new agentic AI tools like OpenClaw and Anthropic's Claude Cowork. Inference requires more central processing units (CPUs) to handle certain compute tasks, opening a huge opportunity for AMD.

AMD offers a range of CPUs, from 8-core to more advanced 256-core designs, that can meet customer needs at relatively low cost. Its server CPU revenue grew more than 50% year over year in the first quarter.

AMD has been gaining share on Intel in the server CPU market for several years, and management reported that share gains accelerated in the quarter. This partly reflected a strong ramp for AMD's next-generation EPYC Turin CPUs.

What's more, AMD could see accelerating demand for its data center graphics processing units (GPUs). It acquired ZT Systems in 2025, which bolstered AMD's capabilities in designing complete rack systems for data centers, similar to Nvidia. Shipments for AMD's new Helios rack-scale architecture are expected to begin in the second half of 2026. Even before Helios ramps up, AMD's data center revenue is already strong, up 57% year over year in Q1.

Weaknesses in AMD's gaming and consumer PC business are near-term headwinds, but this will likely be overshadowed by growing demand from enterprise and cloud.

While AMD shares trade at a high 74x forward P/E, it could see robust earnings growth. Analysts expect earnings to grow about 59% annually over the coming years. That sets the stage for market-beating returns.

Should you buy stock in Microsoft right now?

Before you buy stock in Microsoft, consider this:

The Motley Fool Stock Advisor analyst team just identified what they believe are the 10 best stocks for investors to buy now… and Microsoft wasn’t one of them. The 10 stocks that made the cut could produce monster returns in the coming years.

Consider when Netflix made this list on December 17, 2004... if you invested $1,000 at the time of our recommendation, you’d have $397,351!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $1,304,257!*

Now, it’s worth noting Stock Advisor’s total average return is 934% — a market-crushing outperformance compared to 210% for the S&P 500. Don't miss the latest top 10 list, available with Stock Advisor, and join an investing community built by individual investors for individual investors.

See the 10 stocks »

*Stock Advisor returns as of July 17, 2026.

John Ballard has positions in Nvidia. The Motley Fool has positions in and recommends Advanced Micro Devices, Intel, Microsoft, and Nvidia. The Motley Fool has a disclosure policy.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
All hope seems lost for a Bitcoin recovery this year. Is it really over?Bitcoin is back in the danger zone, as prices fell to their lowest level since January on Thursday after selling pressure got worse across the crypto market. Bitcoin’s price is currently at $63,300, down by over 16% for the week. Over the past seven days, Bitcoin has lost about 13% and slipped into the $67,000...
Author  Cryptopolitan
Jun 04, Thu
Bitcoin is back in the danger zone, as prices fell to their lowest level since January on Thursday after selling pressure got worse across the crypto market. Bitcoin’s price is currently at $63,300, down by over 16% for the week. Over the past seven days, Bitcoin has lost about 13% and slipped into the $67,000...
placeholder
Why are prediction market traders suddenly bearish on Nvidia's stock?Nvidia (NASDAQ: NVDA) stock is still green for 2026, but the trade no longer looks clean from the company that outperformed every other company and country in 2024 and 2025. NND is up about 12% this year, yet they have slipped roughly 3% over the past month. The gap with the rest of the chip...
Author  Cryptopolitan
Jun 23, Tue
Nvidia (NASDAQ: NVDA) stock is still green for 2026, but the trade no longer looks clean from the company that outperformed every other company and country in 2024 and 2025. NND is up about 12% this year, yet they have slipped roughly 3% over the past month. The gap with the rest of the chip...
placeholder
Elon Musk Sends SpaceX Shares Lower With Two-Word AI Device DenialElon Musk dismissed a Wall Street Journal report that SpaceX built a prototype AI device, calling it “utterly false”. SpaceX stock (SPCX) fell about 7% on Wednesday as investors weighed the conflictin
Author  Beincrypto
Jul 02, Thu
Elon Musk dismissed a Wall Street Journal report that SpaceX built a prototype AI device, calling it “utterly false”. SpaceX stock (SPCX) fell about 7% on Wednesday as investors weighed the conflictin
placeholder
Gold Price Outlook For July 2026Gold trades near $4,140 on Tuesday, down 26% from January’s record high of $5,598 per ounce. This gold price prediction for July 2026 examines why the metal keeps falling and where it could bottom.Fiv
Author  Beincrypto
Jul 08, Wed
Gold trades near $4,140 on Tuesday, down 26% from January’s record high of $5,598 per ounce. This gold price prediction for July 2026 examines why the metal keeps falling and where it could bottom.Fiv
placeholder
SpaceX Stock Crash Wipes $500 Billion From Musk’s Fortune: Can It Rebound?Elon Musk’s net worth has fallen more than $500 billion from its June peak of $1.45 trillion as SpaceX stock slid nearly 40% from record highs reached days after the company’s Nasdaq debut.SPCX traded
Author  Beincrypto
Jul 15, Wed
Elon Musk’s net worth has fallen more than $500 billion from its June peak of $1.45 trillion as SpaceX stock slid nearly 40% from record highs reached days after the company’s Nasdaq debut.SPCX traded
goTop
quote