v3.25.4

Dividends Declared (Detail) - USD ($) $ / shares in Units, $ in Millions | 3 Months Ended | 6 Months Ended
--- | --- | ---
Dec. 31, 2025 | Sep. 30, 2025 | Dec. 31, 2024 | Sep. 30, 2024 | Dec. 31, 2025 | Dec. 31, 2024
Dividends Payable [Line Items] |  |  |  |  |  |
Dividend Per Share | $ 0.91 | $ 0.91 | $ 0.83 | $ 0.83 | $ 1.82 | $ 1.66
Amount | $ 6,760 | $ 6,762 | $ 6,169 | $ 6,170 | $ 13,522 | $ 12,339
O2026Q1 Dividends |  |  |  |  |  |
Dividends Payable [Line Items] |  |  |  |  |  |
Declaration Date |  | Sep. 15, 2025 |  |  |  |
Record Date |  | Nov. 20, 2025 |  |  |  |
Payment Date |  | Dec. 11, 2025 |  |  |  |
O2026Q2 Dividends |  |  |  |  |  |
Dividends Payable [Line Items] |  |  |  |  |  |
Declaration Date | Dec. 02, 2025 |  |  |  |  |
Record Date | Feb. 19, 2026 |  |  |  |  |
Payment Date | Mar. 12, 2026 |  |  |  |  |
O2025Q1 Dividends |  |  |  |  |  |
Dividends Payable [Line Items] |  |  |  |  |  |
Declaration Date |  |  |  | Sep. 16, 2024 |  |
Record Date |  |  |  | Nov. 21, 2024 |  |
Payment Date |  |  |  | Dec. 12, 2024 |  |
O2025Q2 Dividends |  |  |  |  |  |
Dividends Payable [Line Items] |  |  |  |  |  |
Declaration Date |  |  | Dec. 03, 2024 |  |  |
Record Date |  |  | Feb. 20, 2025 |  |  |
Payment Date |  |  | Mar. 13, 2025 |  |  |

X
- Definition Aggregate dividends declared during the period for each share of common stock outstanding. + References Reference 1: 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 + Details
Name: | us-gaap_CommonStockDividendsPerShareDeclared
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition Date the declared dividend will be paid, in YYYY-MM-DD format. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482913/230-10-50-3 + Details
Name: | us-gaap_DividendPayableDateToBePaidDayMonthAndYear
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of paid and unpaid common stock dividends declared with the form of settlement in cash. + References Reference 1: 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 + Details
Name: | us-gaap_DividendsCommonStockCash
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Date the dividend to be paid was declared, in YYYY-MM-DD format. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482913/230-10-50-3 + Details
Name: | us-gaap_DividendsPayableDateDeclaredDayMonthAndYear
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition Date the holder must own the stock to be entitled to the dividend, in YYYY-MM-DD format. + References No definition available. + Details
Name: | us-gaap_DividendsPayableDateOfRecordDayMonthAndYear
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

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 No definition available. + Details
Name: | us-gaap_DividendsPayableLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_DividendsAxis=msft_O2026Q1DividendsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DividendsAxis=msft_O2026Q2DividendsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DividendsAxis=msft_O2025Q1DividendsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DividendsAxis=msft_O2025Q2DividendsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |