Changes in Unrecognized Tax Benefits (Detail) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2018 |
Jun. 30, 2017 |
Jun. 30, 2016 |
|
| Income Tax Disclosure [Abstract] | |||
| Balance, beginning of year | $ 11,737 | $ 10,164 | $ 9,599 |
| Decreases related to settlements | (193) | (4) | (201) |
| Increases for tax positions related to the current year | 1,445 | 1,277 | 1,086 |
| Increases for tax positions related to prior years | 151 | 397 | 115 |
| Decreases for tax positions related to prior years | (1,176) | (49) | (317) |
| Decreases due to lapsed statutes of limitations | (3) | (48) | (118) |
| Balance, end of year | $ 11,961 | $ 11,737 | $ 10,164 |
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of unrecognized tax benefits. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of decrease in unrecognized tax benefits resulting from tax positions taken in prior period tax returns. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of decrease in unrecognized tax benefits resulting from settlements with taxing authorities. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of increase in unrecognized tax benefits resulting from tax positions that have been or will be taken in current period tax return. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of increase in unrecognized tax benefits resulting from tax positions taken in prior period tax returns. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of decrease in unrecognized tax benefits resulting from lapses of applicable statutes of limitations. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|