Quarterly Information (Unaudited) (Parenthetical) (Detail) - USD ($) $ / shares in Units, $ in Millions |
3 Months Ended | 12 Months Ended | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Jun. 30, 2017 |
Mar. 31, 2017 |
Dec. 31, 2016 |
Sep. 30, 2016 |
Jun. 30, 2016 |
Mar. 31, 2016 |
Dec. 31, 2015 |
Sep. 30, 2015 |
Jun. 30, 2017 |
Jun. 30, 2016 |
Jun. 30, 2015 |
|||||||||||||||||
| Quarterly Financial Information [Line Items] | |||||||||||||||||||||||||||
| Revenue | $ 23,317 | [1],[2] | $ 22,090 | [1],[2] | $ 24,090 | [1],[2] | $ 20,453 | [1],[2] | $ 20,614 | [3] | $ 20,531 | [3] | $ 23,796 | [3] | $ 20,379 | [3] | $ 89,950 | [1],[2] | $ 85,320 | [3] | $ 93,580 | ||||||
| Restructuring charges | 306 | ||||||||||||||||||||||||||
| Decrease in operating income due to impairment, integration and restructuring | 306 | 1,100 | |||||||||||||||||||||||||
| Decrease in net income due to impairment, integration and restructuring | $ 243 | $ 895 | |||||||||||||||||||||||||
| Decrease in diluted earnings per share due to impairment, integration and restructuring | $ 0.03 | $ 0.11 | |||||||||||||||||||||||||
| Asset impairment charges | 0 | 630 | $ 7,498 | ||||||||||||||||||||||||
| Phone Business | |||||||||||||||||||||||||||
| Quarterly Financial Information [Line Items] | |||||||||||||||||||||||||||
| Asset impairment charges | $ 630 | ||||||||||||||||||||||||||
| Severance | |||||||||||||||||||||||||||
| Quarterly Financial Information [Line Items] | |||||||||||||||||||||||||||
| Restructuring charges | 306 | ||||||||||||||||||||||||||
| Sales and Marketing Restructuring Plan | Severance | |||||||||||||||||||||||||||
| Quarterly Financial Information [Line Items] | |||||||||||||||||||||||||||
| Restructuring charges | $ 306 | ||||||||||||||||||||||||||
| 2016 Restructuring Plans | |||||||||||||||||||||||||||
| Quarterly Financial Information [Line Items] | |||||||||||||||||||||||||||
| Restructuring charges | 480 | 501 | |||||||||||||||||||||||||
| Windows 10 Licenses | |||||||||||||||||||||||||||
| Quarterly Financial Information [Line Items] | |||||||||||||||||||||||||||
| Revenue | $ 1,400 | $ 1,500 | $ 2,000 | $ 1,900 | $ 2,000 | $ 1,600 | $ 1,700 | $ 1,300 | $ 6,700 | $ 6,600 | |||||||||||||||||
| |||||||||||||||||||||||||||