Revenue Classified by Significant Product and Service Offerings (Parenthetical) (Detail) - USD ($) $ in Millions |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Dec. 31, 2017 |
Dec. 31, 2016 |
Dec. 31, 2017 |
Dec. 31, 2016 |
|
| Revenue from External Customer [Line Items] | ||||
| Revenue | $ 28,918 | $ 25,826 | $ 53,456 | $ 47,754 |
| Commercial Cloud | ||||
| Revenue from External Customer [Line Items] | ||||
| Revenue | $ 5,300 | $ 3,400 | $ 10,400 | $ 6,600 |