There was a time when International Business Machines (IBM) had the same profile that Microsoft (MSFT) enjoys today: one of the world's biggest tech companies and most recognizable brands.
Today, the narrative couldn’t be more different.
For investors, though, the question is much more nuanced. IBM may no longer have Microsoft’s growth profile, but that doesn’t automatically make MSFT the better stock - at least not at the moment.
So, if you had to choose between the two, which is the better buy right now? And why?
Let’s dive into the story.
How IBM and Microsoft's Fortunes Diverged: A Brief History
But first, a quick history lesson.

IBM was once one of the most dominant and valuable companies in the world. And I’m not talking about being on top for a few short years here. No, IBM was the market leader in computers for decades and was, at one time, worth more than many of its closest competitors combined. When you needed an enterprise or office computer back then, IBM was the first and, in many cases, the only choice.
In 1980, IBM was preparing to enter the new and exciting market of personal computers. But to do so, it needed an operating system - something that could tell the computer’s hardware what to do and provide the basic software environment for programs to run so that people could use them every day.
After a deal with one firm fell through, the tech giant finally bought an operating system named MS-DOS from a little-known startup called Microsoft.

But it was a licensing deal, not a straight-up purchase. That meant that Microsoft could sell the same operating system license to other companies.
And this would turn out to be one of the most consequential deals in both companies’ histories.
Other firms and government agencies took notice of the MS-DOS deal. And Microsoft did what any business would do today and sold licenses to IBM and others. That led to an explosion of personal computer clones that offered cheaper alternatives to IBM computers with the same operating system and functionality.
In short, IBM helped create the market that would eventually undermine its dominance, while that very same deal became the springboard for Microsoft’s success.
Today, Microsoft stands near the top of the food chain. It’s a diversified technology giant spanning cloud computing, business software, operating systems, gaming, cybersecurity, and, of course, artificial intelligence.
Meanwhile, IBM today is a software and enterprise technology company focused on hybrid cloud, AI, infrastructure, and consulting. It’s still generating billions of dollars in revenue, but its growth is nowhere near Microsoft’s, and its role in the technology industry is far less dominant than it once was.
IBM vs. MSFT Stock: Comparing Performance and Valuation
But again, the business is just one part of the equation. To know which one is the best bet today, let’s look at each company’s stock performance and fundamentals.

In terms of market cap, IBM is at $222 billion, while Microsoft’s sitting at $3.6 trillion - 16x bigger than the old tech juggernaut. Based on the latest full-year revenue and net income, Microsoft pulls ahead by 5x and 13x.
That’s a pretty stark difference in scale, though I’m sure it came to no one’s surprise.
Year-to-date, Microsoft’s stock price has been flat, while IBM is down 22% after a couple of disappointing quarters and a guidance revision that set its year-end revenue results to “neutral.” Translation: a flat top-line.
That’s not to say that Microsoft’s having it easy. While its recent earnings have done wonders for its stock price, MSFT’s still trading below its 2025 levels. This can be attributed to the enormous price tag for its planned AI buildout, which many investors see as a massive bet without enough justification.
But the picture somewhat changes when it comes to valuation. Microsoft is trading at 24x P/E, 11x P/S, and 8x P/B, while IBM is at 19x, 3x, and 6x, respectively. That’s a massive difference and clearly shows that IBM is the cheaper stock today.
But “cheap” doesn’t always mean “buy.”
In fact, one of the clearest reasons why Microsoft is trading at higher multiples is right there on the chart: the 40% profit margin against IBM’s 16%. That profitability gap explains why Microsoft is valued the way it is. It’s also right in the middle of one of the biggest market movements in history, and it’s not slowing down on AI spending. The growth ceiling is much, much higher.
That doesn't mean IBM's worthless, though. The company has spent the last several years shedding lower-margin legacy businesses like Kyndryl and leaning more into AI and hybrid cloud through Red Hat and its watsonx AI enterprise portfolio.
The picture’s clear: Microsoft is priced for a much bigger opportunity it’s actively working toward, while IBM is priced like a turnaround story waiting to happen.
Analyst Price Targets: IBM vs. Microsoft in 2026
Wall Street seems to agree with my conclusion here. Or is it the other way around?
Microsoft stock is rated a Strong Buy, with its score rising over the last three months, and the high target price suggests there's up to 44% potential upside over the next year.

On the other hand, IBM has a consistent Moderate Buy rating, with 58% potential upside if its high target price is hit.

That 14% difference in potential upside might not be enough to convince anyone that IBM is the better pick here.
But there is one thing that could change a specific type of investor’s mind.
Income Investors Take Note: IBM's Dividend Edge Over Microsoft
Today, Microsoft pays $3.64 in annual dividends, which translates to roughly a 0.75% yield. It’s nice when you pair it with growth, but on its own, it looks more like lip service to “shareholder value” outside of capital appreciation.
On the other hand, IBM is paying $6.76 per share per year, which translates to a 2.9% yield. That’s a substantial difference - and it just might be enough to sway an income investor’s decision when picking between the two. It’s especially appealing if you consider IBM’s lower valuation and believe the turnaround story is coming.
IBM or Microsoft: Which Stock Fits Your Investment Style?
Both stocks are solid bets, but ultimately, the choice comes down to what kind of investor you are. Growth-oriented buyers are paying a premium for Microsoft compared with IBM. Income investors get paid to wait on IBM’s comeback through that nearly 3% yield.
On the date of publication, Rick Orford did not have (either directly or indirectly) positions in any of the securities mentioned in this article. All information and data in this article is solely for informational purposes. For more information please view the Barchart Disclosure Policy here.