Nvidia vs. Microsoft Stock: Which Will Be the First $4 Trillion Company?
Key Points
-
Nvidia and Microsoft are knocking on the door of $4 trillion market caps.
-
Nvidia deserves a lot of credit for being the backbone behind AI development.
-
AI has added to Microsoft’s investment thesis rather than redefining it.
On Dec. 26, 2024, Apple crossed $3.9 trillion in market capitalization, putting it just 2% away from becoming the world’s first $4 trillion company. But it didn’t get there. Apple has recovered in recent weeks but remains down big year to date, whereas Nvidia (NASDAQ: NVDA) and Microsoft (NASDAQ: MSFT) just made new all-time highs.
Here’s why Nvidia will likely become the first company to surpass $4 trillion in market value, what Nvidia and Microsoft must do to continue rising in price, and whether either growth stock is a buy now.
Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now. Learn More »
Image source: Getty Images.
A new frontrunner
In less than three years, Nvidia has gone from billions to trillions in market cap. And now, it is the closest company to $4 trillion — a little over 3% away as of market close on July 3.
NVDA Market Cap data by YCharts.
Nvidia will likely reach $4 trillion before Microsoft simply because it is closer to the threshold, and its stock is more volatile. Nvidia is now up over 18% year to date (YTD), but it was down around 30% YTD in early April during the worst of the tariff-induced sell-off. So it’s not unreasonable that the stock could move a few percentage points higher to pole-vault its market cap above $4 trillion.
The better question isn’t whether Nvidia or Microsoft will hit $4 trillion in market cap but rather what each company must do to justify that valuation.
An earnings-driven rally
The two biggest drivers of stock-price appreciation are earnings growth and investor sentiment. If earnings are increasing, investors will likely pay a higher price for the company’s shares. But if investors expect the pace of earnings growth to accelerate, then they may be willing to give a stock a premium valuation.
Nvidia and Microsoft have been such strong performers in recent years because they are growing earnings and investors are willing to pay a premium price for these companies relative to their earnings. Nvidia went from making under $10 billion in annual net income to a staggering $76.8 billion in just a few years. Microsoft has doubled its net income over the past five years, and its stock price has more than doubled as well.
For Nvidia and Microsoft to continue being good investments going forward, both companies must demonstrate that their earnings growth is sustainable and not temporary.
Nvidia’s valuation is still reasonable
Nvidia has greatly benefited from the rapid rise of big tech spending on artificial intelligence (AI). Nvidia has a dominant market share in providing high-powered graphics processing units (GPUs) for data centers and associated AI solutions for enterprises.
Due to limited supply and high demand, Nvidia can charge top dollar for its AI offerings, which allows it to convert over half of its sales into pure profit. And because Nvidia’s customers are some of the most financially secure, big-budget companies in the world (like Microsoft), then Nvidia knows its customers can afford to spend a ton on AI.
However, that wouldn’t be the case if challenges arise for key Nvidia customers if there is an industrywide slowdown or if competition comes along and erodes Nvidia’s margins. Buying Nvidia now is a bet that the company can continue growing its earnings even if its margins gradually decline over time.
The good news is that Nvidia doesn’t have to double its earnings every year to be a great buy. Even if it grows earnings at, let’s say, 25% per year, it could still reduce its valuation over time and be a market-beating stock. Here’s a look at how Nvidia’s price-to-earnings (P/E) ratio would go from over 50 to under 35 in five years if it grew earnings at 25% per year, and the stock price gained an average of 15% per year.
Metric |
Current |
Year 1 |
Year 2 |
Year 3 |
Year 4 |
Year 5 |
---|---|---|---|---|---|---|
Stock Price (15% Annual Growth) |
$159.20 |
$183.08 |
$210.54 |
$242.12 |
$278.44 |
$320.21 |
Earnings Per Share (25% Annual Growth) |
$3.10 |
$3.88 |
$4.84 |
$6.05 |
$7.57 |
$9.46 |
P/E Ratio |
51.4 |
47.2 |
43.5 |
40 |
36.2 |
33.8 |
Under these assumptions, Nvidia’s stock price roughly doubles in five years, but its earnings triple, so the P/E ratio falls considerably.
The key takeaway is that Nvidia doesn’t have to sustain its parabolic growth to be a good investment. However, the stock could sell off dramatically if investors believe an unforeseen risk will interrupt its growth trajectory. We got a taste of that in April when Nvidia estimated it would incur multibillion-dollar charges due to tariffs, and the stock price nose-dived in a short period.
In sum, investors should only consider Nvidia if they are confident in sustained AI spending and the company’s ability to pivot as the market matures.
Far from a one-trick pony
Microsoft may be a better choice for investors seeking a more balanced tech stock to purchase. Microsoft has a lower P/E than Nvidia, and for good reason, because it isn’t growing as quickly. However, Microsoft also doesn’t need a lot to go right for it to continue growing steadily over time.
The vast majority of Nvidia’s earnings are directly tied to AI. Microsoft has a diverse earnings profile, encompassing cloud computing, software, hardware, platforms such as GitHub, LinkedIn, and Xbox, as well as other areas. AI is accelerating Microsoft’s earnings growth and expanding its earnings, but the company can still do extremely well even if AI investment slows and the industry matures.
It’s also worth mentioning that Microsoft routinely buys back its stock and has raised its dividend for 15 consecutive years. So it has a more balanced capital-return program than Nvidia, which rewards shareholders by growing the core business rather than directly returning capital.
Two solid buys for long-term investors
Nvidia and Microsoft are exceptional companies. It wouldn’t be surprising to see them both surpass $4 trillion market caps and continue building from there. However, investors should be mindful that both companies are seeing their stock prices rise faster than their earnings are growing, which puts pressure on them to bridge the gap between expectations and reality.
Should you invest $1,000 in Nvidia right now?
Before you buy stock in Nvidia, 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 Nvidia 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 $699,558!* Or when Nvidia made this list on April 15, 2005… if you invested $1,000 at the time of our recommendation, you’d have $976,677!*
Now, it’s worth noting Stock Advisor’s total average return is 1,060% — a market-crushing outperformance compared to 180% for the S&P 500. Don’t miss out on the latest top 10 list, available when you join Stock Advisor.
*Stock Advisor returns as of June 30, 2025
Suzanne Frey, an executive at Alphabet, is a member of The Motley Fool’s board of directors. John Mackey, former CEO of Whole Foods Market, an Amazon subsidiary, is a member of The Motley Fool’s board of directors. Daniel Foelber has positions in Nvidia. The Motley Fool has positions in and recommends Alphabet, Amazon, Apple, Microsoft, and Nvidia. The Motley Fool recommends the following options: long January 2026 $395 calls on Microsoft and short January 2026 $405 calls on Microsoft. The Motley Fool has a disclosure policy.