XML 61 R49.htm IDEA: XBRL DOCUMENT
v3.23.2

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

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 Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 4 -Subparagraph (SX 210.12-09(Column B)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480678/235-10-S99-4 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 4 -Subparagraph (SX 210.12-09(Column E)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480678/235-10-S99-4 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 4 -Subparagraph (SX 210.12-09(Column D)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480678/235-10-S99-4 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 4 -Subparagraph (SX 210.12-09(Column C(1))) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480678/235-10-S99-4 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 4 -Subparagraph (SX 210.12-09(Column C(2))) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480678/235-10-S99-4 + 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 -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 4 -Subparagraph (SX 210.12-09(Column B)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480678/235-10-S99-4 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 4 -Subparagraph (SX 210.12-09(Column E)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480678/235-10-S99-4 + 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 -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 4 -Subparagraph (SX 210.12-09(Column D)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480678/235-10-S99-4 + 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: |