Microsoft makes money by charging people and businesses to use its software and cloud services — mostly through subscriptions they pay every month or year. The biggest pieces are Microsoft 365 (the Word, Excel, and Teams bundle), Azure cloud computing, LinkedIn, and Xbox Game Pass. Companies pay per user, per month. Developers pay for every hour they run code on Azure. Gamers pay a monthly fee for Xbox Game Pass. This mix of predictable, recurring payments from hundreds of millions of customers is the engine that drives everything else. The diagram below traces where the money goes.
Five years of financial data tell a consistent story: this business has been getting larger and more cash-generative every single year. Revenue grew from $168.1 billion in 2021 to $281.7 billion in 2025. That is 67% growth in four years. Operating cash flow — the cash the business actually produces before big spending decisions — grew from $76.7 billion to $136.2 billion over the same period. That is a lot of money coming in the door.
Gross margin — the share of each dollar of revenue left after the direct cost of delivering the product — has stayed remarkably stable across all five years, hovering around 69%. That means the business has not had to sacrifice profitability to grow. Most companies get squeezed as they scale. Microsoft has not. Not yet, anyway. The big question hanging over the next few years is whether that holds as the company spends massively on AI infrastructure.
Free cash flow tells a slightly more complicated story. It rose from $56.1 billion in 2021 to $65.1 billion in 2022, then dipped to $59.5 billion in 2023 as spending picked up. It recovered to $74.1 billion in 2024, then dipped again to $71.6 billion in 2025 — even as operating cash flow hit a record $136.2 billion. The gap between operating cash flow and free cash flow is widening fast, because Microsoft is spending enormous sums building datacenters and buying specialised computer chips for AI. Capital expenditure is consuming a growing share of the cash the business generates.
Net debt — the amount owed to lenders minus cash on hand — has fallen sharply over the period, from $52.0 billion in 2021 to $15.9 billion in 2025. Microsoft finished fiscal year 2025 with $94.6 billion in cash and short-term investments. The balance sheet is in very strong shape. That financial cushion matters because the company has committed to enormous future spending: over $397 billion in total contractual obligations, including datacenter construction, leases, and purchase commitments for chips and equipment.
The fastest-growing part of the business right now is Azure. Azure and other cloud services revenue grew 34% in fiscal year 2025, driven by demand for AI computing. Microsoft Cloud revenue — the combined measure across Azure, Microsoft 365 Commercial cloud, LinkedIn, and Dynamics 365 — reached $168.9 billion in fiscal year 2025, up 23% from the prior year. Intelligent Cloud, the segment that contains Azure, generated $106.3 billion in revenue in 2025, with operating income of $44.6 billion.
But that growth is not free. The cost of running the Intelligent Cloud segment rose 36% in fiscal year 2025 — faster than revenue growth of 21%. Microsoft is spending heavily today in hopes that the AI workloads will fill up those datacenters tomorrow. The gross margin on Microsoft Cloud fell slightly to 69%, driven by the cost of scaling AI infrastructure. If AI demand accelerates, those costs get absorbed and the margins recover. If demand disappoints, the spending looks like a very expensive mistake.
The most specific financial risk on record is the IRS dispute. The US tax authority says Microsoft owes an additional $28.9 billion in taxes, plus penalties and interest, related to how it moved money between its global offices for the years 2004 to 2013. Microsoft disagrees and says it will fight the claim. No final resolution is expected in the next 12 months. Separately, in late 2023 a government-backed hacker group broke into Microsoft's internal systems using a password spray attack, gaining access to employee email accounts and source code. Microsoft has acknowledged that stolen information could still be used to access its systems in the future. A business that sells trust and security having its own systems compromised is not a minor footnote — it is a direct threat to the company's reputation with enterprise customers.
There are also regulatory risks specific to artificial intelligence. The European Union's AI Act imposes strict rules on how AI systems can be built and used. Microsoft offers AI products and services across Europe, and compliance could add significant costs or limit what it can offer there. The EU is one of Microsoft's largest markets. Meanwhile, the Activision Blizzard integration and the OpenAI partnership both carry execution risk. If either fails to deliver the financial benefits that justified the cost, Microsoft could face large accounting write-downs.