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

Source The 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
WTI Crude Oil Price Forecast: Trump Says US-Iran Talks Progressing Smoothly, Oil May Fall Below $60 As of the European session on July 2, WTI ( USOIL) crude oil prices fluctuated with a weak bias around $68, extending their prior downward trend. From a technical perspective, against the
Author  TradingKey
8 hours ago
As of the European session on July 2, WTI ( USOIL) crude oil prices fluctuated with a weak bias around $68, extending their prior downward trend. From a technical perspective, against the
placeholder
Japanese Yen recovers sharply from 40-year low as intervention bets trigger short-coveringThe USD/JPY pair comes under intense selling pressure and plummets to the 161.00 neighborhood heading into the European session on Thursday, snapping a three-day winning streak to the highest since 1986 set the previous day.
Author  FXStreet
10 hours ago
The USD/JPY pair comes under intense selling pressure and plummets to the 161.00 neighborhood heading into the European session on Thursday, snapping a three-day winning streak to the highest since 1986 set the previous day.
placeholder
Fed Chair Warsh Says Inflation Risks Are Receding, Sending Gold Rebounding by Nearly $100On Wednesday (July 1), Eastern Time, Federal Reserve Chairman Warsh stated at the ECB's annual forum in Sintra, Portugal, that while recent US inflation expectations and inflation risks h
Author  TradingKey
15 hours ago
On Wednesday (July 1), Eastern Time, Federal Reserve Chairman Warsh stated at the ECB's annual forum in Sintra, Portugal, that while recent US inflation expectations and inflation risks h
placeholder
WTI slips below $68.00 as supply concerns easeWest Texas Intermediate (WTI) oil price loses ground for the third successive day, trading around $67.80 per barrel during the Asian hours on Thursday. The global energy market experiences a sharp downturn, with crude oil benchmarks sliding significantly as supply anxieties ease.
Author  FXStreet
17 hours ago
West Texas Intermediate (WTI) oil price loses ground for the third successive day, trading around $67.80 per barrel during the Asian hours on Thursday. The global energy market experiences a sharp downturn, with crude oil benchmarks sliding significantly as supply anxieties ease.
placeholder
Bitcoin Price Trend Forecast: Continued ETF Outflows Limit Bitcoin Price Rebound Space, $58,000 Becomes Key Level for Bulls and Bears As of the European trading session on July 1, Bitcoin ( BTC) fluctuated around $58,700, hitting a new year-to-date low of $57,800 earlier in the day before recovering slightly, though it
Author  TradingKey
Yesterday 10: 23
As of the European trading session on July 1, Bitcoin ( BTC) fluctuated around $58,700, hitting a new year-to-date low of $57,800 earlier in the day before recovering slightly, though it
goTop
quote