XML 46 R1.htm IDEA: XBRL DOCUMENT v3.20.1
Document and Entity Information - shares
3 Months Ended
Mar. 31, 2020
May 08, 2020
Document And Entity Information [Abstract]    
Document Type 10-Q  
Amendment Flag false  
Document Period End Date Mar. 31, 2020  
Document Fiscal Year Focus 2020  
Document Fiscal Period Focus Q1  
Entity Registrant Name AMERICAN PUBLIC EDUCATION INC  
Entity Central Index Key 0001201792  
Current Fiscal Year End Date --12-31  
Entity Filer Category Accelerated Filer  
Entity Emerging Filing Entity false  
Entity Small Business false  
Entity Shell Company false  
Entity Current Reporting Status Yes  
Entity Common Stock, Shares Outstanding   14,781,231