<?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">0001693577</identifier>
        </entity>
        <period>
            <startDate>2026-05-15</startDate>
            <endDate>2026-05-15</endDate>
        </period>
    </context>
    <context id="offrl_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001693577</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-15</startDate>
            <endDate>2026-05-15</endDate>
        </period>
    </context>
    <context id="offrl_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001693577</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-15</startDate>
            <endDate>2026-05-15</endDate>
        </period>
    </context>
    <context id="offrl_3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001693577</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>3</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-15</startDate>
            <endDate>2026-05-15</endDate>
        </period>
    </context>
    <context id="offrl_4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001693577</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>4</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-15</startDate>
            <endDate>2026-05-15</endDate>
        </period>
    </context>
    <context id="offrl_5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001693577</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>5</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-15</startDate>
            <endDate>2026-05-15</endDate>
        </period>
    </context>
    <context id="offrl_6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001693577</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>6</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-15</startDate>
            <endDate>2026-05-15</endDate>
        </period>
    </context>
    <context id="offrl_7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001693577</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>7</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-15</startDate>
            <endDate>2026-05-15</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-432">S-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-433">S-3</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-434">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-435">0001693577</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-436">MainStreet Bancshares, 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:FeeRate
      contextRef="offrl_1"
      decimals="7"
      id="ixv-440"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_2"
      decimals="7"
      id="ixv-441"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_3"
      decimals="7"
      id="ixv-442"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_4"
      decimals="7"
      id="ixv-443"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_5"
      decimals="7"
      id="ixv-444"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_6"
      decimals="7"
      id="ixv-445"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FormTp contextRef="rc" id="ixv-524">S-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-525">MainStreet Bancshares, Inc.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="offrl_1" id="ixv-526">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-527">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-528">Common Stock</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_1" id="ixv-529">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_1"
      decimals="2"
      id="ixv-530"
      unitRef="USD">0.00</ffd:MaxAggtOfferingPric>
    <ffd:PrevslyPdFlg contextRef="offrl_2" id="ixv-531">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_2" id="ixv-532">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_2" id="ixv-533">Preferred Stock</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_2" id="ixv-534">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_2"
      decimals="2"
      id="ixv-535"
      unitRef="USD">0.00</ffd:MaxAggtOfferingPric>
    <ffd:PrevslyPdFlg contextRef="offrl_3" id="ixv-536">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_3" id="ixv-537">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_3" id="ixv-538">Depository Shares</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_3" id="ixv-539">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_3"
      decimals="2"
      id="ixv-540"
      unitRef="USD">0.00</ffd:MaxAggtOfferingPric>
    <ffd:PrevslyPdFlg contextRef="offrl_4" id="ixv-541">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_4" id="ixv-542">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_4" id="ixv-543">Debt Securities</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_4" id="ixv-544">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_4"
      decimals="2"
      id="ixv-545"
      unitRef="USD">0.00</ffd:MaxAggtOfferingPric>
    <ffd:PrevslyPdFlg contextRef="offrl_5" id="ixv-546">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_5" id="ixv-547">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_5" id="ixv-548">Warrants</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_5" id="ixv-549">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_5"
      decimals="2"
      id="ixv-550"
      unitRef="USD">0.00</ffd:MaxAggtOfferingPric>
    <ffd:PrevslyPdFlg contextRef="offrl_6" id="ixv-551">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_6" id="ixv-552">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_6" id="ixv-553">Units</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_6" id="ixv-554">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_6"
      decimals="2"
      id="ixv-555"
      unitRef="USD">0.00</ffd:MaxAggtOfferingPric>
    <ffd:PrevslyPdFlg contextRef="offrl_7" id="ixv-556">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_7" id="ixv-557">Unallocated (Universal) Shelf</ffd:OfferingSctyTp>
    <ffd:Rule457oFlg contextRef="offrl_7" id="ixv-558">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_7"
      decimals="2"
      id="ixv-559"
      unitRef="USD">125000000.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_7"
      decimals="7"
      id="ixv-560"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_7"
      decimals="2"
      id="ixv-561"
      unitRef="USD">17262.50</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="2" id="ixv-562" unitRef="USD">125000000.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="2" id="ixv-563" unitRef="USD">17262.50</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="rc" decimals="2" id="ixv-564" unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="2" id="ixv-565" unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="2" id="ixv-566" unitRef="USD">17262.50</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_7" id="ixv-567">(1) There is being registered hereunder an indeterminate number of shares of (a) common stock, (b) preferred stock, (c) depositary shares to purchase preferred stock, (d) debt securities, (e) warrants to purchase common stock or preferred stock, and (f) units, consisting of some or all of these securities in any combination, as may be sold from time to time by the registrant. There is also being registered hereunder an indeterminate number of shares of common stock, preferred stock and debt securities as shall be issuable upon conversion, exchange or exercise of any securities that provide for such issuance. In no event will the aggregate offering price of all types of securities issued by the registrant pursuant to this registration statement exceed $125,000,000. Pursuant to Rule 416 under the Securities Act of 1933, as amended, (the "Securities Act") this registration statement also covers any additional securities that may be offered or issued in connection with any stock split, stock dividend or pursuant to anti-dilution provisions of any of the securities. Separate consideration may or may not be received for securities that are issuable upon conversion, exercise or exchange of other securities. If any debt securities are issued at an original discount, then the offering may be in such greater principal amount as shall result in a maximum aggregate offering price not to exceed $125,000,000 after the date hereof. 

(2) The proposed maximum aggregate offering price per class of security will be determined from time to time by the registrant in connection with the issuance by the registrant of the securities registered hereunder and is not specified as to each class of security pursuant to Item 16(b) of Form S-3 under the Securities Act.</ffd:OfferingNote>
</xbrl>
