<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:43d79214-c798-4f15-87ec-5cae28a507cb,g:84468a9b-dcf4-4fc3-bf73-52cf36d502a0-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.americanpubliceducation.com/role/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="apei-20251231.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.americanpubliceducation.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_13e9652b-63c1-4beb-b6c3-d5e3b81a343f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_75c97089-3847-4f29-84e5-ad1c18ce1e0d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_13e9652b-63c1-4beb-b6c3-d5e3b81a343f" xlink:to="loc_us-gaap_Liabilities_75c97089-3847-4f29-84e5-ad1c18ce1e0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_3a060c92-d29f-4947-b74b-8b1a887c962b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_13e9652b-63c1-4beb-b6c3-d5e3b81a343f" xlink:to="loc_us-gaap_StockholdersEquity_3a060c92-d29f-4947-b74b-8b1a887c962b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_46d7a242-4ad2-4b25-bb94-f74b52c08e23" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_13e9652b-63c1-4beb-b6c3-d5e3b81a343f" xlink:to="loc_us-gaap_CommitmentsAndContingencies_46d7a242-4ad2-4b25-bb94-f74b52c08e23" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_fec81a4e-43f6-459f-ad14-2d497642dc91" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsHeldForSaleNotPartOfDisposalGroupCurrent_128cf275-26e2-4189-a6db-65d90b112e61" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsHeldForSaleNotPartOfDisposalGroupCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_fec81a4e-43f6-459f-ad14-2d497642dc91" xlink:to="loc_us-gaap_AssetsHeldForSaleNotPartOfDisposalGroupCurrent_128cf275-26e2-4189-a6db-65d90b112e61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_62007efe-973a-4a2c-bf16-83c5b3c81267" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_fec81a4e-43f6-459f-ad14-2d497642dc91" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_62007efe-973a-4a2c-bf16-83c5b3c81267" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxesReceivable_639a468d-0e77-4b45-8bd4-fe9a5f98c6ff" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxesReceivable"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_fec81a4e-43f6-459f-ad14-2d497642dc91" xlink:to="loc_us-gaap_IncomeTaxesReceivable_639a468d-0e77-4b45-8bd4-fe9a5f98c6ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrent_7ac47daa-9a32-4cb8-a605-eb77ba98abf8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PrepaidExpenseCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_fec81a4e-43f6-459f-ad14-2d497642dc91" xlink:to="loc_us-gaap_PrepaidExpenseCurrent_7ac47daa-9a32-4cb8-a605-eb77ba98abf8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_cbfbf780-031c-4788-b44f-e89eb5bc7075" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_fec81a4e-43f6-459f-ad14-2d497642dc91" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_cbfbf780-031c-4788-b44f-e89eb5bc7075" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_3f89741a-e4c2-4496-86fe-21efb80c490d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_a835d514-748d-4dd0-a200-b8e610920fa6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_3f89741a-e4c2-4496-86fe-21efb80c490d" xlink:to="loc_us-gaap_PreferredStockValue_a835d514-748d-4dd0-a200-b8e610920fa6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_a6a2304f-64ae-4940-9ddf-906ac6bd8c3c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_3f89741a-e4c2-4496-86fe-21efb80c490d" xlink:to="loc_us-gaap_CommonStockValue_a6a2304f-64ae-4940-9ddf-906ac6bd8c3c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_d855bc98-8534-4a61-b958-02b224bd7442" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_3f89741a-e4c2-4496-86fe-21efb80c490d" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_d855bc98-8534-4a61-b958-02b224bd7442" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_7d961a05-e9bb-48d3-bcb4-ab4d7b43feb3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_3f89741a-e4c2-4496-86fe-21efb80c490d" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_7d961a05-e9bb-48d3-bcb4-ab4d7b43feb3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_a6316d48-534c-462f-aa85-99c4c7233bda" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_3f89741a-e4c2-4496-86fe-21efb80c490d" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_a6316d48-534c-462f-aa85-99c4c7233bda" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_08c11fd3-7623-472e-ae3c-c5fd798b01af" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_03753661-576b-423a-b685-c26036cf0444" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_08c11fd3-7623-472e-ae3c-c5fd798b01af" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_03753661-576b-423a-b685-c26036cf0444" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_35c0a6fa-81e6-418a-ae54-1cb357289bc7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_08c11fd3-7623-472e-ae3c-c5fd798b01af" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_35c0a6fa-81e6-418a-ae54-1cb357289bc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_50385e1f-e959-40c3-864f-1ede6cf9899a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_08c11fd3-7623-472e-ae3c-c5fd798b01af" xlink:to="loc_us-gaap_AssetsCurrent_50385e1f-e959-40c3-864f-1ede6cf9899a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_d4c0c353-3f06-47c7-adfb-37878de99347" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_08c11fd3-7623-472e-ae3c-c5fd798b01af" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_d4c0c353-3f06-47c7-adfb-37878de99347" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_0584bd7f-d444-4411-83fa-eb4483bf801c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_08c11fd3-7623-472e-ae3c-c5fd798b01af" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_0584bd7f-d444-4411-83fa-eb4483bf801c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_8427a203-f0ac-4a19-a0f5-0e199f185b1d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_08c11fd3-7623-472e-ae3c-c5fd798b01af" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_8427a203-f0ac-4a19-a0f5-0e199f185b1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_53729ac5-fb0d-43cb-9ebf-daeccd817163" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_08c11fd3-7623-472e-ae3c-c5fd798b01af" xlink:to="loc_us-gaap_Goodwill_53729ac5-fb0d-43cb-9ebf-daeccd817163" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_a47a9ed0-beda-4db4-b50a-ef9d1727e562" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_apei_LeaseLiabilityCurrent_5473a64f-ae2a-429d-b832-29023798a5e9" xlink:href="apei-20251231.xsd#apei_LeaseLiabilityCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_a47a9ed0-beda-4db4-b50a-ef9d1727e562" xlink:to="loc_apei_LeaseLiabilityCurrent_5473a64f-ae2a-429d-b832-29023798a5e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_c11c22c7-b722-42f1-97e2-a6bbcadb57c4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_a47a9ed0-beda-4db4-b50a-ef9d1727e562" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_c11c22c7-b722-42f1-97e2-a6bbcadb57c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_8e2b48bf-2595-41f5-9271-b08e593f8f10" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_a47a9ed0-beda-4db4-b50a-ef9d1727e562" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_8e2b48bf-2595-41f5-9271-b08e593f8f10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_e9a38bfb-e10a-4e13-9d1f-714b4094252f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_a47a9ed0-beda-4db4-b50a-ef9d1727e562" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_e9a38bfb-e10a-4e13-9d1f-714b4094252f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_785a0c25-ffa0-4445-a3e2-9ca947e11417" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_a47a9ed0-beda-4db4-b50a-ef9d1727e562" xlink:to="loc_us-gaap_AccountsPayableCurrent_785a0c25-ffa0-4445-a3e2-9ca947e11417" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_4a65f9d0-3e66-4400-a742-6164112f83cc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_apei_LeaseLiabilityNoncurrent_796d32fb-c746-4eff-93f2-2f5665bcdb80" xlink:href="apei-20251231.xsd#apei_LeaseLiabilityNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_4a65f9d0-3e66-4400-a742-6164112f83cc" xlink:to="loc_apei_LeaseLiabilityNoncurrent_796d32fb-c746-4eff-93f2-2f5665bcdb80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_1667ceea-b296-424e-a526-f7ae23621e3e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_4a65f9d0-3e66-4400-a742-6164112f83cc" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_1667ceea-b296-424e-a526-f7ae23621e3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_7a9ab9a7-4a60-4316-a06e-e9bcaad11c68" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_4a65f9d0-3e66-4400-a742-6164112f83cc" xlink:to="loc_us-gaap_LiabilitiesCurrent_7a9ab9a7-4a60-4316-a06e-e9bcaad11c68" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.americanpubliceducation.com/role/ConsolidatedStatementsofIncome" xlink:type="simple" xlink:href="apei-20251231.xsd#ConsolidatedStatementsofIncome"/>
  <link:calculationLink xlink:role="http://www.americanpubliceducation.com/role/ConsolidatedStatementsofIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_6d0c6820-f010-481e-baaf-c7bc10c75c45" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_e72500a9-ecbd-4a76-addf-c9d49debb19f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_6d0c6820-f010-481e-baaf-c7bc10c75c45" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_e72500a9-ecbd-4a76-addf-c9d49debb19f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_46b3f432-5c91-4451-9354-add38980a838" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostsAndExpenses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_6d0c6820-f010-481e-baaf-c7bc10c75c45" xlink:to="loc_us-gaap_CostsAndExpenses_46b3f432-5c91-4451-9354-add38980a838" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_ec70e806-11e5-4507-8256-fd236c0a15eb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupNotDiscontinuedOperationGainLossOnDisposal_506d96ea-955c-48fc-975a-f194d47932a5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisposalGroupNotDiscontinuedOperationGainLossOnDisposal"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ec70e806-11e5-4507-8256-fd236c0a15eb" xlink:to="loc_us-gaap_DisposalGroupNotDiscontinuedOperationGainLossOnDisposal_506d96ea-955c-48fc-975a-f194d47932a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_af444028-e9c8-41fa-be71-ef8c634f4843" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ec70e806-11e5-4507-8256-fd236c0a15eb" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_af444028-e9c8-41fa-be71-ef8c634f4843" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_8483ba9e-082a-43c4-b593-1ce060adc957" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ec70e806-11e5-4507-8256-fd236c0a15eb" xlink:to="loc_us-gaap_SellingAndMarketingExpense_8483ba9e-082a-43c4-b593-1ce060adc957" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnTerminationOfLease_16f84b53-993b-4ad5-9868-71e1e16e8b1b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnTerminationOfLease"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ec70e806-11e5-4507-8256-fd236c0a15eb" xlink:to="loc_us-gaap_GainLossOnTerminationOfLease_16f84b53-993b-4ad5-9868-71e1e16e8b1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_9fe28fdc-a2fe-42bc-9c44-420b6aec3afb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ec70e806-11e5-4507-8256-fd236c0a15eb" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_9fe28fdc-a2fe-42bc-9c44-420b6aec3afb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_38e9c4a6-f8cc-4008-b9d9-e26809444fdb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ec70e806-11e5-4507-8256-fd236c0a15eb" xlink:to="loc_us-gaap_DepreciationAndAmortization_38e9c4a6-f8cc-4008-b9d9-e26809444fdb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_5738fc00-5db2-4f5f-9a5d-e5a184fbf08d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ec70e806-11e5-4507-8256-fd236c0a15eb" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_5738fc00-5db2-4f5f-9a5d-e5a184fbf08d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets_3c0dea01-1217-4344-a4f4-e451346aa44b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnDispositionOfAssets"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ec70e806-11e5-4507-8256-fd236c0a15eb" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets_3c0dea01-1217-4344-a4f4-e451346aa44b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainOrLossOnSaleOfStockInSubsidiary_019b2212-8f0a-7901-af95-e063a78110a9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainOrLossOnSaleOfStockInSubsidiary"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ec70e806-11e5-4507-8256-fd236c0a15eb" xlink:to="loc_us-gaap_GainOrLossOnSaleOfStockInSubsidiary_019b2212-8f0a-7901-af95-e063a78110a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_acea493f-3b4c-4b6e-8bb6-27ad3d6bd0ad" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_86936d6c-ce47-44b6-b715-3f0d301511bd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_acea493f-3b4c-4b6e-8bb6-27ad3d6bd0ad" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_86936d6c-ce47-44b6-b715-3f0d301511bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_0fde62ff-161a-43f3-821d-dfd39bf5e3b7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_acea493f-3b4c-4b6e-8bb6-27ad3d6bd0ad" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_0fde62ff-161a-43f3-821d-dfd39bf5e3b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_19b6a9b5-546c-47e4-9898-498563434936" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_acea493f-3b4c-4b6e-8bb6-27ad3d6bd0ad" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_19b6a9b5-546c-47e4-9898-498563434936" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_e6d05aed-e361-4498-b1ec-3a654fe3a02a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RedeemablePreferredStockDividends_23a824fc-8dba-4ab1-8f35-49f09e6942c1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RedeemablePreferredStockDividends"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_e6d05aed-e361-4498-b1ec-3a654fe3a02a" xlink:to="loc_us-gaap_RedeemablePreferredStockDividends_23a824fc-8dba-4ab1-8f35-49f09e6942c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_bc51b89f-f25d-4932-8063-2ad23f299d51" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_e6d05aed-e361-4498-b1ec-3a654fe3a02a" xlink:to="loc_us-gaap_NetIncomeLoss_bc51b89f-f25d-4932-8063-2ad23f299d51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_apei_LossOnRedemptionOfPreferredStock_019b2216-6d1d-711a-91e8-f92e4a02c7b7" xlink:href="apei-20251231.xsd#apei_LossOnRedemptionOfPreferredStock"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_e6d05aed-e361-4498-b1ec-3a654fe3a02a" xlink:to="loc_apei_LossOnRedemptionOfPreferredStock_019b2216-6d1d-711a-91e8-f92e4a02c7b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_4d79c219-3146-4a33-b931-7694c6993b94" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_974b506c-3fbb-4168-9102-73f2b9b76356" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_4d79c219-3146-4a33-b931-7694c6993b94" xlink:to="loc_us-gaap_OperatingIncomeLoss_974b506c-3fbb-4168-9102-73f2b9b76356" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_884a47cb-c3ca-4272-9e3a-51fc5a0d770e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_4d79c219-3146-4a33-b931-7694c6993b94" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_884a47cb-c3ca-4272-9e3a-51fc5a0d770e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_c3578f26-7f07-4ed9-b57a-1d686a3c6a41" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RedeemablePreferredStockDividends_f59d918d-796a-4418-9038-eec43f7b61c7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RedeemablePreferredStockDividends"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_c3578f26-7f07-4ed9-b57a-1d686a3c6a41" xlink:to="loc_us-gaap_RedeemablePreferredStockDividends_f59d918d-796a-4418-9038-eec43f7b61c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_c072792f-ac88-4848-aff0-3f6221d70f5f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_c3578f26-7f07-4ed9-b57a-1d686a3c6a41" xlink:to="loc_us-gaap_NetIncomeLoss_c072792f-ac88-4848-aff0-3f6221d70f5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_apei_LossOnRedemptionOfPreferredStock_019b2216-9400-7215-8313-7cfc3dc22a5f" xlink:href="apei-20251231.xsd#apei_LossOnRedemptionOfPreferredStock"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_c3578f26-7f07-4ed9-b57a-1d686a3c6a41" xlink:to="loc_apei_LossOnRedemptionOfPreferredStock_019b2216-9400-7215-8313-7cfc3dc22a5f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.americanpubliceducation.com/role/ConsolidatedStatementsofComprehensiveIncome" xlink:type="simple" xlink:href="apei-20251231.xsd#ConsolidatedStatementsofComprehensiveIncome"/>
  <link:calculationLink xlink:role="http://www.americanpubliceducation.com/role/ConsolidatedStatementsofComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_694aae5c-15db-4681-998a-abcd503addd4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_a90c8657-2cb8-4624-b964-85dfa2da7db4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_694aae5c-15db-4681-998a-abcd503addd4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_a90c8657-2cb8-4624-b964-85dfa2da7db4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_46a9d47e-a010-4035-b303-e9013c06220f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_694aae5c-15db-4681-998a-abcd503addd4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_46a9d47e-a010-4035-b303-e9013c06220f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_7c82610b-692f-42f2-943f-bd8f13362aeb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_a0bc3c0a-ce1e-4d79-b80d-34d8c4116d0e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_7c82610b-692f-42f2-943f-bd8f13362aeb" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_a0bc3c0a-ce1e-4d79-b80d-34d8c4116d0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax_169f7dc5-5964-464f-b2f5-b7448dd0058d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_7c82610b-692f-42f2-943f-bd8f13362aeb" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax_169f7dc5-5964-464f-b2f5-b7448dd0058d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_27fd66c0-53ea-40ce-861c-8482f0969843" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_5e5af462-1fbb-47eb-a75c-86e15b061cbc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_27fd66c0-53ea-40ce-861c-8482f0969843" xlink:to="loc_us-gaap_NetIncomeLoss_5e5af462-1fbb-47eb-a75c-86e15b061cbc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_63d5791e-9e90-4613-8992-74d12ec82f18" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_27fd66c0-53ea-40ce-861c-8482f0969843" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_63d5791e-9e90-4613-8992-74d12ec82f18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_5d011226-8217-4c36-b578-cca1141a115f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax_aefcf513-4c0b-486b-bce3-ee36befc7cc9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_5d011226-8217-4c36-b578-cca1141a115f" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax_aefcf513-4c0b-486b-bce3-ee36befc7cc9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_9d3e0730-011a-4bef-8cc6-edabf6206532" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_5d011226-8217-4c36-b578-cca1141a115f" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_9d3e0730-011a-4bef-8cc6-edabf6206532" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.americanpubliceducation.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="apei-20251231.xsd#ConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.americanpubliceducation.com/role/ConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dcdbd131-0c86-4759-a306-f22be80cedea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_836ab1bd-c42a-4afa-a413-8cabf89651bf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dcdbd131-0c86-4759-a306-f22be80cedea" xlink:to="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_836ab1bd-c42a-4afa-a413-8cabf89651bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_348ccc76-cc46-4580-9c33-da62cc422df9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dcdbd131-0c86-4759-a306-f22be80cedea" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_348ccc76-cc46-4580-9c33-da62cc422df9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfRedeemablePreferredStock_2150e2c5-52e5-40df-ba14-ffc4f3734e0d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForRepurchaseOfRedeemablePreferredStock"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dcdbd131-0c86-4759-a306-f22be80cedea" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfRedeemablePreferredStock_2150e2c5-52e5-40df-ba14-ffc4f3734e0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_6ec7cf44-bb46-4475-9698-b79e92bba3c2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dcdbd131-0c86-4759-a306-f22be80cedea" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_6ec7cf44-bb46-4475-9698-b79e92bba3c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_619efe15-e7d7-47b1-b793-a36c8d429f30" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dcdbd131-0c86-4759-a306-f22be80cedea" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_619efe15-e7d7-47b1-b793-a36c8d429f30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dad3e3ca-062f-4243-a3b8-f1de9a20af38" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_8fbdb8af-a55c-4bab-95ac-e65bf85362b9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dad3e3ca-062f-4243-a3b8-f1de9a20af38" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_8fbdb8af-a55c-4bab-95ac-e65bf85362b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfBuildings_962a98f5-1547-4e17-9175-99a371cc9c98" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfBuildings"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dad3e3ca-062f-4243-a3b8-f1de9a20af38" xlink:to="loc_us-gaap_ProceedsFromSaleOfBuildings_962a98f5-1547-4e17-9175-99a371cc9c98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_46bc7a29-76df-47ce-9a09-f8193a6509db" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dad3e3ca-062f-4243-a3b8-f1de9a20af38" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_46bc7a29-76df-47ce-9a09-f8193a6509db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_ab40859e-17b4-4803-abd8-d1002285c39c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_ab40859e-17b4-4803-abd8-d1002285c39c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_d06f5ebd-82f2-4d26-a1ba-89aa58e10be0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_DepreciationAndAmortization_d06f5ebd-82f2-4d26-a1ba-89aa58e10be0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_apei_GainLossOnDispositionOfStockInSubsidiaryNoncash_05b4eddd-be2e-4c60-a5b9-3fc4d3e6d6d4" xlink:href="apei-20251231.xsd#apei_GainLossOnDispositionOfStockInSubsidiaryNoncash"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_apei_GainLossOnDispositionOfStockInSubsidiaryNoncash_05b4eddd-be2e-4c60-a5b9-3fc4d3e6d6d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets_31b730a0-95ad-4af9-b276-984312179402" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnDispositionOfAssets"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets_31b730a0-95ad-4af9-b276-984312179402" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_d79e4921-e906-4bba-b15d-bec71b3aafa6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_d79e4921-e906-4bba-b15d-bec71b3aafa6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_d24303ed-5cc2-4e5d-a00f-a0b95d05762f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_d24303ed-5cc2-4e5d-a00f-a0b95d05762f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_c93ed697-a5b5-4925-b096-932161a5ca57" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_c93ed697-a5b5-4925-b096-932161a5ca57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_bd481d7c-0b12-441e-af06-f6a6a2898f09" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_bd481d7c-0b12-441e-af06-f6a6a2898f09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_bc2ff200-43cb-4f63-86d9-e04723511243" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_bc2ff200-43cb-4f63-86d9-e04723511243" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_8373de0a-7928-434c-8a5f-bc2e930f8e51" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_8373de0a-7928-434c-8a5f-bc2e930f8e51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_1f134559-8982-4cc7-999d-5768535a6251" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxesAndTaxCredits"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_1f134559-8982-4cc7-999d-5768535a6251" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_25ea7c65-9efe-4f86-b21c-3fc297f3436b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_NetIncomeLoss_25ea7c65-9efe-4f86-b21c-3fc297f3436b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_a81d9cca-9073-4ff4-aead-1e161261bc6f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_a81d9cca-9073-4ff4-aead-1e161261bc6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_9b6e044d-531c-4eb6-8fe5-2b7597b82c3d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_ShareBasedCompensation_9b6e044d-531c-4eb6-8fe5-2b7597b82c3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_d8f57ab3-e50d-4e5f-a7bb-3ebdc0d3b925" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_d8f57ab3-e50d-4e5f-a7bb-3ebdc0d3b925" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_9aa0dd88-e49b-439f-b018-30e0e521624e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_9aa0dd88-e49b-439f-b018-30e0e521624e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_53c495d5-60de-4582-9cbf-1ddf9321ba56" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="17" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_53c495d5-60de-4582-9cbf-1ddf9321ba56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_apei_IncreaseDecreaseInOperatingLeasesNet_d2261f8b-7791-4c82-a637-b9f6cb760d2d" xlink:href="apei-20251231.xsd#apei_IncreaseDecreaseInOperatingLeasesNet"/>
    <link:calculationArc order="18" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_apei_IncreaseDecreaseInOperatingLeasesNet_d2261f8b-7791-4c82-a637-b9f6cb760d2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf_930ccffe-4a3b-4c9c-b838-88ef73eb40d6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf"/>
    <link:calculationArc order="19" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ca3de344-774f-4c4c-933e-f0a06e22c922" xlink:to="loc_us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf_930ccffe-4a3b-4c9c-b838-88ef73eb40d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_24237ab1-e5d8-4ead-aee1-12aa08646000" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_accca1e2-658f-478f-aa74-c0e9ee2d5db7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_24237ab1-e5d8-4ead-aee1-12aa08646000" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_accca1e2-658f-478f-aa74-c0e9ee2d5db7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b8674a16-0551-40d7-b4bb-85bd9e85a20f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_24237ab1-e5d8-4ead-aee1-12aa08646000" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b8674a16-0551-40d7-b4bb-85bd9e85a20f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_27d70513-1e1a-437f-99d7-2b9132f7c142" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_24237ab1-e5d8-4ead-aee1-12aa08646000" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_27d70513-1e1a-437f-99d7-2b9132f7c142" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.americanpubliceducation.com/role/SignificantAccountingPoliciesSummaryofRestrictedCashAndCashEquivalentsDetails" xlink:type="simple" xlink:href="apei-20251231.xsd#SignificantAccountingPoliciesSummaryofRestrictedCashAndCashEquivalentsDetails"/>
  <link:calculationLink xlink:role="http://www.americanpubliceducation.com/role/SignificantAccountingPoliciesSummaryofRestrictedCashAndCashEquivalentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_84aae7aa-ec9b-452b-a7dc-481fad16a9d0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_75e1aa61-06e7-470c-8e27-c225b136d150" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCashAndCashEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_84aae7aa-ec9b-452b-a7dc-481fad16a9d0" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_75e1aa61-06e7-470c-8e27-c225b136d150" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_e19ffeea-fc36-4db1-9757-8eb540317b89" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_84aae7aa-ec9b-452b-a7dc-481fad16a9d0" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_e19ffeea-fc36-4db1-9757-8eb540317b89" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.americanpubliceducation.com/role/PropertyandEquipmentScheduleofPropertyandEquipmentDetails" xlink:type="simple" xlink:href="apei-20251231.xsd#PropertyandEquipmentScheduleofPropertyandEquipmentDetails"/>
  <link:calculationLink xlink:role="http://www.americanpubliceducation.com/role/PropertyandEquipmentScheduleofPropertyandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_06b59aa5-c4be-48f6-99be-398ab1274599" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_267ddec0-d90e-4736-acf3-e55513918b51" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_06b59aa5-c4be-48f6-99be-398ab1274599" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_267ddec0-d90e-4736-acf3-e55513918b51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_2b509ac1-ad94-41a7-81b0-b71908cddf0f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_06b59aa5-c4be-48f6-99be-398ab1274599" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_2b509ac1-ad94-41a7-81b0-b71908cddf0f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.americanpubliceducation.com/role/LeasesMaturitiesofOperatingLeaseLiabilitiesDetails" xlink:type="simple" xlink:href="apei-20251231.xsd#LeasesMaturitiesofOperatingLeaseLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.americanpubliceducation.com/role/LeasesMaturitiesofOperatingLeaseLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_20b77b7c-ec87-48e6-bb3b-e0165b6dd033" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_fa45bdea-db7d-4071-a738-2496f3d84e3c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_20b77b7c-ec87-48e6-bb3b-e0165b6dd033" xlink:to="loc_us-gaap_OperatingLeaseLiability_fa45bdea-db7d-4071-a738-2496f3d84e3c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_a126e3ad-8065-4f75-a78a-7bd1e729d5a2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_20b77b7c-ec87-48e6-bb3b-e0165b6dd033" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_a126e3ad-8065-4f75-a78a-7bd1e729d5a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_be0a01e3-fe44-4ce2-b927-461a17e062fb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_89b0ff9f-e961-4ea5-8dec-06f5693548fa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_be0a01e3-fe44-4ce2-b927-461a17e062fb" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_89b0ff9f-e961-4ea5-8dec-06f5693548fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_8f91e121-aba3-407e-aff8-546d3ac09365" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_be0a01e3-fe44-4ce2-b927-461a17e062fb" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_8f91e121-aba3-407e-aff8-546d3ac09365" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_af0d3c16-62ea-4feb-9f67-4a067c169061" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_c736f9ec-c7ab-46ed-8bf9-1e2ca1e1ca48" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_af0d3c16-62ea-4feb-9f67-4a067c169061" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_c736f9ec-c7ab-46ed-8bf9-1e2ca1e1ca48" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_1f52c7c5-3efb-4c8f-8a11-d2ae0789b0ee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_af0d3c16-62ea-4feb-9f67-4a067c169061" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_1f52c7c5-3efb-4c8f-8a11-d2ae0789b0ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_d58aa95c-f93a-42f8-a05f-e1dfcb7c37c0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_af0d3c16-62ea-4feb-9f67-4a067c169061" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_d58aa95c-f93a-42f8-a05f-e1dfcb7c37c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_e21f7d7a-9ebe-4e8b-9cea-89b093f79d48" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_af0d3c16-62ea-4feb-9f67-4a067c169061" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_e21f7d7a-9ebe-4e8b-9cea-89b093f79d48" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_a83521ae-1c99-41a8-b30a-5bb49193c6b3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_af0d3c16-62ea-4feb-9f67-4a067c169061" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_a83521ae-1c99-41a8-b30a-5bb49193c6b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_283508d3-6917-44cf-b35b-fd40091d043f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_af0d3c16-62ea-4feb-9f67-4a067c169061" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_283508d3-6917-44cf-b35b-fd40091d043f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_02c03690-695e-4462-9c8c-09ddad914c9b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_e599e870-253b-4bb5-905a-5430ae867380" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiability_02c03690-695e-4462-9c8c-09ddad914c9b" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_e599e870-253b-4bb5-905a-5430ae867380" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_801c11ac-ba6f-4871-925d-03ff31b4a61e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiability_02c03690-695e-4462-9c8c-09ddad914c9b" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_801c11ac-ba6f-4871-925d-03ff31b4a61e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.americanpubliceducation.com/role/LeasesMaturitiesofOperatingLeaseLiabilitiesDetails_1" xlink:type="simple" xlink:href="apei-20251231.xsd#LeasesMaturitiesofOperatingLeaseLiabilitiesDetails_1"/>
  <link:calculationLink xlink:role="http://www.americanpubliceducation.com/role/LeasesMaturitiesofOperatingLeaseLiabilitiesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_4bd83202-8211-4319-9ca0-cd36638f8e4d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_b7f7a936-9581-467c-ae3d-ac8dfdfbc61e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_4bd83202-8211-4319-9ca0-cd36638f8e4d" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_b7f7a936-9581-467c-ae3d-ac8dfdfbc61e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_047c83e5-b162-4a3e-999c-9beff59ff50f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_4bd83202-8211-4319-9ca0-cd36638f8e4d" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_047c83e5-b162-4a3e-999c-9beff59ff50f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_971179a7-5f65-4ebb-b9bc-6a396083e022" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_4bd83202-8211-4319-9ca0-cd36638f8e4d" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_971179a7-5f65-4ebb-b9bc-6a396083e022" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_76da184f-4256-435e-bc00-df37f90fc3b3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_4bd83202-8211-4319-9ca0-cd36638f8e4d" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_76da184f-4256-435e-bc00-df37f90fc3b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_07279ad2-7df6-4815-a251-e6ef6539799e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_4bd83202-8211-4319-9ca0-cd36638f8e4d" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_07279ad2-7df6-4815-a251-e6ef6539799e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_c935b50f-0dd6-4000-acf6-58cd5c489abc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_4bd83202-8211-4319-9ca0-cd36638f8e4d" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_c935b50f-0dd6-4000-acf6-58cd5c489abc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.americanpubliceducation.com/role/LeasesOtherInformationDetails" xlink:type="simple" xlink:href="apei-20251231.xsd#LeasesOtherInformationDetails"/>
  <link:calculationLink xlink:role="http://www.americanpubliceducation.com/role/LeasesOtherInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_apei_LeaseLiability_2c3ddf52-0d22-4f46-a85d-49506ad04991" xlink:href="apei-20251231.xsd#apei_LeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_09ac9bc7-ae4f-486f-9cdf-6e1c26018462" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_apei_LeaseLiability_2c3ddf52-0d22-4f46-a85d-49506ad04991" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_09ac9bc7-ae4f-486f-9cdf-6e1c26018462" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_ba8b8f9d-64d5-4f01-89ac-e3abdbe24399" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_apei_LeaseLiability_2c3ddf52-0d22-4f46-a85d-49506ad04991" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_ba8b8f9d-64d5-4f01-89ac-e3abdbe24399" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_187f0228-a6f8-40d2-9903-d923b1ba455c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_apei_LeaseLiability_2c3ddf52-0d22-4f46-a85d-49506ad04991" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_187f0228-a6f8-40d2-9903-d923b1ba455c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_b6baf8a4-fc60-4ce9-b17c-4dc6f25606c2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_apei_LeaseLiability_2c3ddf52-0d22-4f46-a85d-49506ad04991" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_b6baf8a4-fc60-4ce9-b17c-4dc6f25606c2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.americanpubliceducation.com/role/LongTermDebtLongtermdebtDetails" xlink:type="simple" xlink:href="apei-20251231.xsd#LongTermDebtLongtermdebtDetails"/>
  <link:calculationLink xlink:role="http://www.americanpubliceducation.com/role/LongTermDebtLongtermdebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_64567d86-29f7-4d33-82f8-08464e5fa030" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_ffc2571b-0231-4699-905e-9b9c46b81922" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_64567d86-29f7-4d33-82f8-08464e5fa030" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_ffc2571b-0231-4699-905e-9b9c46b81922" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsGross_0d09490e-7631-4356-863a-3f425433d9f2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredFinanceCostsGross"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_64567d86-29f7-4d33-82f8-08464e5fa030" xlink:to="loc_us-gaap_DeferredFinanceCostsGross_0d09490e-7631-4356-863a-3f425433d9f2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.americanpubliceducation.com/role/LongTermDebtMaturitiesoflongtermdebtDetails" xlink:type="simple" xlink:href="apei-20251231.xsd#LongTermDebtMaturitiesoflongtermdebtDetails"/>
  <link:calculationLink xlink:role="http://www.americanpubliceducation.com/role/LongTermDebtMaturitiesoflongtermdebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_612a4e98-a04c-4011-9ab4-fee6d8022856" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_3fc089fc-ab69-49c4-b2ac-115ede802d56" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_612a4e98-a04c-4011-9ab4-fee6d8022856" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_3fc089fc-ab69-49c4-b2ac-115ede802d56" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.americanpubliceducation.com/role/IncomeTaxesScheduleofComponentsofIncomeTaxExpenseDetails" xlink:type="simple" xlink:href="apei-20251231.xsd#IncomeTaxesScheduleofComponentsofIncomeTaxExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.americanpubliceducation.com/role/IncomeTaxesScheduleofComponentsofIncomeTaxExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_0bec5e85-16a6-4e6b-8ed2-071eb3bdcd9b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_294815b4-98d0-4e1d-ada4-99f81488df14" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_0bec5e85-16a6-4e6b-8ed2-071eb3bdcd9b" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_294815b4-98d0-4e1d-ada4-99f81488df14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_c2545089-e7d8-4b6b-a781-02dbab7a3979" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_0bec5e85-16a6-4e6b-8ed2-071eb3bdcd9b" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_c2545089-e7d8-4b6b-a781-02dbab7a3979" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_0702291a-82dc-43cb-b54f-ada48891586b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_d3772152-b4d5-4e19-957e-377f4a3001b9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_0702291a-82dc-43cb-b54f-ada48891586b" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_d3772152-b4d5-4e19-957e-377f4a3001b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_593882c9-b65f-4ea0-b967-f54151e75316" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_0702291a-82dc-43cb-b54f-ada48891586b" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_593882c9-b65f-4ea0-b967-f54151e75316" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_d837a601-7082-4a55-9aaa-d890a7cd2aa1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_606e9623-4f6f-4118-8284-f48cc4ffea19" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_d837a601-7082-4a55-9aaa-d890a7cd2aa1" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_606e9623-4f6f-4118-8284-f48cc4ffea19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_704a622c-1ee0-4979-9870-d1030b3b2d60" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_d837a601-7082-4a55-9aaa-d890a7cd2aa1" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_704a622c-1ee0-4979-9870-d1030b3b2d60" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.americanpubliceducation.com/role/IncomeTaxesScheduleofTaxEffectsofPrincipalTemporaryDifferencesDetails" xlink:type="simple" xlink:href="apei-20251231.xsd#IncomeTaxesScheduleofTaxEffectsofPrincipalTemporaryDifferencesDetails"/>
  <link:calculationLink xlink:role="http://www.americanpubliceducation.com/role/IncomeTaxesScheduleofTaxEffectsofPrincipalTemporaryDifferencesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_e514b067-59b7-450a-9991-ecaf19896d0c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_208286f1-cc55-418c-b3ca-efc026379973" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_e514b067-59b7-450a-9991-ecaf19896d0c" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_208286f1-cc55-418c-b3ca-efc026379973" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_a9d7b066-67a6-4782-83cb-0b8c3a43878e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_e514b067-59b7-450a-9991-ecaf19896d0c" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_a9d7b066-67a6-4782-83cb-0b8c3a43878e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_a9805ed9-92ab-440b-a980-e8e2d6369116" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsSeverancePayments_9dfbde76-8787-46f9-a309-0c23e4ea30e8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsSeverancePayments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a9805ed9-92ab-440b-a980-e8e2d6369116" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsSeverancePayments_9dfbde76-8787-46f9-a309-0c23e4ea30e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts_f187a1d4-2088-4ccc-bb70-34e394587376" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a9805ed9-92ab-440b-a980-e8e2d6369116" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts_f187a1d4-2088-4ccc-bb70-34e394587376" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_73dd7113-00cf-4e34-869f-290cd03f07e4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsOther"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a9805ed9-92ab-440b-a980-e8e2d6369116" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_73dd7113-00cf-4e34-869f-290cd03f07e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_apei_DeferredTaxAssetsTaxDeferredExpenseCompensationandBenefitsRestrictedStock_ee2c74de-b8d6-4cba-bb3f-eeb5101d2931" xlink:href="apei-20251231.xsd#apei_DeferredTaxAssetsTaxDeferredExpenseCompensationandBenefitsRestrictedStock"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a9805ed9-92ab-440b-a980-e8e2d6369116" xlink:to="loc_apei_DeferredTaxAssetsTaxDeferredExpenseCompensationandBenefitsRestrictedStock_ee2c74de-b8d6-4cba-bb3f-eeb5101d2931" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets_40a5125e-5818-47b4-9c23-77e10ca17e2d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a9805ed9-92ab-440b-a980-e8e2d6369116" xlink:to="loc_us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets_40a5125e-5818-47b4-9c23-77e10ca17e2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_apei_DeferredTaxAssetsOperatingLeaseLiability_5279d02a-5fd4-4cb9-909b-1ae451c5b05a" xlink:href="apei-20251231.xsd#apei_DeferredTaxAssetsOperatingLeaseLiability"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a9805ed9-92ab-440b-a980-e8e2d6369116" xlink:to="loc_apei_DeferredTaxAssetsOperatingLeaseLiability_5279d02a-5fd4-4cb9-909b-1ae451c5b05a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsInvestments_5edf8650-43db-4b8d-9694-4aa6ed26d4ae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsInvestments"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a9805ed9-92ab-440b-a980-e8e2d6369116" xlink:to="loc_us-gaap_DeferredTaxAssetsInvestments_5edf8650-43db-4b8d-9694-4aa6ed26d4ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_b064cad7-7836-4a66-93d8-3689fff7c4f7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a9805ed9-92ab-440b-a980-e8e2d6369116" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_b064cad7-7836-4a66-93d8-3689fff7c4f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOtherComprehensiveLoss_019c1d2c-77a8-7273-831f-3cff1fe52a1f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsOtherComprehensiveLoss"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a9805ed9-92ab-440b-a980-e8e2d6369116" xlink:to="loc_us-gaap_DeferredTaxAssetsOtherComprehensiveLoss_019c1d2c-77a8-7273-831f-3cff1fe52a1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_f184b96f-94ce-46df-8e58-df3064d605fe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_185969c4-eaf8-4e53-b4b2-82a2538c8896" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_f184b96f-94ce-46df-8e58-df3064d605fe" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_185969c4-eaf8-4e53-b4b2-82a2538c8896" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_a76404df-5e1e-4866-a8d4-56573f1481e2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_f184b96f-94ce-46df-8e58-df3064d605fe" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_a76404df-5e1e-4866-a8d4-56573f1481e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_463bcb2e-55f6-4d83-9b43-3bbc4ec3412b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware_a815cf44-a78d-4ad6-a69b-f9b8daaa6531" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_463bcb2e-55f6-4d83-9b43-3bbc4ec3412b" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware_a815cf44-a78d-4ad6-a69b-f9b8daaa6531" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_39405243-94ad-4f5a-9bf6-6ccfebdd753e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesLeasingArrangements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_463bcb2e-55f6-4d83-9b43-3bbc4ec3412b" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_39405243-94ad-4f5a-9bf6-6ccfebdd753e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_6505f394-9ae0-454a-ba10-6c7a8b96ce30" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_463bcb2e-55f6-4d83-9b43-3bbc4ec3412b" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_6505f394-9ae0-454a-ba10-6c7a8b96ce30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPrepaidExpenses_231b8c0b-a3da-4916-9809-1d35a8e5b2ad" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesPrepaidExpenses"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_463bcb2e-55f6-4d83-9b43-3bbc4ec3412b" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPrepaidExpenses_231b8c0b-a3da-4916-9809-1d35a8e5b2ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_apei_DeferredTaxLiabilitiesStockCompensationExpense_019c1d30-674f-7610-9d07-0f7570f1922f" xlink:href="apei-20251231.xsd#apei_DeferredTaxLiabilitiesStockCompensationExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_463bcb2e-55f6-4d83-9b43-3bbc4ec3412b" xlink:to="loc_apei_DeferredTaxLiabilitiesStockCompensationExpense_019c1d30-674f-7610-9d07-0f7570f1922f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.americanpubliceducation.com/role/IncomeTaxesScheduleofDifferenceofIncomeTaxExpensefromtheUnitedStatesFederalIncomeTaxRatesDetails" xlink:type="simple" xlink:href="apei-20251231.xsd#IncomeTaxesScheduleofDifferenceofIncomeTaxExpensefromtheUnitedStatesFederalIncomeTaxRatesDetails"/>
  <link:calculationLink xlink:role="http://www.americanpubliceducation.com/role/IncomeTaxesScheduleofDifferenceofIncomeTaxExpensefromtheUnitedStatesFederalIncomeTaxRatesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_371798f6-c5cd-451d-be3f-d9cf9690637c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_c72fb749-aa3c-4a94-97c3-528a57f09303" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_371798f6-c5cd-451d-be3f-d9cf9690637c" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_c72fb749-aa3c-4a94-97c3-528a57f09303" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_52ddac4f-97ac-4eae-a3a9-099566960868" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_371798f6-c5cd-451d-be3f-d9cf9690637c" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_52ddac4f-97ac-4eae-a3a9-099566960868" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_70f1f6f0-8e51-4a52-85ae-03a697da6bd5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_371798f6-c5cd-451d-be3f-d9cf9690637c" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_70f1f6f0-8e51-4a52-85ae-03a697da6bd5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_apei_EffectiveIncomeTaxRateReconciliationGainLossOnEquityInvestmentPercent_5aec10b6-212e-42d8-bed0-dd570dec6217" xlink:href="apei-20251231.xsd#apei_EffectiveIncomeTaxRateReconciliationGainLossOnEquityInvestmentPercent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_371798f6-c5cd-451d-be3f-d9cf9690637c" xlink:to="loc_apei_EffectiveIncomeTaxRateReconciliationGainLossOnEquityInvestmentPercent_5aec10b6-212e-42d8-bed0-dd570dec6217" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitPercent_c9e0f4db-bd6b-49e1-af83-0040afbbf587" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitPercent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_371798f6-c5cd-451d-be3f-d9cf9690637c" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitPercent_c9e0f4db-bd6b-49e1-af83-0040afbbf587" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_apei_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseExecutiveCompensation.Percentage_cad7b903-b8da-415f-b9b0-981c82a10b96" xlink:href="apei-20251231.xsd#apei_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseExecutiveCompensation.Percentage"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_371798f6-c5cd-451d-be3f-d9cf9690637c" xlink:to="loc_apei_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseExecutiveCompensation.Percentage_cad7b903-b8da-415f-b9b0-981c82a10b96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther_76af0045-7683-4f2c-bb99-918cafca0b3b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_371798f6-c5cd-451d-be3f-d9cf9690637c" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther_76af0045-7683-4f2c-bb99-918cafca0b3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_019c4dc7-fc36-78c5-be10-cfdf62fc7f4c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_371798f6-c5cd-451d-be3f-d9cf9690637c" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_019c4dc7-fc36-78c5-be10-cfdf62fc7f4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_fc6a5aac-859e-46b9-ae1f-38c6a78b2ec4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_e67bbf88-6a20-47ed-891d-3a0adf4412f2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_fc6a5aac-859e-46b9-ae1f-38c6a78b2ec4" xlink:to="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_e67bbf88-6a20-47ed-891d-3a0adf4412f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_e53100db-dfbf-4df8-a20e-5b61541d13ea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_fc6a5aac-859e-46b9-ae1f-38c6a78b2ec4" xlink:to="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_e53100db-dfbf-4df8-a20e-5b61541d13ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_fe2f9b37-afa5-4e45-abab-312645c968c0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_fc6a5aac-859e-46b9-ae1f-38c6a78b2ec4" xlink:to="loc_us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_fe2f9b37-afa5-4e45-abab-312645c968c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_apei_EffectiveIncomeTaxRateReconciliationGainLossOnEquityInvestment_7d3dfa24-36f4-4732-8b29-e13a1704e2db" xlink:href="apei-20251231.xsd#apei_EffectiveIncomeTaxRateReconciliationGainLossOnEquityInvestment"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_fc6a5aac-859e-46b9-ae1f-38c6a78b2ec4" xlink:to="loc_apei_EffectiveIncomeTaxRateReconciliationGainLossOnEquityInvestment_7d3dfa24-36f4-4732-8b29-e13a1704e2db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitAmount_f7237508-46ee-4602-a068-933fa4be1c33" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitAmount"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_fc6a5aac-859e-46b9-ae1f-38c6a78b2ec4" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitAmount_f7237508-46ee-4602-a068-933fa4be1c33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_apei_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseExecutiveCompensationAmount_ef623f7e-eba5-46a6-8ddb-039ed9449eae" xlink:href="apei-20251231.xsd#apei_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseExecutiveCompensationAmount"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_fc6a5aac-859e-46b9-ae1f-38c6a78b2ec4" xlink:to="loc_apei_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseExecutiveCompensationAmount_ef623f7e-eba5-46a6-8ddb-039ed9449eae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseOther_565905d3-9e4d-4b59-a0bf-d7d1be69211a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseOther"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_fc6a5aac-859e-46b9-ae1f-38c6a78b2ec4" xlink:to="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseOther_565905d3-9e4d-4b59-a0bf-d7d1be69211a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationOtherAdjustments_019c4dc7-d761-7e41-a1c1-76e042b61f82" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationOtherAdjustments"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_fc6a5aac-859e-46b9-ae1f-38c6a78b2ec4" xlink:to="loc_us-gaap_IncomeTaxReconciliationOtherAdjustments_019c4dc7-d761-7e41-a1c1-76e042b61f82" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.americanpubliceducation.com/role/SegmentInformationFinancialInformationbyReportableSegmentDetails" xlink:type="simple" xlink:href="apei-20251231.xsd#SegmentInformationFinancialInformationbyReportableSegmentDetails"/>
  <link:calculationLink xlink:role="http://www.americanpubliceducation.com/role/SegmentInformationFinancialInformationbyReportableSegmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_312965a8-eaeb-4dd8-b369-336a5713374b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingOtherItemAmount_5d9e82c9-f5e0-494a-831b-d6b055a10bf8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentReportingOtherItemAmount"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_312965a8-eaeb-4dd8-b369-336a5713374b" xlink:to="loc_us-gaap_SegmentReportingOtherItemAmount_5d9e82c9-f5e0-494a-831b-d6b055a10bf8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f886468d-c9bd-49f0-8e82-016b3e84ffc3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_312965a8-eaeb-4dd8-b369-336a5713374b" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f886468d-c9bd-49f0-8e82-016b3e84ffc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_21236514-0b19-4f82-9143-ada26ecee248" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_312965a8-eaeb-4dd8-b369-336a5713374b" xlink:to="loc_us-gaap_SellingAndMarketingExpense_21236514-0b19-4f82-9143-ada26ecee248" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_2149e9f2-9127-4b97-892e-e03511f549ca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_312965a8-eaeb-4dd8-b369-336a5713374b" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_2149e9f2-9127-4b97-892e-e03511f549ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_13bf8aa4-eac7-42bb-a241-f242b37dc7ce" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_312965a8-eaeb-4dd8-b369-336a5713374b" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_13bf8aa4-eac7-42bb-a241-f242b37dc7ce" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
