<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="fmao-20260127.xsd" xlink:type="simple"/>
    <context id="C_7a29f099-f178-4c2a-9384-a53b681f81cc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000792966</identifier>
        </entity>
        <period>
            <startDate>2026-01-27</startDate>
            <endDate>2026-01-27</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_8db53b41-9fea-46c1-8f88-fc612adfdc0b">0000792966</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_eb1e25e9-d36d-4bd4-8bfb-899b281ea659">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_1c550ff7-a08b-4961-a4fc-208c21ef1aac">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_a5851569-3a00-4e6b-ae85-97607497d202">2026-01-27</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_f8011257-6ef8-46c0-8aa9-ced53389b367">Farmers &amp; Merchants Bancorp, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_114f0386-289c-4da4-ae10-3cea70e6d2c2">OH</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_02058c78-04e0-4fe4-9985-d2d6345c5773">001-38084</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_57d526d9-45d8-4b48-92b8-2039b00f6700">34-1469491</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_3276f705-edf4-4427-831d-10a76c13e556">307 North Defiance Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_56e1e30d-dea9-40f1-9c21-44724c6eb25b">Archbold</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_df7fee1a-702b-4f34-8990-a8aef60b752f">OH</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_8be3dd68-68a1-40ff-8105-9fe68600f7c6">43502</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_9c7316c3-8418-4af4-8187-77946ea027d8">(419)</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_fa10b34b-7ff1-49d3-a2a7-4b37e5ed01e0">446-2501</dei:LocalPhoneNumber>
    <dei:Security12bTitle
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_5019186e-81f9-4528-8133-9530d865ad2b">Common Stock, No Par Value</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_9c27dccd-8bfc-42d7-802e-485570349cf9">FMAO</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_9c3199f0-0f78-47bc-a65a-5f0639c563c0">NASDAQ</dei:SecurityExchangeName>
    <dei:WrittenCommunications
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_4224a83f-6063-4442-8e49-206bb5441bd1">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_092bc1d6-0432-4815-aaa2-6eecd6e43ee1">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_dbdf4a01-6fa6-4c3c-a3da-e7a8d89ac642">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_1648be9c-c3c5-4ae9-9ab2-e2f765c6e329">false</dei:PreCommencementIssuerTenderOffer>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_7a29f099-f178-4c2a-9384-a53b681f81cc"
      id="F_1186f385-0c24-47ca-874f-0ae0157122dc">false</dei:EntityEmergingGrowthCompany>
</xbrl>
