XML 90 R79.htm IDEA: XBRL DOCUMENT
v3.25.2

Income Taxes - Additional Information (Detail) - USD ($) $ in Millions | 12 Months Ended |
--- | --- | ---
Jun. 30, 2025 | Jun. 30, 2024 | Jun. 30, 2023 | Jun. 30, 2022
Income Taxes [Line Items] |  |  |  |
Income taxes paid, net of refunds | $ 28,700 | $ 23,400 | $ 23,100 |
Gross unrecognized tax benefits related to uncertain tax positions | 24,729 | 22,760 | 17,120 | $ 15,593
Gross unrecognized tax benefits related to uncertain tax positions, if recognized would affect our effective tax rates | 21,200 | 19,600 | 14,400 |
Accrued interest expense related to uncertain tax positions net of federal income tax benefits | 8,200 | 6,800 | 5,200 |
Interest expense related to uncertain tax positions, net of income tax benefits | $ 1,300 | $ 1,500 | $ 918 |
Regional Operating Centers |  |  |  |
Income Taxes [Line Items] |  |  |  |
Foreign earnings, taxed at rates lower than U.S. rate as a percentage of foreign income before tax | 81.00% | 83.00% | 81.00% |
Federal |  |  |  |
Income Taxes [Line Items] |  |  |  |
Operating loss carryforwards | $ 390 |  |  |
Capital loss carryforwards | $ 816 |  |  |
Capital loss carryforwards expiration year | 2030 |  |  |
State |  |  |  |
Income Taxes [Line Items] |  |  |  |
Operating loss carryforwards | $ 836 |  |  |
Foreign Country |  |  |  |
Income Taxes [Line Items] |  |  |  |
Operating loss carryforwards | $ 2,600 |  |  |
Earliest Tax Year | Federal and State |  |  |  |
Income Taxes [Line Items] |  |  |  |
Operating loss carryforwards expiration year | 2026 |  |  |
Latest Tax Year | Federal and State |  |  |  |
Income Taxes [Line Items] |  |  |  |
Operating loss carryforwards expiration year | 2045 |  |  |

X
- Definition Amount of capital loss carryforward, before tax effects, available to reduce future taxable capital gain under enacted tax laws. + References No definition available. + Details
Name: | msft_CapitalLossCarryforwards
Namespace Prefix: | msft_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Capital loss carryforwards expiration year. + References No definition available. + Details
Name: | msft_CapitalLossCarryforwardsExpirationYear
Namespace Prefix: | msft_
Data Type: | xbrli:gYearItemType
Balance Type: | na
Period Type: | duration

X
- Definition Foreign Earnings Taxed at Rates Lower Than US Rate + References No definition available. + Details
Name: | msft_ForeignEarningsTaxedAtRatesLowerThanUsRate
Namespace Prefix: | msft_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Income Taxes [Line Items] + References No definition available. + Details
Name: | msft_IncomeTaxesLineItems
Namespace Prefix: | msft_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Operating loss carryforwards expiration year. + References No definition available. + Details
Name: | msft_OperatingLossCarryforwardsExpirationYear
Namespace Prefix: | msft_
Data Type: | xbrli:gYearItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, after refund, of cash paid to foreign, federal, state, and local jurisdictions as income tax. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 230 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2A -Publisher FASB -URI https://asc.fasb.org/1943274/2147482913/230-10-50-2A Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 23 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 22 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-22 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482913/230-10-50-2 + Details
Name: | us-gaap_IncomeTaxesPaidNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of operating loss carryforward, before tax effects, available to reduce future taxable income under enacted tax laws. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-3 + Details
Name: | us-gaap_OperatingLossCarryforwards
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of unrecognized tax benefits. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 217 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482663/740-10-55-217 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 15A -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-15A Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 10B -Publisher FASB -URI https://asc.fasb.org/1943274/2147482525/740-10-45-10B + Details
Name: | us-gaap_UnrecognizedTaxBenefits
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount accrued for interest on an underpayment of income taxes and penalties related to a tax position claimed or expected to be claimed in the tax return. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 217 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482663/740-10-55-217 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 15 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-15 + Details
Name: | us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of expense for interest on an underpayment of income taxes and penalties related to a tax position claimed or expected to be claimed in the tax return. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 217 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482663/740-10-55-217 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 15 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-15 + Details
Name: | us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The total amount of unrecognized tax benefits that, if recognized, would affect the effective tax rate. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 217 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482663/740-10-55-217 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 15A -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-15A + Details
Name: | us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_IncomeTaxAuthorityAxis=msft_RegionalOperatingCentersMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeTaxAuthorityAxis=us-gaap_DomesticCountryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeTaxAuthorityAxis=us-gaap_StateAndLocalJurisdictionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeTaxAuthorityAxis=us-gaap_ForeignCountryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_TaxPeriodAxis=us-gaap_EarliestTaxYearMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeTaxAuthorityAxis=msft_FederalAndStateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_TaxPeriodAxis=us-gaap_LatestTaxYearMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |