XML 101 R89.htm IDEA: XBRL DOCUMENT
v3.23.2

Unearned Revenue - Additional Information (Detail) $ in Billions | Jun. 30, 2023 USD ($)
--- | ---
Contract With Customer Liability [Line Items] |
Revenue allocated to remaining performance obligations | $ 229
Commercial Customers |
Contract With Customer Liability [Line Items] |
Revenue allocated to remaining performance obligations | $ 224

X
- Definition Contract with Customer Liability [Line Items] + References No definition available. + Details
Name: | msft_ContractWithCustomerLiabilityLineItems
Namespace Prefix: | msft_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of transaction price allocated to performance obligation that has not been recognized as revenue. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (a) -SubTopic 10 -Topic 606 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479806/606-10-50-13 + Details
Name: | us-gaap_RevenueRemainingPerformanceObligation
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | srt_MajorCustomersAxis=msft_CommercialCustomersMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |