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
XRP Price Prediction for July 2026: Can Buyers Finally Break the Downtrend?XRP (XRP) price trades near $1.05, caught between a year-long downtrend and a sudden burst of buying.July has historically rewarded XRP holders. This year the month arrives with on-chain accumulation
Author  Beincrypto
Jun 30, Tue
XRP (XRP) price trades near $1.05, caught between a year-long downtrend and a sudden burst of buying.July has historically rewarded XRP holders. This year the month arrives with on-chain accumulation
placeholder
Brent Crude Oil Erases Entire War Premium, Falls 40% to Pre-War LevelsBrent crude oil has erased its entire war premium, sliding roughly 40% from its March peak near $120 to trade around $72.25 on Wednesday. The move returns oil to its pre-war support base.The retreat f
Author  Beincrypto
Jul 02, Thu
Brent crude oil has erased its entire war premium, sliding roughly 40% from its March peak near $120 to trade around $72.25 on Wednesday. The move returns oil to its pre-war support base.The retreat f
placeholder
XAUUSD Gold Analysis: Gold Holds Above $4,350 Ahead of US Inflation Data Is $4,500 Next? Gold holds above $4,350 following weak US jobs data. As inflation reports approach and UBS eyes $5,000, can XAUUSD break resistance at $4,435 to rally toward $4,500?
Author  Naoufal Seddik
Aug 12, Wed
Gold holds above $4,350 following weak US jobs data. As inflation reports approach and UBS eyes $5,000, can XAUUSD break resistance at $4,435 to rally toward $4,500?
placeholder
Gold Price Analysis Today: Gold Gains 0.94% as Markets Expect Fed to Hold Rates, Can $4,449 Resistance Break? Gold gained 0.94% on August 17, closing near $4,417.30 as softer US data strengthened expectations for unchanged Fed rates in September. Gold remains bullish, with $4,449.730 resistance and $4,310.650 support in focus.
Author  Naoufal Seddik
Aug 18, Tue
Gold gained 0.94% on August 17, closing near $4,417.30 as softer US data strengthened expectations for unchanged Fed rates in September. Gold remains bullish, with $4,449.730 resistance and $4,310.650 support in focus.
placeholder
Gold Price Analysis Today: Gold Rebounds After 1.91% Drop as Yields Ease. Is $4,449 Next? Gold fell about 1.91% on August 18 before producing a strong bullish reaction from the 1-hour demand zone in early August 19 trading. RSI is recovering from oversold conditions, but Supertrend remains bearish as traders await the Fed minutes.
Author  Naoufal Seddik
Aug 19, Wed
Gold fell about 1.91% on August 18 before producing a strong bullish reaction from the 1-hour demand zone in early August 19 trading. RSI is recovering from oversold conditions, but Supertrend remains bearish as traders await the Fed minutes.
goTop
quote