XML 95 R83.htm IDEA: XBRL DOCUMENT
v3.23.2

Income Taxes - Additional Information (Detail) - USD ($) $ in Millions | 3 Months Ended | 12 Months Ended |
--- | --- | --- | ---
Sep. 30, 2021 | Mar. 31, 2021 | Jun. 30, 2023 | Jun. 30, 2022 | Jun. 30, 2021 | Jun. 30, 2020
Income Taxes [Line Items] |  |  |  |  |  |
Provision (benefit) for income taxes |  |  | $ 16,950 | $ 10,978 | $ 9,831 |
Income taxes paid, net of refunds |  |  | 23,100 | 16,000 | 13,400 |
Gross unrecognized tax benefits related to uncertain tax positions |  |  | 17,120 | 15,593 | 14,550 | $ 13,792
Gross unrecognized tax benefits related to uncertain tax positions, if recognized would affect our effective tax rates |  |  | 14,400 | 13,300 | 12,500 |
Accrued interest expense related to uncertain tax positions net of federal income tax benefits |  |  | 5,200 | 4,300 | 4,300 |
Interest expense related to uncertain tax positions, net of income tax benefits |  |  | $ 918 | $ 36 | $ 274 |
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% | 71.00% | 82.00% |
Federal |  |  |  |  |  |
Income Taxes [Line Items] |  |  |  |  |  |
Operating loss carryforwards |  |  | $ 509 |  |  |
Capital loss carryforwards |  |  | $ 456 |  |  |
Capital loss carryforwards expiration year |  |  | 2025 |  |  |
State |  |  |  |  |  |
Income Taxes [Line Items] |  |  |  |  |  |
Operating loss carryforwards |  |  | $ 1,200 |  |  |
Foreign Country |  |  |  |  |  |
Income Taxes [Line Items] |  |  |  |  |  |
Operating loss carryforwards |  |  | $ 2,300 |  |  |
Transfer of Intangible Properties |  |  |  |  |  |
Income Taxes [Line Items] |  |  |  |  |  |
Provision (benefit) for income taxes | $ (3,300) |  |  |  |  |
Earliest Tax Year |  |  |  |  |  |
Income Taxes [Line Items] |  |  |  |  |  |
Tax years impacted |  | 1996 |  |  |  |
Earliest Tax Year | Federal and State |  |  |  |  |  |
Income Taxes [Line Items] |  |  |  |  |  |
Operating loss carryforwards expiration year |  |  | 2024 |  |  |
Latest Tax Year |  |  |  |  |  |
Income Taxes [Line Items] |  |  |  |  |  |
Tax years impacted |  | 2016 |  |  |  |
Latest Tax Year | Federal and State |  |  |  |  |  |
Income Taxes [Line Items] |  |  |  |  |  |
Operating loss carryforwards expiration year |  |  | 2043 |  |  |
India Supreme Court |  |  |  |  |  |
Income Taxes [Line Items] |  |  |  |  |  |
Provision (benefit) for income taxes |  | $ (620) |  |  |  |

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 Tax year impacted by the India Supreme Court Decision. + References No definition available. + Details
Name: | msft_TaxYearIndiaSupremeCourtDecision
Namespace Prefix: | msft_
Data Type: | xbrli:gYearItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 250 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org//1943274/2147483443/250-10-50-8 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 250 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 9 -Publisher FASB -URI https://asc.fasb.org//1943274/2147483443/250-10-50-9 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-10 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SAB TOPIC 6.I.7) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479360/740-10-S99-1 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 22 -Subparagraph (h) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482810/280-10-50-22 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-04(9)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483586/944-220-S99-1 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Subparagraph (a) -SubTopic 20 -Topic 740 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482659/740-20-45-2 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(h)) -SubTopic 10 -Topic 235 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480678/235-10-S99-1 + Details
Name: | us-gaap_IncomeTaxExpenseBenefit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of cash paid during the current period to foreign, federal, state, and local authorities as taxes on income, net of any cash received during the current period as refunds for the overpayment of taxes. + References Reference 1: 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://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -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/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 2: 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/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/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/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_IndefiniteLivedIntangibleAssetsByMajorClassAxis=msft_TransferOfIntangiblePropertiesMember
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: |

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