XML 22 R1.htm IDEA: XBRL DOCUMENT v3.22.0.1
Document And Entity Information - USD ($)
Dec. 31, 2021
Mar. 15, 2022
Jun. 30, 2021
Document Information [Line Items]      
Entity Registrant Name Middlefield Banc Corp.    
Document, Type 10-K    
Current Fiscal Year End Date --12-31    
Document Fiscal Period Focus FY    
Document Fiscal Year Focus 2021    
Document, Annual Report true    
Document, Period End Date Dec. 31, 2021    
Document, Transition Report false    
Entity, File Number 001-36613    
Entity, Incorporation, State or Country Code OH    
Entity, Tax Identification Number 34-1585111    
Entity, Address, Address Line One 15985 East High Street    
Entity, Address, City or Town Middlefield    
Entity, Address, State or Province OH    
Entity, Address, Postal Zip Code 44062-0035    
City Area Code 440    
Local Phone Number 632-1666    
Trading Symbol MBCN    
Title of 12(b) Security Common Stock, Without Par Value    
Security Exchange Name NASDAQ    
Entity, Well-known Seasoned Issuer No    
Entity, Voluntary Filers No    
Entity, Current Reporting Status Yes    
Entity, Interactive Data, Current Yes    
Entity, Filer Category Non-accelerated Filer    
Entity, Small Business true    
Entity, Emerging Growth Company false    
Entity, Shell Company false    
Entity, Public Float     $ 139,700,000
Entity, Common Stock Shares, Outstanding   5,879,972  
Documents Incorporated By Reference Text Block  Portions of the registrant’s definitive proxy statements for the 2022 Annual Meeting of Shareholders are incorporated by reference in Part III of this report.  Portions of the Annual Report to Shareholders for the year ended December 31, 2021 are incorporated by reference into Part I and Part II of this report.     
Amendment Flag false    
Entity Central Index Key 0000836147    
Auditor Name S. R. Snodgrass, P.C.    
Auditor Location Cranberry Township, Pennsylvania    
Auditor Firm ID 74