XML 71 R57.htm IDEA: XBRL DOCUMENT
v3.25.0.1

Summary of Significant Accounting Policies - Additional Information (Detail) |  | 12 Months Ended |  |  |
--- | --- | --- | --- | --- | ---
Apr. 10, 2023 | Dec. 31, 2024 USD ($) Bank | Dec. 31, 2023 USD ($) | Sep. 30, 2024 USD ($) | Jan. 01, 2023 USD ($) | Dec. 31, 2022 USD ($)
Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |
Period for federal funds sold outstanding |  | 1 day |  |  |  |
Accrued interest receivable |  | $ 10,700,000 | $ 10,200,000 |  |  |
Delinquent loan is well secured and process of collection |  | 90 days |  |  |  |
Mortgage loans charged off days past due |  | 180 days |  |  |  |
Consumer and credit card loans to accrue interest charged off |  | 120 days |  |  |  |
Unrecognized interest income until loan balance reduced |  | $ 0 |  |  |  |
Amount of fair value of capital over carrying value |  |  |  | $ 16,200,000 |  |
Percentage of fair value of capital over carrying value |  |  |  | 4.50% |  |
Number of times fair value of capital in excess of carrying value of goodwill description |  | 0.2 times |  |  |  |
Foreclosed real estate |  | $ 0 | 0 |  |  |
Percentage of likelihood of realization of recognized tax benefit, minimum |  | 50.00% |  |  |  |
Number of peer group banks | Bank |  | 316 |  |  |  |
Reserve portion of allowance of credit loss |  | $ 52,000 | 386,000 |  |  |
Current expected credit losses |  | 25,826,000 | $ 25,024,000 |  |  | $ 20,313,000
Impairment recognized |  | $ 0 |  |  |  |
Captives provision existence period | 10 years |  |  |  |  |
Commercial and Agricultural [member] |  |  |  |  |  |
Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |
Percentage of annual external and independent loan |  | 35.00% |  |  |  |
Cumulative Effect, Period of Adoption, Adjustment [Member] |  |  |  |  |  |
Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |
Current expected credit losses |  |  |  |  |  | $ 3,564,000
ASU 2016-13 [Member] |  |  |  |  |  |
Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |
Change in accounting principle, accounting standards update, adopted [true false] |  | true |  |  |  |
Change in accounting principle, accounting standards update, adoption date |  | Jan. 01, 2023 |  |  |  |
Change in accounting principle, accounting standards update, immaterial effect [true false] |  | true |  |  |  |
Current expected credit losses |  | $ 3,600,000 |  |  | $ 26,043,000 |
ASU 2016-13 [Member] | Letter of credit |  |  |  |  |  |
Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |
Current expected credit losses |  | 3,400,000 |  |  |  |
ASU 2016-13 [Member] | Unfunded loan commitment |  |  |  |  |  |
Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |
Current expected credit losses |  | 900,000 |  |  |  |
ASU 2016-13 [Member] | Other Assets [Member] |  |  |  |  |  |
Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |
Tax impact portion of deferred tax asset |  | $ 1,100,000 |  |  |  |
ASU 2023-02 [Member] |  |  |  |  |  |
Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |
Change in accounting principle, accounting standards update, adopted [true false] |  | true |  |  |  |
Change in accounting principle, accounting standards update, adoption date |  | Jan. 01, 2024 |  |  |  |
Maximum [Member] |  |  |  |  |  |
Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |
Maturity period of cash equivalents |  | 3 months |  |  |  |
Asset value of peer group banks |  | $ 5,000,000,000 |  |  |  |
Percentage of captive claims listed transaction loss ratio | 65.00% |  |  |  |  |
Percentage of captive claims transaction of interest loss ratio | 70.00% |  |  |  |  |

X
- Definition Asset value of banks. + References No definition available. + Details
Name: | fmao_AssetValueOfBanks
Namespace Prefix: | fmao_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Captives provision existence period. + References No definition available. + Details
Name: | fmao_CaptivesProvisionExistencePeriod
Namespace Prefix: | fmao_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Consumer and credit card loans to accrue interest charged off. + References No definition available. + Details
Name: | fmao_ConsumerAndCreditCardLoansToAccrueInterestChargedOff
Namespace Prefix: | fmao_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Delinquent loan is well secured and process of collection. + References No definition available. + Details
Name: | fmao_DelinquentLoanIsWellSecuredAndProcessOfCollection
Namespace Prefix: | fmao_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value of capital in excess of carrying value of goodwill description. + References No definition available. + Details
Name: | fmao_FairValueOfCapitalInExcessOfCarryingValueOfGoodwillDescription
Namespace Prefix: | fmao_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Mortgage loans charged off days past due. + References No definition available. + Details
Name: | fmao_MortgageLoansChargedOffDaysPastDue
Namespace Prefix: | fmao_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of peer group banks. + References No definition available. + Details
Name: | fmao_NumberOfPeerGroupBanks
Namespace Prefix: | fmao_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Original maturity period to consider all highly liquid investments purchased as cash equivalents. + References No definition available. + Details
Name: | fmao_OriginalMaturityPeriodToConsiderAllHighlyLiquidInvestmentsPurchasedAsCashEquivalents
Namespace Prefix: | fmao_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of annual external and independent loan. + References No definition available. + Details
Name: | fmao_PercentageOfAnnualExternalAndIndependentLoan
Namespace Prefix: | fmao_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of captive claims listed transaction loss ratio. + References No definition available. + Details
Name: | fmao_PercentageOfCaptiveClaimsListedTransactionLossRatio
Namespace Prefix: | fmao_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage of captive claims transaction of interest loss ratio. + References No definition available. + Details
Name: | fmao_PercentageOfCaptiveClaimsTransactionOfInterestLossRatio
Namespace Prefix: | fmao_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage of likelihood of realization of recognized tax benefit minimum. + References No definition available. + Details
Name: | fmao_PercentageOfLikelihoodOfRealizationOfRecognizedTaxBenefitMinimum
Namespace Prefix: | fmao_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Period for federal funds sold outstanding. + References No definition available. + Details
Name: | fmao_PeriodForFederalFundsSoldOutstanding
Namespace Prefix: | fmao_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Summary Of Significant Accounting Policies [Line Items] + References No definition available. + Details
Name: | fmao_SummaryOfSignificantAccountingPoliciesLineItems
Namespace Prefix: | fmao_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Unrecognized interest income until loan balance reduced. + References No definition available. + Details
Name: | fmao_UnrecognizedInterestIncomeUntilLoanBalanceReduced
Namespace Prefix: | fmao_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Indicates (true false) whether accounting standards update was adopted. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147476173/280-10-65-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 9 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482615/740-10-65-9 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 105 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 7 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479343/105-10-65-7 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 805 -SubTopic 60 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147476176/805-60-65-1 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 323 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478666/740-323-65-2 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 323 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478666/740-323-65-2 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 848 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483550/848-10-65-2 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 848 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483550/848-10-65-1 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 8 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479832/842-10-65-8 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 405 -SubTopic 50 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477123/405-50-65-1 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 13 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482477/820-10-65-13 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 13 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482477/820-10-65-13 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 5 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479654/326-10-65-5 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 5 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479654/326-10-65-5 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 20 -Name Accounting Standards Codification -Section 65 -Paragraph 6 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480528/815-20-65-6 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 20 -Name Accounting Standards Codification -Section 65 -Paragraph 6 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480528/815-20-65-6 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Topic 805 -SubTopic 20 -Name Accounting Standards Codification -Section 65 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479845/805-20-65-3 Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Topic 805 -SubTopic 20 -Name Accounting Standards Codification -Section 65 -Paragraph 3 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479845/805-20-65-3 Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 40 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480016/944-40-65-2 Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 40 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480016/944-40-65-2 Reference 21: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 4 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479654/326-10-65-4 Reference 22: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 4 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479654/326-10-65-4 Reference 23: http://www.xbrl.org/2003/role/disclosureRef -Topic 926 -SubTopic 20 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483194/926-20-65-2 Reference 24: http://www.xbrl.org/2003/role/disclosureRef -Topic 926 -SubTopic 20 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483194/926-20-65-2 Reference 25: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 40 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480175/815-40-65-1 Reference 26: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 40 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (a)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480175/815-40-65-1 Reference 27: http://www.xbrl.org/2003/role/disclosureRef -Topic 250 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483443/250-10-50-1 Reference 28: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479654/326-10-65-2 Reference 29: http://www.xbrl.org/2003/role/disclosureRef -Name Accounting Standards Codification -Section 65 -Paragraph 3 -Subparagraph (a) -SubTopic 10 -Topic 326 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479654/326-10-65-3 Reference 30: http://www.xbrl.org/2003/role/disclosureRef -Name Accounting Standards Codification -Section 65 -Paragraph 3 -Subparagraph (b) -SubTopic 10 -Topic 326 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479654/326-10-65-3 Reference 31: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 60 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147476166/350-60-65-1 + Details
Name: | us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdopted
Namespace Prefix: | us-gaap_
Data Type: | xbrli:booleanItemType
Balance Type: | na
Period Type: | instant

