v3.26.1
Cover - shares
6 Months Ended
Jun. 30, 2026
Aug. 10, 2026
Cover [Abstract]    
Entity Registrant Name F&M BANK CORP.  
Entity Central Index Key 0000740806  
Document Type 10-Q  
Amendment Flag false  
Current Fiscal Year End Date --12-31  
Entity Small Business true  
Entity Shell Company false  
Entity Emerging Growth Company false  
Entity Current Reporting Status Yes  
Document Period End Date Jun. 30, 2026  
Entity Filer Category Non-accelerated Filer  
Document Fiscal Period Focus Q2  
Document Fiscal Year Focus 2026  
Entity Common Stock Shares Outstanding   3,586,733
Entity File Number 000-13273  
Entity Incorporation State Country Code VA  
Entity Tax Identification Number 54-1280811  
Entity Address Address Line 1 P. O. Box 1111  
Entity Address City Or Town Timberville  
Entity Address State Or Province VA  
Entity Address Postal Zip Code 22853  
City Area Code 540  
Local Phone Number 896-8941  
Document Quarterly Report true  
Document Transition Report false  
Entity Interactive Data Current Yes