MSFT · XBRL financial data
Microsoft financial statements, every fiscal year
The same tables from 6 filings, lined up. Matched by XBRL tag: renamed lines keep their history.
How these numbers work
- Every number comes from the company's XBRL financial data filed with the SEC, and each one links to its filing.
- Lines are matched by XBRL tag, so a line renamed between filings keeps its history.
- * marks a quarter worked out from the filing totals: the 10-K year minus the first three quarters, or a year-to-date total minus the earlier one. Fourth-quarter earnings per share is fourth-quarter net income over the fourth-quarter weighted shares.
- 0 means a filing states zero; a dash (—) means no filing states that number.
- “year only” means the 10-K gives the full year but not the quarters needed to work out the fourth. A worked-out quarter of revenue, cost of revenue or operating cash flow more than twice the company's largest quarter of the two years before is shown this way too.
- Gross profit is shown as the company reports it; a worked-out quarter must equal revenue less cost of revenue for that quarter, or it is a dash.
- Operating income can be above gross profit when the company books other operating income between the two, shown on its own line.
- Shares outstanding come from each filing's cover page, as of the date printed there.
- Quarters are fiscal: Q2 FY27 is the second quarter of the company's fiscal 2027.
Income statement
CSVFiscal years (MSFT's year ends in late June)
| In millions of dollars | Jun 30, 2021 | Jun 30, 2022 | Jun 30, 2023 | Jun 30, 2024 | Jun 30, 2025 | Jun 30, 2026 |
|---|---|---|---|---|---|---|
| Revenue from contracts with customers | 168,088 | 198,270 | 211,915 | 245,122 | 281,724 | 331,839 |
| Cost of goods and services sold | 52,232 | 62,650 | 65,863 | 74,114 | 87,831 | 106,374 |
| Gross profit | 115,856 | 135,620 | 146,052 | 171,008 | 193,893 | 225,465 |
| Research and development | 20,716 | 24,512 | 27,195 | 29,510 | 32,488 | 35,562 |
| General and administrative | 5,107 | 5,900 | 7,575 | 7,609 | 7,223 | 7,956 |
| Total operating expenses | — | — | 57,529 | 61,575 | 65,365 | 70,228 |
| Operating income (loss) | 69,916 | 83,383 | 88,523 | 109,433 | 128,528 | 155,237 |
| Interest expense | 2,346 | 2,063 | 1,968 | 2,935 | 2,385 | 3,051 |
| Other income (expense) | 98 | (32) | (223) | (1,319) | (4,725) | 4,722 |
| Income tax expense (benefit) | 9,831 | 10,978 | 16,950 | 19,651 | 21,795 | 32,185 |
| Net income (loss) | 61,271 | 72,738 | 72,361 | 88,136 | 101,832 | 133,749 |
| Earnings per share, basic USD per share | 8.12 | 9.70 | 9.72 | 11.86 | 13.70 | 18.00 |
| Earnings per share, diluted USD per share | 8.05 | 9.65 | 9.68 | 11.80 | 13.64 | 17.95 |
| Weighted average shares, basic millions of shares | 7,547 | 7,496 | 7,446 | 7,431 | 7,433 | 7,429 |
| Weighted average shares, diluted millions of shares | 7,608 | 7,540 | 7,472 | 7,469 | 7,465 | 7,453 |
Balance sheet
CSVFiscal years (MSFT's year ends in late June)
Cash flows
CSVFiscal years (MSFT's year ends in late June)
| In millions of dollars | Jun 30, 2021 | Jun 30, 2022 | Jun 30, 2023 | Jun 30, 2024 | Jun 30, 2025 | Jun 30, 2026 |
|---|---|---|---|---|---|---|
| Net income (loss) | 61,271 | 72,738 | 72,361 | 88,136 | 101,832 | 133,749 |
| Stock-based compensation | 6,118 | 7,502 | 9,611 | 10,734 | 11,974 | 12,405 |
| Net cash from operating activities | 76,740 | 89,035 | 87,582 | 118,548 | 136,162 | 182,935 |
| Purchases of property and equipment | 20,622 | 23,886 | 28,107 | 44,477 | 64,551 | 115,948 |
| Net cash from investing activities | (27,577) | (30,311) | (22,680) | (96,970) | (72,599) | (139,500) |
| Proceeds from issuing common stock | 1,693 | 1,841 | 1,866 | 2,002 | 2,056 | 2,009 |
| Share repurchases | 27,385 | 32,696 | 22,245 | 17,254 | 18,420 | 22,271 |
| Dividends paid | 16,521 | 18,135 | 19,800 | 21,771 | 24,082 | 26,445 |
| Net cash from financing activities | (48,486) | (58,876) | (43,935) | (37,757) | (51,699) | (52,546) |
| Net change in cash | 648 | (293) | 20,773 | (16,389) | 11,927 | (9,307) |
Compare with peers
SIC 7372 and related industry codes, similar size; rows marked “added: same SIC” fill a short list. Each row is the latest quarter reported.
How peers are chosen
- SIC 7372 and related industry codes with public float (or, where float is missing, quarterly revenue) between 0.2x and 5x the company's.
- Each row is the latest quarter the company has reported, named in the Quarter column; when that filing is a 10-K, it is the fourth quarter, never the full year.
- Fewer than three companies fall in that range, so the list adds same-SIC (7372) companies nearest in public float, each marked “added: same SIC”.
- * marks a quarter worked out from the filing totals: for a 10-Q, the year-to-date total less the earlier one.
| Company | Cash ($M) | Revenue, quarter ($M) | Operating cash flow, quarter ($M) | Shares outstanding | Quarter |
|---|---|---|---|---|---|
| Microsoft | 20,281 | 92,279 | 58,000 | 7.4B | 10-QSep 30, 2026 |
| Alphabet | 56,334 | 127,577 | 42,290* | not reported | 10-QSep 30, 2026 |
| Meta Platforms | 11,222 | 64,601 | 32,785* | not reported | 10-QSep 30, 2026 |
| Oracleadded: same SIC | 36,369 | 19,345 | 23,103 | 3.0B | 10-QAug 31, 2026 |
| Palantir Technologiesadded: same SIC | 3,619 | 2,313 | 1,205* | not reported | 10-QSep 30, 2026 |
| Salesforceadded: same SIC | 8,310 | 11,345 | 1,269 | 823.0M | 10-QJul 31, 2026 |
| ServiceNowadded: same SIC | 2,393 | 4,106 | 839* | 1.0B | 10-QSep 30, 2026 |
| Adobeadded: same SIC | 4,359 | 6,760 | 2,523* | 389.2M | 10-QAug 28, 2026 |
| Shopifyadded: same SIC | 1,868 | 3,742 | 818 | not reported | 10-QSep 30, 2026 |
Not investment advice. Not affiliated with the U.S. SEC.