XML 57 R46.htm IDEA: XBRL DOCUMENT
v3.25.2

Accounting Policies - Additional Information (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Jun. 30, 2025 | Jun. 30, 2024 | Jun. 30, 2023
Significant Accounting Policies [Line Items] |  |  |
Description of payment terms in contract with customer | Payment terms and conditions vary by contract type, although terms generally include a requirement of payment within 30 to 60 days. |  |
Other receivables related to purchase of components | $ 8,200 | $ 10,500 |
Financing receivables, net | 4,300 | 4,500 |
Long-term accounts receivable, net of allowance for doubtful accounts | 5,200 | 4,900 |
Advertising expense | 2,100 | $ 1,700 | $ 904
OpenAI Global, LLC |  |  |
Significant Accounting Policies [Line Items] |  |  |
Total funding commitments | $ 13,000 |  |
Maximum | Reprogrammed Interchange LLC | Inflection AI, Inc |  |  |
Significant Accounting Policies [Line Items] |  |  |
Equity interest percentage | 10.00% |  |
Maximum | Greylock Ventures | Inflection AI, Inc |  |  |
Significant Accounting Policies [Line Items] |  |  |
Equity interest percentage | 10.00% |  |
Software |  |  |
Significant Accounting Policies [Line Items] |  |  |
Estimated useful lives | 3 years |  |
Computer Equipment | Minimum |  |  |
Significant Accounting Policies [Line Items] |  |  |
Estimated useful lives | 2 years |  |
Computer Equipment | Maximum |  |  |
Significant Accounting Policies [Line Items] |  |  |
Estimated useful lives | 6 years |  |
Buildings and Improvements | Minimum |  |  |
Significant Accounting Policies [Line Items] |  |  |
Estimated useful lives | 5 years |  |
Buildings and Improvements | Maximum |  |  |
Significant Accounting Policies [Line Items] |  |  |
Estimated useful lives | 15 years |  |
Leasehold Improvements | Minimum |  |  |
Significant Accounting Policies [Line Items] |  |  |
Estimated useful lives | 3 years |  |
Leasehold Improvements | Maximum |  |  |
Significant Accounting Policies [Line Items] |  |  |
Estimated useful lives | 15 years |  |
Furniture and Fixtures | Minimum |  |  |
Significant Accounting Policies [Line Items] |  |  |
Estimated useful lives | 1 year |  |
Furniture and Fixtures | Maximum |  |  |
Significant Accounting Policies [Line Items] |  |  |
Estimated useful lives | 10 years |  |

X
- Definition Equity interest percentage. + References No definition available. + Details
Name: | msft_EquityInterestPercentage
Namespace Prefix: | msft_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Total funding commitments made related to equity method investments. + References No definition available. + Details
Name: | msft_EquityMethodInvestmentsTotalFundingCommitments
Namespace Prefix: | msft_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, after allowance for credit loss, of financing receivable. + References No definition available. + Details
Name: | msft_FinanceReceivablesNet
Namespace Prefix: | msft_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Other receivables related to purchase of components. + References No definition available. + Details
Name: | msft_OtherReceivablesRelatedToPurchaseOfComponents
Namespace Prefix: | msft_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Significant accounting policies. + References No definition available. + Details
Name: | msft_SignificantAccountingPoliciesLineItems
Namespace Prefix: | msft_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, after allowance for credit loss, of right to consideration from customer for product sold and service rendered in normal course of business, classified as noncurrent. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 310 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481990/310-10-45-2 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(9)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478546/942-210-S99-1 + Details
Name: | us-gaap_AccountsReceivableNetNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount charged to advertising expense for the period, which are expenses incurred with the objective of increasing revenue for a specified brand, product or product line. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 720 -SubTopic 35 -Name Accounting Standards Codification -Section 55 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483385/720-35-55-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 720 -SubTopic 35 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483406/720-35-50-1 + Details
Name: | us-gaap_AdvertisingExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Useful life of long lived, physical assets used in the normal conduct of business and not intended for resale, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Examples include, but not limited to, land, buildings, machinery and equipment, office equipment, furniture and fixtures, and computer equipment. + References No definition available. + Details
Name: | us-gaap_PropertyPlantAndEquipmentUsefulLife
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | instant

X
- Definition Description of payment terms in contract with customer. Includes, but is not limited to, timing of payment, existence of financing component, variability of consideration and constraint on variable consideration. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479806/606-10-50-12 + Details
Name: | us-gaap_RevenuePerformanceObligationDescriptionOfPaymentTerms
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis=msft_OpenAIGlobalLlcMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=msft_ReprogrammedInterchangeLLCMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=msft_InflectionAiIncMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=msft_GreylockVenturesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_SoftwareAndSoftwareDevelopmentCostsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_ComputerEquipmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_BuildingAndBuildingImprovementsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_LeaseholdImprovementsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_FurnitureAndFixturesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |