v3.21.2
Operating Income (Loss) by Segment (Detail) - USD ($)
$ in Millions
3 Months Ended
Sep. 30, 2021
Sep. 30, 2020
Segment Reporting Information [Line Items]    
Operating Income (Loss) $ 20,238 $ 15,876
Productivity and Business Processes    
Segment Reporting Information [Line Items]    
Operating Income (Loss) 7,581 5,706
Intelligent Cloud    
Segment Reporting Information [Line Items]    
Operating Income (Loss) 7,562 5,422
More Personal Computing    
Segment Reporting Information [Line Items]    
Operating Income (Loss) $ 5,095 $ 4,748