Microsoft Stock Keeps Beating the Stock Market. Time to Buy?

Source The Motley Fool

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.

  • 10 stocks we like better than Microsoft ›

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.

Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now. Continue »

Three people studying a financial chart.

Image source: Getty Images.

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.

Should you invest $1,000 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 $652,872!* 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,092,280!*

Now, it’s worth noting Stock Advisor’s total average return is 1,062% — a market-crushing outperformance compared to 189% for the S&P 500. Don’t miss out on the latest top 10 list, available when you join Stock Advisor.

See the 10 stocks »

*Stock Advisor returns as of September 22, 2025

Leo Sun has positions in Amazon and Apple. The Motley Fool has positions in and recommends Alphabet, Amazon, Apple, and Microsoft. 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.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
Bitcoin ETF Inflows For 2025 Now Outpace 2024, Data ShowsUS Bitcoin spot exchange-traded funds (ETFs) have seen more inflows this year so far compared to the same point in 2024, according to data.
Author  Bitcoinist
Jul 16, Wed
US Bitcoin spot exchange-traded funds (ETFs) have seen more inflows this year so far compared to the same point in 2024, according to data.
placeholder
Gold Price Forecast: XAU/USD gains momentum to near $3,650, eyes on US CPI releaseThe Gold price (XAU/USD) gains momentum to near $3,645 during the early Asian session on Thursday.
Author  FXStreet
Sep 11, Thu
The Gold price (XAU/USD) gains momentum to near $3,645 during the early Asian session on Thursday.
placeholder
Silver Price Forecast: XAG/USD retreats from 14-year highs to below $45.00Silver price (XAG/USD) attracts some sellers to near $44.80 after reaching its highest in over 14 years during the Asian trading hours on Friday.
Author  FXStreet
Sep 26, Fri
Silver price (XAG/USD) attracts some sellers to near $44.80 after reaching its highest in over 14 years during the Asian trading hours on Friday.
placeholder
US core PCE inflation set to rise 2.9% YoY in August with Federal Reserve easing outlook in focusThe United States (US) Bureau of Economic Analysis (BEA) will publish the Personal Consumption Expenditures (PCE) Price Index data for August on Friday at 12:30 GMT. 
Author  FXStreet
Sep 26, Fri
The United States (US) Bureau of Economic Analysis (BEA) will publish the Personal Consumption Expenditures (PCE) Price Index data for August on Friday at 12:30 GMT. 
placeholder
ETH Whales Buy the Dip as Ethereum Breaks $4,000 SupportEthereum (ETH) whales are capitalizing on falling prices as the second-largest cryptocurrency continues to trend downward, breaking the critical $4,000 level.
Author  Beincrypto
Sep 26, Fri
Ethereum (ETH) whales are capitalizing on falling prices as the second-largest cryptocurrency continues to trend downward, breaking the critical $4,000 level.
goTop
quote