v3.25.2
Investment Components (Detail) - USD ($)
$ in Millions
Jun. 30, 2025
Jun. 30, 2024
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis $ 85,589  
Debt investments, Recorded Basis 84,259  
Derivative, net 500 $ 180
Cash and cash equivalents 30,242 18,315
Short-term Investments 64,323 57,228
Equity and other investments 15,405 14,600
Cash, cash equivalents, and investments 109,970 90,143
Equity Securities    
Cash Cash Equivalents And Investments [Line Items]    
Equity investments, Recorded Basis 13,718 13,661
Cash and cash equivalents 1,045 561
Short-term Investments 0 0
Equity and other investments 12,673 13,100
Equity Securities | Other    
Cash Cash Equivalents And Investments [Line Items]    
Equity investments, Recorded Basis 9,141 10,114
Cash and cash equivalents 0 0
Short-term Investments 0 0
Equity and other investments 9,141 10,114
Equity Securities | Level 1    
Cash Cash Equivalents And Investments [Line Items]    
Equity investments, Recorded Basis 4,577 3,547
Cash and cash equivalents 1,045 561
Short-term Investments 0 0
Equity and other investments 3,532 2,986
Cash    
Cash Cash Equivalents And Investments [Line Items]    
Cash 11,711 11,571
Cash and cash equivalents 11,711 11,571
Short-term Investments 0 0
Equity and other investments 0 0
Derivatives, net    
Cash Cash Equivalents And Investments [Line Items]    
Derivative, net [1] 282 12
Cash and cash equivalents [1] 0 0
Short-term Investments [1] 10 12
Equity and other investments [1] 272 0
Debt Securities    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 85,589 68,209
Debt investments, Unrealized Gains 295 38
Debt investments, Unrealized Losses (1,625) (3,348)
Debt investments, Recorded Basis 84,259 64,899
Cash and cash equivalents 17,486 6,183
Short-term Investments 64,313 57,216
Equity and other investments 2,460 1,500
Debt Securities | Commercial Paper | Level 2    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 10,880 4,666
Debt investments, Unrealized Gains 0 0
Debt investments, Unrealized Losses 0 0
Debt investments, Recorded Basis 10,880 4,666
Cash and cash equivalents 9,939 4,666
Short-term Investments 941 0
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 2,653 1,547
Debt investments, Unrealized Gains 0 0
Debt investments, Unrealized Losses 0 0
Debt investments, Recorded Basis 2,653 1,547
Cash and cash equivalents 2,309 1,503
Short-term Investments 344 44
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 52,878 49,603
Debt investments, Unrealized Gains 71 4
Debt investments, Unrealized Losses (1,462) (2,948)
Debt investments, Recorded Basis 51,487 46,659
Cash and cash equivalents 4,742 14
Short-term Investments 46,745 46,645
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,686 17
Debt investments, Unrealized Gains 0 0
Debt investments, Unrealized Losses 0 0
Debt investments, Recorded Basis 2,686 17
Cash and cash equivalents 496 0
Short-term Investments 2,190 17
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 349 319
Debt investments, Unrealized Gains 24 3
Debt investments, Unrealized Losses (9) (16)
Debt investments, Recorded Basis 364 306
Cash and cash equivalents 0 0
Short-term Investments 364 306
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,558 944
Debt investments, Unrealized Gains 10 3
Debt investments, Unrealized Losses (27) (35)
Debt investments, Recorded Basis 2,541 912
Cash and cash equivalents 0 0
Short-term Investments 2,541 912
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,763 9,106
Debt investments, Unrealized Gains 124 28
Debt investments, Unrealized Losses (101) (318)
Debt investments, Recorded Basis 10,786 8,816
Cash and cash equivalents 0 0
Short-term Investments 10,786 8,816
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 2,511 1,641
Debt investments, Unrealized Gains 65 0
Debt investments, Unrealized Losses (5) (1)
Debt investments, Recorded Basis 2,571 1,640
Cash and cash equivalents 0 0
Short-term Investments 111 140
Equity and other investments 2,460 1,500
Debt Securities | Municipal securities | Level 2    
Cash Cash Equivalents And Investments [Line Items]    
Debt investments, Adjusted Cost Basis 207 262
Debt investments, Unrealized Gains 1 0
Debt investments, Unrealized Losses (7) (13)
Debt investments, Recorded Basis 201 249
Cash and cash equivalents 0 0
Short-term Investments 201 249
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) (17)
Debt investments, Recorded Basis 90 87
Cash and cash equivalents 0 0
Short-term Investments 90 87
Equity and other investments $ 0 $ 0
[1] Refer to Note 5 – Derivatives for further information on the fair value of our derivative instruments.