v3.25.4

Accounting Policies - Additional Information (Detail) - USD ($) $ in Billions | Dec. 31, 2025 | Jun. 30, 2025
--- | --- | ---
Significant Accounting Policies [Line Items] |  |
Long-term accounts receivable, net of allowance for doubtful accounts | $ 5.3 | $ 5.2
Other receivables related to purchase of components | 15.1 | 8.2
Financing receivables, net | $ 2.7 | $ 4.3
OpenAI Global, LLC |  |
Significant Accounting Policies [Line Items] |  |
Equity method of accounting investment percentage | 27.00% |
Total funding commitments | $ 13.0 |
Amount funded | $ 11.7 |

X
- Definition Equity method investments funded. + References No definition available. + Details
Name: | msft_EquityMethodInvestmentsFunded
Namespace Prefix: | msft_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Total funding commitments made related to equity method investments. + References No definition available. + Details
Name: | msft_EquityMethodInvestmentsTotalFundingCommitments
Namespace Prefix: | msft_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, after allowance for credit loss, of financing receivable. + References No definition available. + Details
Name: | msft_FinanceReceivablesNet
Namespace Prefix: | msft_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Other receivables related to purchase of components. + References No definition available. + Details
Name: | msft_OtherReceivablesRelatedToPurchaseOfComponents
Namespace Prefix: | msft_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Significant accounting policies. + References No definition available. + Details
Name: | msft_SignificantAccountingPoliciesLineItems
Namespace Prefix: | msft_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, after allowance for credit loss, of right to consideration from customer for product sold and service rendered in normal course of business, classified as noncurrent. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 310 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481990/310-10-45-2 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(9)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478546/942-210-S99-1 + Details
Name: | us-gaap_AccountsReceivableNetNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The percentage of ownership of common stock or equity participation in the investee accounted for under the equity method of accounting. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 28 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-28 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 323 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481687/323-10-50-3 + Details
Name: | us-gaap_EquityMethodInvestmentOwnershipPercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis=msft_OpenAIGlobalLlcMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |