XML 13 R1.htm IDEA: XBRL DOCUMENT v3.24.0.1
Document and Entity Information - USD ($)
12 Months Ended
Dec. 31, 2023
Dec. 31, 2021
Feb. 29, 2024
Jun. 30, 2023
Cover [Abstract]        
Document Type 10-K      
Amendment Flag false      
Document Annual Report true      
Document Period End Date Dec. 31, 2023      
Current Fiscal Year End Date --12-31      
Document Fiscal Year Focus 2023      
Document Fiscal Period Focus FY      
Document Transition Report false      
Entity File Number 000-26099      
Entity Registrant Name FARMERS & MERCHANTS BANCORP      
Entity Central Index Key 0001085913      
Entity Incorporation, State or Country Code DE      
Entity Tax Identification Number 94-3327828      
Entity Address, Address Line One 111 W. Pine Street      
Entity Address, City or Town Lodi      
Entity Address, State or Province CA      
Entity Address, Postal Zip Code 95240      
City Area Code 209      
Local Phone Number 367-2300      
Entity Well-known Seasoned Issuer No      
Entity Voluntary Filers No      
Entity Current Reporting Status Yes      
Entity Interactive Data Current Yes      
Entity Filer Category Accelerated Filer      
Entity Small Business false      
Entity Emerging Growth Company false      
ICFR Auditor Attestation Flag true      
Document Financial Statement Error Correction [Flag] false      
Entity Shell Company false      
Entity Public Float       $ 648,698,000
Entity Common Stock, Shares Outstanding     743,031  
Auditor Name Eide Bailly LLP Moss Adams LLP    
Auditor Location San Ramon, California San Francisco, California    
Auditor Firm ID 286 659    
Title of 12(g) Security Common Stock, $0.01 Par Value Per Share