<?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-20260629.xsd" xlink:type="simple"/>
    <context id="P06_29_2026To06_29_2026">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001782524</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="Unit_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:AmendmentFlag contextRef="P06_29_2026To06_29_2026" id="ixv-311">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="P06_29_2026To06_29_2026" id="ixv-312">0001782524</dei:EntityCentralIndexKey>
    <dei:EntityAddressStateOrProvince contextRef="P06_29_2026To06_29_2026" id="hidden168546443">NY</dei:EntityAddressStateOrProvince>
    <dei:DocumentType contextRef="P06_29_2026To06_29_2026" id="ixv-325">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="P06_29_2026To06_29_2026" id="ixv-326">2026-06-29</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="P06_29_2026To06_29_2026" id="ixv-327">Morgan Stanley Direct Lending Fund</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="P06_29_2026To06_29_2026" id="ixv-328">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="P06_29_2026To06_29_2026" id="ixv-329">814-01332</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="P06_29_2026To06_29_2026" id="ixv-330">84-2009506</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="P06_29_2026To06_29_2026" id="ixv-331">1585 Broadway</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown contextRef="P06_29_2026To06_29_2026" id="ixv-332">New York</dei:EntityAddressCityOrTown>
    <dei:EntityAddressPostalZipCode contextRef="P06_29_2026To06_29_2026" id="ixv-333">10036</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="P06_29_2026To06_29_2026" id="ixv-334">212</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="P06_29_2026To06_29_2026" id="ixv-335">761-4000</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="P06_29_2026To06_29_2026" id="ixv-336">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="P06_29_2026To06_29_2026" id="ixv-337">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="P06_29_2026To06_29_2026" id="ixv-338">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="P06_29_2026To06_29_2026" id="ixv-339">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle contextRef="P06_29_2026To06_29_2026" id="ixv-340">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="P06_29_2026To06_29_2026" id="ixv-341">MSDL</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="P06_29_2026To06_29_2026" id="ixv-342">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="P06_29_2026To06_29_2026" id="ixv-343">false</dei:EntityEmergingGrowthCompany>
    <cef:LongTermDebtTableTextBlock contextRef="P06_29_2026To06_29_2026" id="ixv-202">&lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;On June&#160;29, 2026, Morgan Stanley Direct Lending Fund (the &#x201c;Company&#x201d;) entered into an underwriting agreement (the &#x201c;Underwriting Agreement&#x201d;) by and among the Company, MS Capital Partners Adviser Inc. (the &#x201c;Adviser&#x201d;), and Truist Securities, Inc., BNP Paribas Securities Corp., MUFG Securities Americas Inc., RBC Capital Markets, LLC and SMBC Nikko Securities America, Inc., as representatives of the several underwriters, in connection with the issuance and sale of $350,000,000 aggregate principal amount of the Company&#x2019;s 6.100% Notes due 2031 (the &#x201c;Offering&#x201d;). &lt;/div&gt;&lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Underwriting Agreement includes customary representations, warranties, and covenants by the Company and the Adviser. It also provides for customary indemnification by each of the Company, the Adviser, and the underwriters against certain liabilities and customary contribution provisions in respect of those liabilities. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Offering was made pursuant to the Company&#x2019;s effective shelf registration statement on Form &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;N-2&lt;/div&gt; (Registration &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;No.&#160;333-283477)&lt;/div&gt; previously filed with the Securities and Exchange Commission, as supplemented by a preliminary prospectus supplement, a term sheet and a final prospectus supplement, each dated June&#160;29, 2026. &lt;/div&gt;&lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The foregoing description of the Underwriting Agreement does not purport to be complete and is qualified in its entirety by reference to the full text of the Underwriting Agreement filed with this report as Exhibit 1.1 and which is incorporated herein by reference. &lt;/div&gt;</cef:LongTermDebtTableTextBlock>
    <cef:LongTermDebtPrincipal
      contextRef="P06_29_2026To06_29_2026"
      decimals="0"
      id="ixv-344"
      unitRef="Unit_USD">350000000</cef:LongTermDebtPrincipal>
    <cef:LongTermDebtDividendsAndCovenantsTextBlock contextRef="P06_29_2026To06_29_2026" id="ixv-204">&lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Underwriting Agreement includes customary representations, warranties, and covenants by the Company and the Adviser. It also provides for customary indemnification by each of the Company, the Adviser, and the underwriters against certain liabilities and customary contribution provisions in respect of those liabilities. &lt;/div&gt;</cef:LongTermDebtDividendsAndCovenantsTextBlock>
</xbrl>
