<?xml version='1.0' encoding='UTF-8'?>
<FilingSummary>
  <Version>3.3.1.900</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>295</ContextCount>
  <ElementCount>309</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>67</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>10</UnitCount>
  <MyReports>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001000 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1001501 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1002000 - Statement - Consolidated Statements of Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/ConsolidatedStatementsOfIncome</Role>
      <ShortName>Consolidated Statements of Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1003000 - Statement - Consolidated Statements of Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/ConsolidatedStatementsOfStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1004000 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>2101100 - Disclosure - Nature of Business and Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPolicies</Role>
      <ShortName>Nature of Business and Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>2104100 - Disclosure - Acquisition Accounting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/AcquisitionAccounting</Role>
      <ShortName>Acquisition Accounting</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2106100 - Disclosure - Property and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/PropertyAndEquipment</Role>
      <ShortName>Property and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2107100 - Disclosure - Operating Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/OperatingLeases</Role>
      <ShortName>Operating Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2112100 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2113100 - Disclosure - Other Employee Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/OtherEmployeeBenefits</Role>
      <ShortName>Other Employee Benefits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2115100 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/StockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2116100 - Disclosure - Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/Contingencies</Role>
      <ShortName>Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2121100 - Disclosure - Concentration</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/Concentration</Role>
      <ShortName>Concentration</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2123100 - Disclosure - Segment Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/SegmentInformation</Role>
      <ShortName>Segment Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2126100 - Disclosure - Goodwill and Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/GoodwillAndIntangibleAssets</Role>
      <ShortName>Goodwill and Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2127100 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2128100 - Disclosure - Quarterly Financial Summary (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/QuarterlyFinancialSummaryUnaudited</Role>
      <ShortName>Quarterly Financial Summary (unaudited)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2129100 - Schedule - Schedule II Valuation and Qualifying Accounts</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/ScheduleiiValuationAndQualifyingAccounts</Role>
      <ShortName>Schedule II Valuation and Qualifying Accounts</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2201201 - Disclosure - Nature of Business and Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Nature of Business and Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2301302 - Disclosure - Nature of Business and Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPoliciesTables</Role>
      <ShortName>Nature of Business and Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2304301 - Disclosure - Acquisition Accounting (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/AcquisitionAccountingTables</Role>
      <ShortName>Acquisition Accounting (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2306301 - Disclosure - Property and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/PropertyAndEquipmentTables</Role>
      <ShortName>Property and Equipment (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2307301 - Disclosure - Operating Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/OperatingLeasesTables</Role>
      <ShortName>Operating Leases (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2312301 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2313301 - Disclosure - Other Employee Benefits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/OtherEmployeeBenefitsTables</Role>
      <ShortName>Other Employee Benefits (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2315301 - Disclosure - Stockholders' Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/StockholdersEquityTables</Role>
      <ShortName>Stockholders' Equity (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2321301 - Disclosure - Concentration (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/ConcentrationTables</Role>
      <ShortName>Concentration (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2323301 - Disclosure - Segment Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/SegmentInformationTables</Role>
      <ShortName>Segment Information (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2326301 - Disclosure - Goodwill and Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/GoodwillAndIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Intangible Assets (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2328301 - Disclosure - Quarterly Financial Summary (unaudited) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/QuarterlyFinancialSummaryUnauditedTables</Role>
      <ShortName>Quarterly Financial Summary (unaudited) (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2401403 - Disclosure - Nature of Business and Significant Accounting Policies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPoliciesNarrativeDetails</Role>
      <ShortName>Nature of Business and Significant Accounting Policies - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2401404 - Disclosure - Nature of Business and Significant Accounting Policies - Restricted Cash (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPoliciesRestrictedCashDetails</Role>
      <ShortName>Nature of Business and Significant Accounting Policies - Restricted Cash (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2401405 - Disclosure - Nature of Business and Significant Accounting Policies - Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPoliciesPropertyAndEquipmentDetails</Role>
      <ShortName>Nature of Business and Significant Accounting Policies - Property and Equipment (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2401406 - Disclosure - Nature of Business and Significant Accounting Policies - Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPoliciesInvestmentsDetails</Role>
      <ShortName>Nature of Business and Significant Accounting Policies - Investments (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2401407 - Disclosure - Nature of Business and Significant Accounting Policies - Note Receivable (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPoliciesNoteReceivableDetails</Role>
      <ShortName>Nature of Business and Significant Accounting Policies - Note Receivable (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2401408 - Disclosure - Nature of Business and Significant Accounting Policies - Revenue Recognition (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPoliciesRevenueRecognitionDetails</Role>
      <ShortName>Nature of Business and Significant Accounting Policies - Revenue Recognition (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2401409 - Disclosure - Nature of Business and Significant Accounting Policies - American Public University System 8-Week Course-Tuition Refund Schedule (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPoliciesAmericanPublicUniversitySystem8WeekCourseTuitionRefundScheduleDetails</Role>
      <ShortName>Nature of Business and Significant Accounting Policies - American Public University System 8-Week Course-Tuition Refund Schedule (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2401410 - Disclosure - Nature of Business and Significant Accounting Policies - American Public University System 16-Week Course-Tuition Refund Schedule (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPoliciesAmericanPublicUniversitySystem16WeekCourseTuitionRefundScheduleDetails</Role>
      <ShortName>Nature of Business and Significant Accounting Policies - American Public University System 16-Week Course-Tuition Refund Schedule (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2401411 - Disclosure - Nature of Business and Significant Accounting Policies - Hondros College of Nursing Refund Schedule (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPoliciesHondrosCollegeOfNursingRefundScheduleDetails</Role>
      <ShortName>Nature of Business and Significant Accounting Policies - Hondros College of Nursing Refund Schedule (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2401412 - Disclosure - Nature of Business and Significant Accounting Policies - Schedule of Deferred Revenue and Student Deposits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPoliciesScheduleOfDeferredRevenueAndStudentDepositsDetails</Role>
      <ShortName>Nature of Business and Significant Accounting Policies - Schedule of Deferred Revenue and Student Deposits (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2401413 - Disclosure - Nature of Business and Significant Accounting Policies - Deferred Revenue and Student Deposits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPoliciesDeferredRevenueAndStudentDepositsDetails</Role>
      <ShortName>Nature of Business and Significant Accounting Policies - Deferred Revenue and Student Deposits (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2401414 - Disclosure - Nature of Business and Significant Accounting Policies - Advertising Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPoliciesAdvertisingCostsDetails</Role>
      <ShortName>Nature of Business and Significant Accounting Policies - Advertising Costs (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2401415 - Disclosure - Nature of Business and Significant Accounting Policies - Stock-based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPoliciesStockBasedCompensationDetails</Role>
      <ShortName>Nature of Business and Significant Accounting Policies - Stock-based Compensation (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2401416 - Disclosure - Nature of Business and Significant Accounting Policies - Income Per Common Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/NatureOfBusinessAndSignificantAccountingPoliciesIncomePerCommonShareDetails</Role>
      <ShortName>Nature of Business and Significant Accounting Policies - Income Per Common Share (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2404402 - Disclosure - Acquisition Accounting - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/AcquisitionAccountingNarrativeDetails</Role>
      <ShortName>Acquisition Accounting - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2404403 - Disclosure - Acquisition Accounting - Schedule of Fair Value of Identified Intangible Assets Acquired (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/AcquisitionAccountingScheduleOfFairValueOfIdentifiedIntangibleAssetsAcquiredDetails</Role>
      <ShortName>Acquisition Accounting - Schedule of Fair Value of Identified Intangible Assets Acquired (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2406402 - Disclosure - Property and Equipment - Schedule of Property and Equipment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/PropertyAndEquipmentScheduleOfPropertyAndEquipmentDetail</Role>
      <ShortName>Property and Equipment - Schedule of Property and Equipment (Detail)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2406403 - Disclosure - Property and Equipment - Narrative (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/PropertyAndEquipmentNarrativeDetail</Role>
      <ShortName>Property and Equipment - Narrative (Detail)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2407402 - Disclosure - Operating Leases - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/OperatingLeasesNarrativeDetails</Role>
      <ShortName>Operating Leases - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2407403 - Disclosure - Operating Leases - Schedule of Minimum Rental Commitment Due Under Operating Lease (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/OperatingLeasesScheduleOfMinimumRentalCommitmentDueUnderOperatingLeaseDetails</Role>
      <ShortName>Operating Leases - Schedule of Minimum Rental Commitment Due Under Operating Lease (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2412402 - Disclosure - Income Taxes - Schedule of Components of Income Tax Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/IncomeTaxesScheduleOfComponentsOfIncomeTaxExpenseDetails</Role>
      <ShortName>Income Taxes - Schedule of Components of Income Tax Expense (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2412403 - Disclosure - Income Taxes - Schedule of Tax Effects of Principal Temporary Differences (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/IncomeTaxesScheduleOfTaxEffectsOfPrincipalTemporaryDifferencesDetails</Role>
      <ShortName>Income Taxes - Schedule of Tax Effects of Principal Temporary Differences (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2412404 - Disclosure - Income Taxes - Schedule of Difference of Income Tax Expense from the United States Federal Income Tax Rates (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/IncomeTaxesScheduleOfDifferenceOfIncomeTaxExpenseFromUnitedStatesFederalIncomeTaxRatesDetails</Role>
      <ShortName>Income Taxes - Schedule of Difference of Income Tax Expense from the United States Federal Income Tax Rates (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2412405 - Disclosure - Income Taxes - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/IncomeTaxesNarrativeDetails</Role>
      <ShortName>Income Taxes - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2413402 - Disclosure - Other Employee Benefits - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/OtherEmployeeBenefitsNarrativeDetails</Role>
      <ShortName>Other Employee Benefits - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2413403 - Disclosure - Other Employee Benefits - Schedule of Shares Purchased in Open Market for Employees (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/OtherEmployeeBenefitsScheduleOfSharesPurchasedInOpenMarketForEmployeesDetails</Role>
      <ShortName>Other Employee Benefits - Schedule of Shares Purchased in Open Market for Employees (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2415402 - Disclosure - Stockholders' Equity - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/StockholdersEquityNarrativeDetails</Role>
      <ShortName>Stockholders' Equity - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2415403 - Disclosure - Stockholders' Equity - Summary of Status of Stock Incentive Plans and Changes During Periods (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/StockholdersEquitySummaryOfStatusOfStockIncentivePlansAndChangesDuringPeriodsDetail</Role>
      <ShortName>Stockholders' Equity - Summary of Status of Stock Incentive Plans and Changes During Periods (Detail)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2415404 - Disclosure - Stockholders' Equity - Summary of Information Regarding Stock Option Exercises (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/StockholdersEquitySummaryOfInformationRegardingStockOptionExercisesDetails</Role>
      <ShortName>Stockholders' Equity - Summary of Information Regarding Stock Option Exercises (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2415405 - Disclosure - Stockholders' Equity - Summary of Restricted Stock and Restricted Stock Units Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/StockholdersEquitySummaryOfRestrictedStockAndRestrictedStockUnitsActivityDetails</Role>
      <ShortName>Stockholders' Equity - Summary of Restricted Stock and Restricted Stock Units Activity (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2415406 - Disclosure - Stockholders' Equity - Summary of Repurchases During the Period (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/StockholdersEquitySummaryOfRepurchasesDuringPeriodDetails</Role>
      <ShortName>Stockholders' Equity - Summary of Repurchases During the Period (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2421402 - Disclosure - Concentration - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/ConcentrationNarrativeDetails</Role>
      <ShortName>Concentration - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>2421403 - Disclosure - Concentration - Summary of APEI Segment Revenues (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/ConcentrationSummaryOfApeiSegmentRevenuesDetails</Role>
      <ShortName>Concentration - Summary of APEI Segment Revenues (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>2423402 - Disclosure - Segment Information - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/SegmentInformationNarrativeDetails</Role>
      <ShortName>Segment Information - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>2423403 - Disclosure - Segment Information - Summary of Financial Information by Reportable Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/SegmentInformationSummaryOfFinancialInformationByReportableSegmentDetails</Role>
      <ShortName>Segment Information - Summary of Financial Information by Reportable Segment (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>2423404 - Disclosure - Segment Information - Summary of Consolidated Assets by Reportable Segments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/SegmentInformationSummaryOfConsolidatedAssetsByReportableSegmentsDetails</Role>
      <ShortName>Segment Information - Summary of Consolidated Assets by Reportable Segments (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>2426402 - Disclosure - Goodwill and Intangible Assets - Narrative (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/GoodwillAndIntangibleAssetsNarrativeDetail</Role>
      <ShortName>Goodwill and Intangible Assets - Narrative (Detail)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>2426403 - Disclosure - Goodwill and Intangible Assets - Schedule of Identified Intangible Assets with Definite Life (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/GoodwillAndIntangibleAssetsScheduleOfIdentifiedIntangibleAssetsWithDefiniteLifeDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Schedule of Identified Intangible Assets with Definite Life (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>2426404 - Disclosure - Goodwill and Intangible Assets - Schedule of Future Amortization of Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/GoodwillAndIntangibleAssetsScheduleOfFutureAmortizationOfIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Schedule of Future Amortization of Intangible Assets (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>2426405 - Disclosure - Goodwill and Intangible Assets - Schedule of Changes in Carrying Amount of Goodwill by Reportable Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/GoodwillAndIntangibleAssetsScheduleOfChangesInCarryingAmountOfGoodwillByReportableSegmentDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Schedule of Changes in Carrying Amount of Goodwill by Reportable Segment (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>2426406 - Disclosure - Goodwill and Intangible Assets - Schedule of Components of Net Carrying Amount of Goodwill by Reportable Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/GoodwillAndIntangibleAssetsScheduleOfComponentsOfNetCarryingAmountOfGoodwillByReportableSegmentDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Schedule of Components of Net Carrying Amount of Goodwill by Reportable Segment (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>2426407 - Disclosure - Goodwill and Intangible Assets - Schedule of Other Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/GoodwillAndIntangibleAssetsScheduleOfOtherIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Schedule of Other Intangible Assets (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>2427401 - Disclosure - Subsequent Events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/SubsequentEventsDetails</Role>
      <ShortName>Subsequent Events (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>2428402 - Disclosure - Quarterly Financial Summary (unaudited) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/QuarterlyFinancialSummaryUnauditedDetails</Role>
      <ShortName>Quarterly Financial Summary (unaudited) (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>2429401 - Schedule - Schedule II Valuation and Qualifying Accounts - Schedule of Valuation and Qualifying Accounts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/ScheduleiiValuationAndQualifyingAccountsScheduleOfValuationAndQualifyingAccountsDetails</Role>
      <ShortName>Schedule II Valuation and Qualifying Accounts - Schedule of Valuation and Qualifying Accounts (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="apei-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>2429402 - Schedule - Schedule II Valuation and Qualifying Accounts - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.americanpubliceducation.com/role/ScheduleiiValuationAndQualifyingAccountsNarrativeDetails</Role>
      <ShortName>Schedule II Valuation and Qualifying Accounts - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>apei-20151231.xml</File>
    <File>apei-20151231.xsd</File>
    <File>apei-20151231_cal.xml</File>
    <File>apei-20151231_def.xml</File>
    <File>apei-20151231_lab.xml</File>
    <File>apei-20151231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies/>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
