Billionaire Bill Ackman Just Sold Amazon and Bought Microsoft Stock. Which Cloud Computing Behemoth Is the Better Buy Today?

Key Points

Checking in on what the smart money is doing with stocks is a great way to source new ideas or challenge ideas that you have. One interesting move that billionaire Bill Ackman made at Pershing Square Capital Management was selling Amazon (NASDAQ: AMZN) and buying Microsoft (NASDAQ: MSFT) in the second quarter.

Pershing decreased its Amazon stake by over 25% in Q2, while increasing its Microsoft stake by nearly 10%.

Missed Nvidia in 2009? This Rare Signal Is Flashing Again. In 2009, a “Double Down” signal flashed for a little-known chipmaker called Nvidia. For the first time in years, that same “Total Conviction” signal is flashing for a company 1/100th the size of Nvidia. Continue »

That’s a definitive rebalancing of his portfolio, but is that still the right move for investors? Let’s take a look.

Bill Ackman speaks at an event.

Pershing Square Capital Management CEO Bill Ackman. Image source: Getty Images.

The landscape has shifted since Q2 wrapped up

Investors only have access to Ackman’s moves thanks to a Form 13F filing, which requires funds with more than $100 million in assets to file their end-of-quarter holdings with the SEC. That information is then given to the public 45 days later, so it could include some outdated information that’s no longer accurate. That’s why it’s prudent to analyze what has happened over the past month and a half before blindly following a hedge fund’s moves.

Both Amazon’s and Microsoft’s stocks have done very well since Q2 ended, both boosted by strong earnings reports that sent shares skyrocketing the day after earnings. Since Q2 ended, Microsoft is up an impressive 30%, while Amazon is up around 10%. Those are big moves in just a few weeks, and completely change how investors view these two as investments.

So, just because Ackman bought Microsoft and sold Amazon during Q2 doesn’t mean he isn’t reversing that trade right now. Is Microsoft still the best buy between the two?

Q2 results favor Amazon

During Q2, Microsoft and Amazon each reported blowout quarters, but I think one company’s results stand out above the other’s.

Amazon’s overall growth rate during Q2 was 20%, and its operating income increased by 43%. This was heavily influenced by Amazon Web Services (AWS) delivering better-than-expected results, but that trend will likely continue as Amazon is pouring $220 billion into data center capital expenditures in 2026.

Microsoft operates on a different fiscal calendar, and its results for the fourth quarter of fiscal year 2026 (ended June 30) were also good, but not quite as strong. Microsoft’s revenue rose 18% year over year, with earnings income rising the same 18%. Those results clearly favor Amazon, and it’s likely that this differential will persist for some time.

Microsoft didn’t adjust its capital expenditure guidance, but Amazon raised its outlook. Amazon is also spending far more than Microsoft on data centers, and if it can find clients for this increased demand, it will lead to further AWS revenue growth.

From a valuation perspective, both companies’ price-to-earnings (P/E) ratios were influenced by one-time gains on investments. So, I’ll value each company based on its operating income instead.

AMZN Operating PE Ratio Chart

AMZN Operating PE Ratio data by YCharts

Amazon holds a decent premium to Microsoft, making it seem like the far better deal. However, this is only looking at trailing earnings and fails to factor in the growth rate.

Amazon’s operating income is growing at a far faster rate because Amazon’s cloud computing segment, Amazon Web Services (AWS), accounts for 60% of the company’s operating income. In Q2, AWS’ operating income rose at a 64% year-over-year pace. When a division’s operating income is growing that fast and makes up the majority of the company’s total, it leads to outsize growth that can send stocks soaring.

Because of this trend, I think Amazon’s stock is actually cheaper than Microsoft’s, as its growth will vault it ahead over the next few years. With that in mind, I think Amazon is the far better buy over Microsoft right now, as the data center build-out trend isn’t going to wrap up anytime in the near future.

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 $439,308!* 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,286,826!*

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

Keithen Drury has positions in Amazon and Microsoft. The Motley Fool has positions in and recommends Amazon and Microsoft. The Motley Fool has a disclosure policy.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *