XML 90 R82.htm IDEA: XBRL DOCUMENT
v3.25.1

Stockholders' Equity - Additional Information (Detail) - USD ($) | 3 Months Ended | 9 Months Ended |  |
--- | --- | --- | --- | ---
Mar. 31, 2025 | Mar. 31, 2024 | Mar. 31, 2025 | Mar. 31, 2024 | Sep. 16, 2024 | Sep. 14, 2021
Share Repurchase Program [Line Items] |  |  |  |  |  |
Amount of shares repurchased to settle employee tax withholding related to vesting of stock awards | $ 1,300,000,000 | $ 1,400,000,000 | $ 4,100,000,000 | $ 3,900,000,000 |  |
Share Repurchase Program 2021 |  |  |  |  |  |
Share Repurchase Program [Line Items] |  |  |  |  |  |
Amount available for repurchase under the share repurchase program approved by the company's Board of Directors |  |  |  |  |  | $ 60,000,000,000
Unused amount of share repurchase program | $ 549,000,000 |  | $ 549,000,000 |  |  |
Share Repurchase Program 2024 |  |  |  |  |  |
Share Repurchase Program [Line Items] |  |  |  |  |  |
Amount available for repurchase under the share repurchase program approved by the company's Board of Directors |  |  |  |  | $ 60,000,000,000 |

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 Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 505 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481520/505-30-50-4 + Details
Name: | srt_ShareRepurchaseProgramLineItems
Namespace Prefix: | srt_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount authorized for purchase of share under share repurchase plan. Includes, but is not limited to, repurchase of stock and unit of ownership. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 505 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481520/505-30-50-4 + Details
Name: | srt_StockRepurchaseProgramAuthorizedAmount1
Namespace Prefix: | srt_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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 -Topic 230 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 15 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-15 + Details
Name: | us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount remaining authorized for purchase of share under share repurchase plan. Includes, but is not limited to, repurchase of stock and unit of ownership. + 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: | srt_ShareRepurchaseProgramAxis=msft_ShareRepurchaseProgramTwentyTwentyOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ShareRepurchaseProgramAxis=msft_ShareRepurchaseProgramTwentyTwentyFourMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |