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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019e69f1-d145-7ed5-be7a-16ba61631ef4,g:9690c1ca-04d8-4915-b5c5-d616e3f06e33-->
<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:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item"/>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/CondensedConsolidatedBalanceSheets" xlink:type="simple" xlink:href="anip-20260630.xsd#CondensedConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.anipharmaceuticals.com/role/CondensedConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_019e69f1-d2e2-78e2-9f18-7395d17bcc38" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_019e69f1-d2e2-7187-a52d-95db93fbbbab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e69f1-d2e2-78e2-9f18-7395d17bcc38" xlink:to="loc_us-gaap_AccountsPayableCurrent_019e69f1-d2e2-7187-a52d-95db93fbbbab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedRoyaltiesCurrent_019e69f1-d2e2-7031-af6c-a2cd66f233a8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedRoyaltiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e69f1-d2e2-78e2-9f18-7395d17bcc38" xlink:to="loc_us-gaap_AccruedRoyaltiesCurrent_019e69f1-d2e2-7031-af6c-a2cd66f233a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_019e69f1-d2e2-7ce6-9a26-db5b35678a83" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e69f1-d2e2-78e2-9f18-7395d17bcc38" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_019e69f1-d2e2-7ce6-9a26-db5b35678a83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_AccruedGovernmentRebates_019e69f1-d2e2-7324-8d70-dffdf8e797ec" xlink:href="anip-20260630.xsd#anip_AccruedGovernmentRebates"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e69f1-d2e2-78e2-9f18-7395d17bcc38" xlink:to="loc_anip_AccruedGovernmentRebates_019e69f1-d2e2-7324-8d70-dffdf8e797ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_ReturnedGoodsReserve_019e69f1-d2e2-7396-a9c8-0330fcb8ac46" xlink:href="anip-20260630.xsd#anip_ReturnedGoodsReserve"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e69f1-d2e2-78e2-9f18-7395d17bcc38" xlink:to="loc_anip_ReturnedGoodsReserve_019e69f1-d2e2-7396-a9c8-0330fcb8ac46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_019e69f1-d2e2-7b2f-b7ac-0bb9f8d20ca5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e69f1-d2e2-78e2-9f18-7395d17bcc38" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_019e69f1-d2e2-7b2f-b7ac-0bb9f8d20ca5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesPayableCurrent_019e69f1-d2e2-7c1e-86e4-612abdc7e119" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TaxesPayableCurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e69f1-d2e2-78e2-9f18-7395d17bcc38" xlink:to="loc_us-gaap_TaxesPayableCurrent_019e69f1-d2e2-7c1e-86e4-612abdc7e119" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_019e69f1-d2e2-7c31-a9ad-1f278e3e73c8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e69f1-d2e2-78e2-9f18-7395d17bcc38" xlink:to="loc_us-gaap_LongTermDebtCurrent_019e69f1-d2e2-7c31-a9ad-1f278e3e73c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019e69f1-d2e2-7838-93b1-8e9029a37182" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_019e69f1-d2e2-7a47-9b22-f1aff9cab92b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e69f1-d2e2-7838-93b1-8e9029a37182" xlink:to="loc_us-gaap_AssetsCurrent_019e69f1-d2e2-7a47-9b22-f1aff9cab92b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_019e69f1-d2e2-7085-9c53-d9740492d987" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e69f1-d2e2-7838-93b1-8e9029a37182" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_019e69f1-d2e2-7085-9c53-d9740492d987" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_019e69f1-d2e2-7153-8dc8-13b64faf97a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e69f1-d2e2-7838-93b1-8e9029a37182" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_019e69f1-d2e2-7153-8dc8-13b64faf97a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_019e69f1-d2e2-7caf-9a3d-33721c76d061" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e69f1-d2e2-7838-93b1-8e9029a37182" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_019e69f1-d2e2-7caf-9a3d-33721c76d061" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_019e69f1-d2e2-748f-a50d-da04b8cf0ad2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e69f1-d2e2-7838-93b1-8e9029a37182" xlink:to="loc_us-gaap_Goodwill_019e69f1-d2e2-748f-a50d-da04b8cf0ad2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_019e69f1-d2e2-7766-8b9f-52387383c086" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e69f1-d2e2-7838-93b1-8e9029a37182" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_019e69f1-d2e2-7766-8b9f-52387383c086" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e69f1-d2e2-797e-bc53-426dfdb7b9ea" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019e69f1-d2e2-79cf-b35f-173278ac6fcc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e69f1-d2e2-797e-bc53-426dfdb7b9ea" xlink:to="loc_us-gaap_Liabilities_019e69f1-d2e2-79cf-b35f-173278ac6fcc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e69f1-d2e2-7701-8ead-e936624607c2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e69f1-d2e2-797e-bc53-426dfdb7b9ea" xlink:to="loc_us-gaap_StockholdersEquity_019e69f1-d2e2-7701-8ead-e936624607c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_019e69f1-d2e2-7e77-87b6-8e0c655d6948" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e69f1-d2e2-7a72-91ce-8e38f129e8f9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019e69f1-d2e2-7e77-87b6-8e0c655d6948" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e69f1-d2e2-7a72-91ce-8e38f129e8f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashCurrent_019e69f1-d2e2-7023-ba47-e057eee1323b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019e69f1-d2e2-7e77-87b6-8e0c655d6948" xlink:to="loc_us-gaap_RestrictedCashCurrent_019e69f1-d2e2-7023-ba47-e057eee1323b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_019e69f1-d2e2-766f-9764-aecc88d2bc00" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019e69f1-d2e2-7e77-87b6-8e0c655d6948" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_019e69f1-d2e2-766f-9764-aecc88d2bc00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_019e69f1-d2e2-7a09-8f47-2d3d0b0bc64b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019e69f1-d2e2-7e77-87b6-8e0c655d6948" xlink:to="loc_us-gaap_InventoryNet_019e69f1-d2e2-7a09-8f47-2d3d0b0bc64b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrent_019e69f1-d2e2-74fa-987a-f5f763464725" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PrepaidExpenseCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019e69f1-d2e2-7e77-87b6-8e0c655d6948" xlink:to="loc_us-gaap_PrepaidExpenseCurrent_019e69f1-d2e2-74fa-987a-f5f763464725" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiCost_019e69f1-d2e2-7585-86e7-1fe74dc33627" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquitySecuritiesFvNiCost"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019e69f1-d2e2-7e77-87b6-8e0c655d6948" xlink:to="loc_us-gaap_EquitySecuritiesFvNiCost_019e69f1-d2e2-7585-86e7-1fe74dc33627" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019e69f1-d2e2-7ca2-ba47-75bbff607197" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_019e69f1-d2e2-7f2e-a8ff-f1b82517e211" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e69f1-d2e2-7ca2-ba47-75bbff607197" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_019e69f1-d2e2-7f2e-a8ff-f1b82517e211" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityNoncurrent_019e69f1-d2e2-7789-a76a-23bd65d4b66b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationContingentConsiderationLiabilityNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e69f1-d2e2-7ca2-ba47-75bbff607197" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityNoncurrent_019e69f1-d2e2-7789-a76a-23bd65d4b66b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_019e69f1-d2e2-7265-a0bb-197bd400cb87" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e69f1-d2e2-7ca2-ba47-75bbff607197" xlink:to="loc_us-gaap_LiabilitiesCurrent_019e69f1-d2e2-7265-a0bb-197bd400cb87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_019e69f1-d2e2-7769-9f47-fe5839a021a9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e69f1-d2e2-7ca2-ba47-75bbff607197" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_019e69f1-d2e2-7769-9f47-fe5839a021a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_ConvertibleNotesPayableNetNoncurrent_019e69f1-d2e2-7f9d-a1c5-cf3125a00303" xlink:href="anip-20260630.xsd#anip_ConvertibleNotesPayableNetNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e69f1-d2e2-7ca2-ba47-75bbff607197" xlink:to="loc_anip_ConvertibleNotesPayableNetNoncurrent_019e69f1-d2e2-7f9d-a1c5-cf3125a00303" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e69f1-d2e2-7b61-8bc7-58e198551fd8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019e69f1-d2e2-7d3d-b20c-04f6fb670c07" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e69f1-d2e2-7b61-8bc7-58e198551fd8" xlink:to="loc_us-gaap_CommonStockValue_019e69f1-d2e2-7d3d-b20c-04f6fb670c07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_ClassCSpecialStockValue_019e69f1-d2e2-7c1a-a037-6f23a67f1300" xlink:href="anip-20260630.xsd#anip_ClassCSpecialStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e69f1-d2e2-7b61-8bc7-58e198551fd8" xlink:to="loc_anip_ClassCSpecialStockValue_019e69f1-d2e2-7c1a-a037-6f23a67f1300" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_019e69f1-d2e2-7af2-a1c0-6a8a0a9ef36f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e69f1-d2e2-7b61-8bc7-58e198551fd8" xlink:to="loc_us-gaap_PreferredStockValue_019e69f1-d2e2-7af2-a1c0-6a8a0a9ef36f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonValue_019e69f1-d2e2-702e-a0ed-9c2a285d2c7d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockCommonValue"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e69f1-d2e2-7b61-8bc7-58e198551fd8" xlink:to="loc_us-gaap_TreasuryStockCommonValue_019e69f1-d2e2-702e-a0ed-9c2a285d2c7d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_019e69f1-d2e2-77fa-ac9b-a10b45bf2988" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e69f1-d2e2-7b61-8bc7-58e198551fd8" xlink:to="loc_us-gaap_AdditionalPaidInCapital_019e69f1-d2e2-77fa-ac9b-a10b45bf2988" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019e69f1-d2e2-7aba-a7a1-aec6dfb048dd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e69f1-d2e2-7b61-8bc7-58e198551fd8" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019e69f1-d2e2-7aba-a7a1-aec6dfb048dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019e69f1-d2e2-7dba-b68c-f9c11f847ceb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e69f1-d2e2-7b61-8bc7-58e198551fd8" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019e69f1-d2e2-7dba-b68c-f9c11f847ceb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/CondensedConsolidatedStatementsofOperations" xlink:type="simple" xlink:href="anip-20260630.xsd#CondensedConsolidatedStatementsofOperations"/>
  <link:calculationLink xlink:role="http://www.anipharmaceuticals.com/role/CondensedConsolidatedStatementsofOperations" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e69f1-d2e2-7fcd-a928-795547ab0161" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e69f1-d2e2-73f3-a47a-5f1e2f8be084" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019e69f1-d2e2-7fcd-a928-795547ab0161" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e69f1-d2e2-73f3-a47a-5f1e2f8be084" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019e69f1-d2e2-73af-aa66-16234823a6cf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019e69f1-d2e2-7fcd-a928-795547ab0161" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019e69f1-d2e2-73af-aa66-16234823a6cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_019e69f1-d2e2-791a-9093-8c634b4d4795" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServiceExcludingDepreciationDepletionAndAmortization_019e69f1-d2e2-7174-9270-a3da2a3238b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostOfGoodsAndServiceExcludingDepreciationDepletionAndAmortization"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019e69f1-d2e2-791a-9093-8c634b4d4795" xlink:to="loc_us-gaap_CostOfGoodsAndServiceExcludingDepreciationDepletionAndAmortization_019e69f1-d2e2-7174-9270-a3da2a3238b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_019e69f1-d2e2-753e-9dfc-569f97f93b3d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019e69f1-d2e2-791a-9093-8c634b4d4795" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_019e69f1-d2e2-753e-9dfc-569f97f93b3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_019e69f1-d2e2-7094-8f39-94c03b779c60" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019e69f1-d2e2-791a-9093-8c634b4d4795" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_019e69f1-d2e2-7094-8f39-94c03b779c60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_019e69f1-d2e2-7ae8-9b1f-a6d20f2c2213" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019e69f1-d2e2-791a-9093-8c634b4d4795" xlink:to="loc_us-gaap_DepreciationAndAmortization_019e69f1-d2e2-7ae8-9b1f-a6d20f2c2213" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1_019e69f1-d2e2-77d9-9742-2bfb4a774606" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019e69f1-d2e2-791a-9093-8c634b4d4795" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1_019e69f1-d2e2-77d9-9742-2bfb4a774606" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019e69f1-d2e2-7a8c-b963-284287b59ef4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019e69f1-d2e2-7ebc-b4c2-3596d0065fac" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_019e69f1-d2e2-7a8c-b963-284287b59ef4" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019e69f1-d2e2-7ebc-b4c2-3596d0065fac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_019e69f1-d2e2-7657-9bf2-ad8748f5d656" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostsAndExpenses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_019e69f1-d2e2-7a8c-b963-284287b59ef4" xlink:to="loc_us-gaap_CostsAndExpenses_019e69f1-d2e2-7657-9bf2-ad8748f5d656" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_NetIncomeLossAttributableToCommonStockholdersBeforeParticipatingSecuritiesAllocation_019e69f1-d2e2-735f-822e-79d64dc0fea2" xlink:href="anip-20260630.xsd#anip_NetIncomeLossAttributableToCommonStockholdersBeforeParticipatingSecuritiesAllocation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_019e69f1-d2e2-75f7-bd17-ef3ec31310cb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_anip_NetIncomeLossAttributableToCommonStockholdersBeforeParticipatingSecuritiesAllocation_019e69f1-d2e2-735f-822e-79d64dc0fea2" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_019e69f1-d2e2-75f7-bd17-ef3ec31310cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e69f1-d2e2-728b-8083-2e150797647f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_anip_NetIncomeLossAttributableToCommonStockholdersBeforeParticipatingSecuritiesAllocation_019e69f1-d2e2-735f-822e-79d64dc0fea2" xlink:to="loc_us-gaap_NetIncomeLoss_019e69f1-d2e2-728b-8083-2e150797647f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e69f1-d2e2-7559-b332-8ed43ea44088" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019e69f1-d2e2-72de-b36a-1df89f0c8ac4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e69f1-d2e2-7559-b332-8ed43ea44088" xlink:to="loc_us-gaap_OperatingIncomeLoss_019e69f1-d2e2-72de-b36a-1df89f0c8ac4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_019e69f1-d2e2-7048-acfe-e18d37c6575e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e69f1-d2e2-7559-b332-8ed43ea44088" xlink:to="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_019e69f1-d2e2-7048-acfe-e18d37c6575e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_019e69f1-d2e2-7622-9a4c-9d858004fe32" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e69f1-d2e2-7559-b332-8ed43ea44088" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_019e69f1-d2e2-7622-9a4c-9d858004fe32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_019e69f1-d2e2-7b60-95a8-a3b7e0e40ed3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e69f1-d2e2-7559-b332-8ed43ea44088" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_019e69f1-d2e2-7b60-95a8-a3b7e0e40ed3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/CondensedConsolidatedStatementsofComprehensiveIncome" xlink:type="simple" xlink:href="anip-20260630.xsd#CondensedConsolidatedStatementsofComprehensiveIncome"/>
  <link:calculationLink xlink:role="http://www.anipharmaceuticals.com/role/CondensedConsolidatedStatementsofComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_019e69f1-d2e2-730a-9072-6e9495c460e5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e69f1-d2e2-71e4-aab3-031e9de772a0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019e69f1-d2e2-730a-9072-6e9495c460e5" xlink:to="loc_us-gaap_NetIncomeLoss_019e69f1-d2e2-71e4-aab3-031e9de772a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_019e69f1-d2e2-747e-ae99-bf1aa29277df" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019e69f1-d2e2-730a-9072-6e9495c460e5" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_019e69f1-d2e2-747e-ae99-bf1aa29277df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_019e69f1-d2e2-7edc-8215-2d5fde66b5fb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax_019e69f1-d2e2-7ae9-83b7-262f488bfb6c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_019e69f1-d2e2-7edc-8215-2d5fde66b5fb" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax_019e69f1-d2e2-7ae9-83b7-262f488bfb6c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_019e69f1-d2e2-73b2-b7f4-b2567846ae53" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_019e69f1-d2e2-7edc-8215-2d5fde66b5fb" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_019e69f1-d2e2-73b2-b7f4-b2567846ae53" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="anip-20260630.xsd#CondensedConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.anipharmaceuticals.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e69f1-d2e3-764f-b21c-0fd03035a585" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireIntangibleAssets_019e69f1-d2e3-722f-b91e-b70e7c3912f5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireIntangibleAssets"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e69f1-d2e3-764f-b21c-0fd03035a585" xlink:to="loc_us-gaap_PaymentsToAcquireIntangibleAssets_019e69f1-d2e3-722f-b91e-b70e7c3912f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019e69f1-d2e3-7057-a00e-6fcd57860b94" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e69f1-d2e3-764f-b21c-0fd03035a585" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019e69f1-d2e3-7057-a00e-6fcd57860b94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e69f1-d2e3-730c-90ce-de8ad5448ef7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfOtherLongTermDebt_019e69f1-d2e3-73ef-b4c0-ef52b8e4ee5b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfOtherLongTermDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e69f1-d2e3-730c-90ce-de8ad5448ef7" xlink:to="loc_us-gaap_RepaymentsOfOtherLongTermDebt_019e69f1-d2e3-73ef-b4c0-ef52b8e4ee5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_019e69f1-d2e3-75b2-a439-a86d5ae40022" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsOfDividends"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e69f1-d2e3-730c-90ce-de8ad5448ef7" xlink:to="loc_us-gaap_PaymentsOfDividends_019e69f1-d2e3-75b2-a439-a86d5ae40022" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_019e69f1-d2e3-7ff6-96df-e1a63a27909f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e69f1-d2e3-730c-90ce-de8ad5448ef7" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_019e69f1-d2e3-7ff6-96df-e1a63a27909f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019e69f1-d2e3-72c9-8715-26eb5f466802" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e69f1-d2e3-730c-90ce-de8ad5448ef7" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019e69f1-d2e3-72c9-8715-26eb5f466802" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities_019f9477-cf41-7e4d-99a5-0ced71f6a4e1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e69f1-d2e3-730c-90ce-de8ad5448ef7" xlink:to="loc_us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities_019f9477-cf41-7e4d-99a5-0ced71f6a4e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e69f1-d2e3-7cab-a591-acd843b4e851" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e69f1-d2e3-7870-8b86-ce8a1841b193" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e69f1-d2e3-7cab-a591-acd843b4e851" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e69f1-d2e3-7870-8b86-ce8a1841b193" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashCurrent_019e69f1-d2e3-7811-bdf2-1ce671097bf6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e69f1-d2e3-7cab-a591-acd843b4e851" xlink:to="loc_us-gaap_RestrictedCashCurrent_019e69f1-d2e3-7811-bdf2-1ce671097bf6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e69f1-d2e3-736c-b73b-cb1e7924de79" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-75a2-b825-66f325807504" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e69f1-d2e3-736c-b73b-cb1e7924de79" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-75a2-b825-66f325807504" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e69f1-d2e3-7583-9e6e-6ec20fa0a198" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e69f1-d2e3-736c-b73b-cb1e7924de79" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e69f1-d2e3-7583-9e6e-6ec20fa0a198" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e69f1-d2e3-7683-a13c-0fce46548259" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e69f1-d2e3-736c-b73b-cb1e7924de79" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e69f1-d2e3-7683-a13c-0fce46548259" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e69f1-d2e3-7d1f-a183-1e1a81fab5bc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e69f1-d2e3-736c-b73b-cb1e7924de79" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e69f1-d2e3-7d1f-a183-1e1a81fab5bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_019e69f1-d2e3-7f87-82db-5ddcb807bd59" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_us-gaap_ProfitLoss_019e69f1-d2e3-7f87-82db-5ddcb807bd59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_019e69f1-d2e3-7e11-bfb7-3c00a6223364" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_us-gaap_ShareBasedCompensation_019e69f1-d2e3-7e11-bfb7-3c00a6223364" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_019e69f1-d2e3-7e7a-8347-c39d11ef3dc5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxesAndTaxCredits"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_019e69f1-d2e3-7e7a-8347-c39d11ef3dc5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_019e69f1-d2e3-7975-b9f8-b0a70fbf1e25" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_us-gaap_DepreciationAndAmortization_019e69f1-d2e3-7975-b9f8-b0a70fbf1e25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_019e69f1-d2e3-729d-970d-08f3cebd1ffb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_019e69f1-d2e3-729d-970d-08f3cebd1ffb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_019e69f1-d2e3-7712-89ff-7aaebedc1ec0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_019e69f1-d2e3-7712-89ff-7aaebedc1ec0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_019e69f1-d2e3-7f8a-a6fd-c99204733837" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_019e69f1-d2e3-7f8a-a6fd-c99204733837" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiabilityCashFlow_019e69f1-d2e3-743d-bf0a-95e4b7038dc7" xlink:href="anip-20260630.xsd#anip_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiabilityCashFlow"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_anip_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiabilityCashFlow_019e69f1-d2e3-743d-bf0a-95e4b7038dc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_019e69f1-d2e3-79f9-b87d-4f091d6116c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_019e69f1-d2e3-79f9-b87d-4f091d6116c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_019e69f1-d2e3-73da-8390-271bea99bde5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_019e69f1-d2e3-73da-8390-271bea99bde5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidExpense_019e69f1-d2e3-7010-8651-a9531faee208" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInPrepaidExpense"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidExpense_019e69f1-d2e3-7010-8651-a9531faee208" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_019e69f1-d2e3-7e8b-9bc7-9ff8e7765757" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_019e69f1-d2e3-7e8b-9bc7-9ff8e7765757" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_IncreaseDecreaseInRoyaltyPayable_019e69f1-d2e3-7f62-818b-2ef7a232672d" xlink:href="anip-20260630.xsd#anip_IncreaseDecreaseInRoyaltyPayable"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_anip_IncreaseDecreaseInRoyaltyPayable_019e69f1-d2e3-7f62-818b-2ef7a232672d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxes_019e69f1-d2e3-7fe1-b05a-c81adaaa2c95" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInIncomeTaxes"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxes_019e69f1-d2e3-7fe1-b05a-c81adaaa2c95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_IncreaseDecreaseAccruedGovernmentRebates_019e69f1-d2e3-70aa-9ef0-c9c204e1a271" xlink:href="anip-20260630.xsd#anip_IncreaseDecreaseAccruedGovernmentRebates"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_anip_IncreaseDecreaseAccruedGovernmentRebates_019e69f1-d2e3-70aa-9ef0-c9c204e1a271" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_IncreaseDecreaseInReturnedGoodsReserve_019e69f1-d2e3-72b0-8981-0631b0894a51" xlink:href="anip-20260630.xsd#anip_IncreaseDecreaseInReturnedGoodsReserve"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_anip_IncreaseDecreaseInReturnedGoodsReserve_019e69f1-d2e3-72b0-8981-0631b0894a51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_IncreaseDecreaseOfAccruedExpensesCompensationAndOthers_019e69f1-d2e3-776e-82bf-53634bfc98c6" xlink:href="anip-20260630.xsd#anip_IncreaseDecreaseOfAccruedExpensesCompensationAndOthers"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e69f1-d2e3-7b50-b204-64ecc90fec08" xlink:to="loc_anip_IncreaseDecreaseOfAccruedExpensesCompensationAndOthers_019e69f1-d2e3-776e-82bf-53634bfc98c6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/A2024CREDITAGREEMENTFacilitycomponentsDetails" xlink:type="simple" xlink:href="anip-20260630.xsd#A2024CREDITAGREEMENTFacilitycomponentsDetails"/>
  <link:calculationLink xlink:role="http://www.anipharmaceuticals.com/role/A2024CREDITAGREEMENTFacilitycomponentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_019e69f1-d2e3-7fac-af6e-fea7d90fcbec" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsCurrentNet_019e69f1-d2e3-7107-bf50-c72fa92a2e5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredFinanceCostsCurrentNet"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtCurrent_019e69f1-d2e3-7fac-af6e-fea7d90fcbec" xlink:to="loc_us-gaap_DeferredFinanceCostsCurrentNet_019e69f1-d2e3-7107-bf50-c72fa92a2e5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_LongTermDebtGrossCurrent_019e69f1-d2e3-7fa6-9736-2e2088e15063" xlink:href="anip-20260630.xsd#anip_LongTermDebtGrossCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtCurrent_019e69f1-d2e3-7fac-af6e-fea7d90fcbec" xlink:to="loc_anip_LongTermDebtGrossCurrent_019e69f1-d2e3-7fa6-9736-2e2088e15063" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_019e69f1-d2e3-7265-ac98-2e4c3ff63338" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_LongTermDebtGrossNonCurrent_019e69f1-d2e3-7c87-ab58-15cb3360e1f2" xlink:href="anip-20260630.xsd#anip_LongTermDebtGrossNonCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtNoncurrent_019e69f1-d2e3-7265-ac98-2e4c3ff63338" xlink:to="loc_anip_LongTermDebtGrossNonCurrent_019e69f1-d2e3-7c87-ab58-15cb3360e1f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNoncurrentNet_019e69f1-d2e3-72d2-b153-29abbc9deaab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredFinanceCostsNoncurrentNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtNoncurrent_019e69f1-d2e3-7265-ac98-2e4c3ff63338" xlink:to="loc_us-gaap_DeferredFinanceCostsNoncurrentNet_019e69f1-d2e3-72d2-b153-29abbc9deaab" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/A2024CREDITAGREEMENTMaturityofcreditfacilityDetails" xlink:type="simple" xlink:href="anip-20260630.xsd#A2024CREDITAGREEMENTMaturityofcreditfacilityDetails"/>
  <link:calculationLink xlink:role="http://www.anipharmaceuticals.com/role/A2024CREDITAGREEMENTMaturityofcreditfacilityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019e69f1-d2e3-7db5-99d9-8d4ac900f16d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_019e69f1-d2e3-7cc9-b1b9-48766e549c5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e69f1-d2e3-7db5-99d9-8d4ac900f16d" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_019e69f1-d2e3-7cc9-b1b9-48766e549c5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_019e69f1-d2e3-7170-927d-6c5c31091ada" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e69f1-d2e3-7db5-99d9-8d4ac900f16d" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_019e69f1-d2e3-7170-927d-6c5c31091ada" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_019e69f1-d2e3-716e-bb59-9441320afd1d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e69f1-d2e3-7db5-99d9-8d4ac900f16d" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_019e69f1-d2e3-716e-bb59-9441320afd1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear_019e69f1-d2e3-7f69-925d-1a0a19aaf46c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e69f1-d2e3-7db5-99d9-8d4ac900f16d" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear_019e69f1-d2e3-7f69-925d-1a0a19aaf46c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/A2024CREDITAGREEMENTInterestDetails" xlink:type="simple" xlink:href="anip-20260630.xsd#A2024CREDITAGREEMENTInterestDetails"/>
  <link:calculationLink xlink:role="http://www.anipharmaceuticals.com/role/A2024CREDITAGREEMENTInterestDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_019e69f1-d2e3-730b-aa9b-cc4ab17bcfd9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebtExcludingAmortization_019e69f1-d2e3-762d-b018-32da3e4250f0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseDebtExcludingAmortization"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_019e69f1-d2e3-730b-aa9b-cc4ab17bcfd9" xlink:to="loc_us-gaap_InterestExpenseDebtExcludingAmortization_019e69f1-d2e3-762d-b018-32da3e4250f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_019e69f1-d2e3-7356-b839-783b109425e9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_019e69f1-d2e3-730b-aa9b-cc4ab17bcfd9" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_019e69f1-d2e3-7356-b839-783b109425e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_019e69f1-d2e3-75cb-b5ca-8514445b4594" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestCostsCapitalizedAdjustment_019e69f1-d2e3-72a3-bab1-6d57503f4437" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestCostsCapitalizedAdjustment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019e69f1-d2e3-75cb-b5ca-8514445b4594" xlink:to="loc_us-gaap_InterestCostsCapitalizedAdjustment_019e69f1-d2e3-72a3-bab1-6d57503f4437" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_019e69f1-d2e3-7756-a3d3-e9a3f45f0701" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeDepositsWithFinancialInstitutions"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019e69f1-d2e3-75cb-b5ca-8514445b4594" xlink:to="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_019e69f1-d2e3-7756-a3d3-e9a3f45f0701" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInterestAndDividendIncome_019e69f1-d2e3-79ae-bfe9-afd0a3f246f8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherInterestAndDividendIncome"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019e69f1-d2e3-75cb-b5ca-8514445b4594" xlink:to="loc_us-gaap_OtherInterestAndDividendIncome_019e69f1-d2e3-79ae-bfe9-afd0a3f246f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_019e69f1-d2e3-7ce9-a792-e7a6c8a1ce58" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_019e69f1-d2e3-770c-8209-7405ae3aa477" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_019e69f1-d2e3-7ce9-a792-e7a6c8a1ce58" xlink:to="loc_us-gaap_InterestExpenseDebt_019e69f1-d2e3-770c-8209-7405ae3aa477" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_019e69f1-d2e3-7ef7-ad58-e0e57f8c38c8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_019e69f1-d2e3-7ce9-a792-e7a6c8a1ce58" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_019e69f1-d2e3-7ef7-ad58-e0e57f8c38c8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/EARNINGSPERSHAREDetails" xlink:type="simple" xlink:href="anip-20260630.xsd#EARNINGSPERSHAREDetails"/>
  <link:calculationLink xlink:role="http://www.anipharmaceuticals.com/role/EARNINGSPERSHAREDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019e69f1-d2e3-704b-ad69-8d97c65fa78d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019e69f1-d2e3-7892-87c4-c1a85b914753" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019e69f1-d2e3-704b-ad69-8d97c65fa78d" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019e69f1-d2e3-7892-87c4-c1a85b914753" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019e69f1-d2e3-76c0-a985-485056599415" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019e69f1-d2e3-704b-ad69-8d97c65fa78d" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019e69f1-d2e3-76c0-a985-485056599415" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsDiluted_019e69f1-d2e3-7198-bdf3-8c1b9fcabcd8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UndistributedEarningsDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_019e69f1-d2e3-727d-b9f9-8007e96d0777" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_UndistributedEarningsDiluted_019e69f1-d2e3-7198-bdf3-8c1b9fcabcd8" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_019e69f1-d2e3-727d-b9f9-8007e96d0777" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_019e69f1-d2e3-7f86-8bab-d1a3e4797aad" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_UndistributedEarningsDiluted_019e69f1-d2e3-7198-bdf3-8c1b9fcabcd8" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_019e69f1-d2e3-7f86-8bab-d1a3e4797aad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019e69f1-d2e3-759c-840a-096b908920ce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_019e69f1-d2e3-7db8-93ae-04aec63b292f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019e69f1-d2e3-759c-840a-096b908920ce" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_019e69f1-d2e3-7db8-93ae-04aec63b292f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_NetIncomeLossAttributableToCommonStockholdersBeforeParticipatingSecuritiesAllocation_019e69f1-d2e3-75b8-a40f-46ecaf75e651" xlink:href="anip-20260630.xsd#anip_NetIncomeLossAttributableToCommonStockholdersBeforeParticipatingSecuritiesAllocation"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019e69f1-d2e3-759c-840a-096b908920ce" xlink:to="loc_anip_NetIncomeLossAttributableToCommonStockholdersBeforeParticipatingSecuritiesAllocation_019e69f1-d2e3-75b8-a40f-46ecaf75e651" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/INVENTORIESScheduleofinventoryDetails" xlink:type="simple" xlink:href="anip-20260630.xsd#INVENTORIESScheduleofinventoryDetails"/>
  <link:calculationLink xlink:role="http://www.anipharmaceuticals.com/role/INVENTORIESScheduleofinventoryDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryGross_019e69f1-d2e3-7b03-a450-9f03d0aee244" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterials_019e69f1-d2e3-7409-b530-11784381a757" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryRawMaterials"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryGross_019e69f1-d2e3-7b03-a450-9f03d0aee244" xlink:to="loc_us-gaap_InventoryRawMaterials_019e69f1-d2e3-7409-b530-11784381a757" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcess_019e69f1-d2e3-7c44-a52d-906aa9d3a30c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryWorkInProcess"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryGross_019e69f1-d2e3-7b03-a450-9f03d0aee244" xlink:to="loc_us-gaap_InventoryWorkInProcess_019e69f1-d2e3-7c44-a52d-906aa9d3a30c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoods_019e69f1-d2e3-7240-bd83-1b410efa1842" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryFinishedGoods"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryGross_019e69f1-d2e3-7b03-a450-9f03d0aee244" xlink:to="loc_us-gaap_InventoryFinishedGoods_019e69f1-d2e3-7240-bd83-1b410efa1842" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/GOODWILLANDINTANGIBLEASSETSComponentsDetails" xlink:type="simple" xlink:href="anip-20260630.xsd#GOODWILLANDINTANGIBLEASSETSComponentsDetails"/>
  <link:calculationLink xlink:role="http://www.anipharmaceuticals.com/role/GOODWILLANDINTANGIBLEASSETSComponentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019e69f1-d2e3-7d55-937d-4382fb04c432" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_019e69f1-d2e3-750e-a899-129da94628e9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019e69f1-d2e3-7d55-937d-4382fb04c432" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_019e69f1-d2e3-750e-a899-129da94628e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_019e69f1-d2e3-7c91-bc29-256ee7379f5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019e69f1-d2e3-7d55-937d-4382fb04c432" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_019e69f1-d2e3-7c91-bc29-256ee7379f5a" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
