<?xml version="1.0" encoding="utf-8"?>
<xbrl
  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"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="c_offering_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001045520</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-06</startDate>
            <endDate>2026-07-06</endDate>
        </period>
    </context>
    <context id="c_offering_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001045520</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-06</startDate>
            <endDate>2026-07-06</endDate>
        </period>
    </context>
    <context id="c_report">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001045520</identifier>
        </entity>
        <period>
            <startDate>2026-07-06</startDate>
            <endDate>2026-07-06</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <ffd:SubmissnTp contextRef="c_report" id="fee_001">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c_report" id="fee_002">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="c_report" id="fee_003">0001045520</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb contextRef="c_report" id="fee_004">333-282307</ffd:RegnFileNb>
    <ffd:OfferingTableNa contextRef="c_report" id="fee_005" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="c_report" id="fee_006">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="c_report" id="fee_007">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp contextRef="c_report" id="fee_008">F-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="c_report" id="fee_009">CANADIAN IMPERIAL BANK OF COMMERCE</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="c_offering_1" id="fee_010">true</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c_offering_1" id="ixv-349">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c_offering_1" id="ixv-350">Unallocated (Universal) Shelf</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="c_offering_1" id="fee_011">true</ffd:Rule457oFlg>
    <ffd:AmtSctiesRegd
      contextRef="c_offering_1"
      decimals="0"
      id="ixv-352"
      unitRef="shares">8250000000</ffd:AmtSctiesRegd>
    <ffd:MaxAggtOfferingPric
      contextRef="c_offering_1"
      decimals="INF"
      id="ixv-353"
      unitRef="USD">8250000000.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeAmt
      contextRef="c_offering_1"
      decimals="INF"
      id="ixv-354"
      unitRef="USD">1217700.00</ffd:FeeAmt>
    <ffd:OfferingSctyTp contextRef="c_offering_2" id="ixv-355">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c_offering_2" id="ixv-356">Unallocated (Universal) Shelf</ffd:OfferingSctyTitl>
    <ffd:Rule415a6Flg contextRef="c_offering_2" id="fee_012">true</ffd:Rule415a6Flg>
    <ffd:AmtSctiesRegd
      contextRef="c_offering_2"
      decimals="0"
      id="ixv-358"
      unitRef="shares">11750000000</ffd:AmtSctiesRegd>
    <ffd:MaxAggtOfferingPric
      contextRef="c_offering_2"
      decimals="INF"
      id="ixv-359"
      unitRef="USD">11750000000.00</ffd:MaxAggtOfferingPric>
    <ffd:CfwdFormTp contextRef="c_offering_2" id="ixv-360">F-3</ffd:CfwdFormTp>
    <ffd:CfwdPrrFileNb contextRef="c_offering_2" id="ixv-361">333-273505</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt contextRef="c_offering_2" id="ixv-362">2023-09-06</ffd:CfwdPrrFctvDt>
    <ffd:CfwdPrevslyPdFee
      contextRef="c_offering_2"
      decimals="INF"
      id="ixv-363"
      unitRef="USD">1542800.00</ffd:CfwdPrevslyPdFee>
    <ffd:TtlOfferingAmt
      contextRef="c_report"
      decimals="INF"
      id="ixv-364"
      unitRef="USD">20000000000.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="ixv-365"
      unitRef="USD">1217700.00</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt
      contextRef="c_report"
      decimals="INF"
      id="ixv-366"
      unitRef="USD">1217700.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt
      contextRef="c_report"
      decimals="INF"
      id="ixv-367"
      unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="ixv-368"
      unitRef="USD">0.00</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c_offering_1" id="ixv-369">The prospectus supplement to which this Exhibit is attached is a final prospectus and relates to the non-automatic shelf registration on Form F-3 (File No. 333-282307) filed by the Registrant for the sale of up to US$20,000,000,000 of the Registrant's securities, which became effective on October 2, 2024 (the "Registration Statement"). The Registrant carried over US$11,750,000,000 of unsold securities (and the associated US$1,542,800 previously paid filing fee) that previously were registered by the Registrant on Form F-3 (File No. 333-273505). Pursuant to the Registration Statement, the Registrant paid a registration fee of US$1,217,700. Such prior registration fee was estimated solely to calculate the registration fee in accordance with Rule 457(o), based on the proposed maximum aggregate offering price, under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;). Prior to the offering to which this prospectus supplement relates, US$12,550,000,000 of securities have been issued under the Registration Statement.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c_offering_2" id="ixv-299">The offering to which this prospectus supplement relates includes US$500,000,000 6.750% Fixed Rate Reset Limited Recourse Capital Notes Series 10 (Non-Viability Contingent Capital (NVCC)) (Subordinated Indebtedness). Based on a fee rate of US$0.000138, the aggregate registration fee totals US$69,050. Such registration fee was estimated solely to calculate the registration fee in accordance with Rule 457(o), based on the proposed maximum aggregate offering price, under the Securities Act.&lt;br/&gt;&lt;br/&gt;In connection with the issuance of 6.750% Fixed Rate Reset Limited Recourse Capital Notes Series 10 (Non-Viability Contingent Capital (NVCC)) (Subordinated Indebtedness) (the &#x201c;Notes&#x201d;), the Registrant is issuing 500,000 Non-Cumulative 5 Year Fixed Rate Reset Class A Preferred Shares Series 65 (Non-Viability Contingent Capital (NVCC)) (the &#x201c;Preferred Shares&#x201d;) to Computershare Trust Company of Canada, as trustee of CIBC LRCN Limited Recourse Trust, which will hold legal title to the Preferred Shares in trust as trustee for the benefit of the Registrant and, in particular, to satisfy the recourse of holders of the Notes. The maximum aggregate offering price of the offering of the Notes and Preferred Shares issued in connection therewith is US$500,000,000.&lt;br/&gt;&lt;br/&gt;The amount registered includes an indeterminate number of common shares (the &#x201c;Common Shares&#x201d;) issuable upon a Trigger Event, as defined in the Registration Statement. Upon a Trigger Event, each Preferred Share will automatically and immediately be converted, on a full and permanent basis, without the consent of the holder thereof, into the number of fully-paid and non-assessable Common Shares based on the Conversion Price, as defined in the Registration Statement. Pursuant to Rule 457(i) under the Securities Act, no separate registration fee is required for the Common Shares issuable upon conversion of the Preferred Shares because no additional consideration will be received in connection with the conversion of the Preferred Shares.</ffd:OfferingNote>
</xbrl>
