v3.25.4
Investment Components (Detail) - USD ($)
$ in Millions
Dec. 31, 2025
Jun. 30, 2025
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis $ 80,174  
Debt investments, Recorded Basis 79,509  
Derivative, net 124 $ 500
Cash and cash equivalents 24,296 30,242
Short-term Investments 65,166 64,323
Equity and other investments 21,202 15,405
Cash, cash equivalents, and investments 110,664 109,970
Equity Securities    
Cash Cash Equivalents And Investments [Line Items]    
Equity investments, Recorded Basis 20,928 13,718
Cash and cash equivalents 1,346 1,045
Short-term Investments 0 0
Equity and other investments 19,582 12,673
Equity Securities | Other    
Cash Cash Equivalents And Investments [Line Items]    
Equity investments, Recorded Basis 16,562 9,141
Cash and cash equivalents 0 0
Short-term Investments 0 0
Equity and other investments 16,562 9,141
Equity Securities | Level 1    
Cash Cash Equivalents And Investments [Line Items]    
Equity investments, Recorded Basis 4,366 4,577
Cash and cash equivalents 1,346 1,045
Short-term Investments 0 0
Equity and other investments 3,020 3,532
Cash    
Cash Cash Equivalents And Investments [Line Items]    
Cash 10,221 11,711
Cash and cash equivalents 10,221 11,711
Short-term Investments 0 0
Equity and other investments 0 0
Derivatives, net    
Cash Cash Equivalents And Investments [Line Items]    
Derivative, net [1] 6 282
Cash and cash equivalents [1] 0 0
Short-term Investments [1] 6 10
Equity and other investments [1] 0 272
Debt Securities    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 80,174 85,589
Debt investments, Unrealized Gains 481 295
Debt investments, Unrealized Losses (1,146) (1,625)
Debt investments, Recorded Basis 79,509 84,259
Cash and cash equivalents 12,729 17,486
Short-term Investments 65,160 64,313
Equity and other investments 1,620 2,460
Debt Securities | Commercial Paper | Level 2    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 8,367 10,880
Debt investments, Unrealized Gains 0 0
Debt investments, Unrealized Losses 0 0
Debt investments, Recorded Basis 8,367 10,880
Cash and cash equivalents 7,622 9,939
Short-term Investments 745 941
Equity and other investments 0 0
Debt Securities | Certificates of deposit | Level 2    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 3,506 2,653
Debt investments, Unrealized Gains 0 0
Debt investments, Unrealized Losses 0 0
Debt investments, Recorded Basis 3,506 2,653
Cash and cash equivalents 3,062 2,309
Short-term Investments 444 344
Equity and other investments 0 0
Debt Securities | U.S. government securities | Level 1    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 48,194 52,878
Debt investments, Unrealized Gains 147 71
Debt investments, Unrealized Losses (1,046) (1,462)
Debt investments, Recorded Basis 47,295 51,487
Cash and cash equivalents 2,045 4,742
Short-term Investments 45,250 46,745
Equity and other investments 0 0
Debt Securities | U.S. agency securities | Level 2    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 2,444 2,686
Debt investments, Unrealized Gains 0 0
Debt investments, Unrealized Losses 0 0
Debt investments, Recorded Basis 2,444 2,686
Cash and cash equivalents 0 496
Short-term Investments 2,444 2,190
Equity and other investments 0 0
Debt Securities | Foreign government bonds | Level 2    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 402 349
Debt investments, Unrealized Gains 18 24
Debt investments, Unrealized Losses (6) (9)
Debt investments, Recorded Basis 414 364
Cash and cash equivalents 0 0
Short-term Investments 414 364
Equity and other investments 0 0
Debt Securities | Mortgage- and asset-backed securities | Level 2    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 3,227 2,558
Debt investments, Unrealized Gains 19 10
Debt investments, Unrealized Losses (21) (27)
Debt investments, Recorded Basis 3,225 2,541
Cash and cash equivalents 0 0
Short-term Investments 3,225 2,541
Equity and other investments 0 0
Debt Securities | Corporate notes and bonds | Level 2    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 12,162 10,763
Debt investments, Unrealized Gains 176 124
Debt investments, Unrealized Losses (55) (101)
Debt investments, Recorded Basis 12,283 10,786
Cash and cash equivalents 0 0
Short-term Investments 12,283 10,786
Equity and other investments 0 0
Debt Securities | Corporate notes and bonds | Level 3    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 1,597 2,511
Debt investments, Unrealized Gains 120 65
Debt investments, Unrealized Losses 0 (5)
Debt investments, Recorded Basis 1,717 2,571
Cash and cash equivalents 0 0
Short-term Investments 97 111
Equity and other investments 1,620 2,460
Debt Securities | Municipal securities | Level 2    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 170 207
Debt investments, Unrealized Gains 1 1
Debt investments, Unrealized Losses (6) (7)
Debt investments, Recorded Basis 165 201
Cash and cash equivalents 0 0
Short-term Investments 165 201
Equity and other investments 0 0
Debt Securities | Municipal securities | Level 3    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 105 104
Debt investments, Unrealized Gains 0 0
Debt investments, Unrealized Losses (12) (14)
Debt investments, Recorded Basis 93 90
Cash and cash equivalents 0 0
Short-term Investments 93 90
Equity and other investments $ 0 $ 0
[1] Refer to Note 5 – Derivatives for further information on the fair value of our derivative instruments.