<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:msft="http://www.microsoft.com/20251231"
  xmlns:us-gaap-ebp="http://fasb.org/us-gaap-ebp/2025"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="msft-20251231.xsd" xlink:type="simple"/>
    <context id="C_93991f28-d2a2-40db-b27e-2f8d88136cb3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000789019</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">msft:EBP001Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2025-12-31</instant>
        </period>
    </context>
    <context id="C_a4242de4-9f80-40b3-9c69-ee4c5828ff80">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000789019</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">msft:EBP001Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="C_d3210ed2-a8c7-4473-9f0a-65558b946d64">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000789019</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">msft:EBP001Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="C_d6525b76-434a-4cc6-a841-bfe82589339f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000789019</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">msft:EBP001Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-01-01</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="C_f522fd05-fffa-495f-b861-eee7e797ecf4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000789019</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">msft:EBP001Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2024-12-31</instant>
        </period>
    </context>
    <context id="C_518b07fd-7afe-4f3e-907d-8927ffc52659">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000789019</identifier>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="C_757f7f25-2ba7-410a-8ea3-4b42ad706963">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000789019</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">msft:EBP001Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-12-31</instant>
        </period>
    </context>
    <context id="C_76a056b6-e13e-4ef5-b0e6-15a398cd35e1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000789019</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">msft:EBP001Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2023-12-31</instant>
        </period>
    </context>
    <unit id="U_pure">
        <measure>pure</measure>
    </unit>
    <unit id="U_shares">
        <measure>shares</measure>
    </unit>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:CurrentFiscalYearEndDate
      contextRef="C_518b07fd-7afe-4f3e-907d-8927ffc52659"
      id="F_2ace0717-439d-457e-aecd-d91fa58fa9e5">--12-31</dei:CurrentFiscalYearEndDate>
    <dei:AmendmentFlag
      contextRef="C_518b07fd-7afe-4f3e-907d-8927ffc52659"
      id="F_8d8a144c-fb96-4c46-b5ac-018053644f25">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="C_518b07fd-7afe-4f3e-907d-8927ffc52659"
      id="F_93e4babf-74a2-4192-9500-e9f4c72aa0e7">0000789019</dei:EntityCentralIndexKey>
    <dei:DocumentFiscalPeriodFocus
      contextRef="C_518b07fd-7afe-4f3e-907d-8927ffc52659"
      id="F_87cf7e8d-2dc0-4073-a299-68311bd63a33">FY</dei:DocumentFiscalPeriodFocus>
    <dei:DocumentType
      contextRef="C_518b07fd-7afe-4f3e-907d-8927ffc52659"
      id="F_44553460-5430-4efe-9954-24ca1f58efa2">11-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_518b07fd-7afe-4f3e-907d-8927ffc52659"
      id="F_e4aec92a-0729-414b-b329-bff4b1e292bd">2025-12-31</dei:DocumentPeriodEndDate>
    <dei:DocumentFiscalYearFocus
      contextRef="C_518b07fd-7afe-4f3e-907d-8927ffc52659"
      id="F_48ce3199-3ad2-4604-839a-f19877636381">2025</dei:DocumentFiscalYearFocus>
    <dei:EntityRegistrantName
      contextRef="C_518b07fd-7afe-4f3e-907d-8927ffc52659"
      id="F_9edf1de0-c9e0-4f98-8459-7933a3c0b064">Microsoft Corporation</dei:EntityRegistrantName>
    <us-gaap-ebp:EmployeeBenefitPlanCash
      contextRef="C_93991f28-d2a2-40db-b27e-2f8d88136cb3"
      decimals="0"
      id="F_218adaf0-8cce-4dcb-9d99-62db17056e98"
      unitRef="U_USD">62890113</us-gaap-ebp:EmployeeBenefitPlanCash>
    <us-gaap-ebp:EmployeeBenefitPlanCash
      contextRef="C_f522fd05-fffa-495f-b861-eee7e797ecf4"
      decimals="0"
      id="F_68212f8b-e00f-4277-a009-c709a096f387"
      unitRef="U_USD">55640675</us-gaap-ebp:EmployeeBenefitPlanCash>
    <us-gaap-ebp:EmployeeBenefitPlanAsset
      contextRef="C_93991f28-d2a2-40db-b27e-2f8d88136cb3"
      decimals="0"
      id="F_d8728578-8b33-4125-a09e-26e36894840f"
      unitRef="U_USD">62890113</us-gaap-ebp:EmployeeBenefitPlanAsset>
    <us-gaap-ebp:EmployeeBenefitPlanAsset
      contextRef="C_f522fd05-fffa-495f-b861-eee7e797ecf4"
      decimals="0"
      id="F_2ffda756-0f17-44eb-8b82-3d67218841f9"
      unitRef="U_USD">55640675</us-gaap-ebp:EmployeeBenefitPlanAsset>
    <us-gaap-ebp:EmployeeBenefitPlanParticipantLiability
      contextRef="C_93991f28-d2a2-40db-b27e-2f8d88136cb3"
      decimals="0"
      id="F_6db1a146-eadc-46bd-b746-e2218da6b7f3"
      unitRef="U_USD">62890113</us-gaap-ebp:EmployeeBenefitPlanParticipantLiability>
    <us-gaap-ebp:EmployeeBenefitPlanParticipantLiability
      contextRef="C_f522fd05-fffa-495f-b861-eee7e797ecf4"
      decimals="0"
      id="F_98325cbb-15f2-4241-ad5f-a7c1928b02fb"
      unitRef="U_USD">55640675</us-gaap-ebp:EmployeeBenefitPlanParticipantLiability>
    <us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit
      contextRef="C_93991f28-d2a2-40db-b27e-2f8d88136cb3"
      decimals="0"
      id="F_fe8046b4-cb44-417f-96f3-c71f3f1a587f"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit>
    <us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit
      contextRef="C_f522fd05-fffa-495f-b861-eee7e797ecf4"
      decimals="0"
      id="F_c13c9a08-0a4d-4ace-b30d-29d38ac62601"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit>
    <msft:EmployeeBenefitPlanLiabilitiesAndPlanEquity
      contextRef="C_93991f28-d2a2-40db-b27e-2f8d88136cb3"
      decimals="0"
      id="F_dcb4afde-5c7b-46b1-b687-0a9924c4cafa"
      unitRef="U_USD">62890113</msft:EmployeeBenefitPlanLiabilitiesAndPlanEquity>
    <msft:EmployeeBenefitPlanLiabilitiesAndPlanEquity
      contextRef="C_f522fd05-fffa-495f-b861-eee7e797ecf4"
      decimals="0"
      id="F_38531866-da1d-4fa9-8a54-aa30519c0d3e"
      unitRef="U_USD">55640675</msft:EmployeeBenefitPlanLiabilitiesAndPlanEquity>
    <msft:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForParticipantContributionExcludingRolloverNetOfRefunds
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      decimals="0"
      id="F_3156276f-871c-4390-a4fe-493f94792e30"
      unitRef="U_USD">2096761010</msft:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForParticipantContributionExcludingRolloverNetOfRefunds>
    <msft:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForParticipantContributionExcludingRolloverNetOfRefunds
      contextRef="C_a4242de4-9f80-40b3-9c69-ee4c5828ff80"
      decimals="0"
      id="F_520924f0-3b4c-42f7-a1bc-1a75829d248b"
      unitRef="U_USD">2046752408</msft:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForParticipantContributionExcludingRolloverNetOfRefunds>
    <msft:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForParticipantContributionExcludingRolloverNetOfRefunds
      contextRef="C_d6525b76-434a-4cc6-a841-bfe82589339f"
      decimals="0"
      id="F_73262efe-2117-4a90-a30e-0c3e039b4c90"
      unitRef="U_USD">2027535838</msft:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForParticipantContributionExcludingRolloverNetOfRefunds>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncrease
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      decimals="0"
      id="F_ea28074b-f691-4be2-af44-a2588b3988c5"
      unitRef="U_USD">2096761010</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncrease>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncrease
      contextRef="C_a4242de4-9f80-40b3-9c69-ee4c5828ff80"
      decimals="0"
      id="F_ec3c8e4d-c40a-4286-829d-33591d37adfc"
      unitRef="U_USD">2046752408</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncrease>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncrease
      contextRef="C_d6525b76-434a-4cc6-a841-bfe82589339f"
      decimals="0"
      id="F_ffaf85f1-a2bf-4254-bd5e-2ac2c522aaa5"
      unitRef="U_USD">2027535838</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncrease>
    <msft:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForCostOfSharesPurchased
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      decimals="0"
      id="F_f44d6399-e848-4225-90d6-e7ff97f7fde5"
      unitRef="U_USD">2033870897</msft:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForCostOfSharesPurchased>
    <msft:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForCostOfSharesPurchased
      contextRef="C_a4242de4-9f80-40b3-9c69-ee4c5828ff80"
      decimals="0"
      id="F_dd238193-1fcf-490d-bff2-ad6d4cefa031"
      unitRef="U_USD">1991111733</msft:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForCostOfSharesPurchased>
    <msft:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForCostOfSharesPurchased
      contextRef="C_d6525b76-434a-4cc6-a841-bfe82589339f"
      decimals="0"
      id="F_243251d2-1a62-4838-b013-857d1489e48e"
      unitRef="U_USD">1978848478</msft:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForCostOfSharesPurchased>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPaymentToParticipant
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      decimals="0"
      id="F_e3418a3c-65dc-4fe8-9404-a3981ab8d3fe"
      unitRef="U_USD">62890113</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPaymentToParticipant>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPaymentToParticipant
      contextRef="C_a4242de4-9f80-40b3-9c69-ee4c5828ff80"
      decimals="0"
      id="F_57ee443c-2f4a-43cf-b165-c8a1bbf5b3e8"
      unitRef="U_USD">55640675</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPaymentToParticipant>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPaymentToParticipant
      contextRef="C_d6525b76-434a-4cc6-a841-bfe82589339f"
      decimals="0"
      id="F_0517113a-3c84-461b-962b-7142959ad328"
      unitRef="U_USD">48687360</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPaymentToParticipant>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecrease
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      decimals="0"
      id="F_d5ad769f-dd4e-419b-8df7-03e851f4867c"
      unitRef="U_USD">2096761010</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecrease>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecrease
      contextRef="C_a4242de4-9f80-40b3-9c69-ee4c5828ff80"
      decimals="0"
      id="F_290cee60-a62a-44ab-bab2-87f0f35bd02f"
      unitRef="U_USD">2046752408</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecrease>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecrease
      contextRef="C_d6525b76-434a-4cc6-a841-bfe82589339f"
      decimals="0"
      id="F_ada2e9f3-f751-40f4-be72-03a8cd618bf2"
      unitRef="U_USD">2027535838</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecrease>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecrease
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      decimals="0"
      id="F_38e9b5f3-f4d1-44c8-b015-9b9fe1f478e0"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecrease>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecrease
      contextRef="C_a4242de4-9f80-40b3-9c69-ee4c5828ff80"
      decimals="0"
      id="F_ffb71997-9989-4c99-a6c5-af728d5b15d2"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecrease>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecrease
      contextRef="C_d6525b76-434a-4cc6-a841-bfe82589339f"
      decimals="0"
      id="F_a6d10a82-85db-4b87-87f8-37df5a3706e0"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecrease>
    <us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit
      contextRef="C_f522fd05-fffa-495f-b861-eee7e797ecf4"
      decimals="0"
      id="F_0225e949-2277-4a1d-b915-1093eb438a39"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit>
    <us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit
      contextRef="C_76a056b6-e13e-4ef5-b0e6-15a398cd35e1"
      decimals="0"
      id="F_24d0039d-6c02-47cf-bcca-7c198b50036c"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit>
    <us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit
      contextRef="C_757f7f25-2ba7-410a-8ea3-4b42ad706963"
      decimals="-6"
      id="F_3384edcb-0065-4821-9f93-1c343dabbbea"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit>
    <us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit
      contextRef="C_93991f28-d2a2-40db-b27e-2f8d88136cb3"
      decimals="0"
      id="F_55a6874e-dac5-4530-acaf-12e986c8a514"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit>
    <us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit
      contextRef="C_f522fd05-fffa-495f-b861-eee7e797ecf4"
      decimals="0"
      id="F_ada0ef3a-64a6-415c-8399-084b589ff30e"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit>
    <us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit
      contextRef="C_76a056b6-e13e-4ef5-b0e6-15a398cd35e1"
      decimals="0"
      id="F_f0bf1990-cd8f-4eb4-b863-4e522c8c0ae0"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit>
    <msft:EmployeeBenefitPlanDescriptionOfPlanAndSummaryOfAccountingPolicyTextBlock
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      id="F_812d10e0-be0e-4f2b-b186-75d948f9a902">&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:center;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;text-decoration:underline solid;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;NOTE 1 &#x2014; DESCRIPTION OF &lt;/span&gt;&lt;span style="text-transform:uppercase;color:#000000;white-space:pre-wrap;text-decoration:underline solid;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;THE PLAN AND ACCOUNTING POLICIES&lt;/span&gt;&lt;/p&gt;&lt;div style="font-size:10pt;font-family:Arial;"&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Accounting Principles&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;The financial statements and accompanying notes are prepared in accordance with accounting principles generally accepted in the United States of America.&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;General&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;The Microsoft Corporation Employee Stock Purchase Plan (the &#x201c;Plan&#x201d;) became effective on January 1, 2022. The Plan is intended to provide eligible employees of Microsoft Corporation (the &#x201c;Company&#x201d;) who wish to become shareholders of the Company a convenient method of doing so. The Plan covers substantially all employees of the Company who are considered regular employees, whose hire date is before the first business day of the &lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;three-month&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt; offering period, and whose customary employment is for more than&lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt; five months&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt; in any calendar year.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Plan Administration&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;The administrator of the Plan (the &#x201c;Plan Administrator&#x201d;) is the Compensation Committee of the Board of Directors of the Company or other persons acting in this capacity pursuant to a delegation of authority from the Compensation Committee. The Plan is intended to meet the qualification standards of Section 423 of the Internal Revenue Code of 1986, pursuant to which the Plan is not subject to taxation. The Plan is not subject to the provisions of the Employee Retirement Income Security Act of 1974.&lt;/span&gt;&lt;/p&gt;&lt;div style="font-size:10pt;font-family:Arial;"&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Contributions&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Plan participants (&#x201c;Participants&#x201d;) may make contributions to the Plan through payroll deductions for the purpose of purchasing the Company&#x2019;s common stock (&#x201c;Shares&#x201d;). Participant contributions are recorded in the period that the Participants&#x2019; payroll deductions are made. Participant contributions are not subject to vesting and are therefore fully vested at all times. Employee contributions are shown net of refunds due to withdrawals and limitations, excluding the payable to participants, on the Statements of Income and Changes in Plan Equity.&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Share Purchases&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Participants may elect to purchase Shares at &lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;90&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;% of the closing price reported on the exchange where the Shares are traded (&#x201c;Fair Market Value&#x201d;) on the last business day of each three-month offering period. The Plan operates with separate consecutive offering periods ending March 31, June 30, September 30, and December 31, with offering dates of April 1, July 1, October 1, and January 1, respectively. Shares are recorded as purchased on the trade date, which is the last business day of each offering period. Once Shares are settled in the subsequent period, they are distributed to each Participant&#x2019;s account by the stock transfer agent.&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Related Party Transactions&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:12pt;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Participants purchased &lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;4,894,610&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;, &lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;5,135,143&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;, and &lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;6,865,626&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt; Shares through the Plan during the years ended December 31, 2025, 2024, and 2023, respectively. The maximum number of Shares that will be offered under the Plan is &lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;84,809,502&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;. As of December 31, 2025, &lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;60,414,362&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt; Shares were reserved for future issuance.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:4.4%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:11pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Withdrawals&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;If a Participant elects to withdraw from the Plan at any time prior to the first day of the last calendar month of a three-month offering period, or if a Participant&#x2019;s employment has been terminated at any time, the Plan refunds any amounts withheld during that period back to the Participant. All such amounts are included in employee contributions, net on the Statements of Income and Changes in Plan Equity.&lt;/span&gt;&lt;span style="text-transform:uppercase;color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Participant withdrawals and terminations from the Plan were not significant during any of the periods presented.&lt;/span&gt;&lt;/p&gt;&lt;div style="font-size:10pt;font-family:Arial;"&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Payable to Participants&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Payable to participants represents cash in Participant accounts that was contributed to the Plan in amounts greater than the cost of the maximum number of Shares allowed to be purchased in a three&#x2011;month offering period. All such amounts will be refunded to Participants from the Plan in the following offering period and are therefore not included in plan equity on the Statements of Financial Condition.&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Limitations&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Participants may not make contributions to the Plan exceeding &lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;15&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;% of their compensation for each offering period. Additionally, Participants are prohibited from purchasing more than &lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;2,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt; Shares during a three&#x2011;month offering period or purchasing Shares with an aggregate Fair Market Value in excess of $&lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;25,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt; in any calendar year. During the years ended December 31, 2025, 2024, and 2023, refunds resulting from Participants who exceeded the contribution limits, inclusive of the payable to participants, were $&lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;199,195,856&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;, $&lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;212,425,095&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;, and $&lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;156,298,368&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;, respectively.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Employees owning Shares representing &lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;5&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;% or more of the total combined voting power or value of all classes of Shares are not permitted to purchase Shares under the Plan.&lt;/span&gt;&lt;/p&gt;&lt;div style="font-size:10pt;font-family:Arial;"&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Administrative Expenses&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;All Plan administrative expenses are paid by the Company and are not reflected in the accompanying financial statements.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Termination&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;The Plan shall terminate at the earliest of the following:&lt;/span&gt;&lt;/p&gt;&lt;div class="item-list-element-wrapper" style="margin-left:2%;display:flex;margin-top:6pt;justify-content:flex-start;align-items:baseline;margin-bottom:0;min-width:3.602%;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:3.6755102040816325%;word-break:keep-all;display:inline-flex;justify-content:flex-start;"&gt;&#x2022;&lt;/span&gt;&lt;div style="display:inline;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;December 31, 2031;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="item-list-element-wrapper" style="margin-left:2%;display:flex;margin-top:6pt;justify-content:flex-start;align-items:baseline;margin-bottom:0;min-width:3.602%;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:3.6755102040816325%;word-break:keep-all;display:inline-flex;justify-content:flex-start;"&gt;&#x2022;&lt;/span&gt;&lt;div style="display:inline;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;the date of the filing of a Statement of Intent to Dissolve by the Company or the effective date of a merger or consolidation (except with a related company) where the Company is not the surviving corporation;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="item-list-element-wrapper" style="margin-left:2%;display:flex;margin-top:6pt;justify-content:flex-start;align-items:baseline;margin-bottom:0;min-width:3.602%;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:3.6755102040816325%;word-break:keep-all;display:inline-flex;justify-content:flex-start;"&gt;&#x2022;&lt;/span&gt;&lt;div style="display:inline;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;the date the Board of Directors of the Company acts to terminate the Plan; or&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="item-list-element-wrapper" style="margin-left:2%;display:flex;margin-top:6pt;justify-content:flex-start;align-items:baseline;margin-bottom:0;min-width:3.602%;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:3.6755102040816325%;word-break:keep-all;display:inline-flex;justify-content:flex-start;"&gt;&#x2022;&lt;/span&gt;&lt;div style="display:inline;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;the date when all Shares reserved under the Plan have been purchased.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;In the event of a dissolution, merger, or acquisition of the Company, the Company may permit a Participant to purchase Shares to the extent of accumulated payroll deduction funds in the Participant&#x2019;s account. In the event of a termination of the Plan, the assets will be returned to the Participants.&lt;/span&gt;&lt;/p&gt;</msft:EmployeeBenefitPlanDescriptionOfPlanAndSummaryOfAccountingPolicyTextBlock>
    <us-gaap-ebp:EmployeeBenefitPlanBasisOfAccountingPolicyTextBlock
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      id="F_7184f303-47a7-4aba-ad3f-4ac03fe791b2">&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Accounting Principles&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;The financial statements and accompanying notes are prepared in accordance with accounting principles generally accepted in the United States of America.&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;</us-gaap-ebp:EmployeeBenefitPlanBasisOfAccountingPolicyTextBlock>
    <msft:EmployeeBenefitPlanEmployeeStockPurchaseOfferingPeriodDuration
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      id="F_bc4f3c1a-ab95-4ea0-ad70-b7bd8f0872b6">P3M</msft:EmployeeBenefitPlanEmployeeStockPurchaseOfferingPeriodDuration>
    <msft:EmployeeBenefitPlanEmployeeStockPurchaseEligibilityPeriod
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      id="F_de2315a4-40a1-4394-b09b-c632a35bb63b">P5M</msft:EmployeeBenefitPlanEmployeeStockPurchaseEligibilityPeriod>
    <us-gaap-ebp:EmployeeBenefitPlanContributionPolicyTextBlock
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      id="F_6a39e212-d82e-41f3-9608-3b24620b5efa">&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Contributions&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Plan participants (&#x201c;Participants&#x201d;) may make contributions to the Plan through payroll deductions for the purpose of purchasing the Company&#x2019;s common stock (&#x201c;Shares&#x201d;). Participant contributions are recorded in the period that the Participants&#x2019; payroll deductions are made. Participant contributions are not subject to vesting and are therefore fully vested at all times. Employee contributions are shown net of refunds due to withdrawals and limitations, excluding the payable to participants, on the Statements of Income and Changes in Plan Equity.&lt;/span&gt;&lt;/p&gt;</us-gaap-ebp:EmployeeBenefitPlanContributionPolicyTextBlock>
    <msft:EmployeeBenefitPlanPurchasePriceOfCommonStockPercent
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      decimals="2"
      id="F_e4d79a07-dc13-43b3-ac52-970e2d1d4027"
      unitRef="U_pure">0.90</msft:EmployeeBenefitPlanPurchasePriceOfCommonStockPercent>
    <us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      decimals="INF"
      id="F_8cd4a3df-4495-4fad-875f-341a0aefb8be"
      unitRef="U_shares">4894610</us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased>
    <us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased
      contextRef="C_a4242de4-9f80-40b3-9c69-ee4c5828ff80"
      decimals="INF"
      id="F_6fd1446b-a72c-41c1-a020-e95be7c2304a"
      unitRef="U_shares">5135143</us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased>
    <us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased
      contextRef="C_d6525b76-434a-4cc6-a841-bfe82589339f"
      decimals="INF"
      id="F_92b1f922-818c-42fe-b344-812f7f7f7f77"
      unitRef="U_shares">6865626</us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased>
    <msft:EmployeeBenefitPlanMaximumSharesAvailableUnderThePlan
      contextRef="C_93991f28-d2a2-40db-b27e-2f8d88136cb3"
      decimals="INF"
      id="F_72409799-1d10-44a9-a562-2bf989ba238c"
      unitRef="U_shares">84809502</msft:EmployeeBenefitPlanMaximumSharesAvailableUnderThePlan>
    <msft:EmployeeBenefitPlanSharesReservedForFutureIssuance
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      decimals="INF"
      id="F_d3cf5db8-f408-4139-bd87-dda6406dace7"
      unitRef="U_shares">60414362</msft:EmployeeBenefitPlanSharesReservedForFutureIssuance>
    <us-gaap-ebp:EmployeeBenefitPlanPaymentToParticipantPolicyTextBlock
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      id="F_52a5d5ed-52a8-4312-9ee3-51b00b0b5ef6">&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Payable to Participants&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Payable to participants represents cash in Participant accounts that was contributed to the Plan in amounts greater than the cost of the maximum number of Shares allowed to be purchased in a three&#x2011;month offering period. All such amounts will be refunded to Participants from the Plan in the following offering period and are therefore not included in plan equity on the Statements of Financial Condition.&lt;/span&gt;&lt;/p&gt;</us-gaap-ebp:EmployeeBenefitPlanPaymentToParticipantPolicyTextBlock>
    <us-gaap-ebp:EmployeeBenefitPlanParticipantContributionPretaxMaximumAnnualCompensationToTotalCompensationPercentage
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      decimals="INF"
      id="F_ef6fe126-1a77-41cf-8e92-b05a0b0efe63"
      unitRef="U_pure">0.15</us-gaap-ebp:EmployeeBenefitPlanParticipantContributionPretaxMaximumAnnualCompensationToTotalCompensationPercentage>
    <msft:EmployeeBenefitPlanMaximumNumberOfSharesPerEmployee
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      decimals="INF"
      id="F_cbefe43d-55c3-4b7a-9286-fcc81de5c83d"
      unitRef="U_shares">2000</msft:EmployeeBenefitPlanMaximumNumberOfSharesPerEmployee>
    <msft:EmployeeBenefitPlanSharesMaximumAggregateFairMarketValue
      contextRef="C_93991f28-d2a2-40db-b27e-2f8d88136cb3"
      decimals="INF"
      id="F_660576b7-c2a5-44bb-a40e-013b6f85da22"
      unitRef="U_USD">25000</msft:EmployeeBenefitPlanSharesMaximumAggregateFairMarketValue>
    <msft:EmployeeBenefitPlanRefundsFromParticipantsWhoExceededContributionLimits
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      decimals="0"
      id="F_884e01d2-2a94-4703-9542-a62dd4231f96"
      unitRef="U_USD">199195856</msft:EmployeeBenefitPlanRefundsFromParticipantsWhoExceededContributionLimits>
    <msft:EmployeeBenefitPlanRefundsFromParticipantsWhoExceededContributionLimits
      contextRef="C_a4242de4-9f80-40b3-9c69-ee4c5828ff80"
      decimals="0"
      id="F_d08f3ff9-d16f-4ca1-8763-5d0e4ab0eece"
      unitRef="U_USD">212425095</msft:EmployeeBenefitPlanRefundsFromParticipantsWhoExceededContributionLimits>
    <msft:EmployeeBenefitPlanRefundsFromParticipantsWhoExceededContributionLimits
      contextRef="C_d6525b76-434a-4cc6-a841-bfe82589339f"
      decimals="0"
      id="F_2d415c29-c60f-48b9-b8b7-583289039e5a"
      unitRef="U_USD">156298368</msft:EmployeeBenefitPlanRefundsFromParticipantsWhoExceededContributionLimits>
    <msft:EmployeeBenefitPlanMaximumSharesOwnedPercentage
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      decimals="INF"
      id="F_37b31f76-f6b0-4166-8281-82856a137ae3"
      unitRef="U_pure">0.05</msft:EmployeeBenefitPlanMaximumSharesOwnedPercentage>
    <us-gaap-ebp:EmployeeBenefitPlanExpensePolicyTextBlock
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      id="F_ba5614f0-ed7d-44d6-9e86-75c5fb708f4e">&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Administrative Expenses&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;All Plan administrative expenses are paid by the Company and are not reflected in the accompanying financial statements.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</us-gaap-ebp:EmployeeBenefitPlanExpensePolicyTextBlock>
    <us-gaap-ebp:EmployeeBenefitPlanAdministrationCostAbsorbedByEmployer
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      id="F_418828a8-b48c-4923-a9ea-7acdbd150ab3">true</us-gaap-ebp:EmployeeBenefitPlanAdministrationCostAbsorbedByEmployer>
    <msft:EmployeeBenefitPlanAssetsTextBlock
      contextRef="C_d3210ed2-a8c7-4473-9f0a-65558b946d64"
      id="F_ff76d3af-c741-4845-9c59-b5dd18963f9c">&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:center;"&gt;&lt;span style="text-transform:uppercase;color:#000000;white-space:pre-wrap;text-decoration:underline solid;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;NOTE 2 &#x2014; Plan assets&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:12pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;The Plan&#x2019;s cash is maintained by the Company on behalf of the Plan.&lt;/span&gt;&lt;/p&gt;</msft:EmployeeBenefitPlanAssetsTextBlock>
</xbrl>
