Microsoft stock keeps beating the stock market. Time to buy?

The tech titan's core growth engines are firing on all cylinders.

| More on:
A male investor sits at his desk looking at his laptop screen holding his hand to his chin pondering whether to buy Macquarie shares

Image source: Getty Images

You’re reading a free article with opinions that may differ from The Motley Fool’s Premium Investing Services. Become a Motley Fool member today to get instant access to our top analyst recommendations, in-depth research, investing resources, and more. Learn More

This article was originally published on Fool.com. All figures quoted in US dollars unless otherwise stated.

Key Points

  • Microsoft crushed the S&P 500 over the past decade.
  • Its growth was driven by its “mobile first, cloud first” mantra.
  • Its stock isn’t cheap, but it still has a lot of upside potential.

When Satya Nadella succeeded Steve Ballmer as Microsoft's (NASDAQ: MSFT) CEO on Feb. 4, 2014, many investors dismissed the tech giant as a slow-growth stalwart with limited upside potential. But if you had invested $10,000 in Microsoft on Nadella's first day on the job, your investment would be worth $140,000 today and paying out nearly $1,000 in annual dividends.

That same investment in an S&P 500 index fund would only be worth about $38,000 today. Let's see why Microsoft crushed the market -- and if it's still a good stock to buy. 

How did Microsoft become a growth stock again?

Under Ballmer, Microsoft struggled to keep pace with Amazon (NASDAQ: AMZN), Alphabet's Google (NASDAQ: GOOG) (NASDAQ: GOOGL), and Apple (NASDAQ: AAPL) in the mobile and cloud markets. Its Windows and Office products still relied on periodic desktop upgrades, and its Windows Phones couldn't keep up with iPhones and Androids.

But after Nadella took over, Microsoft adopted an ambitious "mobile first, cloud first" strategy. It transformed its Office desktop software into cloud-based services, expanded its Azure cloud infrastructure platform, and integrated those upgrades into Windows. It also scrapped its Windows Phone program, launched iOS and Android versions of its top productivity apps, rolled out more Surface devices, and expanded its Xbox business with new products and bold acquisitions.

Microsoft launched more AI services to process all the data that flowed through that sprawling ecosystem. It also started to accumulate a big stake in OpenAI -- the creator of ChatGPT and other generative AI applications -- in 2019. It then integrated OpenAI's tools into its Bing search engine, Azure's cloud platform, and its Copilot AI services.

Microsoft's aggressive investments in the mobile, cloud, and AI markets initially squeezed its margins. But from fiscal 2015 to fiscal 2025 (which ended this June), its revenue grew at a compound annual growth rate (CAGR) of 12%, its gross margin expanded from 64.7% to 68.8%, and its earnings per share (EPS) increased at a CAGR of 5%. It maintained that momentum even as the pandemic, inflation, rising interest rates, and geopolitical conflicts rattled the global economy.

Most of Microsoft's recent growth was driven by its cloud-based services. Azure is now the world's second-largest cloud infrastructure platform after Amazon Web Services (AWS), and its Office suite -- which was rebranded as Microsoft 365 in 2020 -- holds a near-duopoly in the productivity software market with Google Workspace.

Why will Microsoft keep growing?

From fiscal 2025 to fiscal 2028, analysts expect Microsoft's revenue and EPS to increase at CAGRs of 15% and 16%, respectively. That robust growth should be driven by the secular expansion of the cloud and AI markets. More companies should migrate their data to its public cloud, hybrid cloud, and edge deployments, while the expansion of its data centers should support the development of even more powerful AI applications across its ecosystem.

Microsoft still faces intense competition from Amazon and Google in the cloud and AI markets, but it will likely draw in big companies that compete against those two tech giants in the e-commerce, streaming media, and digital advertising markets. Its Xbox gaming business, which absorbed Activision Blizzard and many other top game publishers, could also generate more recurring revenues with its Game Pass and Cloud Gaming services. The company also still held $94.6 billion in cash, cash equivalents, and short-term investments at the end of fiscal 2025. That gives it plenty of room to expand its business via more acquisitions or buy back more shares to boost its EPS.

Is it the right time to buy Microsoft's stock?

Microsoft's stock doesn't look cheap at 33 times this year's earnings, but the robust growth of its cloud and AI businesses might justify that higher valuation. Even if it trades at a more modest 30 times forward earnings and it merely matches analysts' expectations through fiscal 2028, its stock could still rise about 26% to $645 over the next two years.

That return might not dazzle growth-oriented investors, but it would likely keep Microsoft's stock ahead of the S&P 500, which has generated an average annual return of 10% ever since its inception. Therefore, I think it's still a great stock for long-term investors to buy, hold, and forget. 

This article was originally published on Fool.com. All figures quoted in US dollars unless otherwise stated.

Leo Sun has positions in Amazon and Apple. The Motley Fool Australia's parent company Motley Fool Holdings Inc. has positions in and has recommended Alphabet, Amazon, Apple, and Microsoft. The Motley Fool Australia's parent company Motley Fool Holdings Inc. has recommended the following options: long January 2026 $395 calls on Microsoft and short January 2026 $405 calls on Microsoft. The Motley Fool Australia has recommended Alphabet, Amazon, Apple, and Microsoft. The Motley Fool has a disclosure policy. This article contains general investment advice only (under AFSL 400691). Authorised by Scott Phillips.

More on International Stock News

A man has computer-generated images rushing through his head, indicating an AI (artificial intelligence) concept of a communication network.
International Stock News

1 Magnificent 7 stock to buy in 2026 (and 1 to avoid)

Not all Mag 7 stocks are equal.

Read more »

Woman and man calculating a dividend yield.
International Stock News

Will Nvidia stock crash in 2026?

The answer depends on what you believe about the artificial intelligence spending cycle.

Read more »

Man looks up at apple on his head.
International Stock News

If you'd invested $1,000 in Apple 10 years ago, here's how much you'd have today

Apple's market cap ballooned over the past decade, as dominant companies have become even larger.

Read more »

iPhone with the logo and the word Google spelt multiple times in the background.
International Stock News

The best artificial intelligence (AI) stock to buy in 2026 (Hint: It's not Nvidia)

As demand for artificial intelligence (AI) remains strong, investors are wondering who the biggest winners will be going into next…

Read more »

Woman using Facebook on her smartphone.
International Stock News

Berkshire Hathaway is a Scrooge stock. Will it have a change of heart and start paying dividends in 2026?

It's time for Berkshire to stop hoarding cash.

Read more »

AI written in blue on a digital chip.
International Stock News

1 unstoppable artificial intelligence (AI) stock you'll want to own next year

This AI giant is exiting 2025 with great momentum across all of its businesses.

Read more »

Legendary share market investing expert and owner of Berkshire Hathaway, Warren Buffett.
International Stock News

As Warren Buffett steps down from the CEO role at Berkshire Hathaway, it's the end of an era. 3 powerful pieces of his advice to remember.

Buffett may be on the way out, but his advice is tried and true.

Read more »

Hand with AI in capital letters and AI-related digital icons.
International Stock News

Which AI chip stock is the better buy for 2026: Nvidia or Alphabet?

Some believe Alphabet's success with its TPU chips could make it a challenger to Nvidia's data center dominance.

Read more »