XML 13 R1.htm IDEA: XBRL DOCUMENT v3.8.0.1
Document and Entity Information - shares
6 Months Ended
Dec. 31, 2017
Feb. 13, 2018
Document And Entity Information [Abstract]    
Entity Registrant Name ESPEY MFG & ELECTRONICS CORP  
Entity Central Index Key 0000033533  
Document Type 10-Q  
Document Period End Date Dec. 31, 2017  
Amendment Flag false  
Current Fiscal Year End Date --06-30  
Entity Filer Category Smaller Reporting Company  
Document Fiscal Period Focus Q2  
Document Fiscal Year Focus 2018  
Entity Common Stock, Shares Outstanding   2,366,523