<?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:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="cbsh-20260716.xsd" xlink:type="simple"/>
    <context id="c-1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000022356</identifier>
        </entity>
        <period>
            <startDate>2026-07-16</startDate>
            <endDate>2026-07-16</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="c-1" id="f-21">true</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="c-1" id="f-22">0000022356</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="c-1" id="f-1">8-K/A</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="c-1" id="f-2">2026-07-16</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="c-1" id="f-3">Commerce Bancshares, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="c-1" id="f-4">MO</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="c-1" id="f-5">001-36502</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="c-1" id="f-6">43-0889454</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="c-1" id="f-7">1000 Walnut,</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown contextRef="c-1" id="f-8">Kansas City,</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="c-1" id="f-9">MO</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="c-1" id="f-10">64106</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="c-1" id="f-11">816</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="c-1" id="f-12">234-2000</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="c-1" id="f-13">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="c-1" id="f-14">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="c-1" id="f-15">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="c-1" id="f-16">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle contextRef="c-1" id="f-17">$5 Par Value Common Stock</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="c-1" id="f-18">CBSH</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="c-1" id="f-19">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="c-1" id="f-20">false</dei:EntityEmergingGrowthCompany>
    <dei:AmendmentDescription contextRef="c-1" id="f-23">Subsequent to the issuance of the earnings release and furnishing with the original Form 8-K on July 16, 2026, the Company identified that the growth in assets under administration had been incorrectly described as growth over the same period in the prior year rather than growth over the prior quarter.  Therefore, the Company has prepared and furnished as Exhibit 99.1 to this Current Report on Form 8-K/A a corrected earnings release for investors and analysts that highlights the Company's Second Quarter 2026 earnings. The amended earnings release corrects the description of growth in the Company&#x2019;s assets under administration on the second page of the earnings release.  The statement as corrected reads as follows: &#x201c;Assets under administration grew $3.1 billion, or 3.4%, over the prior quarter.&#x201d;   Apart from the correction of this typographical error, there were no changes to the information provided in the original press release and slide presentation.</dei:AmendmentDescription>
    <dei:DocumentPeriodEndDate contextRef="c-1" id="f-24">2026-07-16</dei:DocumentPeriodEndDate>
    <dei:DocumentPeriodEndDate contextRef="c-1" id="f-25">2026-07-16</dei:DocumentPeriodEndDate>
</xbrl>
