v3.25.2
Segment Revenue, Cost of Revenue, Operating Expenses and Operating Income (Detail) - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2025
Jun. 30, 2024
Jun. 30, 2023
Segment Reporting Information [Line Items]      
Revenue $ 281,724 $ 245,122 $ 211,915
Cost of revenue 87,831 74,114 65,863
Operating expenses 65,365 61,575 57,529
Operating income 128,528 109,433 88,523
Productivity and Business Processes      
Segment Reporting Information [Line Items]      
Revenue 120,810 106,820 94,151
Cost of revenue 22,422 19,611 17,202
Operating expenses 28,615 27,548 26,875
Operating income 69,773 59,661 50,074
Intelligent Cloud      
Segment Reporting Information [Line Items]      
Revenue 106,265 87,464 72,944
Cost of revenue 40,171 29,611 24,109
Operating expenses 21,505 20,040 20,424
Operating income 44,589 37,813 28,411
More Personal Computing      
Segment Reporting Information [Line Items]      
Revenue 54,649 50,838 44,820
Cost of revenue 25,238 24,892 24,552
Operating expenses 15,245 13,987 10,230
Operating income $ 14,166 $ 11,959 $ 10,038