Segment Revenue (Detail) - USD ($) $ in Millions |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Dec. 31, 2017 |
Dec. 31, 2016 |
Dec. 31, 2017 |
Dec. 31, 2016 |
|
| Segment Reporting Information [Line Items] | ||||
| Revenue | $ 28,918 | $ 25,826 | $ 53,456 | $ 47,754 |
| Productivity and Business Processes | ||||
| Segment Reporting Information [Line Items] | ||||
| Revenue | 8,953 | 7,179 | 17,191 | 13,615 |
| Intelligent Cloud | ||||
| Segment Reporting Information [Line Items] | ||||
| Revenue | 7,795 | 6,758 | 14,717 | 12,855 |
| More Personal Computing | ||||
| Segment Reporting Information [Line Items] | ||||
| Revenue | $ 12,170 | $ 11,889 | $ 21,548 | $ 21,284 |