v3.25.2
Summary of Changes in Accumulated Other Comprehensive Income (Loss) by Component (Detail) - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2025
Jun. 30, 2024
Jun. 30, 2023
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Balance, beginning of period $ 268,477 $ 206,223  
Other comprehensive income (loss) 2,243 753 $ (1,665)
Balance, end of period 343,479 268,477 206,223
Derivatives      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Balance, beginning of period (3) (27) (13)
Unrealized gains (losses), net of tax 77 (14) 34
Tax expense (benefit) included in provision for income taxes 21 (10) 13
Amounts reclassified from accumulated other comprehensive loss (82) 38 (48)
Other comprehensive income (loss) (5) 24 (14)
Balance, end of period (8) (3) (27)
Derivatives | Other Income (Expense), Net      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Reclassification adjustments for (gains) losses included in other income (expense), net (103) 48 (61)
Investments      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Balance, beginning of period (2,625) (3,582) (2,138)
Unrealized gains (losses), net of tax 1,560 915 (1,523)
Tax expense (benefit) included in provision for income taxes (3) (11) (20)
Amounts reclassified from accumulated other comprehensive loss 14 42 79
Other comprehensive income (loss) 1,574 957 (1,444)
Balance, end of period (1,051) (2,625) (3,582)
Investments | Other Income (Expense), Net      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Reclassification adjustments for (gains) losses included in other income (expense), net 17 53 99
Translation adjustments and other      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Balance, beginning of period (2,962) (2,734) (2,527)
Other comprehensive income (loss) 674 (228) (207)
Balance, end of period (2,288) (2,962) (2,734)
Accumulated other comprehensive loss      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Balance, beginning of period (5,590) (6,343) (4,678)
Other comprehensive income (loss) 2,243 753 (1,665)
Balance, end of period $ (3,347) $ (5,590) $ (6,343)