v3.19.2
Investment Components (Detail) - USD ($)
$ in Millions
Jun. 30, 2019
Jun. 30, 2018
Jun. 30, 2017
Jun. 30, 2016
Cash, Cash Equivalents and Investments [Line Items]        
Debt investments, Cost Basis $ 127,747      
Debt investments, Recorded Basis 129,652      
Derivative, net 137 $ 386    
Cash and cash equivalents 11,356 11,946 $ 7,663 $ 6,510
Short-term Investments 122,463 121,822    
Equity Investments 2,649 1,862    
Cash, cash equivalents, and investments 136,468 135,630    
Equity investments        
Cash, Cash Equivalents and Investments [Line Items]        
Equity investments, Recorded Basis 3,058 2,109    
Cash and cash equivalents 409 246    
Short-term Investments 0 1    
Equity Investments 2,649 1,862    
Equity investments | Other        
Cash, Cash Equivalents and Investments [Line Items]        
Equity investments, Recorded Basis 2,085 1,558    
Cash and cash equivalents 0 0    
Short-term Investments 0 1    
Equity Investments 2,085 1,557    
Equity investments | Level 1        
Cash, Cash Equivalents and Investments [Line Items]        
Equity investments, Recorded Basis 973 533    
Cash and cash equivalents 409 246    
Short-term Investments 0 0    
Equity Investments 564 287    
Equity investments | Level 3        
Cash, Cash Equivalents and Investments [Line Items]        
Equity investments, Recorded Basis   18    
Cash and cash equivalents   0    
Short-term Investments   0    
Equity Investments   18    
Cash        
Cash, Cash Equivalents and Investments [Line Items]        
Cash 3,771 3,942    
Cash and cash equivalents 3,771 3,942    
Short-term Investments 0 0    
Equity Investments 0 0    
Derivatives, net        
Cash, Cash Equivalents and Investments [Line Items]        
Derivative, net [1] (13) 104    
Cash and cash equivalents [1] 0 0    
Short-term Investments [1] (13) 104    
Equity Investments [1] 0 0    
Debt investments        
Cash, Cash Equivalents and Investments [Line Items]        
Debt investments, Cost Basis 127,747 130,597    
Debt investments, Unrealized Gains 2,027 125    
Debt investments, Unrealized Losses (122) (1,247)    
Debt investments, Recorded Basis 129,652 129,475    
Cash and cash equivalents 7,176 7,758    
Short-term Investments 122,476 121,717    
Equity Investments 0 0    
Debt investments | Commercial Paper | Level 2        
Cash, Cash Equivalents and Investments [Line Items]        
Debt investments, Cost Basis 2,211 2,513    
Debt investments, Unrealized Gains 0 0    
Debt investments, Unrealized Losses 0 0    
Debt investments, Recorded Basis 2,211 2,513    
Cash and cash equivalents 1,773 2,215    
Short-term Investments 438 298    
Equity Investments 0 0    
Debt investments | Certificates of deposit | Level 2        
Cash, Cash Equivalents and Investments [Line Items]        
Debt investments, Cost Basis 2,018 2,058    
Debt investments, Unrealized Gains 0 0    
Debt investments, Unrealized Losses 0 0    
Debt investments, Recorded Basis 2,018 2,058    
Cash and cash equivalents 1,430 1,865    
Short-term Investments 588 193    
Equity Investments 0 0    
Debt investments | U.S. government securities | Level 1        
Cash, Cash Equivalents and Investments [Line Items]        
Debt investments, Cost Basis 104,925 108,120    
Debt investments, Unrealized Gains 1,854 62    
Debt investments, Unrealized Losses (104) (1,167)    
Debt investments, Recorded Basis 106,675 107,015    
Cash and cash equivalents 769 2,280    
Short-term Investments 105,906 104,735    
Equity Investments 0 0    
Debt investments | U.S. agency securities | Level 2        
Cash, Cash Equivalents and Investments [Line Items]        
Debt investments, Cost Basis 988 1,742    
Debt investments, Unrealized Gains 0 0    
Debt investments, Unrealized Losses 0 0    
Debt investments, Recorded Basis 988 1,742    
Cash and cash equivalents 698 1,398    
Short-term Investments 290 344    
Equity Investments 0 0    
Debt investments | Foreign government bonds | Level 2        
Cash, Cash Equivalents and Investments [Line Items]        
Debt investments, Cost Basis 6,350 5,063    
Debt investments, Unrealized Gains 4 1    
Debt investments, Unrealized Losses (8) (10)    
Debt investments, Recorded Basis 6,346 5,054    
Cash and cash equivalents 2,506 0    
Short-term Investments 3,840 5,054    
Equity Investments 0 0    
Debt investments | Foreign government bonds | Level 1        
Cash, Cash Equivalents and Investments [Line Items]        
Debt investments, Cost Basis   22    
Debt investments, Unrealized Gains   0    
Debt investments, Unrealized Losses   0    
Debt investments, Recorded Basis   22    
Cash and cash equivalents   0    
Short-term Investments   22    
Equity Investments   0    
Debt investments | Mortgage- and asset-backed securities | Level 2        
Cash, Cash Equivalents and Investments [Line Items]        
Debt investments, Cost Basis 3,554 3,864    
Debt investments, Unrealized Gains 10 4    
Debt investments, Unrealized Losses (3) (13)    
Debt investments, Recorded Basis 3,561 3,855    
Cash and cash equivalents 0 0    
Short-term Investments 3,561 3,855    
Equity Investments 0 0    
Debt investments | Corporate notes and bonds | Level 2        
Cash, Cash Equivalents and Investments [Line Items]        
Debt investments, Cost Basis 7,437 6,929    
Debt investments, Unrealized Gains 111 21    
Debt investments, Unrealized Losses (7) (56)    
Debt investments, Recorded Basis 7,541 6,894    
Cash and cash equivalents 0 0    
Short-term Investments 7,541 6,894    
Equity Investments 0 0    
Debt investments | Corporate notes and bonds | Level 3        
Cash, Cash Equivalents and Investments [Line Items]        
Debt investments, Cost Basis 15 15    
Debt investments, Unrealized Gains 0 0    
Debt investments, Unrealized Losses 0 0    
Debt investments, Recorded Basis 15 15    
Cash and cash equivalents 0 0    
Short-term Investments 15 15    
Equity Investments 0 0    
Debt investments | Municipal securities | Level 2        
Cash, Cash Equivalents and Investments [Line Items]        
Debt investments, Cost Basis 242 271    
Debt investments, Unrealized Gains 48 37    
Debt investments, Unrealized Losses 0 (1)    
Debt investments, Recorded Basis 290 307    
Cash and cash equivalents 0 0    
Short-term Investments 290 307    
Equity Investments 0 $ 0    
Debt investments | Municipal securities | Level 3        
Cash, Cash Equivalents and Investments [Line Items]        
Debt investments, Cost Basis 7      
Debt investments, Unrealized Gains 0      
Debt investments, Unrealized Losses 0      
Debt investments, Recorded Basis 7      
Cash and cash equivalents 0      
Short-term Investments 7      
Equity Investments $ 0      
[1] Refer to Note 5 – Derivatives for further information on the fair value of our derivative instruments.