v3.26.1
Segment Revenue, Cost of Revenue, Operating Expenses and Operating Income (Detail) - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Segment Reporting Information [Line Items]      
Revenue $ 331,839 $ 281,724 $ 245,122
Cost of revenue 106,374 87,831 74,114
Operating expenses 70,228 65,365 61,575
Operating income 155,237 128,528 109,433
Productivity and Business Processes      
Segment Reporting Information [Line Items]      
Revenue 139,996 120,810 106,820
Cost of revenue 25,017 22,422 19,611
Operating expenses 31,100 28,615 27,548
Operating income 83,879 69,773 59,661
Intelligent Cloud      
Segment Reporting Information [Line Items]      
Revenue 137,791 106,265 87,464
Cost of revenue 57,876 40,171 29,611
Operating expenses 22,943 21,505 20,040
Operating income 56,972 44,589 37,813
More Personal Computing      
Segment Reporting Information [Line Items]      
Revenue 54,052 54,649 50,838
Cost of revenue 23,481 25,238 24,892
Operating expenses 16,185 15,245 13,987
Operating income $ 14,386 $ 14,166 $ 11,959