{
  "cik": 1693577,
  "cik_padded": "0001693577",
  "entityName": "MainStreet Bancshares, Inc.",
  "fiscal_years": [
    {
      "accn": "0001437749-26-008073",
      "filed": "2026-03-13",
      "fiscal_year": 2025,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cost_of_revenue": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 4336000.0,
        "capex": 4174000.0,
        "cost_of_revenue": 62043000.0,
        "dividends_paid": 3050000.0,
        "eps_diluted": 1.76,
        "free_cash_flow": 10637000.0,
        "gross_profit": 73572000.0,
        "net_income": 15613000.0,
        "operating_cash_flow": 14811000.0,
        "revenue": 135615000.0,
        "stockholders_equity": 218591000.0,
        "total_assets": 2212669000.0,
        "total_liabilities": 1994078000.0
      },
      "period_end": "2025-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5425063599159385,
        "leverage": 9.12241583596763,
        "net_margin": 0.11512738266415959,
        "payout_ratio": 0.1953500288221354,
        "revenue_growth_yoy": -0.016334583330311098,
        "roa_avg2y": 0.007031668178042217,
        "roa_period_end": 0.00705618418299348,
        "roe_avg2y": 0.0732004632169196,
        "roe_period_end": 0.0714256305154375
      }
    },
    {
      "accn": "0001437749-26-008073",
      "filed": "2026-03-13",
      "fiscal_year": 2024,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cost_of_revenue": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 732000.0,
        "capex": 909000.0,
        "cost_of_revenue": 72041000.0,
        "dividends_paid": 3046000.0,
        "eps_diluted": -1.6,
        "free_cash_flow": 13831000.0,
        "gross_profit": 65826000.0,
        "net_income": -9980000.0,
        "operating_cash_flow": 14740000.0,
        "revenue": 137867000.0,
        "stockholders_equity": 207991000.0,
        "total_assets": 2228098000.0,
        "total_liabilities": 2020107000.0
      },
      "period_end": "2024-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.4774601608796884,
        "leverage": 9.71247313585684,
        "net_margin": -0.0723886064105261,
        "revenue_growth_yoy": 0.07910082106433106,
        "roa_avg2y": -0.004681566683006805,
        "roa_period_end": -0.004479156661870348,
        "roe_avg2y": -0.0464717770099742,
        "roe_period_end": -0.04798284541158031
      }
    },
    {
      "accn": "0001437749-26-008073",
      "filed": "2026-03-13",
      "fiscal_year": 2023,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cost_of_revenue": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 43000.0,
        "capex": 497000.0,
        "cost_of_revenue": 47679000.0,
        "dividends_paid": 3011000.0,
        "eps_diluted": 3.25,
        "free_cash_flow": 31136000.0,
        "gross_profit": 80082000.0,
        "net_income": 26585000.0,
        "operating_cash_flow": 31633000.0,
        "revenue": 127761000.0,
        "stockholders_equity": 221517000.0,
        "total_assets": 2035432000.0,
        "total_liabilities": 1813915000.0
      },
      "period_end": "2023-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.6268109986615634,
        "leverage": 8.18860403490477,
        "net_margin": 0.2080838440525669,
        "payout_ratio": 0.11325935678013918,
        "revenue_growth_yoy": 0.4407131338873916,
        "roa_avg2y": 0.013585855991970625,
        "roa_period_end": 0.013061109386115577,
        "roe_avg2y": 0.126655851967251,
        "roe_period_end": 0.12001336240559417
      }
    },
    {
      "accn": "0001437749-26-008073",
      "filed": "2026-03-13",
      "fiscal_year": 2022,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cost_of_revenue": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 6918000.0,
        "capex": 1125000.0,
        "cost_of_revenue": 13369000.0,
        "dividends_paid": 1882000.0,
        "eps_diluted": 3.26,
        "free_cash_flow": 32419000.0,
        "gross_profit": 75310000.0,
        "net_income": 26674000.0,
        "operating_cash_flow": 33544000.0,
        "revenue": 88679000.0,
        "stockholders_equity": 198282000.0,
        "total_assets": 1878197000.0,
        "total_liabilities": 1727469000.0
      },
      "period_end": "2022-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "payout_ratio": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.8492427745012912,
        "leverage": 8.712182648954519,
        "net_margin": 0.3007927468735552,
        "payout_ratio": 0.07055559721076704,
        "roa_avg2y": 0.015131613096100833,
        "roa_period_end": 0.014201918116150757,
        "roe_avg2y": 0.137825199576304,
        "roe_period_end": 0.13452557468655754
      }
    },
    {
      "accn": "0001437749-26-007948",
      "filed": "2026-03-12",
      "fiscal_year": 2021,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 0.0,
        "capex": 1806000.0,
        "dividends_paid": 0.0,
        "eps_diluted": 2.65,
        "free_cash_flow": 27318000.0,
        "net_income": 22171000.0,
        "operating_cash_flow": 29124000.0,
        "stockholders_equity": 188788000.0,
        "total_assets": 1647402000.0,
        "total_liabilities": 1458614000.0
      },
      "period_end": "2021-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "payout_ratio": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 7.726200817848592,
        "payout_ratio": 0.0,
        "roa_avg2y": 0.013475489178612682,
        "roa_period_end": 0.01345816018191067,
        "roe_avg2y": 0.12439788695844894,
        "roe_period_end": 0.11743860838612624
      }
    },
    {
      "accn": "0001564590-22-011471",
      "filed": "2023-03-23",
      "fiscal_year": 2020,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 13797000.0,
        "capex": 1282000.0,
        "eps_diluted": 1.85,
        "free_cash_flow": 15734000.0,
        "net_income": 15717000.0,
        "operating_cash_flow": 17016000.0,
        "stockholders_equity": 167665000.0,
        "total_assets": 1643165000.0,
        "total_liabilities": 1475500000.0
      },
      "period_end": "2020-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 8.80028628515194,
        "roa_avg2y": 0.010763140711441067,
        "roa_period_end": 0.009565077152933515,
        "roe_avg2y": 0.1031641062162987,
        "roe_period_end": 0.09374049443831449
      }
    },
    {
      "accn": "0001564590-22-011471",
      "filed": "2022-03-23",
      "fiscal_year": 2019,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "capex": 990000.0,
        "eps_diluted": 1.69,
        "free_cash_flow": 15702000.0,
        "net_income": 13950000.0,
        "operating_cash_flow": 16692000.0,
        "stockholders_equity": 137034000.0,
        "total_assets": 1277358000.0,
        "total_liabilities": 1140324000.0
      },
      "period_end": "2019-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 8.32146766495906,
        "roa_avg2y": 0.011732691441569304,
        "roa_period_end": 0.010920979083389308,
        "roe_avg2y": 0.10802021023288227,
        "roe_period_end": 0.10179955339550767
      }
    },
    {
      "accn": "0001564590-21-014874",
      "filed": "2021-03-23",
      "fiscal_year": 2018,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "capex": 1375000.0,
        "eps_diluted": 1.38,
        "free_cash_flow": 11216000.0,
        "net_income": 9209000.0,
        "operating_cash_flow": 12591000.0,
        "stockholders_equity": 121251000.0,
        "total_assets": 1100613000.0,
        "total_liabilities": 979362000.0
      },
      "period_end": "2018-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 8.077145755498924,
        "roa_period_end": 0.008367155394312079,
        "roe_avg2y": 0.09691031928103887,
        "roe_period_end": 0.07594988907307981
      }
    },
    {
      "accn": "0001564590-20-012185",
      "filed": "2020-03-23",
      "fiscal_year": 2017,
      "form": "10-K",
      "fundamental_units": {
        "stockholders_equity": "USD"
      },
      "fundamentals": {
        "stockholders_equity": 68801000.0
      },
      "period_end": "2017-12-31",
      "ratios": {}
    }
  ],
  "latest_filing": {
    "accn": "0001437749-26-008073",
    "filed": "2026-03-13",
    "form": "10-K"
  },
  "note": "Static grepcent export of verified SEC companyfacts-derived values. Monetary values are raw reported units from grepcent's resolved facts; no scaling and no FX conversion. Capex, dividends, and buybacks are reported as positive outflow magnitudes. ROE/ROA include both period-end basis (site-consistent) and average-of-two-years basis where the prior-year denominator exists.",
  "schema_version": "1",
  "sic": "6022",
  "sic_description": "State Commercial Banks",
  "source_urls": {
    "sec_companyfacts": "https://data.sec.gov/api/xbrl/companyfacts/CIK0001693577.json",
    "sec_submissions": "https://data.sec.gov/submissions/CIK0001693577.json"
  },
  "ticker": "MNSB"
}
