<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:cef="http://xbrl.sec.gov/cef/2025"
  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:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="msdl-20260709.xsd" xlink:type="simple"/>
    <context id="P07_09_2026To07_09_2026">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001782524</identifier>
        </entity>
        <period>
            <startDate>2026-07-09</startDate>
            <endDate>2026-07-09</endDate>
        </period>
    </context>
    <unit id="Unit_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Unit_pure">
        <measure>pure</measure>
    </unit>
    <dei:AmendmentFlag contextRef="P07_09_2026To07_09_2026" id="ixv-327">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="P07_09_2026To07_09_2026" id="ixv-328">0001782524</dei:EntityCentralIndexKey>
    <dei:EntityAddressStateOrProvince contextRef="P07_09_2026To07_09_2026" id="hidden168957586">NY</dei:EntityAddressStateOrProvince>
    <dei:DocumentType contextRef="P07_09_2026To07_09_2026" id="ixv-343">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="P07_09_2026To07_09_2026" id="ixv-344">2026-07-09</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="P07_09_2026To07_09_2026" id="ixv-345">Morgan Stanley Direct Lending Fund</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="P07_09_2026To07_09_2026" id="ixv-346">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="P07_09_2026To07_09_2026" id="ixv-347">814-01332</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="P07_09_2026To07_09_2026" id="ixv-348">84-2009506</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="P07_09_2026To07_09_2026" id="ixv-349">1585 Broadway</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown contextRef="P07_09_2026To07_09_2026" id="ixv-350">New York</dei:EntityAddressCityOrTown>
    <dei:EntityAddressPostalZipCode contextRef="P07_09_2026To07_09_2026" id="ixv-351">10036</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="P07_09_2026To07_09_2026" id="ixv-352">212</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="P07_09_2026To07_09_2026" id="ixv-353">761-4000</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="P07_09_2026To07_09_2026" id="ixv-354">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="P07_09_2026To07_09_2026" id="ixv-355">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="P07_09_2026To07_09_2026" id="ixv-356">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="P07_09_2026To07_09_2026" id="ixv-357">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle contextRef="P07_09_2026To07_09_2026" id="ixv-358">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="P07_09_2026To07_09_2026" id="ixv-359">MSDL</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="P07_09_2026To07_09_2026" id="ixv-360">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="P07_09_2026To07_09_2026" id="ixv-361">false</dei:EntityEmergingGrowthCompany>
    <cef:LongTermDebtTableTextBlock contextRef="P07_09_2026To07_09_2026" id="ixv-189"> &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;On July&#160;9, 2026, Morgan Stanley Direct Lending Fund (the &#x201c;Company&#x201d;) and U.S. Bank Trust Company, National Association (the &#x201c;Trustee&#x201d;), entered into a Fourth Supplemental Indenture (the &#x201c;Fourth Supplemental Indenture&#x201d;) to the Indenture between the Company and the Trustee, dated February&#160;11, 2022 (the &#x201c;Base Indenture,&#x201d; and together with the Fourth Supplemental Indenture, the &#x201c;Indenture&#x201d;). The Fourth Supplemental Indenture relates to the Company&#x2019;s issuance of $350.0&#160;million aggregate principal amount of its 6.100% notes due 2031 (the &#x201c;Notes&#x201d;). &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Notes will mature on July&#160;15, 2031 and may be redeemed in whole or in part at the Company&#x2019;s option at any time prior to June&#160;15, 2031 at par value plus a &#x201c;make-whole&#x201d; premium calculated in accordance with terms under &#x201c;optional redemption&#x201d; in the Indenture and at par value on June&#160;15, 2031 or thereafter. The Notes bear interest at a rate of 6.100% per year payable semi-annually on January&#160;15 and July&#160;15 of each year, commencing on January&#160;15, 2027. The Notes are general unsecured obligations of the Company that rank senior in right of payment to all of the Company&#x2019;s existing and future indebtedness that is expressly subordinated in right of payment to the Notes, rank pari passu with all existing and future unsecured unsubordinated indebtedness issued by the Company, rank effectively junior to any of the Company&#x2019;s secured indebtedness (including unsecured indebtedness that the Company later secures) to the extent of the value of the assets securing such indebtedness, and rank structurally junior to all existing and future indebtedness (including trade payables) incurred by the Company&#x2019;s subsidiaries, financing vehicles or similar facilities. &lt;/div&gt;  &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Indenture contains certain covenants, including covenants requiring the Company to comply with the asset coverage requirements of Section&#160;18(a)(1)(A) as modified by Section&#160;61(a)(1) and (2)&#160;of the Investment Company Act of 1940, as amended, whether or not it is subject to those requirements, and to provide financial information to the holders of the Notes and the Trustee if the Company is no longer subject to the reporting requirements under the Securities Exchange Act of 1934, as amended. These covenants are subject to important limitations and exceptions that are described in the Indenture. &lt;/div&gt;  &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;In addition, on the occurrence of a &#x201c;change of control repurchase event,&#x201d; as defined in the Indenture, the Company will generally be required to make an offer to repurchase the outstanding Notes at a price equal to 100% of the principal amount of such Notes plus accrued and unpaid interest to the repurchase date. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Notes were offered and sold in an offering registered under the Securities Act of 1933, as amended, pursuant to the Registration Statement on &lt;/div&gt; &lt;div style="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Form &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;N-2&lt;/div&gt; (File &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;No.&#160;333-283477)&lt;/div&gt; (the &#x201c;Registration Statement&#x201d;), the preliminary prospectus supplement dated June&#160;29, 2026 and the pricing term sheet filed with the Securities and Exchange Commission on June&#160;29, 2026. The transaction closed on July&#160;9, 2026. The net proceeds to the Company were approximately $341.6&#160;million, after deducting the underwriting discount and estimated offering expenses. The Company intends to use the net proceeds to repay outstanding secured indebtedness under its financing arrangements. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The foregoing descriptions of the Fourth Supplemental Indenture and the Notes do not purport to be complete and are qualified in their entirety by reference to the full text of the Fourth Supplemental Indenture and the Notes, respectively, each filed as exhibits hereto and incorporated by reference herein. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;In connection with the issuance of the Notes, the Company entered into interest rate swaps to more closely align the interest rates of the Company&#x2019;s liabilities with the Company&#x2019;s investment portfolio, which consists of predominately floating rate loans. Under the interest rate swap agreement related to the Notes, the Company receives a fixed interest rate of 6.100% per annum and pays a floating interest rate of SOFR + 2.1945% per annum on $350.0&#160;million of the Notes. The Company designated each interest rate swap as the hedging instrument in a qualifying hedge accounting relationship. &lt;/div&gt; </cef:LongTermDebtTableTextBlock>
    <cef:LongTermDebtPrincipal
      contextRef="P07_09_2026To07_09_2026"
      decimals="-5"
      id="ixv-362"
      unitRef="Unit_USD">350000000</cef:LongTermDebtPrincipal>
    <cef:LongTermDebtDividendsAndCovenantsTextBlock contextRef="P07_09_2026To07_09_2026" id="ixv-192"> &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Indenture contains certain covenants, including covenants requiring the Company to comply with the asset coverage requirements of Section&#160;18(a)(1)(A) as modified by Section&#160;61(a)(1) and (2)&#160;of the Investment Company Act of 1940, as amended, whether or not it is subject to those requirements, and to provide financial information to the holders of the Notes and the Trustee if the Company is no longer subject to the reporting requirements under the Securities Exchange Act of 1934, as amended. These covenants are subject to important limitations and exceptions that are described in the Indenture. &lt;/div&gt; </cef:LongTermDebtDividendsAndCovenantsTextBlock>
    <cef:AnnualInterestRatePercent
      contextRef="P07_09_2026To07_09_2026"
      decimals="5"
      id="ixv-363"
      unitRef="Unit_pure">0.061</cef:AnnualInterestRatePercent>
    <cef:LongTermDebtPrincipal
      contextRef="P07_09_2026To07_09_2026"
      decimals="-5"
      id="ixv-364"
      unitRef="Unit_USD">350000000</cef:LongTermDebtPrincipal>
</xbrl>
