XML 12 R1.htm IDEA: XBRL DOCUMENT v3.19.2
Document and Entity Information - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Aug. 06, 2019
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Asset Types      
Entity Registrant Name F&M BANK CORP    
Entity Central Index Key 0000740806    
Document Type 10-Q    
Document Period End Date Jun. 30, 2019    
Amendment Flag false    
Current Fiscal Year End Date --12-31    
Entity Filer Category Accelerated Filer    
Entity Emerging Growth Company false    
Entity Small Business true    
Entity Shell Company false    
Entity Common Stock, Shares Outstanding     3,173,741
Document Fiscal Period Focus Q2    
Document Fiscal Year Focus 2019    
[custom:GainOnSaleOfLoansHeldForSale] $ 1,326 $ 1,105