XML 107 R102.htm IDEA: XBRL DOCUMENT
v3.24.3

Share Repurchases (Detail) - USD ($) $ in Millions | 3 Months Ended | 12 Months Ended
--- | --- | ---
Jun. 30, 2024 | Mar. 31, 2024 | Dec. 31, 2023 | Sep. 30, 2023 | Jun. 30, 2023 | Mar. 31, 2023 | Dec. 31, 2022 | Sep. 30, 2022 | Jun. 30, 2022 | Mar. 31, 2022 | Dec. 31, 2021 | Sep. 30, 2021 | Jun. 30, 2024 | Jun. 30, 2023 | Jun. 30, 2022
Share Repurchases [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Shares of common stock repurchased |  |  |  |  |  |  |  |  |  |  |  |  | 32,000,000 | 69,000,000 | 95,000,000
Share Repurchase Program 2019 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Share Repurchases [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Shares of common stock repurchased |  |  |  |  |  |  |  |  |  |  |  | 21,000,000 |  |  |
Value of common stock repurchased |  |  |  |  |  |  |  |  |  |  |  | $ 6,200 |  |  |
Share Repurchase Program 2019 and 2021 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Share Repurchases [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Shares of common stock repurchased |  |  |  |  |  |  |  |  |  |  | 20,000,000 |  |  |  | 95,000,000
Value of common stock repurchased |  |  |  |  |  |  |  |  |  |  | $ 6,233 |  |  |  | $ 28,033
Share Repurchase Program 2021 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Share Repurchases [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Shares of common stock repurchased | 7,000,000 | 7,000,000 | 7,000,000 | 11,000,000 | 14,000,000 | 18,000,000 | 20,000,000 | 17,000,000 | 28,000,000 | 26,000,000 |  |  | 32,000,000 | 69,000,000 |
Value of common stock repurchased | $ 2,800 | $ 2,800 | $ 2,800 | $ 3,560 | $ 4,600 | $ 4,600 | $ 4,600 | $ 4,600 | $ 7,800 | $ 7,800 |  |  | $ 11,960 | $ 18,400 |

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 Number of shares that have been repurchased during the period and have not been retired and are not held in treasury. Some state laws may govern the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 2 -SubTopic 10 -Topic 505 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481112/505-10-50-2 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 505 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481004/946-505-50-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-09(4)(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483575/946-220-S99-3 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479886/946-10-S99-3 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480008/505-10-S99-1 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_StockRepurchasedDuringPeriodShares
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Equity impact of the value of stock that has been repurchased during the period and has not been retired and is not held in treasury. Some state laws may mandate the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 2 -SubTopic 10 -Topic 505 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481112/505-10-50-2 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 946 -SubTopic 830 -Name Accounting Standards Codification -Section 55 -Paragraph 11 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480167/946-830-55-11 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 205 -Name Accounting Standards Codification -Section 45 -Paragraph 4 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480767/946-205-45-4 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 505 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481004/946-505-50-2 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-09(4)(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483575/946-220-S99-3 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480008/505-10-S99-1 Reference 8: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_StockRepurchasedDuringPeriodValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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

X
- Details
Name: | us-gaap_ShareRepurchaseProgramAxis=msft_ShareRepurchaseProgramTwentyNineteenAndTwentyTwentyOneMember
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: |