<?xml version="1.0" encoding="utf-8"?>
<xbrl
  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="jmsb-20260721.xsd" xlink:type="simple"/>
    <context id="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001710482</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Tc_skF9HO1CcUiGJXT_3eD2HA_2_1">0001710482</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Tc_JZu0WgAqKEuXSrZFN3YEwQ_3_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Narr_usC1tvSaskan52wI3wff5g">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Narr_phOkvoW8Q0mFBR1LmuED0A">2026-07-21</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Narr_nQ014H-r_E-IzwNFsvRsAA">John Marshall Bancorp,&#160;Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Tc_3NTLNHXwo0-wDNwtvfoarw_1_0">VA</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Tc_iLQWPIMjzEqXPdlAsiMnAg_1_2">001-41315</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Tc_mJRP1uW4y02vy6EuM81MaA_1_4">81-5424879</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Narr_oyI75JM3tEag4gFT3rAAiw">1943 Isaac Newton Square</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Narr_bxfG5fHPIkuU4yEw_KY9zw">Suite&#160;100</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Narr_1Gn1ep5t80a7sZvvAxYDcg">Reston</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Narr_irlygz2NbkaONMpgnnCv7g">VA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Narr_fcgwEikUq06Q2rO1RF3_AQ">20190</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Narr_sY8IR_sG_UKrmDYsdMokaA">703</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Narr_Sh_6IigJi0COZDVmwijiAA">584-0840</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Tc_TD3_1z0bp0CctQzb6r5x5A_1_1">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Tc_18-o2ZE1GkGh3ErxgkaoLg_2_1">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Tc_kmiOBjaW0k6-MySUp1wcOA_3_1">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Tc_7RUGpp_Aj06QTHQ3L7dBYw_4_1">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Tc_zNKJRJxZ1kGcILnxLvC1ug_1_0">Common Stock, par value $0.01 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Tc_mqj9zMk2xUqY6sjb8TpQqg_1_2">JMSB</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Tc_l-Jww2vkokGnUYUI_-KB-Q_1_4">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Narr_8G1bAsfBd0KVef85cr8QmQ">true</dei:EntityEmergingGrowthCompany>
    <dei:EntityExTransitionPeriod
      contextRef="Duration_7_21_2026_To_7_21_2026_pu0Exvz_x0KQGdjYVnnmtQ"
      id="Narr_8zviTG_y3064rUK8pbnsWg">true</dei:EntityExTransitionPeriod>
</xbrl>
