XML 56 R45.htm IDEA: XBRL DOCUMENT
v3.22.4

Investment Components (Detail) - USD ($) $ in Millions | Dec. 31, 2022 | Jun. 30, 2022
--- | --- | ---
Cash Cash Equivalents And Investments [Line Items] |  |  |
Debt investments, Adjusted Cost Basis |  | $ 95,829 |
Debt investments, Recorded Basis |  | 91,109 |
Derivative, net |  | 46 | $ 226
Cash and cash equivalents |  | 15,646 | 13,931
Short-term Investments |  | 83,862 | 90,826
Equity Investments |  | 7,097 | 6,891
Cash, cash equivalents, and investments |  | 106,605 | 111,648
Equity investments |  |  |
Cash Cash Equivalents And Investments [Line Items] |  |  |
Equity investments, Recorded Basis |  | 8,179 | 8,025
Cash and cash equivalents |  | 1,082 | 1,134
Short-term Investments |  | 0 | 0
Equity Investments |  | 7,097 | 6,891
Equity investments | Other |  |  |
Cash Cash Equivalents And Investments [Line Items] |  |  |
Equity investments, Recorded Basis |  | 6,658 | 6,435
Cash and cash equivalents |  | 0 | 0
Short-term Investments |  | 0 | 0
Equity Investments |  | 6,658 | 6,435
Equity investments | Level 1 |  |  |
Cash Cash Equivalents And Investments [Line Items] |  |  |
Equity investments, Recorded Basis |  | 1,521 | 1,590
Cash and cash equivalents |  | 1,082 | 1,134
Short-term Investments |  | 0 | 0
Equity Investments |  | 439 | 456
Cash |  |  |
Cash Cash Equivalents And Investments [Line Items] |  |  |
Cash |  | 7,304 | 8,258
Cash and cash equivalents |  | 7,304 | 8,258
Short-term Investments |  | 0 | 0
Equity Investments |  | 0 | 0
Derivatives, net |  |  |
Cash Cash Equivalents And Investments [Line Items] |  |  |
Derivative, net | [1] | 13 | 8
Cash and cash equivalents | [1] | 0 | 0
Short-term Investments | [1] | 13 | 8
Equity Investments | [1] | 0 | 0
Debt Securities |  |  |
Cash Cash Equivalents And Investments [Line Items] |  |  |
Debt investments, Adjusted Cost Basis |  | 95,829 | 98,118
Debt investments, Unrealized Gains |  | 19 | 53
Debt investments, Unrealized Losses |  | (4,739) | (2,814)
Debt investments, Recorded Basis |  | 91,109 | 95,357
Cash and cash equivalents |  | 7,260 | 4,539
Short-term Investments |  | 83,849 | 90,818
Equity Investments |  | 0 | 0
Debt Securities | Commercial Paper | Level 2 |  |  |
Cash Cash Equivalents And Investments [Line Items] |  |  |
Debt investments, Adjusted Cost Basis |  | 6,423 | 2,500
Debt investments, Unrealized Gains |  | 0 | 0
Debt investments, Unrealized Losses |  | 0 | 0
Debt investments, Recorded Basis |  | 6,423 | 2,500
Cash and cash equivalents |  | 3,307 | 2,498
Short-term Investments |  | 3,116 | 2
Equity Investments |  | 0 | 0
Debt Securities | Certificates of deposit | Level 2 |  |  |
Cash Cash Equivalents And Investments [Line Items] |  |  |
Debt investments, Adjusted Cost Basis |  | 2,694 | 2,071
Debt investments, Unrealized Gains |  | 0 | 0
Debt investments, Unrealized Losses |  | 0 | 0
Debt investments, Recorded Basis |  | 2,694 | 2,071
Cash and cash equivalents |  | 2,250 | 2,032
Short-term Investments |  | 444 | 39
Equity Investments |  | 0 | 0
Debt Securities | U.S. government securities | Level 1 |  |  |
Cash Cash Equivalents And Investments [Line Items] |  |  |
Debt investments, Adjusted Cost Basis |  | 67,941 | 79,696
Debt investments, Unrealized Gains |  | 0 | 29
Debt investments, Unrealized Losses |  | (3,963) | (2,178)
Debt investments, Recorded Basis |  | 63,978 | 77,547
Cash and cash equivalents |  | 1,029 | 9
Short-term Investments |  | 62,949 | 77,538
Equity Investments |  | 0 | 0
Debt Securities | U.S. agency securities | Level 2 |  |  |
Cash Cash Equivalents And Investments [Line Items] |  |  |
Debt investments, Adjusted Cost Basis |  | 5,525 | 419
Debt investments, Unrealized Gains |  | 0 | 0
Debt investments, Unrealized Losses |  | (6) | (9)
Debt investments, Recorded Basis |  | 5,519 | 410
Cash and cash equivalents |  | 674 | 0
Short-term Investments |  | 4,845 | 410
Equity Investments |  | 0 | 0
Debt Securities | Foreign government bonds | Level 2 |  |  |
Cash Cash Equivalents And Investments [Line Items] |  |  |
Debt investments, Adjusted Cost Basis |  | 491 | 506
Debt investments, Unrealized Gains |  | 1 | 0
Debt investments, Unrealized Losses |  | (27) | (24)
Debt investments, Recorded Basis |  | 465 | 482
Cash and cash equivalents |  | 0 | 0
Short-term Investments |  | 465 | 482
Equity Investments |  | 0 | 0
Debt Securities | Mortgage- and asset-backed securities | Level 2 |  |  |
Cash Cash Equivalents And Investments [Line Items] |  |  |
Debt investments, Adjusted Cost Basis |  | 883 | 727
Debt investments, Unrealized Gains |  | 1 | 1
Debt investments, Unrealized Losses |  | (43) | (30)
Debt investments, Recorded Basis |  | 841 | 698
Cash and cash equivalents |  | 0 | 0
Short-term Investments |  | 841 | 698
Equity Investments |  | 0 | 0
Debt Securities | Corporate notes and bonds | Level 2 |  |  |
Cash Cash Equivalents And Investments [Line Items] |  |  |
Debt investments, Adjusted Cost Basis |  | 11,310 | 11,661
Debt investments, Unrealized Gains |  | 8 | 4
Debt investments, Unrealized Losses |  | (676) | (554)
Debt investments, Recorded Basis |  | 10,642 | 11,111
Cash and cash equivalents |  | 0 | 0
Short-term Investments |  | 10,642 | 11,111
Equity Investments |  | 0 | 0
Debt Securities | Corporate notes and bonds | Level 3 |  |  |
Cash Cash Equivalents And Investments [Line Items] |  |  |
Debt investments, Adjusted Cost Basis |  | 88 | 67
Debt investments, Unrealized Gains |  | 1 | 0
Debt investments, Unrealized Losses |  | 0 | 0
Debt investments, Recorded Basis |  | 89 | 67
Cash and cash equivalents |  | 0 | 0
Short-term Investments |  | 89 | 67
Equity Investments |  | 0 | 0
Debt Securities | Municipal securities | Level 2 |  |  |
Cash Cash Equivalents And Investments [Line Items] |  |  |
Debt investments, Adjusted Cost Basis |  | 370 | 368
Debt investments, Unrealized Gains |  | 8 | 19
Debt investments, Unrealized Losses |  | (17) | (13)
Debt investments, Recorded Basis |  | 361 | 374
Cash and cash equivalents |  | 0 | 0
Short-term Investments |  | 361 | 374
Equity Investments |  | 0 | 0
Debt Securities | Municipal securities | Level 3 |  |  |
Cash Cash Equivalents And Investments [Line Items] |  |  |
Debt investments, Adjusted Cost Basis |  | 104 | 103
Debt investments, Unrealized Gains |  | 0 | 0
Debt investments, Unrealized Losses |  | (7) | (6)
Debt investments, Recorded Basis |  | 97 | 97
Cash and cash equivalents |  | 0 | 0
Short-term Investments |  | 97 | 97
Equity Investments |  | $ 0 | $ 0
[1] | Refer to Note 5 – Derivatives for further information on the fair value of our derivative instruments.

