<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="mnsb-20260331.xsd" xlink:type="simple"/>
    <context id="d_2026-01-01_2026-03-31">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001693577</identifier>
        </entity>
        <period>
            <startDate>2026-01-01</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="d_2026-01-01_2026-03-31" id="ixv-270">true</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="d_2026-01-01_2026-03-31" id="ixv-271">0001693577</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="d_2026-01-01_2026-03-31" id="c3">POS AM</dei:DocumentType>
    <dei:EntityRegistrantName contextRef="d_2026-01-01_2026-03-31" id="c4">MainStreet Bancshares, Inc.</dei:EntityRegistrantName>
    <dei:AmendmentDescription contextRef="d_2026-01-01_2026-03-31" id="c5">This Post-Effective Amendment No. 1 (the &#x201c;Post-Effective Amendment&#x201d;) relates to the Registration Statement on Form S-3, as amended, File No. 333-279617 (the &#x201c;Registration Statement&#x201d;), of MainStreet Bancshares, Inc. (the &#x201c;Company&#x201d;), filed with the Securities and Exchange Commission on May 22, 2024, amended on June 11, 2024, and declared effective on June 13, 2024. The Registration Statement registered an amount or number of shares of Common Stock, shares of Preferred Stock, Depositary Shares, Debt Securities, Warrants, and Units as would have an aggregate initial offering price not to exceed $125,000,000. In accordance with an undertaking made by the Company in the Registration Statement to remove from registration by means of a post-effective amendment any of the securities registered which remain unsold at the termination of the offering, the Company files this Post-Effective Amendment to terminate the effectiveness of the Registration Statement and to remove from registration all of the securities registered but unsold under the Registration Statement as of the date hereof.</dei:AmendmentDescription>
</xbrl>
