XML 58 R47.htm IDEA: XBRL DOCUMENT
v3.22.4

Unrealized Losses on Debt Investments (Detail) - USD ($) $ in Millions | Dec. 31, 2022 | Jun. 30, 2022
--- | --- | ---
Unrealized Losses on Investments [Line Items] |  |
Less than 12 Months - Fair Value | $ 48,310 | $ 69,641
Less than 12 Months - Unrealized Losses | (2,964) | (2,368)
12 Months or Greater - Fair Value | 12,485 | 3,138
12 Months or Greater - Unrealized Losses | (1,775) | (446)
Total Fair Value | 60,795 | 72,779
Total Unrealized Losses | (4,739) | (2,814)
U.S. government and agency securities |  |
Unrealized Losses on Investments [Line Items] |  |
Less than 12 Months - Fair Value | 40,516 | 59,092
Less than 12 Months - Unrealized Losses | (2,586) | (1,835)
12 Months or Greater - Fair Value | 8,890 | 2,210
12 Months or Greater - Unrealized Losses | (1,383) | (352)
Total Fair Value | 49,406 | 61,302
Total Unrealized Losses | (3,969) | (2,187)
Foreign government bonds |  |
Unrealized Losses on Investments [Line Items] |  |
Less than 12 Months - Fair Value | 365 | 418
Less than 12 Months - Unrealized Losses | (14) | (18)
12 Months or Greater - Fair Value | 94 | 27
12 Months or Greater - Unrealized Losses | (13) | (6)
Total Fair Value | 459 | 445
Total Unrealized Losses | (27) | (24)
Mortgage- and asset-backed securities |  |
Unrealized Losses on Investments [Line Items] |  |
Less than 12 Months - Fair Value | 396 | 510
Less than 12 Months - Unrealized Losses | (22) | (26)
12 Months or Greater - Fair Value | 148 | 41
12 Months or Greater - Unrealized Losses | (21) | (4)
Total Fair Value | 544 | 551
Total Unrealized Losses | (43) | (30)
Corporate notes and bonds |  |
Unrealized Losses on Investments [Line Items] |  |
Less than 12 Months - Fair Value | 6,908 | 9,443
Less than 12 Months - Unrealized Losses | (337) | (477)
12 Months or Greater - Fair Value | 3,204 | 786
12 Months or Greater - Unrealized Losses | (339) | (77)
Total Fair Value | 10,112 | 10,229
Total Unrealized Losses | (676) | (554)
Municipal securities |  |
Unrealized Losses on Investments [Line Items] |  |
Less than 12 Months - Fair Value | 125 | 178
Less than 12 Months - Unrealized Losses | (5) | (12)
12 Months or Greater - Fair Value | 149 | 74
12 Months or Greater - Unrealized Losses | (19) | (7)
Total Fair Value | 274 | 252
Total Unrealized Losses | $ (24) | $ (19)

X
- Definition Investments, Unrealized Loss Position [Line Items] + References No definition available. + Details
Name: | msft_InvestmentsUnrealizedLossPositionLineItems
Namespace Prefix: | msft_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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), in continuous unrealized loss position for more than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 50 -Paragraph 5 -URI https://asc.fasb.org/extlink&oid=124269663&loc=SL82922890-210455 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 7 -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27337-111563 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 55 -Paragraph 8 -URI https://asc.fasb.org/extlink&oid=121590138&loc=SL82922954-210456 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for 12 months or longer, without allowance for credit loss. Includes beneficial interest in securitized financial asset. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 7 -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27337-111563 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 50 -Paragraph 5 -URI https://asc.fasb.org/extlink&oid=124269663&loc=SL82922890-210455 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss
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), in continuous unrealized loss position for less than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 7 -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27337-111563 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 50 -Paragraph 5 -URI https://asc.fasb.org/extlink&oid=124269663&loc=SL82922890-210455 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 55 -Paragraph 8 -URI https://asc.fasb.org/extlink&oid=121590138&loc=SL82922954-210456 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for less than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 50 -Paragraph 5 -URI https://asc.fasb.org/extlink&oid=124269663&loc=SL82922890-210455 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 7 -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27337-111563 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss
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), in unrealized loss position without allowance for credit loss. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 6 -Subparagraph (a)(1) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27290-111563 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 50 -Paragraph 4 -Subparagraph (a)(1) -URI https://asc.fasb.org/extlink&oid=124269663&loc=SL82922888-210455 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 55 -Paragraph 8 -URI https://asc.fasb.org/extlink&oid=121590138&loc=SL82922954-210456 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in unrealized loss position, without allowance for credit loss. Includes beneficial interest in securitized financial asset. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 6 -Subparagraph (a)(2) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27290-111563 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 50 -Paragraph 4 -Subparagraph (a)(2) -URI https://asc.fasb.org/extlink&oid=124269663&loc=SL82922888-210455 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USTreasuryAndGovernmentMember
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_FinancialInstrumentAxis=us-gaap_USStatesAndPoliticalSubdivisionsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |