Investment Components (Detail) - USD ($) $ in Millions | Sep. 30, 2024 | Jun. 30, 2024 |
Cash Cash Equivalents And Investments [Line Items] | | | |
Debt investments, Adjusted Cost Basis | | $ 70,356 | |
Debt investments, Recorded Basis | | 68,457 | |
Derivative, net | | 122 | $ 180 |
Cash and cash equivalents | | 20,840 | 18,315 |
Short-term Investments | | 57,588 | 57,228 |
Equity and other investments | | 15,778 | 14,600 |
Cash, cash equivalents, and investments | | 94,206 | 90,143 |
Equity Securities | | | |
Cash Cash Equivalents And Investments [Line Items] | | | |
Equity investments, Recorded Basis | | 15,162 | 13,661 |
Cash and cash equivalents | | 884 | 561 |
Short-term Investments | | 0 | 0 |
Equity and other investments | | 14,278 | 13,100 |
Equity Securities | Other | | | |
Cash Cash Equivalents And Investments [Line Items] | | | |
Equity investments, Recorded Basis | | 10,910 | 10,114 |
Cash and cash equivalents | | 0 | 0 |
Short-term Investments | | 0 | 0 |
Equity and other investments | | 10,910 | 10,114 |
Equity Securities | Level 1 | | | |
Cash Cash Equivalents And Investments [Line Items] | | | |
Equity investments, Recorded Basis | | 4,252 | 3,547 |
Cash and cash equivalents | | 884 | 561 |
Short-term Investments | | 0 | 0 |
Equity and other investments | | 3,368 | 2,986 |
Cash | | | |
Cash Cash Equivalents And Investments [Line Items] | | | |
Cash | | 10,588 | 11,571 |
Cash and cash equivalents | | 10,588 | 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] | (1) | 12 |
Cash and cash equivalents | [1] | 0 | 0 |
Short-term Investments | [1] | (1) | 12 |
Equity and other investments | [1] | 0 | 0 |
Debt Securities | | | |
Cash Cash Equivalents And Investments [Line Items] | | | |
Debt investments, Adjusted Cost Basis | | 70,356 | 68,209 |
Debt investments, Unrealized Gains | | 150 | 38 |
Debt investments, Unrealized Losses | | (2,049) | (3,348) |
Debt investments, Recorded Basis | | 68,457 | 64,899 |
Cash and cash equivalents | | 9,368 | 6,183 |
Short-term Investments | | 57,589 | 57,216 |
Equity and other investments | | 1,500 | 1,500 |
Debt Securities | Commercial Paper | Level 2 | | | |
Cash Cash Equivalents And Investments [Line Items] | | | |
Debt investments, Adjusted Cost Basis | | 6,513 | 4,666 |
Debt investments, Unrealized Gains | | 0 | 0 |
Debt investments, Unrealized Losses | | 0 | 0 |
Debt investments, Recorded Basis | | 6,513 | 4,666 |
Cash and cash equivalents | | 6,513 | 4,666 |
Short-term Investments | | 0 | 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,899 | 1,547 |
Debt investments, Unrealized Gains | | 0 | 0 |
Debt investments, Unrealized Losses | | 0 | 0 |
Debt investments, Recorded Basis | | 2,899 | 1,547 |
Cash and cash equivalents | | 2,855 | 1,503 |
Short-term Investments | | 44 | 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 | | 48,764 | 49,603 |
Debt investments, Unrealized Gains | | 16 | 4 |
Debt investments, Unrealized Losses | | (1,828) | (2,948) |
Debt investments, Recorded Basis | | 46,952 | 46,659 |
Cash and cash equivalents | | 0 | 14 |
Short-term Investments | | 46,952 | 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 | | 17 | 17 |
Debt investments, Unrealized Gains | | 0 | 0 |
Debt investments, Unrealized Losses | | 0 | 0 |
Debt investments, Recorded Basis | | 17 | 17 |
Cash and cash equivalents | | 0 | 0 |
Short-term Investments | | 17 | 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 | | 288 | 319 |
Debt investments, Unrealized Gains | | 8 | 3 |
Debt investments, Unrealized Losses | | (9) | (16) |
Debt investments, Recorded Basis | | 287 | 306 |
Cash and cash equivalents | | 0 | 0 |
Short-term Investments | | 287 | 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 | | 937 | 944 |
Debt investments, Unrealized Gains | | 10 | 3 |
Debt investments, Unrealized Losses | | (22) | (35) |
Debt investments, Recorded Basis | | 925 | 912 |
Cash and cash equivalents | | 0 | 0 |
Short-term Investments | | 925 | 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 | | 8,932 | 9,106 |
Debt investments, Unrealized Gains | | 114 | 28 |
Debt investments, Unrealized Losses | | (166) | (318) |
Debt investments, Recorded Basis | | 8,880 | 8,816 |
Cash and cash equivalents | | 0 | 0 |
Short-term Investments | | 8,880 | 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 | | 1,639 | 1,641 |
Debt investments, Unrealized Gains | | 0 | 0 |
Debt investments, Unrealized Losses | | (1) | (1) |
Debt investments, Recorded Basis | | 1,638 | 1,640 |
Cash and cash equivalents | | 0 | 0 |
Short-term Investments | | 138 | 140 |
Equity and other investments | | 1,500 | 1,500 |
Debt Securities | Municipal securities | Level 2 | | | |
Cash Cash Equivalents And Investments [Line Items] | | | |
Debt investments, Adjusted Cost Basis | | 263 | 262 |
Debt investments, Unrealized Gains | | 2 | 0 |
Debt investments, Unrealized Losses | | (8) | (13) |
Debt investments, Recorded Basis | | 257 | 249 |
Cash and cash equivalents | | 0 | 0 |
Short-term Investments | | 257 | 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 | | (15) | (17) |
Debt investments, Recorded Basis | | 89 | 87 |
Cash and cash equivalents | | 0 | 0 |
Short-term Investments | | 89 | 87 |
Equity and other investments | | $ 0 | $ 0 |
| |
[1] Refer to Note 5 – Derivatives for further information on the fair value of our derivative instruments. | |