v3.21.2
Investment Components (Detail) - USD ($)
$ in Millions
Sep. 30, 2021
Jun. 30, 2021
Cash, Cash Equivalents and Investments [Line Items]    
Debt investments, Adjusted Cost Basis $ 119,016  
Debt investments, Recorded Basis 122,523  
Derivative, net 208 $ 258
Cash and cash equivalents 19,165 14,224
Short-term Investments 111,450 116,110
Equity Investments 6,393 5,984
Cash, cash equivalents, and investments 137,008 136,318
Equity investments    
Cash, Cash Equivalents and Investments [Line Items]    
Equity investments, Recorded Basis 7,591 6,960
Cash and cash equivalents 1,198 976
Short-term Investments 0 0
Equity Investments 6,393 5,984
Equity investments | Other    
Cash, Cash Equivalents and Investments [Line Items]    
Equity investments, Recorded Basis 5,810 5,378
Cash and cash equivalents 0 0
Short-term Investments 0 0
Equity Investments 5,810 5,378
Equity investments | Level 1    
Cash, Cash Equivalents and Investments [Line Items]    
Equity investments, Recorded Basis 1,781 1,582
Cash and cash equivalents 1,198 976
Short-term Investments 0 0
Equity Investments 583 606
Cash    
Cash, Cash Equivalents and Investments [Line Items]    
Cash 6,863 7,272
Cash and cash equivalents 6,863 7,272
Short-term Investments 0 0
Equity Investments 0 0
Derivatives, net    
Cash, Cash Equivalents and Investments [Line Items]    
Derivative, net [1] 31 78
Cash and cash equivalents [1] 0 0
Short-term Investments [1] 31 78
Equity Investments [1] 0 0
Debt investments    
Cash, Cash Equivalents and Investments [Line Items]    
Debt investments, Adjusted Cost Basis 119,016 117,966
Debt investments, Unrealized Gains 3,672 4,177
Debt investments, Unrealized Losses (165) (135)
Debt investments, Recorded Basis 122,523 122,008
Cash and cash equivalents 11,104 5,976
Short-term Investments 111,419 116,032
Equity Investments 0 0
Debt investments | Commercial Paper | Level 2    
Cash, Cash Equivalents and Investments [Line Items]    
Debt investments, Adjusted Cost Basis 8,183 4,316
Debt investments, Unrealized Gains 0 0
Debt investments, Unrealized Losses 0 0
Debt investments, Recorded Basis 8,183 4,316
Cash and cash equivalents 4,686 1,331
Short-term Investments 3,497 2,985
Equity Investments 0 0
Debt investments | Certificates of deposit | Level 2    
Cash, Cash Equivalents and Investments [Line Items]    
Debt investments, Adjusted Cost Basis 3,054 3,615
Debt investments, Unrealized Gains 0 0
Debt investments, Unrealized Losses 0 0
Debt investments, Recorded Basis 3,054 3,615
Cash and cash equivalents 2,809 2,920
Short-term Investments 245 695
Equity Investments 0 0
Debt investments | U.S. government securities | Level 1    
Cash, Cash Equivalents and Investments [Line Items]    
Debt investments, Adjusted Cost Basis 89,437 90,664
Debt investments, Unrealized Gains 3,382 3,832
Debt investments, Unrealized Losses (134) (111)
Debt investments, Recorded Basis 92,685 94,385
Cash and cash equivalents 3 1,500
Short-term Investments 92,682 92,885
Equity Investments 0 0
Debt investments | U.S. agency securities | Level 2    
Cash, Cash Equivalents and Investments [Line Items]    
Debt investments, Adjusted Cost Basis 2,943 807
Debt investments, Unrealized Gains 1 2
Debt investments, Unrealized Losses 0 0
Debt investments, Recorded Basis 2,944 809
Cash and cash equivalents 1,119 0
Short-term Investments 1,825 809
Equity Investments 0 0
Debt investments | Foreign government bonds | Level 2    
Cash, Cash Equivalents and Investments [Line Items]    
Debt investments, Adjusted Cost Basis 3,130 6,213
Debt investments, Unrealized Gains 6 9
Debt investments, Unrealized Losses (4) (2)
Debt investments, Recorded Basis 3,132 6,220
Cash and cash equivalents 2,487 225
Short-term Investments 645 5,995
Equity Investments 0 0
Debt investments | Mortgage- and asset-backed securities | Level 2    
Cash, Cash Equivalents and Investments [Line Items]    
Debt investments, Adjusted Cost Basis 3,461 3,442
Debt investments, Unrealized Gains 20 22
Debt investments, Unrealized Losses (7) (6)
Debt investments, Recorded Basis 3,474 3,458
Cash and cash equivalents 0 0
Short-term Investments 3,474 3,458
Equity Investments 0 0
Debt investments | Corporate notes and bonds | Level 2    
Cash, Cash Equivalents and Investments [Line Items]    
Debt investments, Adjusted Cost Basis 8,346 8,443
Debt investments, Unrealized Gains 205 249
Debt investments, Unrealized Losses (13) (9)
Debt investments, Recorded Basis 8,538 8,683
Cash and cash equivalents 0 0
Short-term Investments 8,538 8,683
Equity Investments 0 0
Debt investments | Corporate notes and bonds | Level 3    
Cash, Cash Equivalents and Investments [Line Items]    
Debt investments, Adjusted Cost Basis 53 63
Debt investments, Unrealized Gains 0 0
Debt investments, Unrealized Losses 0 0
Debt investments, Recorded Basis 53 63
Cash and cash equivalents 0 0
Short-term Investments 53 63
Equity Investments 0 0
Debt investments | Municipal securities | Level 2    
Cash, Cash Equivalents and Investments [Line Items]    
Debt investments, Adjusted Cost Basis 306 308
Debt investments, Unrealized Gains 58 63
Debt investments, Unrealized Losses 0 0
Debt investments, Recorded Basis 364 371
Cash and cash equivalents 0 0
Short-term Investments 364 371
Equity Investments 0 0
Debt investments | Municipal securities | Level 3    
Cash, Cash Equivalents and Investments [Line Items]    
Debt investments, Adjusted Cost Basis 103 95
Debt investments, Unrealized Gains 0 0
Debt investments, Unrealized Losses (7) (7)
Debt investments, Recorded Basis 96 88
Cash and cash equivalents 0 0
Short-term Investments 96 88
Equity Investments $ 0 $ 0
[1] Refer to Note 5 – Derivatives for further information on the fair value of our derivative instruments.