<?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-09-25</startDate>
            <endDate>2026-09-25</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-09-25</startDate>
            <endDate>2026-09-25</endDate>
        </period>
    </context>
    <context id="c_report">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001045520</identifier>
        </entity>
        <period>
            <startDate>2026-09-25</startDate>
            <endDate>2026-09-25</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-348">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c_offering_1" id="ixv-349">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-351"
      unitRef="shares">8250000000</ffd:AmtSctiesRegd>
    <ffd:MaxAggtOfferingPric
      contextRef="c_offering_1"
      decimals="INF"
      id="ixv-352"
      unitRef="USD">8250000000.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeAmt
      contextRef="c_offering_1"
      decimals="INF"
      id="ixv-353"
      unitRef="USD">1217700.00</ffd:FeeAmt>
    <ffd:OfferingSctyTp contextRef="c_offering_2" id="ixv-354">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c_offering_2" id="ixv-355">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-357"
      unitRef="shares">11750000000</ffd:AmtSctiesRegd>
    <ffd:MaxAggtOfferingPric
      contextRef="c_offering_2"
      decimals="INF"
      id="ixv-358"
      unitRef="USD">11750000000.00</ffd:MaxAggtOfferingPric>
    <ffd:CfwdFormTp contextRef="c_offering_2" id="ixv-359">F-3</ffd:CfwdFormTp>
    <ffd:CfwdPrrFileNb contextRef="c_offering_2" id="ixv-360">333-273505</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt contextRef="c_offering_2" id="ixv-361">2023-09-06</ffd:CfwdPrrFctvDt>
    <ffd:CfwdPrevslyPdFee
      contextRef="c_offering_2"
      decimals="INF"
      id="ixv-362"
      unitRef="USD">1542800.00</ffd:CfwdPrevslyPdFee>
    <ffd:TtlOfferingAmt
      contextRef="c_report"
      decimals="INF"
      id="ixv-363"
      unitRef="USD">20000000000.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="ixv-364"
      unitRef="USD">1217700.00</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt
      contextRef="c_report"
      decimals="INF"
      id="ixv-365"
      unitRef="USD">1217700.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt
      contextRef="c_report"
      decimals="INF"
      id="ixv-366"
      unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="ixv-367"
      unitRef="USD">0.00</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c_offering_1" id="ixv-294">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 pursuant to Rule 457(o), 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$13,050,000,000 of securities have been issued under the Registration Statement.&lt;br/&gt;&lt;br/&gt;The offering to which this prospectus supplement relates includes (i) US$300,000,000 Floating Rate Senior Notes due 2030 (the "Floating Rate Notes") and (ii) US$1,000,000,000 5.627% Fixed-to-Floating Rate Senior Notes due 2030 (the "Fixed-to-Floating Rate Notes"). Based on a fee rate of US$0.000138, the aggregate registration fee totals US$179,530, comprised of US$41,430 with respect to the Floating Rate Notes and US$138,100 with respect to the Fixed-to-Floating Rate Notes. 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;</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c_offering_2" id="ixv-368">Pursuant to Rule 415(a)(6) of the Securities Act, the US$20,000,000,000 of securities covered by the Registration Statement includes US$11,750,000,000 of unsold securities (the &#x201c;unsold securities&#x201d;) that previously were registered by the Registrant on Form F-3 under the Securities Act (File No. 333-273505), initially filed with the Commission on July 28, 2023, as amended by Pre-Effective Amendment No. 1 filed on September 5, 2023, and declared effective on September 6, 2023 (the &#x201c;Prior Registration Statement&#x201d;), for which the Registrant paid a registration fee of US$2,137,880. The US$1,294,850 previously paid filing fee associated with the offering US$11,750,000,000 of the unsold securities was carried forward and applied to the unsold securities registered under the Registration Statement, and no additional filing fee was due.</ffd:OfferingNote>
</xbrl>
