Components of Other Income (Expense), Net (Detail) - USD ($) $ in Millions |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Mar. 31, 2026 |
Mar. 31, 2025 |
Mar. 31, 2026 |
Mar. 31, 2025 |
|
| Other Income and Expenses [Abstract] | ||||
| Interest and dividends income | $ 730 | $ 597 | $ 2,546 | $ 1,878 |
| Interest expense | (778) | (594) | (2,212) | (1,770) |
| Net recognized gains (losses) on investments | 1,652 | 111 | 1,419 | (286) |
| Net gains (losses) on derivatives | 124 | 187 | 1,740 | (267) |
| Net gains (losses) on foreign currency remeasurements | (295) | 89 | (367) | 112 |
| Other, net | (491) | (1,013) | 4,127 | (2,861) |
| Total | $ 942 | $ (623) | $ 7,253 | $ (3,194) |
| X | ||||||||||
- Definition Amount, before tax, of realized and unrealized gain (loss) from foreign currency transaction. 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://www.xbrl.org/2009/role/commonPracticeRef
|
| 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 interest expense classified as nonoperating. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| 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://www.xbrl.org/2003/role/exampleRef
|