XML 92 R81.htm IDEA: XBRL DOCUMENT
v3.22.1

Stockholders' Equity - Additional Information (Detail) - USD ($) | 3 Months Ended | 9 Months Ended |  |
--- | --- | --- | --- | ---
Mar. 31, 2022 | Mar. 31, 2021 | Mar. 31, 2022 | Mar. 31, 2021 | Sep. 14, 2021 | Sep. 18, 2019
Share Repurchases [Line Items] |  |  |  |  |  |
Amount of shares repurchased to settle employee tax withholding related to vesting of stock awards | $ 1,000,000,000.0 | $ 1,100,000,000 | $ 3,700,000,000 | $ 3,400,000,000 |  |
Share Repurchase Program 2019 |  |  |  |  |  |
Share Repurchases [Line Items] |  |  |  |  |  |
Amount available for repurchase under the share repurchase program approved by the company's Board of Directors |  |  |  |  |  | $ 40,000,000,000.0
Share Repurchase Program 2021 |  |  |  |  |  |
Share Repurchases [Line Items] |  |  |  |  |  |
Amount available for repurchase under the share repurchase program approved by the company's Board of Directors |  |  |  |  | $ 60,000,000,000.0 |
Unused amount of share repurchase program | $ 48,500,000,000 |  | $ 48,500,000,000 |  |  |

X
- Definition Share Repurchases [Line Items] + References No definition available. + Details
Name: | msft_ShareRepurchasesLineItems
Namespace Prefix: | msft_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cash outflow to satisfy grantee's tax withholding obligation for award under share-based payment arrangement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=123570139&loc=d3e3291-108585 + Details
Name: | us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of stock repurchase plan authorized. + References No definition available. + Details
Name: | us-gaap_StockRepurchaseProgramAuthorizedAmount1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount remaining of a stock repurchase plan authorized. + References No definition available. + Details
Name: | us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_ShareRepurchaseProgramAxis=msft_ShareRepurchaseProgramTwentyNineteenMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ShareRepurchaseProgramAxis=msft_ShareRepurchaseProgramTwentyTwentyOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |