XML 74 R60.htm IDEA: XBRL DOCUMENT
v3.25.0.1

Business Combination & Asset Purchase - Additional Information (Detail) $ / shares in Units, $ in Thousands |  |  |  |  | 3 Months Ended | 12 Months Ended |
--- | --- | --- | --- | --- | --- | --- | ---
Oct. 01, 2022 USD ($) Office $ / shares shares | Oct. 01, 2021 USD ($) Office $ / shares shares | Apr. 30, 2021 USD ($) Office $ / shares shares | Nov. 16, 2020 USD ($) shares | Dec. 31, 2022 USD ($) | Dec. 31, 2024 USD ($) shares | Dec. 31, 2023 USD ($) shares | Dec. 31, 2022 USD ($) | Nov. 30, 2020 USD ($) Client
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Common stock, shares outstanding | shares |  |  |  |  |  | 13,699,536 | 13,664,641 |  |
Goodwill |  |  |  |  |  | $ 86,358 | $ 86,358 |  |
Amortization expense |  |  |  |  |  | 1,657 | 1,657 | $ 1,011 |
Customer Lists [Member] |  |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Amortization expense |  |  |  |  |  | 123 | 123 | 123 |
Peoples Federal Savings and Loan [Member] |  |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Number of full-service offices | Office | 3 |  |  |  |  |  |  |  |
Common stock issued in exchange of each outstanding share | 0.6597 |  |  |  |  |  |  |  |
Cash payment for exchange of each share | $ / shares | $ 24 |  |  |  |  |  |  |  |
Minimum number of shares to be exchanged under merger agreement | shares | 758,566 |  |  |  |  |  |  |  |
Common stock, shares outstanding | shares | 1,167,025 |  |  |  |  |  |  |  |
Share price | $ / shares | $ 26.87 |  |  |  |  |  |  |  |
Total consideration for acquisition | $ 23,249 |  |  |  |  |  |  |  |
Cash paid for the capital stock | 9,806 |  |  |  |  | 0 | 0 | 9,806 |
Stock issued for acquisition | 13,446 |  |  |  |  |  |  |  |
Business combination, acquisition related costs |  |  |  |  |  |  | 200 | $ 2,400 |
Goodwill | $ 5,924 |  |  |  |  |  |  |  |
Fair value of assets acquired |  | $ 101,800 |  |  |  |  |  |  |
Gross principal and contractual interest |  | 116,100 |  |  |  |  |  |  |
Acquisition expected to be uncollectible |  | $ 0 |  |  |  |  |  |  |
Loan receivable weighted average life | 44 months 12 days |  |  |  |  |  |  |  |
Business combination, premises and equipment written up value | $ 581 |  |  |  |  |  |  |  |
Business combination, premises and equipment written down value |  |  |  |  | $ 597 |  |  |  |
Business combination, average remaining life |  |  |  |  |  |  |  | 12 years 9 months 18 days |
Fair value for certificate of deposit, valuation amount | $ 662 |  |  |  |  |  |  |  |
Fair value for certificate of deposit, amortization period | 1 year 1 month 6 days |  |  |  |  |  |  |  |
Fair value of Federal Home Loan Bank (FHLB) advances, valuation amount | $ 69 |  |  |  |  |  |  |  |
Fair value of Federal Home Loan Bank (FHLB) advances, amortization period | 5 years 2 months 12 days |  |  |  |  |  |  |  |
Peoples Federal Savings and Loan [Member] | Core Deposits [Member] |  |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Recognition of core deposit intangible asset with acquired purchase | $ 6,000 |  |  |  |  |  |  |  |
Recognition of core deposit tangible asset with acquired purchase |  |  |  |  |  | 6,000 |  |  |
Remaining economic useful life | 7 years |  |  |  |  |  |  |  |
Peoples Federal Savings and Loan [Member] | Data Processing [Member] |  |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Business combination, acquisition related costs |  |  |  |  |  |  | 13 | $ 1,100 |
Peoples Federal Savings and Loan [Member] | Consulting Fees [Member] |  |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Business combination, acquisition related costs |  |  |  |  |  |  | 5 | 543 |
Peoples Federal Savings and Loan [Member] | Employee Benefits [Member] |  |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Business combination, acquisition related costs |  |  |  |  |  |  | 137 | 127 |
Peoples Federal Savings and Loan [Member] | Other General and Administrative Expenses [Member] |  |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Business combination, acquisition related costs |  |  |  |  |  |  | $ 45 | $ 501 |
Perpetual Federal Savings Bank [Member] |  |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Number of full-service offices | Office |  | 1 |  |  |  |  |  |  |
Common stock issued in exchange of each outstanding share |  | 1.7766 |  |  |  |  |  |  |
Cash payment for exchange of each share | $ / shares |  | $ 41.2 |  |  |  |  |  |  |
Business acquisition share owned subject to adjustment | shares |  | 1,833,999 |  |  |  |  |  |  |
Common stock, shares outstanding | shares |  | 2,470,032 |  |  |  |  |  |  |
Share price | $ / shares |  | $ 22.4 |  |  |  |  |  |  |
Total consideration for acquisition |  | $ 100,300 |  |  |  |  |  |  |
Cash paid for the capital stock |  | 59,200 |  |  |  |  |  |  |
Stock issued for acquisition |  | 41,100 |  |  |  |  |  |  |
Goodwill |  | 25,200 |  |  |  |  |  |  |
Common stock issued in exchange of each outstanding share | shares | 500,426 |  |  |  |  |  |  |  |
Perpetual Federal Savings Bank [Member] | Core Deposits [Member] |  |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Recognition of core deposit intangible asset with acquired purchase |  | $ 668 |  |  |  |  |  |  |
Recognition of core deposit tangible asset with acquired purchase |  |  |  |  |  | 668 |  |  |
Remaining economic useful life |  | 7 years |  |  |  |  |  |  |
Ossian State Bank [Member] |  |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Number of full-service offices | Office |  |  | 2 |  |  |  |  |  |
Ossian State Bank [Member] | Core Deposits [Member] |  |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Recognition of core deposit tangible asset with acquired purchase |  |  |  |  |  | 980 |  |  |
Ossian Financial Services, Inc. [Member] |  |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Cash payment for exchange of each share | $ / shares |  |  | $ 67.71 |  |  |  |  |  |
Common stock, shares outstanding | shares |  |  | 295,388 |  |  |  |  |  |
Total consideration for acquisition |  |  | $ 20,000 |  |  |  |  |  |
Goodwill |  |  | $ 7,900 |  |  |  |  |  |
Goodwill deductible for tax purpose, period |  |  | 15 years |  |  |  |  |  |
Ossian Financial Services, Inc. [Member] | Core Deposits [Member] |  |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Recognition of core deposit intangible asset with acquired purchase |  |  | $ 980 |  |  |  |  |  |
Remaining economic useful life |  |  | 7 years |  |  |  |  |  |
Bank of Geneva [Member] | Core Deposits [Member] |  |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Recognition of core deposit intangible asset with acquired purchase |  |  |  |  |  | $ 3,900 |  |  |
Remaining economic useful life |  |  |  |  |  | 7 years |  |  |
Adams County Financial Resources [Member] |  |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Total consideration for acquisition |  |  |  | $ 825 |  |  |  |  |
Common stock issued in exchange of each outstanding share | shares |  |  |  | 40,049 |  |  |  |  |
Assets under management amount |  |  |  |  |  |  |  |  | $ 83,000
Number of clients assets under management | Client |  |  |  |  |  |  |  |  | 450
Adams County Financial Resources [Member] | Customer Lists [Member] |  |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |  |
Recognition of core deposit intangible asset with acquired purchase |  |  |  | $ 800 |  |  |  |  |
Remaining economic useful life |  |  |  | 6 years 6 months |  |  |  |  |

