Operating Income (Loss) by Segment (Detail) - USD ($) $ in Millions |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Mar. 31, 2018 |
Mar. 31, 2017 |
Mar. 31, 2018 |
Mar. 31, 2017 |
|
| Segment Reporting Information [Line Items] | ||||
| Operating income (loss) | $ 8,292 | $ 6,723 | $ 24,679 | $ 21,343 |
| Productivity and Business Processes | ||||
| Segment Reporting Information [Line Items] | ||||
| Operating income (loss) | 3,115 | 2,540 | 9,458 | 8,498 |
| Intelligent Cloud | ||||
| Segment Reporting Information [Line Items] | ||||
| Operating income (loss) | 2,654 | 2,148 | 7,623 | 6,216 |
| More Personal Computing | ||||
| Segment Reporting Information [Line Items] | ||||
| Operating income (loss) | $ 2,523 | $ 2,035 | $ 7,598 | $ 6,629 |