v3.26.3
Cover - USD ($)
12 Months Ended
Jun. 30, 2026
Sep. 15, 2026
Dec. 31, 2025
Document Information [Line Items]      
Document Type 10-K    
Document Annual Report true    
Document Transition Report false    
Document Financial Statement Error Correction [Flag] false    
Entity Interactive Data Current Yes    
Amendment Flag false    
Document Period End Date Jun. 30, 2026    
Document Fiscal Year Focus 2026    
Document Fiscal Period Focus FY    
ICFR Auditor Attestation Flag false    
Documents Incorporated by Reference [Text Block]

Portions of the registrant's definitive proxy statement relating to the 2026 Annual Meeting of Shareholders, to be filed with the Securities and Exchange Commission, are incorporated by reference in Part III, Items 10 through 14 on Form 10-K as indicated herein.

   
Entity Registrant Name ESPEY MFG. & ELECTRONICS CORP.    
Entity Central Index Key 0000033533    
Entity Tax Identification Number 14-1387171    
Current Fiscal Year End Date --06-30    
Entity Well-known Seasoned Issuer No    
Entity Voluntary Filers No    
Entity Current Reporting Status Yes    
Entity Filer Category Non-accelerated Filer    
Entity Public Float     $ 167,477,906
Entity File Number 1-4383    
Entity Shell Company false    
Entity Emerging Growth Company false    
Entity Small Business true    
Entity Incorporation, State or Country Code NY    
Entity Address, Address Line One 233 Ballston Avenue    
Entity Address, City or Town Saratoga Springs    
Entity Address, State or Province NY    
Entity Address, Postal Zip Code 12866    
City Area Code 518    
Local Phone Number 584-4100    
Title of 12(b) Security Common Stock $.33-1/3 par value    
Trading Symbol ESP    
Security Exchange Name NYSEAMER    
Entity Common Stock, Shares Outstanding   3,036,872