Expected Impacts of Adoption of Standards Related to Revenue Recognition and Leases to Reported Results - (Detail) - USD ($) $ / shares in Units, $ in Millions |
3 Months Ended | 12 Months Ended | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Jun. 30, 2017 |
Mar. 31, 2017 |
[1] | Dec. 31, 2016 |
[1] | Sep. 30, 2016 |
[1] | Jun. 30, 2016 |
Mar. 31, 2016 |
Dec. 31, 2015 |
Sep. 30, 2015 |
Jun. 30, 2017 |
Jun. 30, 2016 |
Jun. 30, 2015 |
||||||||||||||||||
| Income statements: | |||||||||||||||||||||||||||||||
| Revenue | $ 23,317 | [1],[2] | $ 22,090 | [2] | $ 24,090 | [2] | $ 20,453 | [2] | $ 20,614 | [3] | $ 20,531 | [3] | $ 23,796 | [3] | $ 20,379 | [3] | $ 89,950 | [1],[2] | $ 85,320 | [3] | $ 93,580 | ||||||||||
| Provision for income taxes | 1,945 | 2,953 | 6,314 | ||||||||||||||||||||||||||||
| Net income | $ 6,513 | [1],[4] | $ 4,801 | $ 5,200 | $ 4,690 | $ 3,122 | [5] | $ 3,756 | $ 5,018 | $ 4,902 | $ 21,204 | [1],[4] | $ 16,798 | [5] | $ 12,193 | ||||||||||||||||
| Diluted | $ 0.83 | [1],[4] | $ 0.61 | $ 0.66 | $ 0.60 | $ 0.39 | [5] | $ 0.47 | $ 0.62 | $ 0.61 | $ 2.71 | [1],[4] | $ 2.10 | [5] | $ 1.48 | ||||||||||||||||
| Balance sheets: | |||||||||||||||||||||||||||||||
| Accounts receivable, net | $ 19,792 | $ 18,277 | $ 19,792 | $ 18,277 | |||||||||||||||||||||||||||
| Operating lease right-of-use assets | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| Other current and long-term assets | 11,147 | 9,308 | 11,147 | 9,308 | |||||||||||||||||||||||||||
| Unearned revenue | 44,479 | 33,909 | 44,479 | 33,909 | |||||||||||||||||||||||||||
| Deferred income taxes | 531 | 1,476 | 531 | 1,476 | |||||||||||||||||||||||||||
| Operating lease liabilities | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| Other current and long-term liabilities | 23,464 | 19,589 | 23,464 | 19,589 | |||||||||||||||||||||||||||
| Stockholders' equity | 72,394 | 71,997 | 72,394 | 71,997 | $ 80,083 | ||||||||||||||||||||||||||
| Scenario Plan | |||||||||||||||||||||||||||||||
| Income statements: | |||||||||||||||||||||||||||||||
| Revenue | 96,571 | 91,154 | |||||||||||||||||||||||||||||
| Provision for income taxes | 4,412 | 5,100 | |||||||||||||||||||||||||||||
| Net income | $ 25,489 | $ 20,539 | |||||||||||||||||||||||||||||
| Diluted | $ 3.25 | $ 2.56 | |||||||||||||||||||||||||||||
| Balance sheets: | |||||||||||||||||||||||||||||||
| Accounts receivable, net | 22,431 | 20,636 | $ 22,431 | $ 20,636 | |||||||||||||||||||||||||||
| Operating lease right-of-use assets | 6,555 | 5,198 | 6,555 | 5,198 | |||||||||||||||||||||||||||
| Other current and long-term assets | 11,179 | 11,180 | 11,179 | 11,180 | |||||||||||||||||||||||||||
| Unearned revenue | 26,656 | 22,193 | 26,656 | 22,193 | |||||||||||||||||||||||||||
| Deferred income taxes | 5,734 | 6,313 | 5,734 | 6,313 | |||||||||||||||||||||||||||
| Operating lease liabilities | 5,372 | 4,257 | 5,372 | 4,257 | |||||||||||||||||||||||||||
| Other current and long-term liabilities | 24,621 | 20,547 | 24,621 | 20,547 | |||||||||||||||||||||||||||
| Stockholders' equity | 87,711 | 83,090 | 87,711 | 83,090 | |||||||||||||||||||||||||||
| New Revenue Standard Adjustment | Scenario Plan | |||||||||||||||||||||||||||||||
| Income statements: | |||||||||||||||||||||||||||||||
| Revenue | 6,621 | 5,834 | |||||||||||||||||||||||||||||
| Provision for income taxes | 2,467 | 2,147 | |||||||||||||||||||||||||||||
| Net income | $ 4,285 | $ 3,741 | |||||||||||||||||||||||||||||
| Diluted | $ 0.54 | $ 0.46 | |||||||||||||||||||||||||||||
| Balance sheets: | |||||||||||||||||||||||||||||||
| Accounts receivable, net | 2,639 | 2,359 | $ 2,639 | $ 2,359 | |||||||||||||||||||||||||||
| Operating lease right-of-use assets | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| Other current and long-term assets | 32 | 1,872 | 32 | 1,872 | |||||||||||||||||||||||||||
| Unearned revenue | (17,823) | (11,716) | (17,823) | (11,716) | |||||||||||||||||||||||||||
| Deferred income taxes | 5,203 | 4,837 | 5,203 | 4,837 | |||||||||||||||||||||||||||
| Operating lease liabilities | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| Other current and long-term liabilities | (26) | 17 | (26) | 17 | |||||||||||||||||||||||||||
| Stockholders' equity | 15,317 | 11,093 | 15,317 | 11,093 | |||||||||||||||||||||||||||
| New Lease Standard Adjustment | Scenario Plan | |||||||||||||||||||||||||||||||
| Income statements: | |||||||||||||||||||||||||||||||
| Revenue | 0 | 0 | |||||||||||||||||||||||||||||
| Provision for income taxes | 0 | 0 | |||||||||||||||||||||||||||||
| Net income | $ 0 | $ 0 | |||||||||||||||||||||||||||||
| Diluted | $ 0 | $ 0 | |||||||||||||||||||||||||||||
| Balance sheets: | |||||||||||||||||||||||||||||||
| Accounts receivable, net | 0 | 0 | $ 0 | $ 0 | |||||||||||||||||||||||||||
| Operating lease right-of-use assets | 6,555 | 5,198 | 6,555 | 5,198 | |||||||||||||||||||||||||||
| Other current and long-term assets | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| Unearned revenue | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| Deferred income taxes | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| Operating lease liabilities | 5,372 | 4,257 | 5,372 | 4,257 | |||||||||||||||||||||||||||
| Other current and long-term liabilities | 1,183 | 941 | 1,183 | 941 | |||||||||||||||||||||||||||
| Stockholders' equity | $ 0 | $ 0 | $ 0 | $ 0 | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||