XML 113 R100.htm IDEA: XBRL DOCUMENT
v3.21.2

Summary of Changes in Accumulated Other Comprehensive Income (Loss) by Component (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Jun. 30, 2021 | Jun. 30, 2020 | Jun. 30, 2019
Accumulated Other Comprehensive Income (Loss) [Line Items] |  |  |
Balance, beginning of period | $ 118,304 | $ 102,330 |
Accounting Standards Update [Extensible List] | us-gaap:AccountingStandardsUpdate201601Member | us-gaap:AccountingStandardsUpdate201601Member | us-gaap:AccountingStandardsUpdate201601Member
Net change related to other comprehensive income (loss) | $ (1,374) | $ 3,526 | $ 1,914
Balance, end of period | 141,988 | 118,304 | 102,330
Derivatives |  |  |
Accumulated Other Comprehensive Income (Loss) [Line Items] |  |  |
Balance, beginning of period | (38) | 0 | 173
Unrealized gains (losses), net of tax | 34 | (38) | 160
Tax expense (benefit) included in provision for income taxes | (2) | 0 | (8)
Amounts reclassified from accumulated other comprehensive income (loss) | (15) | 0 | (333)
Net change related to other comprehensive income (loss) | 19 | (38) | (173)
Balance, end of period | (19) | (38) | 0
Derivatives | Revenue |  |  |
Accumulated Other Comprehensive Income (Loss) [Line Items] |  |  |
Reclassification adjustments for (gains) losses included in earnings | (17) | 0 | (341)
Investments |  |  |
Accumulated Other Comprehensive Income (Loss) [Line Items] |  |  |
Balance, beginning of period | 5,478 | 1,488 | (850)
Unrealized gains (losses), net of tax | (2,216) | 3,987 | 2,331
Tax expense (benefit) included in provision for income taxes | 13 | (1) | (19)
Amounts reclassified from accumulated other comprehensive income (loss) | (50) | 3 | 74
Net change related to other comprehensive income (loss) | (2,266) | 3,990 | 2,405
Balance, end of period | 3,222 | 5,478 | 1,488
Investments | Cumulative effect of accounting changes |  |  |
Accumulated Other Comprehensive Income (Loss) [Line Items] |  |  |
Balance, beginning of period | 10 | 0 | (67)
Balance, end of period |  | 10 | 0
Investments | Other Income (Expense), Net |  |  |
Accumulated Other Comprehensive Income (Loss) [Line Items] |  |  |
Reclassification adjustments for (gains) losses included in earnings | (63) | 4 | 93
Translation adjustments and other |  |  |
Accumulated Other Comprehensive Income (Loss) [Line Items] |  |  |
Balance, beginning of period | (2,254) | (1,828) | (1,510)
Net change related to other comprehensive income (loss) | 873 | (426) | (318)
Balance, end of period | (1,381) | (2,254) | (1,828)
Accumulated other comprehensive income (loss) |  |  |
Accumulated Other Comprehensive Income (Loss) [Line Items] |  |  |
Balance, beginning of period | 3,186 | (340) | (2,187)
Net change related to other comprehensive income (loss) | (1,374) | 3,526 | 1,914
Balance, end of period | 1,822 | 3,186 | (340)
Accumulated other comprehensive income (loss) | Cumulative effect of accounting changes |  |  |
Accumulated Other Comprehensive Income (Loss) [Line Items] |  |  |
Balance, beginning of period | $ 10 | 0 | (67)
Balance, end of period |  | $ 10 | $ 0

X
- Definition Indicates amendment to accounting standards. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (f)(2) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (g)(1) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (f)(2) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (f)(1) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (g)(2)(i) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (h)(2) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (e)(3) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b)(2) -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b)(4) -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794 Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b)(3) -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794 Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (g)(2)(iv) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (g)(2)(iii) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 21: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (h)(1) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 22: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 23: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 24: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (c)(2) -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794 Reference 25: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (e)(4) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 26: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 27: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (g)(2) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 28: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (f)(1) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 29: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 30: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (g)(2)(ii) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 31: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 65 -Paragraph 8 -Subparagraph (d)(2) Reference 32: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 65 -Paragraph 8 -Subparagraph (d)(3) + Details
Name: | us-gaap_AccountingStandardsUpdateExtensibleList
Namespace Prefix: | us-gaap_
Data Type: | srt-types:extensibleListItemType
Balance Type: | na
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 No definition available. + Details
Name: | us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount after tax, before reclassification adjustments, of other comprehensive income (loss), attributable to parent. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 55 -Paragraph 15 -URI http://asc.fasb.org/extlink&oid=121640130&loc=d3e1436-108581 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 14A -URI http://asc.fasb.org/extlink&oid=121641772&loc=SL7669686-108580 + Details
Name: | us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount after tax of other comprehensive income (loss) attributable to parent entity. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 1B -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121641772&loc=SL7669625-108580 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 50 -Paragraph 1A -Subparagraph (c)(3) -URI http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 45 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=108774443&loc=SL4569643-111683 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 1A -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121641772&loc=SL7669619-108580 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 45 -Paragraph 19 -URI http://asc.fasb.org/extlink&oid=108774443&loc=SL4569616-111683 + Details
Name: | us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount before tax of reclassification adjustments of other comprehensive income (loss) attributable to parent. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 14A -URI http://asc.fasb.org/extlink&oid=121641772&loc=SL7669686-108580 + Details
Name: | us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount after tax of reclassification adjustments of other comprehensive income (loss) attributable to parent. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 14A -URI http://asc.fasb.org/extlink&oid=121641772&loc=SL7669686-108580 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 55 -Paragraph 15 -URI http://asc.fasb.org/extlink&oid=121640130&loc=d3e1436-108581 + Details
Name: | us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of tax expense (benefit) of reclassification adjustment from accumulated other comprehensive income (loss). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 12 -URI http://asc.fasb.org/extlink&oid=121641772&loc=d3e640-108580 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 17A -URI http://asc.fasb.org/extlink&oid=121641772&loc=SL34724391-108580 + Details
Name: | us-gaap_ReclassificationFromAociCurrentPeriodTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Total of all stockholders' equity (deficit) items, net of receivables from officers, directors, owners, and affiliates of the entity which are attributable to the parent. The amount of the economic entity's stockholders' equity attributable to the parent excludes the amount of stockholders' equity which is allocable to that ownership interest in subsidiary equity which is not attributable to the parent (noncontrolling interest, minority interest). This excludes temporary equity and is sometimes called permanent equity. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(g)(1)(ii)) -URI http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SAB Topic 4.E) -URI http://asc.fasb.org/extlink&oid=27010918&loc=d3e74512-122707 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(31)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(30)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 6: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 28 -Subparagraph (f) -URI http://asc.fasb.org/extlink&oid=75031198&loc=d3e14064-108612 Reference 7: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571 + Details
Name: | us-gaap_StockholdersEquity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_SalesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CumulativeEffectPeriodOfAdoptionAxis=srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_NonoperatingIncomeExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=msft_AccumulatedTranslationAdjustmentAndOtherMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_AccumulatedOtherComprehensiveIncomeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |