OpenAI is signing huge deals with a handful of companies worth hundreds of billions of dollars.
Microsoft and Oracle are spending significant amounts to build the capacity OpenAI wants.
One stock looks much riskier than the other at around the same valuation.
In just over three years, OpenAI has gone from a relatively unknown to a tech industry giant worth as much as $830 billion, based on its current fund-raising round. It's currently seeking $100 billion in fresh capital, and it's going to need it. The developer of large language models has made huge commitments to several major partners for cloud computing resources.
Two of OpenAI's biggest partners are Microsoft (NASDAQ: MSFT) and Oracle (NYSE: ORCL).
Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now, when you join Stock Advisor. See the stocks »
Microsoft has a long history with OpenAI, having invested in the company as early as 2019, well ahead of the release of ChatGPT. It now owns a 27% equity stake in the business and has contracted $250 billion in commitments from OpenAI for its cloud computing platform Azure.
But OpenAI, hungry for computational resources, has signed several deals with Microsoft's competition, including Oracle. The two announced a huge $300 billion commitment from OpenAI spanning five years for Oracle's cloud infrastructure business.
There's no doubt that both Microsoft and Oracle have a lot riding on the success of OpenAI. But which stock should investors buy right now?
Image source: Getty Images.
OpenAI plans to spend over half a trillion dollars with Microsoft and Oracle alone. It has another $800 billion or so in commitments with various other cloud and chip providers as well.
Meanwhile, the company generated revenue of $4.3 billion through the first six months of 2025. CEO Sam Altman says it reached a $20 billion annualized run rate last quarter.
It doesn't take advanced artificial intelligence to determine that a company generating around $20 billion per year will need to cover hundreds of billions per year in spending with some outside funding. In many cases, OpenAI is able to negotiate a form of vendor financing using things like equity and stock warrants.
Many have criticized the circular deals that help OpenAI pay for the infrastructure it needs, but if it's ultimately successful in growing the business, it could work out well for both OpenAI and its partners. On the other hand, it introduces immense risk into the equation. If OpenAI stumbles, it could bring down the entire industry.
The $550 billion in combined commitments at Microsoft and Oracle are not guaranteed. And that's an important caveat to consider when evaluating both companies' stocks.
Microsoft and Oracle are both responsible for building the infrastructure to rent to OpenAI. That means huge capital expenditures (capex) to set up new data centers and outfit them with graphics processing units (GPUs), networking equipment, and cooling systems.
Microsoft's capex totaled $34.9 billion during its first quarter ($11.1 billion of which were finance leases). Management expects the growth in spending to accelerate this year as it works to meet the huge demand already in its backlog, including OpenAI's commitment. Oracle, meanwhile, saw its capex balloon to $12 billion last quarter, tripling year over year.
Importantly, Microsoft is more than capable of financing its AI data center construction with its own operations. Despite the substantial spending, the company generated $25 billion in free cash flow in its most recent quarter. That's thanks to its high-margin software business and the huge scale Azure already has.
Oracle, on the other hand, burned $10 billion of cash last quarter as it ramped up the infrastructure expansion. That was funded by raising long-term debt. Importantly, the company will have to continue spending heavily in the near term, but the payoff on that spending won't come until down the road when data centers are up and running and OpenAI is paying for them.
With interest on debt and big depreciation expenses set to hit the company, Oracle will likely see a significant decrease in its net profit margins. But if it generates $60 billion per year in revenue from OpenAI alone, the margins are a secondary concern.
Still, Oracle's approach doubles the risk inherent in partnering with OpenAI. Further increasing the risk is the immense customer concentration of Oracle in OpenAI. If the latter pulls back in spending or collapses, Oracle will be left with a lot of computing capacity it paid for with nobody to pick up the slack from OpenAI.
As such, investors shouldn't be willing to pay a premium for Oracle. With its forward price-to-earnings ratio (P/E) of 28, it trades at a premium valuation to the overall S&P 500.
For just a little bit more -- 29.5 times forward earnings -- investors can pick up shares of Microsoft. With its more-diversified customer base and strong operations from its software business funding its AI data center expansion, it looks like the much better investment 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 $474,578!* 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,141,628!*
Now, it’s worth noting Stock Advisor’s total average return is 955% — a market-crushing outperformance compared to 196% 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 January 18, 2026.
Adam Levy has positions in Microsoft. The Motley Fool has positions in and recommends Microsoft and Oracle. 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.