XML 59 R47.htm IDEA: XBRL DOCUMENT
v3.22.2

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

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 https://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 https://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 https://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: |