X
- Definition Business acquisition, equity interest issued or issuable for per share of acquired entity + References No definition available. + Details
Name: | fmao_BusinessAcquisitionEquityInterestIssuedOrIssuablePerShareOfAcquiredEntity
Namespace Prefix: | fmao_
Data Type: | xbrli:decimalItemType
Balance Type: | na
Period Type: | duration

X
- Definition Business acquisition share owned subject to adjustment. + References No definition available. + Details
Name: | fmao_BusinessAcquisitionShareOwnedSubjectToAdjustment
Namespace Prefix: | fmao_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Business combination average remaining useful life. + References No definition available. + Details
Name: | fmao_BusinessCombinationAverageRemainingUsefulLife
Namespace Prefix: | fmao_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Business combination identifiable assets in premises and equipment written down value. + References No definition available. + Details
Name: | fmao_BusinessCombinationIdentifiableAssetsInPremisesAndEquipmentWrittenDownValue
Namespace Prefix: | fmao_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Business combination identifiable assets in premises and equipment written up value. + References No definition available. + Details
Name: | fmao_BusinessCombinationIdentifiableAssetsInPremisesAndEquipmentWrittenUpValue
Namespace Prefix: | fmao_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Cash consideration payable on acquisition, per share. + References No definition available. + Details
Name: | fmao_CashConsiderationPayableOnAcquisitionPerShare
Namespace Prefix: | fmao_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Fair value for certificate of deposit amortization period. + References No definition available. + Details
Name: | fmao_FairValueForCertificateOfDepositAmortizationPeriod
Namespace Prefix: | fmao_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value for certificate of deposit valuation amount. + References No definition available. + Details
Name: | fmao_FairValueForCertificateOfDepositValuationAmount
Namespace Prefix: | fmao_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value of Federal Home Loan Bank advances, amortization period. + References No definition available. + Details
Name: | fmao_FairValueOfFederalHomeLoanBankAdvancesAmortizationPeriod
Namespace Prefix: | fmao_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value of Federal Home Loan Bank advances, valuation amount. + References No definition available. + Details
Name: | fmao_FairValueOfFederalHomeLoanBankAdvancesValuationAmount
Namespace Prefix: | fmao_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Finite lived tangible assets acquired. + References No definition available. + Details
Name: | fmao_FiniteLivedTangibleAssetsAcquired
Namespace Prefix: | fmao_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Goodwill deductible for tax purpose, period. + References No definition available. + Details
Name: | fmao_GoodwillDeductibleForTaxPurposePeriod
Namespace Prefix: | fmao_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Loan receivable weighted average useful life. + References No definition available. + Details
Name: | fmao_LoanReceivableWeightedAverageUsefulLife
Namespace Prefix: | fmao_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Minimum number of shares to be exchanged under the agreement. + References No definition available. + Details
Name: | fmao_MinimumNumberOfSharesToBeExchangedUnderTheAgreement
Namespace Prefix: | fmao_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of clients assets under management. + References No definition available. + Details
Name: | fmao_NumberOfClientsAssetsUnderManagement
Namespace Prefix: | fmao_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of full service offices. + References No definition available. + Details
Name: | fmao_NumberOfFullServiceOffices
Namespace Prefix: | fmao_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition The aggregate expense charged against earnings to allocate the cost of intangible assets (nonphysical assets not used in production) in a systematic and rational manner to the periods expected to benefit from such assets. As a noncash expense, this element is added back to net income when calculating cash provided by or used in operations using the indirect method. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 45 -Paragraph 28 -Subparagraph (b) -SubTopic 10 -Topic 230 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-28 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 350 -SubTopic 30 -Name Accounting Standards Codification -Section 55 -Paragraph 40 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482640/350-30-55-40 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482665/350-30-50-2 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482686/350-30-45-2 + Details
Name: | us-gaap_AmortizationOfIntangibleAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The carrying amount of assets an investment adviser manages on behalf of investors. + References No definition available. + Details
Name: | us-gaap_AssetsUnderManagementCarryingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Number of shares of equity interests issued or issuable to acquire entity. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 805 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(4) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479581/805-30-50-1 + Details
Name: | us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 805 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479907/805-20-50-5 + Details
Name: | us-gaap_BusinessAcquisitionLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Price of a single share of a number of saleable stocks paid or offered to be paid in a business combination. + References No definition available. + Details
Name: | us-gaap_BusinessAcquisitionSharePrice
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition For receivables acquired in a business combination, excluding certain loans and debt securities acquired in a transfer (as defined), this element represents the best estimate at the acquisition date of the contractual cash flows not expected to be collected, by major class of receivable, such as loans, direct finance leases (as defined), and any other class of receivables. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (b)(3) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479907/805-20-50-1 + Details
Name: | us-gaap_BusinessCombinationAcquiredReceivablesEstimatedUncollectible
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Fair value of acquired receivable from business combination, excluding certain loans and debt securities acquired in transfer. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 805 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479907/805-20-50-1 + Details
Name: | us-gaap_BusinessCombinationAcquiredReceivablesFairValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition For receivables acquired in a business combination, excluding certain loans and debt securities acquired in a transfer (as defined), this element represents the gross contractual amounts receivable, by major class of receivable, such as loans, direct finance leases (as defined), and any other class of receivables. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (b)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479907/805-20-50-1 + Details
Name: | us-gaap_BusinessCombinationAcquiredReceivablesGrossContractualAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition This element represents acquisition-related costs incurred to effect a business combination which costs have been expensed during the period. Such costs include finder's fees; advisory, legal, accounting, valuation, and other professional or consulting fees; general administrative costs, including the costs of maintaining an internal acquisitions department; and may include costs of registering and issuing debt and equity securities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 805 -SubTopic 10 -Section 25 -Paragraph 23 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479405/805-10-25-23 + Details
Name: | us-gaap_BusinessCombinationAcquisitionRelatedCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of consideration transferred, consisting of acquisition-date fair value of assets transferred by the acquirer, liabilities incurred by the acquirer, and equity interest issued by the acquirer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 30 -Paragraph 8 -SubTopic 30 -Topic 805 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479637/805-30-30-8 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b) -SubTopic 30 -Topic 805 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479581/805-30-50-1 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 30 -Paragraph 7 -SubTopic 30 -Topic 805 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479637/805-30-30-7 + Details
Name: | us-gaap_BusinessCombinationConsiderationTransferred1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of equity interests of the acquirer, including instruments or interests issued or issuable in consideration for the business combination. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 30 -Paragraph 8 -SubTopic 30 -Topic 805 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479637/805-30-30-8 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 30 -Paragraph 7 -SubTopic 30 -Topic 805 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479637/805-30-30-7 + Details
Name: | us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 2 -SubTopic 10 -Topic 505 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-2 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SX 210.6-05(4)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479170/946-210-S99-2 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-09(4)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479134/946-220-S99-3 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(16)(a)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479170/946-210-S99-1 Reference 6: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-09(7)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479134/946-220-S99-3 + Details
Name: | us-gaap_CommonStockSharesOutstanding
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Remaining amortization period of finite-lived intangible assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 926 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483154/926-20-50-5 + Details
Name: | us-gaap_FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of increase in assets, excluding financial assets, lacking physical substance with a definite life, from an acquisition. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482665/350-30-50-1 + Details
Name: | us-gaap_FinitelivedIntangibleAssetsAcquired1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount, after accumulated impairment loss, of asset representing future economic benefit arising from other asset acquired in business combination or from joint venture formation or both, that is not individually identified and separately recognized. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 49 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482785/280-10-55-49 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 24 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482548/350-20-55-24 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 100 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482078/820-10-55-100 Reference 4: http://www.xbrl.org/2003/role/exampleRef -Topic 852 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481372/852-10-55-10 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(15)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482598/350-20-45-1 Reference 7: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482573/350-20-50-1 Reference 8: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (h) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482573/350-20-50-1 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(10)(1)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478546/942-210-S99-1 + Details
Name: | us-gaap_Goodwill
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The cash outflow associated with the acquisition of business during the period. The cash portion only of the acquisition price. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 805 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479581/805-30-50-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 13 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-13 + Details
Name: | us-gaap_PaymentsToAcquireBusinessesGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis=us-gaap_CustomerListsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=fmao_PeoplesFederalSavingsAndLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis=us-gaap_CoreDepositsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=fmao_DataProcessingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=fmao_ConsultingFeesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=fmao_EmployeeBenefitsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_GeneralAndAdministrativeExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=fmao_PerpetualFederalSavingBankMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=fmao_OssianStateBanksMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=fmao_OssianFinancialServiceIncorporatedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=fmao_BankOfGenevaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=fmao_AdamsCountyFinancialResourcesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |