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

CSV

Fiscal years (MSFT's year ends in late June)

In millions of dollarsJun 30, 2021Jun 30, 2022Jun 30, 2023Jun 30, 2024Jun 30, 2025Jun 30, 2026
Revenue from contracts with customers168,088198,270211,915245,122281,724331,839
Cost of goods and services sold52,23262,65065,86374,11487,831106,374
Gross profit115,856135,620146,052171,008193,893225,465
Research and development20,71624,51227,19529,51032,48835,562
General and administrative5,1075,9007,5757,6097,2237,956
Total operating expenses——57,52961,57565,36570,228
Operating income (loss)69,91683,38388,523109,433128,528155,237
Interest expense2,3462,0631,9682,9352,3853,051
Other income (expense)98(32)(223)(1,319)(4,725)4,722
Income tax expense (benefit)9,83110,97816,95019,65121,79532,185
Net income (loss)61,27172,73872,36188,136101,832133,749
Earnings per share, basic USD per share8.129.709.7211.8613.7018.00
Earnings per share, diluted USD per share8.059.659.6811.8013.6417.95
Weighted average shares, basic millions of shares7,5477,4967,4467,4317,4337,429
Weighted average shares, diluted millions of shares7,6087,5407,4727,4697,4657,453

Balance sheet

CSV

Fiscal years (MSFT's year ends in late June)

In millions of dollarsJun 30, 2021Jun 30, 2022Jun 30, 2023Jun 30, 2024Jun 30, 2025Jun 30, 2026
Cash and cash equivalents14,22413,93134,70418,31530,24220,935
Short-term investments116,11090,82676,55857,22864,32355,908
Accounts receivable38,04344,26148,68856,92469,90580,876
Inventory2,6363,7422,5001,2469381,397
Total current assets184,406169,684184,257159,734191,131207,710
Property and equipment, net59,71574,39895,641135,591204,966313,076
Right-of-use asset11,08813,14814,34618,96124,82324,177
Goodwill49,71167,52467,886119,220119,509119,651
Total assets333,779364,840411,976512,163619,003758,376
Accounts payable15,16319,00018,09521,99627,72442,416
Commercial paper——06,6930—
Current portion of long-term debt8,0722,7495,2472,2492,9999,227
Total current liabilities88,65795,082104,149125,286141,218168,825
Long-term debt50,07447,03241,99042,68840,15231,067
Lease liability, non-current9,62911,48912,72815,49717,43716,532
Total liabilities191,791198,298205,753243,686275,524315,989
Retained earnings57,05584,281118,848173,144237,731328,265
Total stockholders' equity141,988166,542206,223268,477343,479442,387
Total liabilities and equity333,779364,840411,976512,163619,003758,376
Common shares outstanding (cover page) millions of shares7,5157,4587,4307,4337,4337,426

Cash flows

CSV

Fiscal years (MSFT's year ends in late June)

In millions of dollarsJun 30, 2021Jun 30, 2022Jun 30, 2023Jun 30, 2024Jun 30, 2025Jun 30, 2026
Net income (loss)61,27172,73872,36188,136101,832133,749
Stock-based compensation6,1187,5029,61110,73411,97412,405
Net cash from operating activities76,74089,03587,582118,548136,162182,935
Purchases of property and equipment20,62223,88628,10744,47764,551115,948
Net cash from investing activities(27,577)(30,311)(22,680)(96,970)(72,599)(139,500)
Proceeds from issuing common stock1,6931,8411,8662,0022,0562,009
Share repurchases27,38532,69622,24517,25418,42022,271
Dividends paid16,52118,13519,80021,77124,08226,445
Net cash from financing activities(48,486)(58,876)(43,935)(37,757)(51,699)(52,546)
Net change in cash648(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.
CompanyCash ($M)Revenue, quarter ($M)Operating cash flow, quarter ($M)Shares outstandingQuarter
Microsoft20,28192,27958,0007.4B 10-QSep 30, 2026
Alphabet56,334127,57742,290*not reported 10-QSep 30, 2026
Meta Platforms11,22264,60132,785*not reported 10-QSep 30, 2026
Oracleadded: same SIC36,36919,34523,1033.0B 10-QAug 31, 2026
Palantir Technologiesadded: same SIC3,6192,3131,205*not reported 10-QSep 30, 2026
Salesforceadded: same SIC8,31011,3451,269823.0M 10-QJul 31, 2026
ServiceNowadded: same SIC2,3934,106839*1.0B 10-QSep 30, 2026
Adobeadded: same SIC4,3596,7602,523*389.2M 10-QAug 28, 2026
Shopifyadded: same SIC1,8683,742818not reported 10-QSep 30, 2026

Not investment advice. Not affiliated with the U.S. SEC.