v3.26.1
Investment Components (Detail) - USD ($)
$ in Millions
Mar. 31, 2026
Jun. 30, 2025
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis $ 75,718  
Debt investments, Recorded Basis 74,750  
Derivative, net 752 $ 500
Cash and cash equivalents 32,105 30,242
Short-term Investments 46,167 64,323
Equity and other investments 33,683 15,405
Cash, cash equivalents, and investments 111,955 109,970
Equity Securities    
Cash Cash Equivalents And Investments [Line Items]    
Equity investments, Recorded Basis 24,430 13,718
Cash and cash equivalents 1,093 1,045
Short-term Investments 0 0
Equity and other investments 23,337 12,673
Equity Securities | Other    
Cash Cash Equivalents And Investments [Line Items]    
Equity investments, Recorded Basis 20,519 9,141
Cash and cash equivalents 0 0
Short-term Investments 0 0
Equity and other investments 20,519 9,141
Equity Securities | Level 1    
Cash Cash Equivalents And Investments [Line Items]    
Equity investments, Recorded Basis 3,911 4,577
Cash and cash equivalents 1,093 1,045
Short-term Investments 0 0
Equity and other investments 2,818 3,532
Cash    
Cash Cash Equivalents And Investments [Line Items]    
Cash 12,731 11,711
Cash and cash equivalents 12,731 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] 44 282
Cash and cash equivalents [1] 0 0
Short-term Investments [1] 44 10
Equity and other investments [1] 0 272
Debt Securities    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 75,718 85,589
Debt investments, Unrealized Gains 231 295
Debt investments, Unrealized Losses (1,199) (1,625)
Debt investments, Recorded Basis 74,750 84,259
Cash and cash equivalents 18,281 17,486
Short-term Investments 46,123 64,313
Equity and other investments 10,346 2,460
Debt Securities | Commercial Paper | Level 2    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 5,544 10,880
Debt investments, Unrealized Gains 0 0
Debt investments, Unrealized Losses 0 0
Debt investments, Recorded Basis 5,544 10,880
Cash and cash equivalents 5,543 9,939
Short-term Investments 1 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 1,394 2,653
Debt investments, Unrealized Gains 0 0
Debt investments, Unrealized Losses 0 0
Debt investments, Recorded Basis 1,394 2,653
Cash and cash equivalents 1,350 2,309
Short-term Investments 44 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 50,821 52,878
Debt investments, Unrealized Gains 25 71
Debt investments, Unrealized Losses (1,078) (1,462)
Debt investments, Recorded Basis 49,768 51,487
Cash and cash equivalents 8,923 4,742
Short-term Investments 32,119 46,745
Equity and other investments 8,726 0
Debt Securities | U.S. agency securities | Level 2    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 3,215 2,686
Debt investments, Unrealized Gains 0 0
Debt investments, Unrealized Losses 0 0
Debt investments, Recorded Basis 3,215 2,686
Cash and cash equivalents 2,465 496
Short-term Investments 750 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 225 349
Debt investments, Unrealized Gains 13 24
Debt investments, Unrealized Losses (5) (9)
Debt investments, Recorded Basis 233 364
Cash and cash equivalents 0 0
Short-term Investments 233 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 2,010 2,558
Debt investments, Unrealized Gains 6 10
Debt investments, Unrealized Losses (23) (27)
Debt investments, Recorded Basis 1,993 2,541
Cash and cash equivalents 0 0
Short-term Investments 1,993 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 10,652 10,763
Debt investments, Unrealized Gains 66 124
Debt investments, Unrealized Losses (73) (101)
Debt investments, Recorded Basis 10,645 10,786
Cash and cash equivalents 0 0
Short-term Investments 10,645 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,601 2,511
Debt investments, Unrealized Gains 120 65
Debt investments, Unrealized Losses 0 (5)
Debt investments, Recorded Basis 1,721 2,571
Cash and cash equivalents 0 0
Short-term Investments 101 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 152 207
Debt investments, Unrealized Gains 1 1
Debt investments, Unrealized Losses (6) (7)
Debt investments, Recorded Basis 147 201
Cash and cash equivalents 0 0
Short-term Investments 147 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 104 104
Debt investments, Unrealized Gains 0 0
Debt investments, Unrealized Losses (14) (14)
Debt investments, Recorded Basis 90 90
Cash and cash equivalents 0 0
Short-term Investments 90 90
Equity and other investments $ 0 $ 0
[1] Refer to Note 5 – Derivatives for further information on the fair value of our derivative instruments.