Revenue Classified by Significant Product and Service Offerings (Parenthetical) (Detail) - USD ($) $ in Millions |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Mar. 31, 2018 |
Mar. 31, 2017 |
Mar. 31, 2018 |
Mar. 31, 2017 |
|
| Revenue from External Customer [Line Items] | ||||
| Revenue | $ 26,819 | $ 23,212 | $ 80,275 | $ 70,966 |
| Commercial Cloud | ||||
| Revenue from External Customer [Line Items] | ||||
| Revenue | $ 6,000 | $ 3,800 | $ 16,300 | $ 10,400 |