Unearned Revenue by Segment (Detail) - USD ($) $ in Millions |
Jun. 30, 2018 |
Jun. 30, 2017 |
Jul. 01, 2016 |
|---|---|---|---|
| Contract With Customer Liability [Line Items] | |||
| Unearned revenue | $ 32,720 | $ 26,656 | $ 22,200 |
| Productivity and Business Processes | |||
| Contract With Customer Liability [Line Items] | |||
| Unearned revenue | 14,864 | 12,692 | |
| Intelligent Cloud | |||
| Contract With Customer Liability [Line Items] | |||
| Unearned revenue | 14,706 | 11,152 | |
| More Personal Computing | |||
| Contract With Customer Liability [Line Items] | |||
| Unearned revenue | $ 3,150 | $ 2,812 |