Microsoft vs. Nvidia: Which Is the Better AI Stock to Own for the Next 3 Years?

Source Motley_fool

Key Points

  • Nvidia could clear $1 trillion in orders for its Grace Blackwell and Vera Rubin chipsets.

  • Microsoft is pivoting to better compete in AI, even as its relationship with OpenAI has been quite lucrative.

  • Ultimately, Microsoft's higher floor and compelling valuation are difficult to pass up.

  • 10 stocks we like better than Microsoft ›

Microsoft (NASDAQ: MSFT) and Nvidia (NASDAQ: NVDA) are two heavyweights in the technology world and key players in artificial intelligence (AI). Microsoft seems to have its hand in every tech market segment, especially anything involving enterprise customers. Meanwhile, Nvidia has become the de facto leader in GPU chips used in AI data centers.

Both stocks have made investors very wealthy over the years. But which of these top AI stocks is the better buy for the next three years? This article will explain why I like Microsoft a tad more. Although, as you'll see below, it's hard to go wrong with either one.

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 »

Microsoft and Nvidia graphics.

Image source: The Motley Fool.

Vera Rubin likely means Nvidia has more growth ahead

Nvidia has enjoyed one of the most impressive growth spurts in history over these past few years as the AI build-out juiced demand for its GPUs. This supercycle continues to rage on. Vera Rubin, Nvidia's next-generation AI chip platform, is in full production and could begin shipping later this year. CEO Jensen Huang has laid out expectations for $1 trillion in orders for Vera Rubin and Grace Blackwell chips through 2027.

Wall Street analysts estimate that Nvidia's business could double over the next couple of years, from trailing-12-month revenue of $253 billion to $392 billion this fiscal year, and $554 billion the following year. Nvidia's valuation is already well below its high at less than 19 times sales, and it might become much cheaper as these next 24 months play out.

Microsoft is pivoting to capitalize on its enterprise customer base

Microsoft originally tied its AI hopes to OpenAI. Although Microsoft has done well with its OpenAI investment and enjoyed significant cloud computing growth as a result of the partnership, it has still struggled to establish itself as a key AI player. Users, especially enterprises, have opted for Anthropic's Claude among other AI models. As a result, Microsoft shifted to a multi-model strategy and has reportedly considered adding open-source models to Copilot Cowork to lower token costs.

Investors should applaud Microsoft's willingness to adapt. The company has deeply entrenched relationships with the enterprise world, which gives Microsoft more margin for error in fine-tuning its AI strategy than most companies. Plus, Microsoft's Azure remains a formidable growth engine, with a staggering $627 billion in remaining commercial performance obligations.

Why Microsoft is the better buy

Nvidia's data center business has grown so much that the stock has become a concentrated investment in this ongoing supercycle. That means Nvidia has a sky-high ceiling with Vera Rubin shipping soon, but it's riskier in that the floor is much lower if companies stop pouring all this money into AI infrastructure. Meanwhile, Microsoft remains highly diversified across software, cloud computing, and AI. That lowers the company's ceiling, but it's also the safer stock.

Microsoft's impressive track record typically earns it a premium valuation. The stock has traded at an average of almost 33 times its trailing-12-month earnings over the past decade, but trades at just 22 times its earnings today. Meanwhile, Wall Street analysts expect the company to grow earnings by 16% to 17% annually over the next three to five years.

While some may opt for Nvidia's immense growth potential, Microsoft rarely offers a valuation compelling enough to buy into.

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 $400,101!* 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,212,683!*

Now, it’s worth noting Stock Advisor’s total average return is 911% — a market-crushing outperformance compared to 208% 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 2, 2026.

Justin Pope has positions in Microsoft. The Motley Fool has positions in and recommends Microsoft and Nvidia. The Motley Fool has a disclosure policy.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
Nike Stock Hits a 12-Year Low as an Earnings Loophole Masks Weak SalesNike (NKE) stock slid about 1% on Wednesday, briefly trading at $40, its lowest level in about 12 years. The fall came despite an earnings beat, because most of the profit came from a one-time tariff
Author  Beincrypto
16 hours ago
Nike (NKE) stock slid about 1% on Wednesday, briefly trading at $40, its lowest level in about 12 years. The fall came despite an earnings beat, because most of the profit came from a one-time tariff
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
16 hours ago
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
Ethereum Banks on Institutional Interest to Save ETH as Price Remains 70% Below PeakEthereum Institutional launched Wednesday, the ecosystem’s second nonprofit in nine days, backed by Tom Lee’s BitMine, SharpLink Gaming and co-founder Joe Lubin.The launches show the backers doubling
Author  Beincrypto
16 hours ago
Ethereum Institutional launched Wednesday, the ecosystem’s second nonprofit in nine days, backed by Tom Lee’s BitMine, SharpLink Gaming and co-founder Joe Lubin.The launches show the backers doubling
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
16 hours ago
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
What to Expect From Solana (SOL) in July 2026SOL trades near $77 after a 16% weekly bounce, yet it remains about 74% below its record high. On-chain activity is climbing toward yearly highs as the price attempts to bottom.The contrast sets up a
Author  Beincrypto
16 hours ago
SOL trades near $77 after a 16% weekly bounce, yet it remains about 74% below its record high. On-chain activity is climbing toward yearly highs as the price attempts to bottom.The contrast sets up a
goTop
quote