<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="c-1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001838126</identifier>
        </entity>
        <period>
            <startDate>2026-05-11</startDate>
            <endDate>2026-05-11</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001838126</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-11</startDate>
            <endDate>2026-05-11</endDate>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="number">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="c-1" id="f-11">0001838126</dei:EntityCentralIndexKey>
    <ffd:FormTp contextRef="c-1" id="f-12">SC TO</ffd:FormTp>
    <ffd:SubmissnTp contextRef="c-1" id="f-13">SC TO-I</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c-1" id="f-14">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName contextRef="c-1" id="f-1">HPS Corporate Lending Fund</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="c-2" id="f-2">false</ffd:PrevslyPdFlg>
    <ffd:TxValtn contextRef="c-2" decimals="0" id="f-3" unitRef="usd">621656525</ffd:TxValtn>
    <ffd:FeeRate contextRef="c-2" decimals="7" id="f-4" unitRef="number">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-2" decimals="2" id="f-5" unitRef="usd">85850.77</ffd:FeeAmt>
    <ffd:TtlTxValtn contextRef="c-1" decimals="0" id="f-6" unitRef="usd">621656525</ffd:TtlTxValtn>
    <ffd:TtlFeeAmt contextRef="c-1" decimals="2" id="f-7" unitRef="usd">85850.77</ffd:TtlFeeAmt>
    <ffd:NetFeeAmt contextRef="c-1" decimals="2" id="f-8" unitRef="usd">85850.77</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-2" id="f-9">&lt;div&gt;&lt;table style="border-collapse:collapse;display:inline-table;margin-bottom:5pt;vertical-align:text-bottom;width:99.047%"&gt;&lt;tr&gt;&lt;td style="width:1.0%"&gt;&lt;/td&gt;&lt;td style="width:2.906%"&gt;&lt;/td&gt;&lt;td style="width:0.1%"&gt;&lt;/td&gt;&lt;td style="width:1.0%"&gt;&lt;/td&gt;&lt;td style="width:94.894%"&gt;&lt;/td&gt;&lt;td style="width:0.1%"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding:2px 1pt;text-align:left;vertical-align:top"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:100%"&gt;(1)&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding:2px 1pt;text-align:left;vertical-align:top"&gt;&lt;div&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:100%"&gt;Calculated as the aggregate maximum purchase price for shares of beneficial interest, based upon the net asset value per Share as of March&#160;31, 2026, of $24.79. This amount is based upon the offer to purchase up to 25,076,907 common shares of beneficial interest, par value $0.01 per share, of HPS Corporate Lending Fund.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;</ffd:OfferingNote>
    <ffd:Rule011Flg contextRef="c-2" id="f-10">true</ffd:Rule011Flg>
</xbrl>
