<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="rc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001045520</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <context id="offrl_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-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <context id="offrl_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-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <context id="offrl_3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001045520</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>3</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-350">F-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-351">F-3/A</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-352">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb contextRef="rc" id="ixv-353">333-294072</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-354">0001045520</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-355">CANADIAN IMPERIAL BANK OF COMMERCE /CAN/</dei:EntityRegistrantName>
    <ffd:OfferingTableNa contextRef="rc" id="hiddenrcOfferingTableNa" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="rc" id="hiddenrcOffsetTableNa">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="rc" id="hiddenrcCombinedProspectusTableNa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp contextRef="rc" id="ixv-401">F-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-402">CANADIAN IMPERIAL BANK OF COMMERCE /CAN/</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="offrl_1" id="ixv-403">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-404">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-405">Senior</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_1" id="ixv-406">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_1"
      decimals="2"
      id="ixv-407"
      unitRef="USD">1243941400.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_1"
      decimals="7"
      id="ixv-408"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_1"
      decimals="2"
      id="ixv-409"
      unitRef="USD">171788.31</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="offrl_3" id="ixv-410">true</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_3" id="ixv-411">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_3" id="ixv-412">Senior</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="offrl_3" id="ixv-413">true</ffd:FeesOthrRuleFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_3"
      decimals="2"
      id="ixv-414"
      unitRef="USD">17091272710.30</ffd:MaxAggtOfferingPric>
    <ffd:FeeAmt
      contextRef="offrl_3"
      decimals="2"
      id="ixv-415"
      unitRef="USD">2360304.76</ffd:FeeAmt>
    <ffd:OfferingSctyTp contextRef="offrl_2" id="ixv-416">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_2" id="ixv-417">Senior</ffd:OfferingSctyTitl>
    <ffd:Rule415a6Flg contextRef="offrl_2" id="ixv-418">true</ffd:Rule415a6Flg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_2"
      decimals="2"
      id="ixv-419"
      unitRef="USD">1664785889.70</ffd:MaxAggtOfferingPric>
    <ffd:CfwdFormTp contextRef="offrl_2" id="ixv-420">F-3</ffd:CfwdFormTp>
    <ffd:CfwdPrrFileNb contextRef="offrl_2" id="ixv-421">333-272447</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt contextRef="offrl_2" id="ixv-422">2023-09-05</ffd:CfwdPrrFctvDt>
    <ffd:CfwdPrevslyPdFee
      contextRef="offrl_2"
      decimals="2"
      id="ixv-423"
      unitRef="USD">183459.41</ffd:CfwdPrevslyPdFee>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="2" id="ixv-424" unitRef="USD">20000000000.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="2" id="ixv-425" unitRef="USD">2532093.07</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="rc" decimals="2" id="ixv-426" unitRef="USD">2360304.76</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="2" id="ixv-427" unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="2" id="ixv-428" unitRef="USD">171788.31</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_1" id="ixv-429">1(a) Pursuant to Rule 415(a)(6) under the Securities Act, the US$20,000,000,000 of securities covered by this Registration Statement includes US$1,664,785,889.70 aggregate principal amount or offering price of the Registrant's senior debt securities that were unsold as of June 2, 2026 (the "Unsold Securities") that were previously registered by the Registrant on the Registration Statement on Form F-3 under the Securities Act (File No. 333-272447) filed on June 6, 2023, as amended by Pre-Effective Amendment No. 1 thereto filed on September 1, 2023 (the "Prior Registration Statement"). Pursuant to Rule 415(a) (6) under the Securities Act, US$183,459.41 of filing fees previously paid in connection with the Unsold Securities will continue to be applied to the Unsold Securities that are being carried forward to this Registration Statement. In accordance with Rule 415(a)(5), the Registrant may continue to offer and sell the securities covered by the Prior Registration Statement until the effective date of this Registration Statement. The Registrant paid $2,360,304.76 in connection with the initial filing of this Registration Statement on March 5, 2026, and the remaining $171,788.31 of filing fees are being paid concurrent with the filing of this Pre-Effective Amendment No. 1.

1(b) This Registration Statement also includes an indeterminate amount of securities of the class specified above that may be reoffered and resold on an ongoing basis after their initial sale in market-making transactions by affiliates of the Registrant. These securities consist of an indeterminate amount of such securities that are initially being registered, and will initially be offered and sold, under this Registration Statement and an indeterminate amount of such securities that were initially registered, and were initially offered and sold, under registration statements previously filed by the Registrant. All such market-making reoffers and resales of these securities that are made pursuant to a registration statement after the effectiveness of this Registration Statement are being made solely pursuant to this Registration Statement.

1(c) Estimated solely for the purpose of calculating the registration fee in accordance with Rule 457(o) under the Securities Act.

1(d) Separate consideration may not be received for registered securities that are issuable on exercise, conversion or exchange of other securities.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_2" id="ixv-430">See Offering Note 1(a)</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_3" id="ixv-431">See Offering Note 1(a)</ffd:OfferingNote>
</xbrl>
