<?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">0001710482</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <context id="offrl_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001710482</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-351">S-4</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-352">S-4</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-353">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-354">0001710482</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-355">John Marshall Bancorp, Inc.</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-383">S-4</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-384">John Marshall Bancorp, Inc.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="offrl_1" id="ixv-385">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-386">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-387">Common stock, par value $0.01 per share</ffd:OfferingSctyTitl>
    <ffd:Rule457aFlg contextRef="offrl_1" id="ixv-388">true</ffd:Rule457aFlg>
    <ffd:AmtSctiesRegd
      contextRef="offrl_1"
      decimals="0"
      id="ixv-389"
      unitRef="Shares">10826600</ffd:AmtSctiesRegd>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_1"
      decimals="2"
      id="ixv-390"
      unitRef="USD">248037406.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_1"
      decimals="6"
      id="ixv-391"
      unitRef="pure">0.000087</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_1"
      decimals="2"
      id="ixv-392"
      unitRef="USD">21579.25</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="2" id="ixv-393" unitRef="USD">248037406.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="2" id="ixv-394" unitRef="USD">21579.25</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="rc" decimals="2" id="ixv-395" unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="2" id="ixv-396" unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="2" id="ixv-397" unitRef="USD">21579.25</ffd:NetFeeAmt>
    <ffd:Rule457fFlg contextRef="offrl_1" id="ixv-398">true</ffd:Rule457fFlg>
    <ffd:OfferingNote contextRef="offrl_1" id="ixv-399">Represents the maximum number of shares of common stock, par value $0.01 per share, of John Marshall Bancorp, Inc., or JMSB, issuable upon the completion of the merger of Eagle Financial Services, Inc., or EFSI, and JMSB pursuant to the Agreement and Plan of Merger, dated as of September 7, 2026, by and among JMSB, George Sub, Inc. and EFSI, in exchange for shares of common stock of EFSI, par value $2.50 per share, or EFSI common stock.

Estimated solely for the purpose of calculating the registration fee required by Section 6(b) of the Securities Act of 1933, or Securities Act, and computed pursuant to Rule 457(c) and 457(f)(1) under the Securities Act. The proposed maximum aggregate offering price was calculated as the product of  (i) $45.82, the average of the high and low sales prices of EFSI common stock as reported on the Nasdaq on September 29, 2026 and (ii) 5,413,300, the estimated maximum number of shares of EFSI common stock that may be exchanged in connection with the merger, including in connection with shares of EFSI common stock subject to restricted stock awards. </ffd:OfferingNote>
    <ffd:AmtSctiesRcvd
      contextRef="offrl_1"
      decimals="0"
      id="ixv-400"
      unitRef="Shares">5413300</ffd:AmtSctiesRcvd>
    <ffd:ValSctiesRcvdPerShr
      contextRef="offrl_1"
      decimals="2"
      id="ixv-401"
      unitRef="USD">45.82</ffd:ValSctiesRcvdPerShr>
    <ffd:ValSctiesRcvd
      contextRef="offrl_1"
      decimals="2"
      id="ixv-402"
      unitRef="USD">248037406.00</ffd:ValSctiesRcvd>
    <ffd:FeeNoteMaxAggtOfferingPric
      contextRef="offrl_1"
      decimals="2"
      id="ixv-403"
      unitRef="USD">248037406.00</ffd:FeeNoteMaxAggtOfferingPric>
</xbrl>