X
- Definition Date accounting standards update was adopted, in YYYY-MM-DD format. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147476173/280-10-65-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 9 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482615/740-10-65-9 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 105 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 7 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479343/105-10-65-7 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 805 -SubTopic 60 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147476176/805-60-65-1 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 805 -SubTopic 60 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147476176/805-60-65-1 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 20 -Name Accounting Standards Codification -Section 65 -Paragraph 5 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480528/815-20-65-5 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 323 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478666/740-323-65-2 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 323 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478666/740-323-65-2 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 848 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483550/848-10-65-2 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 848 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483550/848-10-65-1 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 8 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479832/842-10-65-8 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Topic 405 -SubTopic 50 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477123/405-50-65-1 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 13 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482477/820-10-65-13 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 13 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482477/820-10-65-13 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 5 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479654/326-10-65-5 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 5 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479654/326-10-65-5 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 5 -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479654/326-10-65-5 Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 20 -Name Accounting Standards Codification -Section 65 -Paragraph 6 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480528/815-20-65-6 Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 20 -Name Accounting Standards Codification -Section 65 -Paragraph 6 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480528/815-20-65-6 Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 20 -Name Accounting Standards Codification -Section 65 -Paragraph 6 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480528/815-20-65-6 Reference 21: http://www.xbrl.org/2003/role/disclosureRef -Topic 805 -SubTopic 20 -Name Accounting Standards Codification -Section 65 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479845/805-20-65-3 Reference 22: http://www.xbrl.org/2003/role/disclosureRef -Topic 805 -SubTopic 20 -Name Accounting Standards Codification -Section 65 -Paragraph 3 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479845/805-20-65-3 Reference 23: http://www.xbrl.org/2003/role/disclosureRef -Topic 805 -SubTopic 20 -Name Accounting Standards Codification -Section 65 -Paragraph 3 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479845/805-20-65-3 Reference 24: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 40 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480016/944-40-65-2 Reference 25: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 40 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480016/944-40-65-2 Reference 26: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 4 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479654/326-10-65-4 Reference 27: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 4 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479654/326-10-65-4 Reference 28: http://www.xbrl.org/2003/role/disclosureRef -Topic 926 -SubTopic 20 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483194/926-20-65-2 Reference 29: http://www.xbrl.org/2003/role/disclosureRef -Topic 926 -SubTopic 20 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483194/926-20-65-2 Reference 30: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 40 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480175/815-40-65-1 Reference 31: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 40 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (a)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480175/815-40-65-1 Reference 32: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 40 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (a)(3) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480175/815-40-65-1 Reference 33: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 40 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480175/815-40-65-1 Reference 34: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479654/326-10-65-2 Reference 35: http://www.xbrl.org/2003/role/disclosureRef -Name Accounting Standards Codification -Section 65 -Paragraph 3 -Subparagraph (a) -SubTopic 10 -Topic 326 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479654/326-10-65-3 Reference 36: http://www.xbrl.org/2003/role/disclosureRef -Name Accounting Standards Codification -Section 65 -Paragraph 3 -Subparagraph (b) -SubTopic 10 -Topic 326 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479654/326-10-65-3 Reference 37: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 60 -Name Accounting Standards Codification -Section 65 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147476166/350-60-65-1 Reference 38: http://www.xbrl.org/2009/role/commonPracticeRef -Name Accounting Standards Codification -Section 50 -Paragraph 3 -SubTopic 10 -Topic 250 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483443/250-10-50-3 + Details
Name: | us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdoptionDate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | instant

