XML 60 R47.htm IDEA: XBRL DOCUMENT
v3.21.2

Allowance for Doubtful Accounts (Detail) - Allowance for doubtful accounts - USD ($) $ in Millions | 12 Months Ended
--- | ---
Jun. 30, 2021 | Jun. 30, 2020 | Jun. 30, 2019
Valuation And Qualifying Accounts Disclosure [Line Items] |  |  |
Balance, beginning of period | $ 816 | $ 434 | $ 397
Charged to costs and other | 234 | 560 | 153
Write-offs | (252) | (178) | (116)
Balance, end of period | 798 | 816 | 434
Accounts receivable, net of allowance for doubtful accounts |  |  |
Valuation And Qualifying Accounts Disclosure [Line Items] |  |  |
Balance, beginning of period | 788 | 411 |
Balance, end of period | 751 | 788 | 411
Other Long-term Assets |  |  |
Valuation And Qualifying Accounts Disclosure [Line Items] |  |  |
Balance, beginning of period | 28 | 23 |
Balance, end of period | $ 47 | $ 28 | $ 23

X
- Definition Total of allowances and reserves, the valuation and qualifying accounts that are either netted against the cost of an asset (in order to value it at its carrying value) or that reflect a liability established to represent expected future costs, charged to costs and expenses, as well as other adjustments to the reserves that are not charged to costs and expenses. + References No definition available. + Details
Name: | msft_ValuationAllowancesAndReservesChargedToCostsAndOther
Namespace Prefix: | msft_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- References No definition available. + Details
Name: | srt_ValuationAndQualifyingAccountsDisclosureLineItems
Namespace Prefix: | srt_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of valuation and qualifying accounts and reserves. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 4 -Subparagraph (SX 210.12-09(Column B)) -URI http://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 4 -Subparagraph (SX 210.12-09(Column E)) -URI http://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690 + Details
Name: | us-gaap_ValuationAllowancesAndReservesBalance
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of decrease in valuation and qualifying accounts and reserves. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 4 -Subparagraph (SX 210.12-09(Column D)) -URI http://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690 + Details
Name: | us-gaap_ValuationAllowancesAndReservesDeductions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_ValuationAllowancesAndReservesTypeAxis=us-gaap_AllowanceForCreditLossMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=msft_AccountsReceivableNetMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=us-gaap_OtherNoncurrentAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |