<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="fmnb-20260317.xsd" xlink:type="simple"/>
    <context id="d20268K">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000709337</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="d20268K" id="ixv-204">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="d20268K" id="ixv-205">0000709337</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="d20268K" id="ixv-215">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="d20268K" id="ixv-216">2026-03-17</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="d20268K" id="ixv-217">Farmers National Banc Corp.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="d20268K" id="ixv-218">OH</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="d20268K" id="ixv-219">001-35296</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="d20268K" id="ixv-220">34-1371693</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="d20268K" id="ixv-221">20 South Broad Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="d20268K" id="ixv-222">P.O. Box 555</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="d20268K" id="ixv-223">Canfield</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="d20268K" id="ixv-224">OH</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="d20268K" id="ixv-225">44406-0555</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="d20268K" id="ixv-226">330</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="d20268K" id="ixv-227">533-3341</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="d20268K" id="ixv-228">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="d20268K" id="ixv-229">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="d20268K" id="ixv-230">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="d20268K" id="ixv-231">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle contextRef="d20268K" id="ixv-232">Common Stock</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="d20268K" id="ixv-233">FMNB</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="d20268K" id="ixv-234">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="d20268K" id="ixv-235">false</dei:EntityEmergingGrowthCompany>
</xbrl>
