Components of Other Income (Expense), Net (Detail) - USD ($) $ in Millions |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Mar. 31, 2023 |
Mar. 31, 2022 |
Mar. 31, 2023 |
Mar. 31, 2022 |
|
| Other Income And Expenses [Abstract] | ||||
| Interest and dividends income | $ 748 | $ 519 | $ 2,089 | $ 1,542 |
| Interest expense | (496) | (503) | (1,486) | (1,567) |
| Net recognized gains (losses) on investments | 105 | (76) | 103 | 595 |
| Net losses on derivatives | (65) | (29) | (255) | (29) |
| Net gains (losses) on foreign currency remeasurements | 122 | (74) | 26 | (152) |
| Other, net | (93) | (11) | (162) | (9) |
| Total | $ 321 | $ (174) | $ 315 | $ 380 |
| X | ||||||||||
- Definition Amount before tax of foreign currency transaction realized and unrealized gain (loss) recognized in the income statement. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Aggregate net gain (loss) on all derivative instruments recognized in earnings during the period, before tax effects. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of realized and unrealized gain (loss) on investment. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of the cost of borrowed funds accounted for as interest expense. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount after accretion (amortization) of discount (premium), and investment expense, of interest income and dividend income on nonoperating securities. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition The aggregate amount of income or expense from ancillary business-related activities (that is to say, excluding major activities considered part of the normal operations of the business). Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of income (expense) related to nonoperating activities, classified as other. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|