<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.19.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>766</ContextCount>
  <ElementCount>382</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>93</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>9</UnitCount>
  <MyReports>
    <Report instance="fmnb-20190331.xml">
      <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/20190331/taxonomy/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Consolidated Balance Sheets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited</Role>
      <ShortName>Consolidated Balance Sheets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <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/20190331/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Consolidated Statements of Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited</Role>
      <ShortName>Consolidated Statements of Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Consolidated Statements of Comprehensive Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeUnaudited</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - Consolidated Statement of Stockholders' Equity (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/StatementConsolidatedStatementOfStockholdersEquityUnaudited</Role>
      <ShortName>Consolidated Statement of Stockholders' Equity (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Statement - Consolidated Statements of Stockholders' Equity (Parenthetical) Unaudited</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquityParentheticalUnaudited</Role>
      <ShortName>Consolidated Statements of Stockholders' Equity (Parenthetical) Unaudited</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Statement - Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited</Role>
      <ShortName>Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <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/20190331/taxonomy/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSecurities</Role>
      <ShortName>Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Loans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoans</Role>
      <ShortName>Loans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Troubled Debt Restructurings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureTroubledDebtRestructurings</Role>
      <ShortName>Troubled Debt Restructurings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Credit Quality Indicators</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureCreditQualityIndicators</Role>
      <ShortName>Credit Quality Indicators</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Revenue from Contracts with Customers</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureRevenueFromContractsWithCustomers</Role>
      <ShortName>Revenue from Contracts with Customers</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Interest-Rate Swaps</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureInterestRateSwaps</Role>
      <ShortName>Interest-Rate Swaps</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureEarningsPerShare</Role>
      <ShortName>Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Stock Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureStockBasedCompensation</Role>
      <ShortName>Stock Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Other Comprehensive Income (Loss)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureOtherComprehensiveIncomeLoss</Role>
      <ShortName>Other Comprehensive Income (Loss)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Regulatory Capital Matters</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureRegulatoryCapitalMatters</Role>
      <ShortName>Regulatory Capital Matters</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Fair Value</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureFairValue</Role>
      <ShortName>Fair Value</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Segment Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSegmentInformation</Role>
      <ShortName>Segment Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Goodwill and Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureGoodwillAndIntangibleAssets</Role>
      <ShortName>Goodwill and Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Short-term Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureShortTermBorrowings</Role>
      <ShortName>Short-term Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSecuritiesTables</Role>
      <ShortName>Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSecurities</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Loans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansTables</Role>
      <ShortName>Loans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoans</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Troubled Debt Restructurings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureTroubledDebtRestructuringsTables</Role>
      <ShortName>Troubled Debt Restructurings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureTroubledDebtRestructurings</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Credit Quality Indicators (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureCreditQualityIndicatorsTables</Role>
      <ShortName>Credit Quality Indicators (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureCreditQualityIndicators</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100290 - Disclosure -  Revenue from Contracts with Customers (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureRevenueFromContractsWithCustomersTables</Role>
      <ShortName>Revenue from Contracts with Customers (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureRevenueFromContractsWithCustomers</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Interest-Rate Swaps (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureInterestRateSwapsTables</Role>
      <ShortName>Interest-Rate Swaps (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureInterestRateSwaps</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureEarningsPerShareTables</Role>
      <ShortName>Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureEarningsPerShare</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Stock Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureStockBasedCompensationTables</Role>
      <ShortName>Stock Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureStockBasedCompensation</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Other Comprehensive Income (Loss) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureOtherComprehensiveIncomeLossTables</Role>
      <ShortName>Other Comprehensive Income (Loss) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureOtherComprehensiveIncomeLoss</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Regulatory Capital Matters (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureRegulatoryCapitalMattersTables</Role>
      <ShortName>Regulatory Capital Matters (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureRegulatoryCapitalMatters</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Fair Value (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureFairValueTables</Role>
      <ShortName>Fair Value (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureFairValue</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Segment Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSegmentInformationTables</Role>
      <ShortName>Segment Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSegmentInformation</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLeases</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Goodwill and Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureGoodwillAndIntangibleAssets</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Short-term Borrowings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureShortTermBorrowingsTables</Role>
      <ShortName>Short-term Borrowings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureShortTermBorrowings</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Summary of Significant Accounting Policies (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesDetailsTextual</Role>
      <ShortName>Summary of Significant Accounting Policies (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSecuritiesDetails</Role>
      <ShortName>Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSecuritiesTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100420 - Disclosure - Securities (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSecuritiesDetailsTextual</Role>
      <ShortName>Securities (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSecuritiesTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Securities (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSecuritiesDetails1</Role>
      <ShortName>Securities (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSecuritiesTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Securities (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSecuritiesDetails2</Role>
      <ShortName>Securities (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSecuritiesTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansDetails</Role>
      <ShortName>Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Loans (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansDetails1</Role>
      <ShortName>Loans (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Loans (Details 1) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansDetails1Parenthetical</Role>
      <ShortName>Loans (Details 1) (Parenthetical)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Loans (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansDetails2</Role>
      <ShortName>Loans (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100490 - Disclosure - Loans (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansDetails3</Role>
      <ShortName>Loans (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Loans (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansDetails4</Role>
      <ShortName>Loans (Details 4)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Loans (Details 5)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansDetails5</Role>
      <ShortName>Loans (Details 5)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Loans (Details 6)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansDetails6</Role>
      <ShortName>Loans (Details 6)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Loans (Details 7)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansDetails7</Role>
      <ShortName>Loans (Details 7)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Loans (Details 8)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansDetails8</Role>
      <ShortName>Loans (Details 8)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLoansTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100550 - Disclosure - Troubled Debt Restructurings (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureTroubledDebtRestructuringsDetailsTextual</Role>
      <ShortName>Troubled Debt Restructurings (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureTroubledDebtRestructuringsTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100560 - Disclosure - Troubled Debt Restructurings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureTroubledDebtRestructuringsDetails</Role>
      <ShortName>Troubled Debt Restructurings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureTroubledDebtRestructuringsTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Credit Quality Indicators (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureCreditQualityIndicatorsDetailsTextual</Role>
      <ShortName>Credit Quality Indicators (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureCreditQualityIndicatorsTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Credit Quality Indicators (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureCreditQualityIndicatorsDetails</Role>
      <ShortName>Credit Quality Indicators (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureCreditQualityIndicatorsTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>100590 - Disclosure - Credit Quality Indicators (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureCreditQualityIndicatorsDetails1</Role>
      <ShortName>Credit Quality Indicators (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureCreditQualityIndicatorsTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>100600 - Disclosure - Revenue from Contracts with Customers (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureRevenueFromContractsWithCustomersDetails</Role>
      <ShortName>Revenue from Contracts with Customers (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureRevenueFromContractsWithCustomersTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>100610 - Disclosure - Revenue from Contracts with Customers (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureRevenueFromContractsWithCustomersDetailsTextual</Role>
      <ShortName>Revenue from Contracts with Customers (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureRevenueFromContractsWithCustomersTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>100620 - Disclosure - Interest-Rate Swaps (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureInterestRateSwapsDetails</Role>
      <ShortName>Interest-Rate Swaps (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureInterestRateSwapsTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>100630 - Disclosure - Interest-Rate Swaps (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureInterestRateSwapsDetailsTextual</Role>
      <ShortName>Interest-Rate Swaps (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureInterestRateSwapsTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>100640 - Disclosure - Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureEarningsPerShareDetails</Role>
      <ShortName>Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureEarningsPerShareTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>100650 - Disclosure - Earnings Per Share (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureEarningsPerShareDetailsTextual</Role>
      <ShortName>Earnings Per Share (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureEarningsPerShareTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>100660 - Disclosure - Stock Based Compensation (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureStockBasedCompensationDetailsTextual</Role>
      <ShortName>Stock Based Compensation (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureStockBasedCompensationTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Stock Based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureStockBasedCompensationDetails</Role>
      <ShortName>Stock Based Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureStockBasedCompensationTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Other Comprehensive Income (Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureOtherComprehensiveIncomeLossDetails</Role>
      <ShortName>Other Comprehensive Income (Loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureOtherComprehensiveIncomeLossTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>100690 - Disclosure - Regulatory Capital Matters (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureRegulatoryCapitalMattersDetailsTextual</Role>
      <ShortName>Regulatory Capital Matters (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureRegulatoryCapitalMattersTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>100700 - Disclosure - Regulatory Capital Matters (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureRegulatoryCapitalMattersDetails</Role>
      <ShortName>Regulatory Capital Matters (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureRegulatoryCapitalMattersTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>100710 - Disclosure - Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureFairValueDetails</Role>
      <ShortName>Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureFairValueTables</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>100720 - Disclosure - Fair Value (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureFairValueDetailsTextual</Role>
      <ShortName>Fair Value (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureFairValueTables</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>100730 - Disclosure - Fair Value (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureFairValueDetails1</Role>
      <ShortName>Fair Value (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureFairValueTables</ParentRole>
      <Position>74</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>100740 - Disclosure - Fair Value (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureFairValueDetails2</Role>
      <ShortName>Fair Value (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureFairValueTables</ParentRole>
      <Position>75</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>100750 - Disclosure - Fair Value (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureFairValueDetails3</Role>
      <ShortName>Fair Value (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureFairValueTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>100760 - Disclosure - Fair Value (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureFairValueDetails4</Role>
      <ShortName>Fair Value (Details 4)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureFairValueTables</ParentRole>
      <Position>77</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>100770 - Disclosure - Segment Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSegmentInformationDetails</Role>
      <ShortName>Segment Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureSegmentInformationTables</ParentRole>
      <Position>78</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>100780 - Disclosure - Leases (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLeasesDetailsTextual</Role>
      <ShortName>Leases (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLeasesTables</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>100790 - Disclosure - Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLeasesDetails</Role>
      <ShortName>Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureLeasesTables</ParentRole>
      <Position>80</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>100810 - Disclosure - Goodwill and Intangible Assets (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsDetailsTextual</Role>
      <ShortName>Goodwill and Intangible Assets (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsTables</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>100820 - Disclosure - Goodwill and Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsTables</ParentRole>
      <Position>82</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>100830 - Disclosure - Goodwill and Intangible Assets (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsDetails1</Role>
      <ShortName>Goodwill and Intangible Assets (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsTables</ParentRole>
      <Position>83</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>100840 - Disclosure - Short-term borrowings (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureShortTermBorrowingsDetailsTextual</Role>
      <ShortName>Short-term borrowings (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="fmnb-20190331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>100850 - Disclosure - Short-term borrowings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmersbankgroup.com/20190331/taxonomy/role/DisclosureShortTermBorrowingsDetails</Role>
      <ShortName>Short-term borrowings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>fmnb-20190331.xml</File>
    <File>fmnb-20190331.xsd</File>
    <File>fmnb-20190331_cal.xml</File>
    <File>fmnb-20190331_def.xml</File>
    <File>fmnb-20190331_lab.xml</File>
    <File>fmnb-20190331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2018-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2018-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/invest/2013-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2018-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
