Segment Revenue (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] | ||||
| Revenue | $ 26,819 | $ 23,212 | $ 80,275 | $ 70,966 |
| Productivity and Business Processes | ||||
| Segment Reporting Information [Line Items] | ||||
| Revenue | 9,006 | 7,707 | 26,197 | 21,322 |
| Intelligent Cloud | ||||
| Segment Reporting Information [Line Items] | ||||
| Revenue | 7,896 | 6,730 | 22,613 | 19,585 |
| More Personal Computing | ||||
| Segment Reporting Information [Line Items] | ||||
| Revenue | $ 9,917 | $ 8,775 | $ 31,465 | $ 30,059 |