X
- Definition Cash, cash equivalents, and investments. + References No definition available. + Details
Name: | msft_CashCashEquivalentsAndInvestments
Namespace Prefix: | msft_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Cash, Cash Equivalents and Investments [Line Items] + References No definition available. + Details
Name: | msft_CashCashEquivalentsAndInvestmentsLineItems
Namespace Prefix: | msft_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, before tax, of unrealized gain in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, before tax, of unrealized loss in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(6)) -URI https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=124260329&loc=d3e26610-111562 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (aa) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleSecuritiesDebtSecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Excludes cash and cash equivalents within disposal group and discontinued operation. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 946 -SubTopic 210 -Section 45 -Paragraph 20 -URI https://asc.fasb.org/extlink&oid=118262064&loc=SL116631418-115840 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 852 -SubTopic 10 -Section 55 -Paragraph 10 -URI https://asc.fasb.org/extlink&oid=84165509&loc=d3e56426-112766 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 946 -SubTopic 210 -Section 45 -Paragraph 21 -URI https://asc.fasb.org/extlink&oid=118262064&loc=SL116631419-115840 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(1)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_Cash
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Excludes cash and cash equivalents within disposal group and discontinued operation. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 4 -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3044-108585 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section 45 -Paragraph 1 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(1)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_CashAndCashEquivalentsAtCarryingValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value, after the effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets not subject to a master netting arrangement and not elected to be offset. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 55 -Paragraph 10 -URI https://asc.fasb.org/extlink&oid=99393222&loc=SL20226008-175313 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 55 -Paragraph 22 -URI https://asc.fasb.org/extlink&oid=99393222&loc=SL20226052-175313 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 10 -URI https://asc.fasb.org/extlink&oid=123594938&loc=d3e13433-108611 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312 + Details
Name: | us-gaap_DerivativeAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI), classified as noncurrent. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 45 -Paragraph 1A -URI https://asc.fasb.org/extlink&oid=123594786&loc=SL75136599-209740 + Details
Name: | us-gaap_EquitySecuritiesFVNINoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The total amount of investments that are intended to be held for an extended period of time (longer than one operating cycle). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(12)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LongTermInvestments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of investments including trading securities, available-for-sale securities, held-to-maturity securities, and short-term investments classified as other and current. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(4)) -URI https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(5)) -URI https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(8)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(1)(g)) -URI https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910 + Details
Name: | us-gaap_ShortTermInvestments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_EquitySecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_MeasurementInputTypeAxis=msft_OtherMeasurementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CashMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_DerivativeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByAssetClassAxis=us-gaap_DebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CommercialPaperMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel2Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CertificatesOfDepositMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USTreasurySecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USGovernmentAgenciesDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_ForeignGovernmentDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_AssetBackedSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CorporateDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel3Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USStatesAndPoliticalSubdivisionsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |