{
  "cik": 1201792,
  "cik_padded": "0001201792",
  "entityName": "AMERICAN PUBLIC EDUCATION INC",
  "fiscal_years": [
    {
      "accn": "0001201792-26-000004",
      "filed": "2026-03-12",
      "fiscal_year": 2025,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 4262000.0,
        "capex": 15864000.0,
        "cash": 174095000.0,
        "eps_diluted": 1.36,
        "free_cash_flow": 46101000.0,
        "net_income": 31557000.0,
        "operating_cash_flow": 61965000.0,
        "operating_income": 47935000.0,
        "revenue": 648862000.0,
        "stockholders_equity": 294782000.0,
        "total_assets": 521418000.0,
        "total_liabilities": 226636000.0
      },
      "period_end": "2025-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.7688257763364114,
        "net_margin": 0.04863437834239021,
        "operating_margin": 0.07387549278583119,
        "revenue_growth_yoy": 0.03891225648817806,
        "roa_avg2y": 0.057822066639121004,
        "roa_period_end": 0.060521500983855565,
        "roe_avg2y": 0.10542527406996614,
        "roe_period_end": 0.1070519909628132
      }
    },
    {
      "accn": "0001201792-26-000004",
      "filed": "2026-03-12",
      "fiscal_year": 2024,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 4238000.0,
        "capex": 21082000.0,
        "cash": 131926000.0,
        "eps_diluted": 0.55,
        "free_cash_flow": 27790000.0,
        "net_income": 16113000.0,
        "operating_cash_flow": 48872000.0,
        "operating_income": 33066000.0,
        "revenue": 624559000.0,
        "stockholders_equity": 303879000.0,
        "total_assets": 570103000.0,
        "total_liabilities": 266224000.0
      },
      "period_end": "2024-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.8760855472079347,
        "net_margin": 0.0257990037770651,
        "operating_margin": 0.05294295655014178,
        "revenue_growth_yoy": 0.03998701179761716,
        "roa_avg2y": 0.02858209703154532,
        "roa_period_end": 0.02826331382223914,
        "roe_avg2y": 0.05408362772822247,
        "roe_period_end": 0.0530243945781051
      }
    },
    {
      "accn": "0001201792-26-000004",
      "filed": "2026-03-12",
      "fiscal_year": 2023,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 10739000.0,
        "capex": 13895000.0,
        "cash": 116660000.0,
        "eps_diluted": -2.93,
        "free_cash_flow": 31619000.0,
        "net_income": -47286000.0,
        "operating_cash_flow": 45514000.0,
        "operating_income": -48306000.0,
        "revenue": 600545000.0,
        "stockholders_equity": 291976000.0,
        "total_assets": 557386000.0,
        "total_liabilities": 265410000.0
      },
      "period_end": "2023-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.9090130695673617,
        "net_margin": -0.0787384792147133,
        "operating_margin": -0.0804369364493918,
        "revenue_growth_yoy": -0.00953774194825243,
        "roa_avg2y": -0.08066241229843353,
        "roa_period_end": -0.0848352847039574,
        "roe_avg2y": -0.14737659010476808,
        "roe_period_end": -0.16195166726032276
      }
    },
    {
      "accn": "0001201792-26-000004",
      "filed": "2026-03-12",
      "fiscal_year": 2022,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 1538000.0,
        "capex": 16389000.0,
        "cash": 102519000.0,
        "eps_diluted": -6.08,
        "free_cash_flow": 12826000.0,
        "net_income": -114993000.0,
        "operating_cash_flow": 29215000.0,
        "operating_income": -137348000.0,
        "revenue": 606328000.0,
        "stockholders_equity": 349727000.0,
        "total_assets": 615056000.0,
        "total_liabilities": 265329000.0
      },
      "period_end": "2022-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.7586746233490694,
        "net_margin": -0.18965477431357286,
        "operating_margin": -0.22652425749759206,
        "revenue_growth_yoy": 0.44776422327442733,
        "roa_avg2y": -0.1715463382323983,
        "roa_period_end": -0.18696346348950338,
        "roe_avg2y": -0.3005021304284768,
        "roe_period_end": -0.3288078987324398
      }
    },
    {
      "accn": "0001201792-25-000004",
      "filed": "2025-03-06",
      "fiscal_year": 2021,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 3032000.0,
        "capex": 11828000.0,
        "eps_diluted": 0.97,
        "free_cash_flow": 4437000.0,
        "net_income": 17752000.0,
        "operating_cash_flow": 16265000.0,
        "operating_income": 30371000.0,
        "revenue": 418803000.0,
        "stockholders_equity": 415612000.0,
        "total_assets": 725608000.0,
        "total_liabilities": 309996000.0
      },
      "period_end": "2021-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.7458783673233689,
        "net_margin": 0.042387470958899526,
        "operating_margin": 0.07251858272266436,
        "revenue_growth_yoy": 0.3014994483894526,
        "roa_avg2y": 0.032375668641815895,
        "roa_period_end": 0.024465000385883288,
        "roe_avg2y": 0.04913796802101484,
        "roe_period_end": 0.0427129149302715
      }
    },
    {
      "accn": "0001201792-24-000005",
      "filed": "2024-03-05",
      "fiscal_year": 2020,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 15705000.0,
        "capex": 4926000.0,
        "eps_diluted": 1.25,
        "free_cash_flow": 39884000.0,
        "net_income": 18822000.0,
        "operating_cash_flow": 44810000.0,
        "operating_income": 24757000.0,
        "revenue": 321785000.0,
        "stockholders_equity": 306925000.0,
        "total_assets": 371018000.0,
        "total_liabilities": 64093000.0
      },
      "period_end": "2020-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.20882300236214058,
        "net_margin": 0.058492471681402175,
        "operating_margin": 0.07693646378793294,
        "revenue_growth_yoy": 0.12406120096412478,
        "roa_avg2y": 0.051857311117692845,
        "roa_period_end": 0.05073069231142425,
        "roe_avg2y": 0.06235981300670247,
        "roe_period_end": 0.061324427791805816
      }
    },
    {
      "accn": "0001201792-23-000004",
      "filed": "2023-03-14",
      "fiscal_year": 2019,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 40506000.0,
        "capex": 7255000.0,
        "eps_diluted": 0.62,
        "free_cash_flow": 31115000.0,
        "net_income": 10013000.0,
        "operating_cash_flow": 38370000.0,
        "operating_income": 12756000.0,
        "revenue": 286270000.0,
        "stockholders_equity": 296733000.0,
        "total_assets": 354897000.0,
        "total_liabilities": 58164000.0
      },
      "period_end": "2019-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.19601459898292403,
        "net_margin": 0.03497746882313899,
        "operating_margin": 0.04455933209906732,
        "revenue_growth_yoy": -0.03835236338839116,
        "roa_avg2y": 0.02758953234461428,
        "roa_period_end": 0.02821381978433179,
        "roe_avg2y": 0.032404583178937185,
        "roe_period_end": 0.033744140355134074
      }
    },
    {
      "accn": "0001201792-22-000003",
      "filed": "2022-03-02",
      "fiscal_year": 2018,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 1823000.0,
        "capex": 9430000.0,
        "eps_diluted": 1.54,
        "free_cash_flow": 34749000.0,
        "net_income": 25639000.0,
        "operating_cash_flow": 44179000.0,
        "operating_income": 32526000.0,
        "revenue": 297687000.0,
        "stockholders_equity": 321266000.0,
        "total_assets": 370958000.0,
        "total_liabilities": 49692000.0
      },
      "period_end": "2018-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.15467556479677277,
        "net_margin": 0.08612737539764921,
        "operating_margin": 0.10926241320581685,
        "revenue_growth_yoy": -0.005216409132224777,
        "roa_avg2y": 0.07222294210108227,
        "roa_period_end": 0.069115641123793,
        "roe_avg2y": 0.08396979065685016,
        "roe_period_end": 0.07980614195090673
      }
    },
    {
      "accn": "0001201792-21-000003",
      "filed": "2021-03-09",
      "fiscal_year": 2017,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 1587000.0,
        "capex": 14788000.0,
        "cash": 179205000.0,
        "eps_diluted": 1.29,
        "free_cash_flow": 33150000.0,
        "net_income": 21121000.0,
        "operating_cash_flow": 47938000.0,
        "operating_income": 34859000.0,
        "revenue": 299248000.0,
        "stockholders_equity": 289406000.0,
        "total_assets": 339038000.0,
        "total_liabilities": 49632000.0
      },
      "period_end": "2017-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.17149609890603512,
        "net_margin": 0.07058025450462492,
        "operating_margin": 0.11648866492006629,
        "revenue_growth_yoy": -0.04436049166664006,
        "roa_avg2y": 0.06452529412303828,
        "roa_period_end": 0.06229685168034262,
        "roe_avg2y": 0.07623863874269955,
        "roe_period_end": 0.07298051871764925
      }
    },
    {
      "accn": "0001201792-20-000006",
      "filed": "2020-03-10",
      "fiscal_year": 2016,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 848000.0,
        "capex": 16399000.0,
        "cash": 146351000.0,
        "eps_diluted": 1.49,
        "free_cash_flow": 39615000.0,
        "net_income": 24155000.0,
        "operating_cash_flow": 56014000.0,
        "operating_income": 38276000.0,
        "revenue": 313139000.0,
        "stockholders_equity": 264670000.0,
        "total_assets": 315620000.0,
        "total_liabilities": 50950000.0
      },
      "period_end": "2016-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "roa_period_end": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.19250387274719463,
        "net_margin": 0.07713826767026784,
        "operating_margin": 0.12223325743519652,
        "roa_period_end": 0.07653190545592801,
        "roe_period_end": 0.0912645936449163
      }
    },
    {
      "accn": "0001201792-18-000003",
      "filed": "2018-02-27",
      "fiscal_year": 2015,
      "form": "10-K",
      "fundamental_units": {
        "cash": "USD"
      },
      "fundamentals": {
        "cash": 105734000.0
      },
      "period_end": "2015-12-31",
      "ratios": {}
    },
    {
      "accn": "0001201792-18-000003",
      "filed": "2018-02-27",
      "fiscal_year": 2014,
      "form": "10-K",
      "fundamental_units": {
        "cash": "USD"
      },
      "fundamentals": {
        "cash": 115634000.0
      },
      "period_end": "2014-12-31",
      "ratios": {}
    },
    {
      "accn": "0001201792-17-000003",
      "filed": "2017-03-01",
      "fiscal_year": 2013,
      "form": "10-K",
      "fundamental_units": {
        "cash": "USD"
      },
      "fundamentals": {
        "cash": 94820000.0
      },
      "period_end": "2013-12-31",
      "ratios": {}
    },
    {
      "accn": "0001201792-16-000005",
      "filed": "2016-02-29",
      "fiscal_year": 2012,
      "form": "10-K",
      "fundamental_units": {
        "cash": "USD"
      },
      "fundamentals": {
        "cash": 114901000.0
      },
      "period_end": "2012-12-31",
      "ratios": {}
    }
  ],
  "latest_filing": {
    "accn": "0001201792-26-000004",
    "filed": "2026-03-12",
    "form": "10-K"
  },
  "note": "Static grepcent export of verified SEC companyfacts-derived values. Monetary values are raw reported units from grepcent's resolved facts; no scaling and no FX conversion. Capex, dividends, and buybacks are reported as positive outflow magnitudes. ROE/ROA include both period-end basis (site-consistent) and average-of-two-years basis where the prior-year denominator exists.",
  "schema_version": "1",
  "sic": "8200",
  "sic_description": "Services-Educational Services",
  "source_urls": {
    "sec_companyfacts": "https://data.sec.gov/api/xbrl/companyfacts/CIK0001201792.json",
    "sec_submissions": "https://data.sec.gov/submissions/CIK0001201792.json"
  },
  "ticker": "APEI"
}
