XML 18 R1.htm IDEA: XBRL DOCUMENT v3.7.0.1
Document and Entity Information - USD ($)
12 Months Ended
Dec. 31, 2016
Mar. 21, 2017
Jun. 30, 2016
Employee Benefits Tables      
Entity Registrant Name F&M BANK CORP    
Entity Central Index Key 0000740806    
Document Type 10-K    
Document Period End Date Dec. 31, 2016    
Amendment Flag false    
Current Fiscal Year End Date --12-31    
Is Entity a Well-known Seasoned Issuer? No    
Is Entity a Voluntary Filer? No    
Is Entity's Reporting Status Current? Yes    
Entity Filer Category Smaller Reporting Company    
Entity Common Stock, Shares Outstanding   3,271,926  
Entity Public Float     $ 67,509,580
Document Fiscal Period Focus FY    
Document Fiscal Year Focus 2016