v3.25.4

Income Taxes - Additional Information Regarding Examinations (Detail) - USD ($) $ in Billions |  | 6 Months Ended
--- | --- | ---
Sep. 26, 2023 | Dec. 31, 2025
Internal Revenue Service (IRS) |  |
Income Tax Examination [Line Items] |  |
Tax years under audit | 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 |
Tax years subject to examination |  | 2014 2015 2016 2017
Settlement payments including tax and interest | $ 28.9 |
Ireland |  |
Income Tax Examination [Line Items] |  |
Tax years subject to examination |  | 2021 2022 2023 2024 2025

X
- Definition IRS audit notices of proposed adjustment amount. + References No definition available. + Details
Name: | msft_IRSAuditNoticesOfProposedAdjustmentAmount
Namespace Prefix: | msft_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 15 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-15 + Details
Name: | us-gaap_IncomeTaxExaminationLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tax year being audited in the income tax examination, in YYYY format. + References No definition available. + Details
Name: | us-gaap_IncomeTaxExaminationYearUnderExamination
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:gYearListItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tax year that remains open to examination under enacted tax laws, in YYYY format. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 15 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-15 + Details
Name: | us-gaap_OpenTaxYear
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:gYearListItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_IncomeTaxAuthorityNameAxis=us-gaap_InternalRevenueServiceIRSMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeTaxAuthorityNameAxis=us-gaap_RevenueCommissionersIrelandMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |