XML 12 R1.htm IDEA: XBRL DOCUMENT v3.24.1
Document And Entity Information - USD ($)
12 Months Ended
Dec. 31, 2023
Mar. 21, 2024
Jun. 30, 2023
Document Information [Line Items]      
Entity Central Index Key 0000818677    
Entity Registrant Name SECURITY FEDERAL CORP    
Amendment Flag false    
Current Fiscal Year End Date --12-31    
Document Fiscal Period Focus FY    
Document Fiscal Year Focus 2023    
Document Type 10-K    
Document Annual Report true    
Document Period End Date Dec. 31, 2023    
Document Transition Report false    
Entity File Number 000-16120    
Entity Incorporation, State or Country Code SC    
Entity Tax Identification Number 57-0858504    
Entity Address, Address Line One 238 Richland Avenue Northwest    
Entity Address, City or Town Aiken    
Entity Address, State or Province SC    
Entity Address, Postal Zip Code 29801    
City Area Code 803    
Local Phone Number 641-3000    
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    
ICFR Auditor Attestation Flag false    
Document Financial Statement Error Correction [Flag] false    
Entity Shell Company false    
Entity Common Stock, Shares Outstanding   3,229,325  
Entity Public Float     $ 44,257,125
Auditor Firm ID 149    
Auditor Name Elliott Davis, LLC    
Auditor Location Columbia, South Carolina