<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.20.4</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>942</ContextCount>
  <ElementCount>708</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>133</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>14</UnitCount>
  <MyReports>
    <Report instance="fmnb-10k_20201231.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.farmersbankgroup.com/20201231/taxonomy/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/StatementConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Consolidated Statements of Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/StatementConsolidatedStatementsOfIncome</Role>
      <ShortName>Consolidated Statements of Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - Consolidated Statements of Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Statement - Consolidated Statements of Stockholders' Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquityParenthetical</Role>
      <ShortName>Consolidated Statements of Stockholders' Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Business Combinations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureBusinessCombinations</Role>
      <ShortName>Business Combinations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Securities Available for Sale</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSecuritiesAvailableForSale</Role>
      <ShortName>Securities Available for Sale</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Loans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoans</Role>
      <ShortName>Loans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Revenue from Contracts with Customers</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRevenueFromContractsWithCustomers</Role>
      <ShortName>Revenue from Contracts with Customers</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Loan Servicing</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoanServicing</Role>
      <ShortName>Loan Servicing</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Fair Value</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureFairValue</Role>
      <ShortName>Fair Value</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Premises and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosurePremisesAndEquipment</Role>
      <ShortName>Premises and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Goodwill and Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureGoodwillAndIntangibleAssets</Role>
      <ShortName>Goodwill and Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Interest Bearing Deposits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureInterestBearingDeposits</Role>
      <ShortName>Interest Bearing Deposits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Short-term Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureShortTermBorrowings</Role>
      <ShortName>Short-term Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Long-Term Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLongTermBorrowings</Role>
      <ShortName>Long-Term Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Commitments and Contingent Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureCommitmentsAndContingentLiabilities</Role>
      <ShortName>Commitments and Contingent Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Stock Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureStockBasedCompensation</Role>
      <ShortName>Stock Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Regulatory Matters</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRegulatoryMatters</Role>
      <ShortName>Regulatory Matters</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Employee Benefit Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureEmployeeBenefitPlans</Role>
      <ShortName>Employee Benefit Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Other Comprehensive Income (Loss)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureOtherComprehensiveIncomeLoss</Role>
      <ShortName>Other Comprehensive Income (Loss)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureEarningsPerShare</Role>
      <ShortName>Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Interest Rate Swaps</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureInterestRateSwaps</Role>
      <ShortName>Interest Rate Swaps</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Segment Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSegmentInformation</Role>
      <ShortName>Segment Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Quarterly Financial Data (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureQuarterlyFinancialDataUnaudited</Role>
      <ShortName>Quarterly Financial Data (Unaudited)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Parent Company Only Condensed Financial Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureParentCompanyOnlyCondensedFinancialInformation</Role>
      <ShortName>Parent Company Only Condensed Financial Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Business Combinations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureBusinessCombinationsTables</Role>
      <ShortName>Business Combinations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureBusinessCombinations</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Securities Available for Sale (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSecuritiesAvailableForSaleTables</Role>
      <ShortName>Securities Available for Sale (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSecuritiesAvailableForSale</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Loans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansTables</Role>
      <ShortName>Loans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoans</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100370 - Disclosure -  Revenue from Contracts with Customers (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRevenueFromContractsWithCustomersTables</Role>
      <ShortName>Revenue from Contracts with Customers (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRevenueFromContractsWithCustomers</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Loan Servicing (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoanServicingTables</Role>
      <ShortName>Loan Servicing (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoanServicing</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Fair Value (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureFairValueTables</Role>
      <ShortName>Fair Value (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureFairValue</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Premises and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosurePremisesAndEquipmentTables</Role>
      <ShortName>Premises and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosurePremisesAndEquipment</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLeases</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100420 - Disclosure - Goodwill and Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureGoodwillAndIntangibleAssets</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Interest Bearing Deposits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureInterestBearingDepositsTables</Role>
      <ShortName>Interest Bearing Deposits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureInterestBearingDeposits</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Short-term Borrowings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureShortTermBorrowingsTables</Role>
      <ShortName>Short-term Borrowings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureShortTermBorrowings</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Long-Term Borrowings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLongTermBorrowingsTables</Role>
      <ShortName>Long-Term Borrowings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLongTermBorrowings</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Commitments and Contingent Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureCommitmentsAndContingentLiabilitiesTables</Role>
      <ShortName>Commitments and Contingent Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureCommitmentsAndContingentLiabilities</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Stock Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureStockBasedCompensationTables</Role>
      <ShortName>Stock Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureStockBasedCompensation</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Regulatory Matters (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRegulatoryMattersTables</Role>
      <ShortName>Regulatory Matters (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRegulatoryMatters</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100490 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureIncomeTaxes</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Other Comprehensive Income (Loss) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureOtherComprehensiveIncomeLossTables</Role>
      <ShortName>Other Comprehensive Income (Loss) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureOtherComprehensiveIncomeLoss</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Related Party Transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRelatedPartyTransactionsTables</Role>
      <ShortName>Related Party Transactions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRelatedPartyTransactions</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureEarningsPerShareTables</Role>
      <ShortName>Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureEarningsPerShare</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Interest Rate Swaps (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureInterestRateSwapsTables</Role>
      <ShortName>Interest Rate Swaps (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureInterestRateSwaps</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Segment Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSegmentInformationTables</Role>
      <ShortName>Segment Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSegmentInformation</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100550 - Disclosure - Quarterly Financial Data (Unaudited) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureQuarterlyFinancialDataUnauditedTables</Role>
      <ShortName>Quarterly Financial Data (Unaudited) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureQuarterlyFinancialDataUnaudited</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100560 - Disclosure - Parent Company Only Condensed Financial Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureParentCompanyOnlyCondensedFinancialInformationTables</Role>
      <ShortName>Parent Company Only Condensed Financial Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureParentCompanyOnlyCondensedFinancialInformation</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Summary of Significant Accounting Policies (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesDetailsTextual</Role>
      <ShortName>Summary of Significant Accounting Policies (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Business Combinations (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureBusinessCombinationsDetailsTextual</Role>
      <ShortName>Business Combinations (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureBusinessCombinationsTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>100590 - Disclosure - Business Combinations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureBusinessCombinationsDetails</Role>
      <ShortName>Business Combinations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureBusinessCombinationsTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>100600 - Disclosure - Business Combinations (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureBusinessCombinationsDetails1</Role>
      <ShortName>Business Combinations (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureBusinessCombinationsTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>100610 - Disclosure - Securities Available for Sale (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSecuritiesAvailableForSaleDetails</Role>
      <ShortName>Securities Available for Sale (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSecuritiesAvailableForSaleTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>100620 - Disclosure - Securities Available for Sale (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSecuritiesAvailableForSaleDetails1</Role>
      <ShortName>Securities Available for Sale (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSecuritiesAvailableForSaleTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>100630 - Disclosure - Securities Available for Sale (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSecuritiesAvailableForSaleDetailsTextual</Role>
      <ShortName>Securities Available for Sale (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSecuritiesAvailableForSaleTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>100640 - Disclosure - Securities Available for Sale (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSecuritiesAvailableForSaleDetails2</Role>
      <ShortName>Securities Available for Sale (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSecuritiesAvailableForSaleTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>100650 - Disclosure - Securities Available for Sale (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSecuritiesAvailableForSaleDetails3</Role>
      <ShortName>Securities Available for Sale (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSecuritiesAvailableForSaleTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>100660 - Disclosure - Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansDetails</Role>
      <ShortName>Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Loans (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansDetails1</Role>
      <ShortName>Loans (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Loans (Details 1) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansDetails1Parenthetical</Role>
      <ShortName>Loans (Details 1) (Parenthetical)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>100690 - Disclosure - Loans (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansDetails2</Role>
      <ShortName>Loans (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>100700 - Disclosure - Loans (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansDetails3</Role>
      <ShortName>Loans (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>100710 - Disclosure - Loans (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansDetails4</Role>
      <ShortName>Loans (Details 4)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>100720 - Disclosure - Loans (Details 5)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansDetails5</Role>
      <ShortName>Loans (Details 5)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>100730 - Disclosure - Loans (Details 6)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansDetails6</Role>
      <ShortName>Loans (Details 6)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>74</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>100740 - Disclosure - Loans (Details 7)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansDetails7</Role>
      <ShortName>Loans (Details 7)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>75</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>100750 - Disclosure - Loans (Details 8)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansDetails8</Role>
      <ShortName>Loans (Details 8)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>100760 - Disclosure - Loans (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansDetailsTextual</Role>
      <ShortName>Loans (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>77</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>100770 - Disclosure - Loans (Details 9)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansDetails9</Role>
      <ShortName>Loans (Details 9)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>78</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>100780 - Disclosure - Loans (Details 10)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansDetails10</Role>
      <ShortName>Loans (Details 10)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>100790 - Disclosure - Loans (Details 11)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansDetails11</Role>
      <ShortName>Loans (Details 11)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>80</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>100800 - Disclosure - Loans (Details 12)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansDetails12</Role>
      <ShortName>Loans (Details 12)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>100810 - Disclosure - Revenue from Contracts with Customers (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRevenueFromContractsWithCustomersDetails</Role>
      <ShortName>Revenue from Contracts with Customers (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRevenueFromContractsWithCustomersTables</ParentRole>
      <Position>82</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>100820 - Disclosure - Revenue from Contracts with Customers (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRevenueFromContractsWithCustomersDetailsTextual</Role>
      <ShortName>Revenue from Contracts with Customers (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRevenueFromContractsWithCustomersTables</ParentRole>
      <Position>83</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>100830 - Disclosure - Loan Servicing - Summary of Principal Balance for Mortgage Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoanServicingSummaryOfPrincipalBalanceForMortgageLoansDetails</Role>
      <ShortName>Loan Servicing - Summary of Principal Balance for Mortgage Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>100840 - Disclosure - Loan Servicing - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoanServicingAdditionalInformationDetails</Role>
      <ShortName>Loan Servicing - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>100850 - Disclosure - Loan Servicing - Summary of Activity for Mortgage Servicing Rights of Acquisition (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLoanServicingSummaryOfActivityForMortgageServicingRightsOfAcquisitionDetails</Role>
      <ShortName>Loan Servicing - Summary of Activity for Mortgage Servicing Rights of Acquisition (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>100860 - Disclosure - Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureFairValueDetails</Role>
      <ShortName>Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureFairValueTables</ParentRole>
      <Position>87</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>100870 - Disclosure - Fair Value (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureFairValueDetailsTextual</Role>
      <ShortName>Fair Value (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureFairValueTables</ParentRole>
      <Position>88</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>100880 - Disclosure - Fair Value (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureFairValueDetails1</Role>
      <ShortName>Fair Value (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureFairValueTables</ParentRole>
      <Position>89</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>100890 - Disclosure - Fair Value (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureFairValueDetails2</Role>
      <ShortName>Fair Value (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureFairValueTables</ParentRole>
      <Position>90</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>100900 - Disclosure - Fair Value (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureFairValueDetails3</Role>
      <ShortName>Fair Value (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureFairValueTables</ParentRole>
      <Position>91</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>100910 - Disclosure - Fair Value (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureFairValueDetails4</Role>
      <ShortName>Fair Value (Details 4)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureFairValueTables</ParentRole>
      <Position>92</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>100920 - Disclosure - Premises and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosurePremisesAndEquipmentDetails</Role>
      <ShortName>Premises and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosurePremisesAndEquipmentTables</ParentRole>
      <Position>93</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>100930 - Disclosure - Premises and Equipment (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosurePremisesAndEquipmentDetailsTextual</Role>
      <ShortName>Premises and Equipment (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosurePremisesAndEquipmentTables</ParentRole>
      <Position>94</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>100940 - Disclosure - Premises and Equipment (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosurePremisesAndEquipmentDetails1</Role>
      <ShortName>Premises and Equipment (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosurePremisesAndEquipmentTables</ParentRole>
      <Position>95</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>100950 - Disclosure - Leases (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLeasesDetailsTextual</Role>
      <ShortName>Leases (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLeasesTables</ParentRole>
      <Position>96</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>100960 - Disclosure - Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLeasesDetails</Role>
      <ShortName>Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLeasesTables</ParentRole>
      <Position>97</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>100980 - Disclosure - Goodwill and Intangible Assets (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsDetailsTextual</Role>
      <ShortName>Goodwill and Intangible Assets (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsTables</ParentRole>
      <Position>98</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>100990 - Disclosure - Goodwill and Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsTables</ParentRole>
      <Position>99</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>101000 - Disclosure - Goodwill and Intangible Assets (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsDetails1</Role>
      <ShortName>Goodwill and Intangible Assets (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsTables</ParentRole>
      <Position>100</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>101010 - Disclosure - Interest Bearing Deposits (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureInterestBearingDepositsDetailsTextual</Role>
      <ShortName>Interest Bearing Deposits (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureInterestBearingDepositsTables</ParentRole>
      <Position>101</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>101020 - Disclosure - Interest Bearing Deposits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureInterestBearingDepositsDetails</Role>
      <ShortName>Interest Bearing Deposits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureInterestBearingDepositsTables</ParentRole>
      <Position>102</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>101030 - Disclosure - Interest Bearing Deposits (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureInterestBearingDepositsDetails1</Role>
      <ShortName>Interest Bearing Deposits (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureInterestBearingDepositsTables</ParentRole>
      <Position>103</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>101040 - Disclosure - Short-term borrowings (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureShortTermBorrowingsDetailsTextual</Role>
      <ShortName>Short-term borrowings (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>104</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>101050 - Disclosure - Short-term borrowings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureShortTermBorrowingsDetails</Role>
      <ShortName>Short-term borrowings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>101060 - Disclosure - Short-term borrowings (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureShortTermBorrowingsDetails1</Role>
      <ShortName>Short-term borrowings (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>106</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>101070 - Disclosure - Short-term borrowings (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureShortTermBorrowingsDetails2</Role>
      <ShortName>Short-term borrowings (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>107</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>101080 - Disclosure - Long-Term Borrowings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLongTermBorrowingsDetails</Role>
      <ShortName>Long-Term Borrowings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLongTermBorrowingsTables</ParentRole>
      <Position>108</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>101090 - Disclosure - Long-Term Borrowings (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLongTermBorrowingsDetailsTextual</Role>
      <ShortName>Long-Term Borrowings (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLongTermBorrowingsTables</ParentRole>
      <Position>109</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>101100 - Disclosure - Long-Term Borrowings (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLongTermBorrowingsDetails1</Role>
      <ShortName>Long-Term Borrowings (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureLongTermBorrowingsTables</ParentRole>
      <Position>110</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>101110 - Disclosure - Commitments and Contingent Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureCommitmentsAndContingentLiabilitiesDetails</Role>
      <ShortName>Commitments and Contingent Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureCommitmentsAndContingentLiabilitiesTables</ParentRole>
      <Position>111</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>101120 - Disclosure - Commitments and Contingent Liabilities (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureCommitmentsAndContingentLiabilitiesDetailsTextual</Role>
      <ShortName>Commitments and Contingent Liabilities (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureCommitmentsAndContingentLiabilitiesTables</ParentRole>
      <Position>112</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>101130 - Disclosure - Stock Based Compensation (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureStockBasedCompensationDetailsTextual</Role>
      <ShortName>Stock Based Compensation (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureStockBasedCompensationTables</ParentRole>
      <Position>113</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>101140 - Disclosure - Stock Based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureStockBasedCompensationDetails</Role>
      <ShortName>Stock Based Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureStockBasedCompensationTables</ParentRole>
      <Position>114</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R115.htm</HtmlFileName>
      <LongName>101150 - Disclosure - Regulatory Matters (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRegulatoryMattersDetailsTextual</Role>
      <ShortName>Regulatory Matters (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRegulatoryMattersTables</ParentRole>
      <Position>115</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R116.htm</HtmlFileName>
      <LongName>101160 - Disclosure - Regulatory Matters (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRegulatoryMattersDetails</Role>
      <ShortName>Regulatory Matters (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRegulatoryMattersTables</ParentRole>
      <Position>116</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R117.htm</HtmlFileName>
      <LongName>101170 - Disclosure - Employee Benefit Plans (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureEmployeeBenefitPlansDetailsTextual</Role>
      <ShortName>Employee Benefit Plans (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureEmployeeBenefitPlans</ParentRole>
      <Position>117</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R118.htm</HtmlFileName>
      <LongName>101180 - Disclosure - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureIncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>118</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R119.htm</HtmlFileName>
      <LongName>101190 - Disclosure - Income Taxes (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureIncomeTaxesDetailsTextual</Role>
      <ShortName>Income Taxes (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>119</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R120.htm</HtmlFileName>
      <LongName>101200 - Disclosure - Income Taxes (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureIncomeTaxesDetails1</Role>
      <ShortName>Income Taxes (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>120</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R121.htm</HtmlFileName>
      <LongName>101210 - Disclosure - Income Taxes (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureIncomeTaxesDetails2</Role>
      <ShortName>Income Taxes (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>121</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R122.htm</HtmlFileName>
      <LongName>101220 - Disclosure - Other Comprehensive Income (Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureOtherComprehensiveIncomeLossDetails</Role>
      <ShortName>Other Comprehensive Income (Loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureOtherComprehensiveIncomeLossTables</ParentRole>
      <Position>122</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R123.htm</HtmlFileName>
      <LongName>101230 - Disclosure - Related Party Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRelatedPartyTransactionsDetails</Role>
      <ShortName>Related Party Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRelatedPartyTransactionsTables</ParentRole>
      <Position>123</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R124.htm</HtmlFileName>
      <LongName>101240 - Disclosure - Related Party Transactions (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRelatedPartyTransactionsDetailsTextual</Role>
      <ShortName>Related Party Transactions (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureRelatedPartyTransactionsTables</ParentRole>
      <Position>124</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R125.htm</HtmlFileName>
      <LongName>101250 - Disclosure - Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureEarningsPerShareDetails</Role>
      <ShortName>Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureEarningsPerShareTables</ParentRole>
      <Position>125</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R126.htm</HtmlFileName>
      <LongName>101260 - Disclosure - Earnings Per Share (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureEarningsPerShareDetailsTextual</Role>
      <ShortName>Earnings Per Share (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureEarningsPerShareTables</ParentRole>
      <Position>126</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R127.htm</HtmlFileName>
      <LongName>101270 - Disclosure - Interest Rate Swaps (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureInterestRateSwapsDetails</Role>
      <ShortName>Interest Rate Swaps (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureInterestRateSwapsTables</ParentRole>
      <Position>127</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R128.htm</HtmlFileName>
      <LongName>101280 - Disclosure - Interest Rate Swaps (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureInterestRateSwapsDetailsTextual</Role>
      <ShortName>Interest Rate Swaps (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureInterestRateSwapsTables</ParentRole>
      <Position>128</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R129.htm</HtmlFileName>
      <LongName>101290 - Disclosure - Segment Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSegmentInformationDetails</Role>
      <ShortName>Segment Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureSegmentInformationTables</ParentRole>
      <Position>129</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R130.htm</HtmlFileName>
      <LongName>101300 - Disclosure - Quarterly Financial Data (Unaudited) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureQuarterlyFinancialDataUnauditedDetails</Role>
      <ShortName>Quarterly Financial Data (Unaudited) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureQuarterlyFinancialDataUnauditedTables</ParentRole>
      <Position>130</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R131.htm</HtmlFileName>
      <LongName>101310 - Disclosure - Parent Company Only Condensed Financial Information - Balance Sheets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureParentCompanyOnlyCondensedFinancialInformationBalanceSheetsDetails</Role>
      <ShortName>Parent Company Only Condensed Financial Information - Balance Sheets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>131</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R132.htm</HtmlFileName>
      <LongName>101320 - Disclosure - Parent Company Only Condensed Financial Information - Statements of Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureParentCompanyOnlyCondensedFinancialInformationStatementsOfIncomeDetails</Role>
      <ShortName>Parent Company Only Condensed Financial Information - Statements of Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>132</Position>
    </Report>
    <Report instance="fmnb-10k_20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R133.htm</HtmlFileName>
      <LongName>101330 - Disclosure - Parent Company Only Condensed Financial Information - Statements of Cash Flows (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20201231/taxonomy/role/DisclosureParentCompanyOnlyCondensedFinancialInformationStatementsOfCashFlowsDetails</Role>
      <ShortName>Parent Company Only Condensed Financial Information - Statements of Cash Flows (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>133</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-K" original="fmnb-10k_20201231.htm">fmnb-10k_20201231.htm</File>
    <File>fmnb-20201231.xsd</File>
    <File>fmnb-20201231_cal.xml</File>
    <File>fmnb-20201231_def.xml</File>
    <File>fmnb-20201231_lab.xml</File>
    <File>fmnb-20201231_pre.xml</File>
    <File>fmnb-ex1017_368.htm</File>
    <File>fmnb-ex21_13.htm</File>
    <File>fmnb-ex231_7.htm</File>
    <File>fmnb-ex232_6.htm</File>
    <File>fmnb-ex24_8.htm</File>
    <File>fmnb-ex311_12.htm</File>
    <File>fmnb-ex312_11.htm</File>
    <File>fmnb-ex321_9.htm</File>
    <File>fmnb-ex322_10.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2020-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2020-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2020-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
