<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.21.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>708</ContextCount>
  <ElementCount>573</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>118</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Condensed Consolidated Balance Sheets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/StatementCondensedConsolidatedBalanceSheetsUnaudited</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - Condensed Consolidated Balance Sheets (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Condensed Consolidated Statements of Income (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/StatementCondensedConsolidatedStatementsOfIncomeUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Income (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Condensed Consolidated Statements of Comprehensive Income (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncomeUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Income (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - Condensed Consolidated Statements of Comprehensive Income (unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncomeUnauditedParenthetical</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Income (unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Statement - Condensed Consolidated Statements of Changes in Stockholders' Equity (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Changes in Stockholders' Equity (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Statement - Condensed Consolidated Statements of Changes in Stockholders' Equity (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical</Role>
      <ShortName>Condensed Consolidated Statements of Changes in Stockholders' Equity (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Statement - Condensed Consolidated Statements of Cash Flows (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Basis of Accounting and Consolidation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureBasisOfAccountingAndConsolidation</Role>
      <ShortName>Basis of Accounting and Consolidation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureEarningsPerShare</Role>
      <ShortName>Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Investment Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureInvestmentSecurities</Role>
      <ShortName>Investment Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Loans and Allowance for Credit Losses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLoansAndAllowanceForCreditLosses</Role>
      <ShortName>Loans and Allowance for Credit Losses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Goodwill and Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureGoodwillAndIntangibleAssets</Role>
      <ShortName>Goodwill and Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Repurchase Agreements and Other Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureRepurchaseAgreementsAndOtherBorrowings</Role>
      <ShortName>Repurchase Agreements and Other Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Fair Value of Assets and Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureFairValueOfAssetsAndLiabilities</Role>
      <ShortName>Fair Value of Assets and Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Business Combinations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureBusinessCombinations</Role>
      <ShortName>Business Combinations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Derivatives</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureDerivatives</Role>
      <ShortName>Derivatives</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Basis of Accounting and Consolidation (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationPolicies</Role>
      <ShortName>Basis of Accounting and Consolidation (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.firstmid.com/20210930/taxonomy/role/DisclosureBasisOfAccountingAndConsolidation</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Basis of Accounting and Consolidation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationTables</Role>
      <ShortName>Basis of Accounting and Consolidation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstmid.com/20210930/taxonomy/role/DisclosureBasisOfAccountingAndConsolidation</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureEarningsPerShareTables</Role>
      <ShortName>Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstmid.com/20210930/taxonomy/role/DisclosureEarningsPerShare</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Investment Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureInvestmentSecuritiesTables</Role>
      <ShortName>Investment Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstmid.com/20210930/taxonomy/role/DisclosureInvestmentSecurities</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Loans and Allowance for Credit Losses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesTables</Role>
      <ShortName>Loans and Allowance for Credit Losses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLoansAndAllowanceForCreditLosses</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Goodwill and Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstmid.com/20210930/taxonomy/role/DisclosureGoodwillAndIntangibleAssets</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Repurchase Agreements and Other Borrowings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureRepurchaseAgreementsAndOtherBorrowingsTables</Role>
      <ShortName>Repurchase Agreements and Other Borrowings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstmid.com/20210930/taxonomy/role/DisclosureRepurchaseAgreementsAndOtherBorrowings</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Fair Value of Assets and Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureFairValueOfAssetsAndLiabilitiesTables</Role>
      <ShortName>Fair Value of Assets and Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstmid.com/20210930/taxonomy/role/DisclosureFairValueOfAssetsAndLiabilities</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Business Combinations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureBusinessCombinationsTables</Role>
      <ShortName>Business Combinations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstmid.com/20210930/taxonomy/role/DisclosureBusinessCombinations</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLeases</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Derivatives (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureDerivativesTables</Role>
      <ShortName>Derivatives (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstmid.com/20210930/taxonomy/role/DisclosureDerivatives</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Basis of Accounting and Consolidation - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails</Role>
      <ShortName>Basis of Accounting and Consolidation - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Basis of Accounting and Consolidation - Schedule of Components of Accumulated Other Comprehensive Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveIncomeDetails</Role>
      <ShortName>Basis of Accounting and Consolidation - Schedule of Components of Accumulated Other Comprehensive Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Basis of Accounting and Consolidation - Schedule of Amounts Reclassified from Accumulated Other Comprehensive Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeDetails</Role>
      <ShortName>Basis of Accounting and Consolidation - Schedule of Amounts Reclassified from Accumulated Other Comprehensive Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Basis of Accounting and Consolidation - Schedule of Impact of ASU 2016-13 Adoption (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfImpactOfASU201613AdoptionDetails</Role>
      <ShortName>Basis of Accounting and Consolidation - Schedule of Impact of ASU 2016-13 Adoption (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Basis of Accounting and Consolidation - Schedule of Impact of ASU 2016-13 Adoption of PCD Assets Previously Classified as PCI (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfImpactOfASU201613AdoptionOfPCDAssetsPreviouslyClassifiedAsPCIDetails</Role>
      <ShortName>Basis of Accounting and Consolidation - Schedule of Impact of ASU 2016-13 Adoption of PCD Assets Previously Classified as PCI (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Earnings Per Share - Components of Basic and Diluted Net Income Per Common Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails</Role>
      <ShortName>Earnings Per Share - Components of Basic and Diluted Net Income Per Common Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Earnings Per Share - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureEarningsPerShareAdditionalInformationDetails</Role>
      <ShortName>Earnings Per Share - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Investment Securities - Available for Sale and Held for Maturity Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails</Role>
      <ShortName>Investment Securities - Available for Sale and Held for Maturity Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Investment Securities - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureInvestmentSecuritiesAdditionalInformationDetails</Role>
      <ShortName>Investment Securities - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Investment Securities - Realized Gains and Losses From Sale of Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureInvestmentSecuritiesRealizedGainsAndLossesFromSaleOfSecuritiesDetails</Role>
      <ShortName>Investment Securities - Realized Gains and Losses From Sale of Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Investment Securities - Investments Classified by Contractual Maturity Date (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails</Role>
      <ShortName>Investment Securities - Investments Classified by Contractual Maturity Date (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Investment Securities - Fair Value of Investments with Sustained Gross Unrealized Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails</Role>
      <ShortName>Investment Securities - Fair Value of Investments with Sustained Gross Unrealized Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100420 - Disclosure - Loans and Allowance for Credit Losses - Summary of Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses - Summary of Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Loans and Allowance for Credit Losses - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Loans and Allowance for Credit Losses - Allowance for Credit Losses Based on Portfolio Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses - Allowance for Credit Losses Based on Portfolio Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Loans and Allowance for Credit Losses - Amortized Cost Basis of Collateral-Dependent Loans by Class of Loans Individually Evaluated (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses - Amortized Cost Basis of Collateral-Dependent Loans by Class of Loans Individually Evaluated (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Loans and Allowance for Credit Losses - Credit Risk Profile of Loan Portfolio on Amortized Cost Basis Based on Risk Rating Category (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses - Credit Risk Profile of Loan Portfolio on Amortized Cost Basis Based on Risk Rating Category (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Loans and Allowance for Credit Losses - Loan Portfolio Aging Analysis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses - Loan Portfolio Aging Analysis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Loans and Allowance for Credit Losses - Amortized Cost Basis of Loans on Nonaccrual Status and Nonaccrual Loans Individually Evaluated (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses - Amortized Cost Basis of Loans on Nonaccrual Status and Nonaccrual Loans Individually Evaluated (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100490 - Disclosure - Loans and Allowance for Credit Losses - Recorded Balance of Troubled Debt Restructurings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses - Recorded Balance of Troubled Debt Restructurings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Loans and Allowance for Credit Losses - Loans Modified as Troubled Debt Restructurings During Period (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDuringPeriodDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses - Loans Modified as Troubled Debt Restructurings During Period (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Loans and Allowance for Credit Losses - Summary of Purchased Credit Deteriorated (PCD) Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses - Summary of Purchased Credit Deteriorated (PCD) Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Goodwill and Intangible Assets - Schedule of Intangible Assets and Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Schedule of Intangible Assets and Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Goodwill and Intangible Assets - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Goodwill and Intangible Assets - Schedule of Reconciliation of Purchase Price Paid for Acquisition and Goodwill Recorded (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Schedule of Reconciliation of Purchase Price Paid for Acquisition and Goodwill Recorded (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100550 - Disclosure - Goodwill and Intangible Assets - Intangible Assets Mortgage Servicing Rights (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Intangible Assets Mortgage Servicing Rights (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100560 - Disclosure - Goodwill and Intangible Assets - Schedule of Intangible Assets Amortization Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Schedule of Intangible Assets Amortization Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Goodwill and Intangible Assets - Schedule of Expected Amortization Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Schedule of Expected Amortization Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Repurchase Agreements and Other Borrowings - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails</Role>
      <ShortName>Repurchase Agreements and Other Borrowings - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>100590 - Disclosure - Repurchase Agreements and Other Borrowings - Schedule of Securities Financing Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails</Role>
      <ShortName>Repurchase Agreements and Other Borrowings - Schedule of Securities Financing Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>100600 - Disclosure - Repurchase Agreements and Other Borrowings - Federal Home Loan Bank, Advances (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails</Role>
      <ShortName>Repurchase Agreements and Other Borrowings - Federal Home Loan Bank, Advances (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>100610 - Disclosure - Fair Value of Assets and Liabilities - Assets Measured at Fair Value on Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnRecurringBasisDetails</Role>
      <ShortName>Fair Value of Assets and Liabilities - Assets Measured at Fair Value on Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>100620 - Disclosure - Fair Value of Assets and Liabilities - Fair Value of Assets Measured on a Recurring Basis Using Significant Unobservable Inputs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails</Role>
      <ShortName>Fair Value of Assets and Liabilities - Fair Value of Assets Measured on a Recurring Basis Using Significant Unobservable Inputs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>100630 - Disclosure - Fair Value of Assets and Liabilities - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails</Role>
      <ShortName>Fair Value of Assets and Liabilities - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>100640 - Disclosure - Fair Value of Assets and Liabilities - Assets Measured at Fair Value on a Nonrecurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails</Role>
      <ShortName>Fair Value of Assets and Liabilities - Assets Measured at Fair Value on a Nonrecurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>100650 - Disclosure - Fair Value of Assets and Liabilities - Significant Unobservable Inputs Used in Valuation of Level 3 Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails</Role>
      <ShortName>Fair Value of Assets and Liabilities - Significant Unobservable Inputs Used in Valuation of Level 3 Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>100660 - Disclosure - Fair Value of Assets and Liabilities - Summary of Estimated Fair Values of Company Financial Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails</Role>
      <ShortName>Fair Value of Assets and Liabilities - Summary of Estimated Fair Values of Company Financial Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Business Combinations - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureBusinessCombinationsAdditionalInformationDetails</Role>
      <ShortName>Business Combinations - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Business Combinations - Estimated Fair Values of Assets Acquired and Liabilities Assumed (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails</Role>
      <ShortName>Business Combinations - Estimated Fair Values of Assets Acquired and Liabilities Assumed (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>100690 - Disclosure - Business Combinations - Unaudited Pro Forma Condensed Combined Financial Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails</Role>
      <ShortName>Business Combinations - Unaudited Pro Forma Condensed Combined Financial Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>100700 - Disclosure - Leases - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLeasesAdditionalInformationDetails</Role>
      <ShortName>Leases - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>100710 - Disclosure - Leases - Summary of Supplemental Balance Sheet Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails</Role>
      <ShortName>Leases - Summary of Supplemental Balance Sheet Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>100720 - Disclosure - Leases - Summary of Maturities of Lease Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails</Role>
      <ShortName>Leases - Summary of Maturities of Lease Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>100740 - Disclosure - Leases - Summary of Components of Lease Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails</Role>
      <ShortName>Leases - Summary of Components of Lease Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>100750 - Disclosure - Leases - Summary of Operating Lease Cash Flows (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureLeasesSummaryOfOperatingLeaseCashFlowsDetails</Role>
      <ShortName>Leases - Summary of Operating Lease Cash Flows (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>100760 - Disclosure - Derivatives - Schedule of Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails</Role>
      <ShortName>Derivatives - Schedule of Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>100770 - Disclosure - Derivatives - Summary of Derivative Instruments, Gain (Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails</Role>
      <ShortName>Derivatives - Summary of Derivative Instruments, Gain (Loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>100780 - Disclosure - Derivatives - Summary of Hedged Instrument (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureDerivativesSummaryOfHedgedInstrumentDetails</Role>
      <ShortName>Derivatives - Summary of Hedged Instrument (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="fmbh-10q_20210930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>100790 - Disclosure - Derivatives - Summary of Non Hedge Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstmid.com/20210930/taxonomy/role/DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails</Role>
      <ShortName>Derivatives - Summary of Non Hedge Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" original="fmbh-10q_20210930.htm">fmbh-10q_20210930.htm</File>
    <File>fmbh-20210930.xsd</File>
    <File>fmbh-20210930_cal.xml</File>
    <File>fmbh-20210930_def.xml</File>
    <File>fmbh-20210930_lab.xml</File>
    <File>fmbh-20210930_pre.xml</File>
    <File>fmbh-ex311_8.htm</File>
    <File>fmbh-ex312_7.htm</File>
    <File>fmbh-ex321_6.htm</File>
    <File>fmbh-ex322_9.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2021</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2021-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
