<?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-08-10</startDate>
            <endDate>2026-08-10</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-08-10</startDate>
            <endDate>2026-08-10</endDate>
        </period>
    </context>
    <context id="c-3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001838126</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OffsetAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-10</startDate>
            <endDate>2026-08-10</endDate>
        </period>
    </context>
    <context id="c-4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001838126</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OffsetAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-10</startDate>
            <endDate>2026-08-10</endDate>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="c-1" id="f-24">0001838126</dei:EntityCentralIndexKey>
    <ffd:FormTp contextRef="c-1" id="f-25">SC TO</ffd:FormTp>
    <ffd:SubmissnTp contextRef="c-1" id="f-26">SC TO-I/A</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c-1" id="f-27">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetPrrFormTp contextRef="c-4" id="f-28">SC TO</ffd:OffsetPrrFormTp>
    <ffd:OffsetPrrFormTp contextRef="c-3" id="f-29">SC TO</ffd:OffsetPrrFormTp>
    <dei:EntityRegistrantName contextRef="c-1" id="f-1">HPS CORPORATE LENDING FUND</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="c-2" id="f-2">true</ffd:PrevslyPdFlg>
    <ffd:TxValtn contextRef="c-2" decimals="0" id="f-3" unitRef="usd">602410875</ffd:TxValtn>
    <ffd:FeeAmt contextRef="c-2" decimals="2" id="f-4" unitRef="usd">83192.94</ffd:FeeAmt>
    <ffd:TtlTxValtn contextRef="c-1" decimals="0" id="f-5" unitRef="usd">602410875</ffd:TtlTxValtn>
    <ffd:TtlFeeAmt contextRef="c-1" decimals="2" id="f-6" unitRef="usd">83192.94</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt contextRef="c-1" decimals="2" id="f-7" unitRef="usd">83192.94</ffd:TtlOffsetAmt>
    <ffd:TtlPrevslyPdAmt contextRef="c-1" decimals="2" id="f-8" unitRef="usd">0</ffd:TtlPrevslyPdAmt>
    <ffd:NetFeeAmt contextRef="c-1" decimals="2" id="f-9" unitRef="usd">0</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-2" id="f-10">&lt;div&gt;&lt;table style="border-collapse:collapse;display:inline-table;margin-bottom:5pt;vertical-align:text-bottom;width:100.000%"&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 style="height:11pt"&gt;&lt;td colspan="3" style="padding:0 1pt"&gt;&lt;/td&gt;&lt;td colspan="3" style="padding:0 1pt"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding:1.5pt 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;(a)&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding:1.5pt 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;The transaction value is calculated as the estimated aggregate maximum purchase price for Shares. The fee of $83,192.94&lt;/span&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:7.8pt;font-weight:400;line-height:100%;position:relative;top:-4.2pt;vertical-align:baseline"&gt;(b)&lt;/span&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:100%"&gt; was paid in connection with the filing of the Schedule TO-I by HPS Corporate Lending Fund (File No. 005-93638) on August&#160;10, 2026 (the &#x201c;Schedule TO&#x201d;). This is the final amendment to the Schedule TO and is being filed to report the results of the offer.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;</ffd:OfferingNote>
    <ffd:FeeAmt contextRef="c-2" decimals="2" id="f-11" unitRef="usd">83192.94</ffd:FeeAmt>
    <ffd:Rule011Flg contextRef="c-2" id="f-12">true</ffd:Rule011Flg>
    <ffd:Rule011a2OffsetFlg contextRef="c-3" id="f-13">true</ffd:Rule011a2OffsetFlg>
    <ffd:OffsetClmdInd contextRef="c-3" id="f-14">true</ffd:OffsetClmdInd>
    <ffd:OffsetPrrFilerNm contextRef="c-4" id="f-15">HPS Corporate Lending Fund</ffd:OffsetPrrFilerNm>
    <ffd:OffsetPrrFileNb contextRef="c-3" id="f-16">005-93638</ffd:OffsetPrrFileNb>
    <ffd:OffsetPrrFileNb contextRef="c-4" id="f-17">005-93638</ffd:OffsetPrrFileNb>
    <ffd:OffsetClmInitlFilgDt contextRef="c-3" id="f-18">2026-08-10</ffd:OffsetClmInitlFilgDt>
    <ffd:OffsetClmdAmt contextRef="c-3" decimals="2" id="f-19" unitRef="usd">83192.94</ffd:OffsetClmdAmt>
    <ffd:Rule011a2OffsetFlg contextRef="c-4" id="f-20">true</ffd:Rule011a2OffsetFlg>
    <ffd:OffsetClmdInd contextRef="c-4" id="f-21">false</ffd:OffsetClmdInd>
    <ffd:OffsetSrcFilgDt contextRef="c-4" id="f-22">2026-08-10</ffd:OffsetSrcFilgDt>
    <ffd:OffsetPrrFeeAmt contextRef="c-4" decimals="2" id="f-23" unitRef="usd">83192.94</ffd:OffsetPrrFeeAmt>
</xbrl>