X
- Definition Indicates (true false) whether effect from applying amendment to accounting standards is immaterial. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 250 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483443/250-10-50-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 10 -Name Accounting Standards Codification -Section 65 -Paragraph 4 -Subparagraph (e)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479654/326-10-65-4 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 250 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480530/250-10-S99-3 + Details
Name: | us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateImmaterialEffect
Namespace Prefix: | us-gaap_
Data Type: | xbrli:booleanItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-2 + Details
Name: | us-gaap_DeferredTaxAssetsNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of allowance for credit loss on financing receivable. Excludes allowance for financing receivable covered under loss sharing agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/otherTransitionRef -Topic 310 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 11B -Subparagraph (c)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481962/310-10-50-11B Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name Regulation S-K (SK) -Number 229 -Section 1405 -Paragraph c -Publisher SEC Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name Regulation S-K (SK) -Number 229 -Section 1405 -Paragraph a -Subparagraph (1) -Publisher SEC Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Name Regulation S-K (SK) -Number 229 -Section 1405 -Paragraph a -Subparagraph (3) -Publisher SEC 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(4)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479344/326-20-45-1 Reference 7: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(7)(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478546/942-210-S99-1 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-13 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-13 + Details
Name: | us-gaap_FinancingReceivableAllowanceForCreditLosses
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of increase (decrease) in allowance for credit loss on financing receivable. + References Reference 1: http://fasb.org/us-gaap/role/ref/otherTransitionRef -Topic 310 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 11B -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481962/310-10-50-11B Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-13 + Details
Name: | us-gaap_FinancingReceivableAllowanceForCreditLossesPeriodIncreaseDecrease
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of expense recognized during the period for the foreclosure on real estate assets. + References No definition available. + Details
Name: | us-gaap_ForeclosedRealEstateExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Total loss recognized during the period from the impairment of goodwill plus the loss recognized in the period resulting from the impairment of the carrying amount of intangible assets, other than goodwill. + References No definition available. + Details
Name: | us-gaap_GoodwillAndIntangibleAssetImpairment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The increase (decrease) during the reporting period in the amount due from borrowers for interest payments. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 45 -Paragraph 28 -Subparagraph (a) -SubTopic 10 -Topic 230 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-28 + Details
Name: | us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of fair value of reporting unit in excess of carrying amount. + References No definition available. + Details
Name: | us-gaap_ReportingUnitAmountOfFairValueInExcessOfCarryingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Percentage of fair value of reporting unit in excess of carrying amount. + References No definition available. + Details
Name: | us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | us-gaap_FinancingReceivablePortfolioSegmentAxis=fmao_CommercialAndAgriculturalLoanPortfolioSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CumulativeEffectPeriodOfAdoptionAxis=srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AdjustmentsForNewAccountingPronouncementsAxis=us-gaap_AccountingStandardsUpdate201613Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PledgingPurposeAxis=us-gaap_LetterOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis=us-gaap_UnfundedLoanCommitmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=us-gaap_OtherAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AdjustmentsForNewAccountingPronouncementsAxis=us-gaap_AccountingStandardsUpdate202302Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |