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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:01a03e94-ef92-7fb2-9299-b549445a198d,g:7724bfc1-9ff4-40bb-97ba-9ab130a9259e-->
<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-20260930.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_01a03e94-f112-7765-882f-1369513dc59e" 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_01a03e94-f112-7707-9e57-0e4e340ad9c8" 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_01a03e94-f112-7765-882f-1369513dc59e" xlink:to="loc_us-gaap_AccountsPayableCurrent_01a03e94-f112-7707-9e57-0e4e340ad9c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedRoyaltiesCurrent_01a03e94-f112-7ac4-97d6-59be500cf3b4" 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_01a03e94-f112-7765-882f-1369513dc59e" xlink:to="loc_us-gaap_AccruedRoyaltiesCurrent_01a03e94-f112-7ac4-97d6-59be500cf3b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_01a03e94-f112-702c-ad90-bcbed2304ab1" 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_01a03e94-f112-7765-882f-1369513dc59e" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_01a03e94-f112-702c-ad90-bcbed2304ab1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_AccruedGovernmentRebates_01a03e94-f112-710b-9b33-6f28df24e86d" xlink:href="anip-20260930.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_01a03e94-f112-7765-882f-1369513dc59e" xlink:to="loc_anip_AccruedGovernmentRebates_01a03e94-f112-710b-9b33-6f28df24e86d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_ReturnedGoodsReserve_01a03e94-f112-7df2-bccc-6e2d8e31b8b8" xlink:href="anip-20260930.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_01a03e94-f112-7765-882f-1369513dc59e" xlink:to="loc_anip_ReturnedGoodsReserve_01a03e94-f112-7df2-bccc-6e2d8e31b8b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_01a03e94-f112-79fd-a64e-d641980861ca" 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_01a03e94-f112-7765-882f-1369513dc59e" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_01a03e94-f112-79fd-a64e-d641980861ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesPayableCurrent_01a03e94-f112-760a-94e2-29b6b1dd24c1" 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_01a03e94-f112-7765-882f-1369513dc59e" xlink:to="loc_us-gaap_TaxesPayableCurrent_01a03e94-f112-760a-94e2-29b6b1dd24c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_01a03e94-f112-7575-9e2e-147c28467b9d" 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_01a03e94-f112-7765-882f-1369513dc59e" xlink:to="loc_us-gaap_LongTermDebtCurrent_01a03e94-f112-7575-9e2e-147c28467b9d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_01a03e94-f112-7b9c-a6f7-7745b0a4c6c6" 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_01a03e94-f112-7463-8906-dde54a58838c" 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_01a03e94-f112-7b9c-a6f7-7745b0a4c6c6" xlink:to="loc_us-gaap_AssetsCurrent_01a03e94-f112-7463-8906-dde54a58838c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_01a03e94-f112-74e3-928b-a62d3a567360" 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_01a03e94-f112-7b9c-a6f7-7745b0a4c6c6" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_01a03e94-f112-74e3-928b-a62d3a567360" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_01a03e94-f112-71b4-8f70-9484cdf455fb" 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_01a03e94-f112-7b9c-a6f7-7745b0a4c6c6" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_01a03e94-f112-71b4-8f70-9484cdf455fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_01a03e94-f112-743a-a2cc-94bbc71a0636" 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_01a03e94-f112-7b9c-a6f7-7745b0a4c6c6" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_01a03e94-f112-743a-a2cc-94bbc71a0636" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_01a03e94-f112-7b06-a972-2090c70c1f14" 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_01a03e94-f112-7b9c-a6f7-7745b0a4c6c6" xlink:to="loc_us-gaap_Goodwill_01a03e94-f112-7b06-a972-2090c70c1f14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_01a03e94-f112-7a0c-b49f-b570f4485829" 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_01a03e94-f112-7b9c-a6f7-7745b0a4c6c6" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_01a03e94-f112-7a0c-b49f-b570f4485829" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_01a03e94-f112-712b-b91f-523074ef7b0b" 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_01a03e94-f112-703e-a58f-2239f4a8d9aa" 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_01a03e94-f112-712b-b91f-523074ef7b0b" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_01a03e94-f112-703e-a58f-2239f4a8d9aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityNoncurrent_01a03e94-f112-709e-ae1b-1a69c90ca751" 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_01a03e94-f112-712b-b91f-523074ef7b0b" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityNoncurrent_01a03e94-f112-709e-ae1b-1a69c90ca751" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_01a03e94-f112-7e69-b864-9a979899416e" 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_01a03e94-f112-712b-b91f-523074ef7b0b" xlink:to="loc_us-gaap_LiabilitiesCurrent_01a03e94-f112-7e69-b864-9a979899416e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_01a03e94-f112-7a86-9123-731e0e595c5f" 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_01a03e94-f112-712b-b91f-523074ef7b0b" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_01a03e94-f112-7a86-9123-731e0e595c5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_ConvertibleNotesPayableNetNoncurrent_01a03e94-f112-7da9-855a-ba8710f195d8" xlink:href="anip-20260930.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_01a03e94-f112-712b-b91f-523074ef7b0b" xlink:to="loc_anip_ConvertibleNotesPayableNetNoncurrent_01a03e94-f112-7da9-855a-ba8710f195d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_01a03e94-f112-7b51-8f93-5feb7fc8a9eb" 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_01a03e94-f112-7780-bcf8-c151e745382c" 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_01a03e94-f112-7b51-8f93-5feb7fc8a9eb" xlink:to="loc_us-gaap_Liabilities_01a03e94-f112-7780-bcf8-c151e745382c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_01a03e94-f112-7c7f-a889-3c8ac5c3e97e" 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_01a03e94-f112-7b51-8f93-5feb7fc8a9eb" xlink:to="loc_us-gaap_StockholdersEquity_01a03e94-f112-7c7f-a889-3c8ac5c3e97e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_01a03e94-f112-75e2-bf1a-284116854f3f" 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_01a03e94-f112-76d4-8bb6-c762019c87de" 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_01a03e94-f112-75e2-bf1a-284116854f3f" xlink:to="loc_us-gaap_CommonStockValue_01a03e94-f112-76d4-8bb6-c762019c87de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_ClassCSpecialStockValue_01a03e94-f112-72ff-bc53-d5cfebc0289a" xlink:href="anip-20260930.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_01a03e94-f112-75e2-bf1a-284116854f3f" xlink:to="loc_anip_ClassCSpecialStockValue_01a03e94-f112-72ff-bc53-d5cfebc0289a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_01a03e94-f112-7ad0-8aaf-3897697ad830" 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_01a03e94-f112-75e2-bf1a-284116854f3f" xlink:to="loc_us-gaap_PreferredStockValue_01a03e94-f112-7ad0-8aaf-3897697ad830" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonValue_01a03e94-f112-751e-a6dd-c6fa645e470b" 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_01a03e94-f112-75e2-bf1a-284116854f3f" xlink:to="loc_us-gaap_TreasuryStockCommonValue_01a03e94-f112-751e-a6dd-c6fa645e470b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_01a03e94-f112-7b7c-96d4-f86131915d59" 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_01a03e94-f112-75e2-bf1a-284116854f3f" xlink:to="loc_us-gaap_AdditionalPaidInCapital_01a03e94-f112-7b7c-96d4-f86131915d59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_01a03e94-f112-7eb8-80ac-b5d48a585438" 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_01a03e94-f112-75e2-bf1a-284116854f3f" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_01a03e94-f112-7eb8-80ac-b5d48a585438" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_01a03e94-f112-7211-9dd0-66bd98afb882" 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_01a03e94-f112-75e2-bf1a-284116854f3f" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_01a03e94-f112-7211-9dd0-66bd98afb882" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_01a03e94-f112-7a75-aefd-c8fb6f0c72f8" 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_01a03e94-f112-7c7f-a43f-72cf019391f9" 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_01a03e94-f112-7a75-aefd-c8fb6f0c72f8" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_01a03e94-f112-7c7f-a43f-72cf019391f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashCurrent_01a03e94-f112-781a-bae1-63690a8ad458" 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_01a03e94-f112-7a75-aefd-c8fb6f0c72f8" xlink:to="loc_us-gaap_RestrictedCashCurrent_01a03e94-f112-781a-bae1-63690a8ad458" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_01a03e94-f112-755a-a5af-9cf23565b6c7" 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_01a03e94-f112-7a75-aefd-c8fb6f0c72f8" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_01a03e94-f112-755a-a5af-9cf23565b6c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_01a03e94-f112-753c-8047-b79cf4055d74" 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_01a03e94-f112-7a75-aefd-c8fb6f0c72f8" xlink:to="loc_us-gaap_InventoryNet_01a03e94-f112-753c-8047-b79cf4055d74" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrent_01a03e94-f112-70f1-99bc-fed7cda4b787" 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_01a03e94-f112-7a75-aefd-c8fb6f0c72f8" xlink:to="loc_us-gaap_PrepaidExpenseCurrent_01a03e94-f112-70f1-99bc-fed7cda4b787" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiCost_01a03e94-f112-7a38-b02c-a8b8314b4c17" 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_01a03e94-f112-7a75-aefd-c8fb6f0c72f8" xlink:to="loc_us-gaap_EquitySecuritiesFvNiCost_01a03e94-f112-7a38-b02c-a8b8314b4c17" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/CondensedConsolidatedStatementsofOperations" xlink:type="simple" xlink:href="anip-20260930.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_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_01a03e94-f112-7c2b-9792-1af6e9eac0f1" 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_01a03e94-f112-768f-b840-49c92342cef7" 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_01a03e94-f112-7c2b-9792-1af6e9eac0f1" xlink:to="loc_us-gaap_OperatingIncomeLoss_01a03e94-f112-768f-b840-49c92342cef7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_01a03e94-f112-7390-8bf1-d310ae695834" 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_01a03e94-f112-7c2b-9792-1af6e9eac0f1" xlink:to="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_01a03e94-f112-7390-8bf1-d310ae695834" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_01a03e94-f112-7a4e-a5d5-9ed50f4b8e7a" 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_01a03e94-f112-7c2b-9792-1af6e9eac0f1" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_01a03e94-f112-7a4e-a5d5-9ed50f4b8e7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_01a03e94-f112-739b-b381-621d17323b8b" 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_01a03e94-f112-7c2b-9792-1af6e9eac0f1" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_01a03e94-f112-739b-b381-621d17323b8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_01a03e94-f112-71db-85e7-7e42a8763178" 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_01a03e94-f112-77a7-9b98-aa7b6e1e5d17" 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_01a03e94-f112-71db-85e7-7e42a8763178" xlink:to="loc_us-gaap_CostOfGoodsAndServiceExcludingDepreciationDepletionAndAmortization_01a03e94-f112-77a7-9b98-aa7b6e1e5d17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_01a03e94-f112-79f6-99c1-7e233ea892c8" 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_01a03e94-f112-71db-85e7-7e42a8763178" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_01a03e94-f112-79f6-99c1-7e233ea892c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_01a03e94-f112-7f6c-8de2-5b9e48b8c8bf" 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_01a03e94-f112-71db-85e7-7e42a8763178" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_01a03e94-f112-7f6c-8de2-5b9e48b8c8bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_01a03e94-f112-7be5-82de-c9252fff18df" 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_01a03e94-f112-71db-85e7-7e42a8763178" xlink:to="loc_us-gaap_DepreciationAndAmortization_01a03e94-f112-7be5-82de-c9252fff18df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1_01a03e94-f112-76cc-a1d7-3db95f081ca0" 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_01a03e94-f112-71db-85e7-7e42a8763178" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1_01a03e94-f112-76cc-a1d7-3db95f081ca0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_01a0c708-21f3-7ef6-aacd-35366ca91081" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_01a03e94-f112-71db-85e7-7e42a8763178" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_01a0c708-21f3-7ef6-aacd-35366ca91081" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_ImpairmentOfIntangibleAssetsFiniteLivedAndIndefiniteLived_01a0c708-21f3-75e2-8fd7-d0d17fa6f811" xlink:href="anip-20260930.xsd#anip_ImpairmentOfIntangibleAssetsFiniteLivedAndIndefiniteLived"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_01a03e94-f112-71db-85e7-7e42a8763178" xlink:to="loc_anip_ImpairmentOfIntangibleAssetsFiniteLivedAndIndefiniteLived_01a0c708-21f3-75e2-8fd7-d0d17fa6f811" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_NetIncomeLossAttributableToCommonStockholdersBeforeParticipatingSecuritiesAllocation_01a03e94-f112-7dc0-8f41-3b0164e53c7e" xlink:href="anip-20260930.xsd#anip_NetIncomeLossAttributableToCommonStockholdersBeforeParticipatingSecuritiesAllocation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_01a03e94-f112-7d83-93bc-85c45ab8938c" 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_01a03e94-f112-7dc0-8f41-3b0164e53c7e" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_01a03e94-f112-7d83-93bc-85c45ab8938c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_01a03e94-f112-75d5-8edb-b53280e414bb" 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_01a03e94-f112-7dc0-8f41-3b0164e53c7e" xlink:to="loc_us-gaap_NetIncomeLoss_01a03e94-f112-75d5-8edb-b53280e414bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_01a03e94-f112-7beb-abdb-49179602f656" 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_01a03e94-f112-78e4-a059-dd8186236159" 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_01a03e94-f112-7beb-abdb-49179602f656" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_01a03e94-f112-78e4-a059-dd8186236159" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_01a03e94-f112-7f3e-b822-4fbed681217c" 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_01a03e94-f112-7beb-abdb-49179602f656" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_01a03e94-f112-7f3e-b822-4fbed681217c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_01a03e94-f112-7136-9ab4-658d4ce02856" 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_01a03e94-f112-7a9f-a9c6-b83b8564a2a3" 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_01a03e94-f112-7136-9ab4-658d4ce02856" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_01a03e94-f112-7a9f-a9c6-b83b8564a2a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_01a03e94-f112-74eb-94db-97be796e9fad" 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_01a03e94-f112-7136-9ab4-658d4ce02856" xlink:to="loc_us-gaap_CostsAndExpenses_01a03e94-f112-74eb-94db-97be796e9fad" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/CondensedConsolidatedStatementsofComprehensiveIncome" xlink:type="simple" xlink:href="anip-20260930.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_01a03e94-f112-7810-920b-d54d5185608d" 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_01a03e94-f112-713d-a048-70e03b30c0c1" 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_01a03e94-f112-7810-920b-d54d5185608d" xlink:to="loc_us-gaap_NetIncomeLoss_01a03e94-f112-713d-a048-70e03b30c0c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_01a03e94-f112-7743-85bb-b428029f5750" 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_01a03e94-f112-7810-920b-d54d5185608d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_01a03e94-f112-7743-85bb-b428029f5750" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_01a03e94-f112-7dae-bc66-3f6f11a06ae5" 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_01a03e94-f112-7f07-89ab-be6d59f8ea95" 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_01a03e94-f112-7dae-bc66-3f6f11a06ae5" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax_01a03e94-f112-7f07-89ab-be6d59f8ea95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_01a03e94-f112-742d-bfa1-01b6ceceeb84" 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_01a03e94-f112-7dae-bc66-3f6f11a06ae5" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_01a03e94-f112-742d-bfa1-01b6ceceeb84" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="anip-20260930.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_01a03e94-f112-7af8-9aba-8ed15173d36c" 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_01a03e94-f112-7c3b-9bca-d2b40bc8d2c2" 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_01a03e94-f112-7af8-9aba-8ed15173d36c" xlink:to="loc_us-gaap_PaymentsToAcquireIntangibleAssets_01a03e94-f112-7c3b-9bca-d2b40bc8d2c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_01a03e94-f112-7637-bd5e-d11b06292b71" 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_01a03e94-f112-7af8-9aba-8ed15173d36c" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_01a03e94-f112-7637-bd5e-d11b06292b71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_01a03e94-f112-7969-92e3-90580a40d89e" 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_01a03e94-f112-7bc6-bdff-cb1675a96317" 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_01a03e94-f112-7969-92e3-90580a40d89e" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a03e94-f112-7bc6-bdff-cb1675a96317" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_01a03e94-f112-7daf-8391-91dd085f85a3" 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_01a03e94-f112-7969-92e3-90580a40d89e" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_01a03e94-f112-7daf-8391-91dd085f85a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_01a03e94-f112-7906-8adf-b6e893786eb7" 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_01a03e94-f112-7969-92e3-90580a40d89e" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_01a03e94-f112-7906-8adf-b6e893786eb7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_01a03e94-f112-76f7-b572-1b35419d6055" 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_01a03e94-f112-7969-92e3-90580a40d89e" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_01a03e94-f112-76f7-b572-1b35419d6055" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_01a03e94-f112-740a-bc3c-a431157d7079" 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_01a03e94-f112-7767-bf64-e8a6590e6a3b" 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_01a03e94-f112-740a-bc3c-a431157d7079" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_01a03e94-f112-7767-bf64-e8a6590e6a3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashCurrent_01a03e94-f112-7dbb-9f12-83f7cff2a533" 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_01a03e94-f112-740a-bc3c-a431157d7079" xlink:to="loc_us-gaap_RestrictedCashCurrent_01a03e94-f112-7dbb-9f12-83f7cff2a533" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_01a03e94-f112-73ad-9652-448a09a0e74e" 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_01a03e94-f112-7f55-b959-c9ac44a79222" 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_01a03e94-f112-73ad-9652-448a09a0e74e" xlink:to="loc_us-gaap_RepaymentsOfOtherLongTermDebt_01a03e94-f112-7f55-b959-c9ac44a79222" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_01a03e94-f112-7391-a537-37daee8d829e" 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_01a03e94-f112-73ad-9652-448a09a0e74e" xlink:to="loc_us-gaap_PaymentsOfDividends_01a03e94-f112-7391-a537-37daee8d829e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_01a03e94-f112-7b4f-90b3-3a9e1acda42f" 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_01a03e94-f112-73ad-9652-448a09a0e74e" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_01a03e94-f112-7b4f-90b3-3a9e1acda42f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfOtherEquity_01a03e94-f112-7dab-a5bf-b6c58c04b495" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForRepurchaseOfOtherEquity"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_01a03e94-f112-73ad-9652-448a09a0e74e" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfOtherEquity_01a03e94-f112-7dab-a5bf-b6c58c04b495" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_01a03e94-f112-7043-bb34-bab50b6bd3b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_01a03e94-f112-73ad-9652-448a09a0e74e" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_01a03e94-f112-7043-bb34-bab50b6bd3b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities_01a0a2cc-db57-7b32-9524-8718a0933cab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_01a03e94-f112-73ad-9652-448a09a0e74e" xlink:to="loc_us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities_01a0a2cc-db57-7b32-9524-8718a0933cab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a03e94-f112-72b1-a0f1-5c9a696e8f34" 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_01a03e94-f112-78fc-a4e3-3ecb817cb23f" 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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_us-gaap_ProfitLoss_01a03e94-f112-78fc-a4e3-3ecb817cb23f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_01a03e94-f112-7192-89fb-4acfbadd751b" 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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_us-gaap_ShareBasedCompensation_01a03e94-f112-7192-89fb-4acfbadd751b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_01a03e94-f112-7d73-979e-e9b3d71cc95c" 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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_01a03e94-f112-7d73-979e-e9b3d71cc95c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_01a03e94-f112-73a2-b749-c6a5692ff61d" 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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_us-gaap_DepreciationAndAmortization_01a03e94-f112-73a2-b749-c6a5692ff61d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_01a03e94-f112-730a-ae8a-9f8a7371bdee" 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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_01a03e94-f112-730a-ae8a-9f8a7371bdee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_01a03e94-f112-7816-8ed2-414ef05cf791" 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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_01a03e94-f112-7816-8ed2-414ef05cf791" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_01a03e94-f112-79dc-9b42-a3ba8156859f" 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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_01a03e94-f112-79dc-9b42-a3ba8156859f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiabilityCashFlow_01a03e94-f112-70b3-8f5c-5394f558f9da" xlink:href="anip-20260930.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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_anip_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiabilityCashFlow_01a03e94-f112-70b3-8f5c-5394f558f9da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_01a03e94-f112-7aa7-983c-5738ac2d7baa" 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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_01a03e94-f112-7aa7-983c-5738ac2d7baa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_01a03e94-f112-7a1d-a2be-810cace991f3" 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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_01a03e94-f112-7a1d-a2be-810cace991f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidExpense_01a03e94-f112-7369-a0e9-492f5c6b8fb0" 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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidExpense_01a03e94-f112-7369-a0e9-492f5c6b8fb0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_01a03e94-f112-7567-aed7-049f17f8fb53" 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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_01a03e94-f112-7567-aed7-049f17f8fb53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_IncreaseDecreaseInRoyaltyPayable_01a03e94-f112-79ef-a8e4-6734f30914b9" xlink:href="anip-20260930.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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_anip_IncreaseDecreaseInRoyaltyPayable_01a03e94-f112-79ef-a8e4-6734f30914b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxes_01a03e94-f112-7e09-bebe-e5251d3e4c0d" 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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxes_01a03e94-f112-7e09-bebe-e5251d3e4c0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_IncreaseDecreaseAccruedGovernmentRebates_01a03e94-f112-7a24-812f-31fc594de033" xlink:href="anip-20260930.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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_anip_IncreaseDecreaseAccruedGovernmentRebates_01a03e94-f112-7a24-812f-31fc594de033" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_IncreaseDecreaseInReturnedGoodsReserve_01a03e94-f112-7b05-8f70-3fb171af0bb8" xlink:href="anip-20260930.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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_anip_IncreaseDecreaseInReturnedGoodsReserve_01a03e94-f112-7b05-8f70-3fb171af0bb8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_IncreaseDecreaseOfAccruedExpensesCompensationAndOthers_01a03e94-f112-7c96-ba4b-58cd288c3c42" xlink:href="anip-20260930.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_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_anip_IncreaseDecreaseOfAccruedExpensesCompensationAndOthers_01a03e94-f112-7c96-ba4b-58cd288c3c42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfOtherAssets_01a05ff8-78f8-70a7-a2b2-118d2b2efa19" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnSaleOfOtherAssets"/>
    <link:calculationArc order="18" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_us-gaap_GainLossOnSaleOfOtherAssets_01a05ff8-78f8-70a7-a2b2-118d2b2efa19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_01a05ff8-78f8-760b-bd40-3df745e2c35c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:calculationArc order="19" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a03e94-f112-72b1-a0f1-5c9a696e8f34" xlink:to="loc_us-gaap_AssetImpairmentCharges_01a05ff8-78f8-760b-bd40-3df745e2c35c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/A2024CREDITAGREEMENTFacilitycomponentsDetails" xlink:type="simple" xlink:href="anip-20260930.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_01a03e94-f1db-7c74-99b4-3e3f3549ef02" 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_01a03e94-f1db-7328-9b56-6b480be263bc" 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_01a03e94-f1db-7c74-99b4-3e3f3549ef02" xlink:to="loc_us-gaap_DeferredFinanceCostsCurrentNet_01a03e94-f1db-7328-9b56-6b480be263bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_LongTermDebtGrossCurrent_01a03e94-f1db-7cea-81af-863966c1d177" xlink:href="anip-20260930.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_01a03e94-f1db-7c74-99b4-3e3f3549ef02" xlink:to="loc_anip_LongTermDebtGrossCurrent_01a03e94-f1db-7cea-81af-863966c1d177" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_01a03e94-f1db-7db4-82b5-62724e0b13a3" 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_01a03e94-f1db-73c3-9fb3-8110442fe927" xlink:href="anip-20260930.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_01a03e94-f1db-7db4-82b5-62724e0b13a3" xlink:to="loc_anip_LongTermDebtGrossNonCurrent_01a03e94-f1db-73c3-9fb3-8110442fe927" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNoncurrentNet_01a03e94-f1db-7fcc-a7f5-9b893709860c" 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_01a03e94-f1db-7db4-82b5-62724e0b13a3" xlink:to="loc_us-gaap_DeferredFinanceCostsNoncurrentNet_01a03e94-f1db-7fcc-a7f5-9b893709860c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/A2024CREDITAGREEMENTMaturityofcreditfacilityDetails" xlink:type="simple" xlink:href="anip-20260930.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_01a03e94-f1db-7cc1-a769-28fccc4c4b71" 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_01a03e94-f1db-728d-a39f-6ecef8f7528a" 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_01a03e94-f1db-7cc1-a769-28fccc4c4b71" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_01a03e94-f1db-728d-a39f-6ecef8f7528a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_01a03e94-f1db-7246-be39-795304894e5f" 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_01a03e94-f1db-7cc1-a769-28fccc4c4b71" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_01a03e94-f1db-7246-be39-795304894e5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_01a03e94-f1db-7f70-9386-c49ddf8f57f5" 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_01a03e94-f1db-7cc1-a769-28fccc4c4b71" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_01a03e94-f1db-7f70-9386-c49ddf8f57f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear_01a03e94-f1db-7291-8e21-1bffa70c2849" 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_01a03e94-f1db-7cc1-a769-28fccc4c4b71" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear_01a03e94-f1db-7291-8e21-1bffa70c2849" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/A2024CREDITAGREEMENTInterestDetails" xlink:type="simple" xlink:href="anip-20260930.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_InterestIncomeExpenseNonoperatingNet_01a03e94-f1db-73d9-8175-bd99d2bcd104" 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_01a03e94-f1db-73b7-9f64-6f9cd5c3ded3" 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_01a03e94-f1db-73d9-8175-bd99d2bcd104" xlink:to="loc_us-gaap_InterestExpenseDebt_01a03e94-f1db-73b7-9f64-6f9cd5c3ded3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_01a03e94-f1db-78c9-9c07-3fa2f18beca4" 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_01a03e94-f1db-73d9-8175-bd99d2bcd104" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_01a03e94-f1db-78c9-9c07-3fa2f18beca4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_01a03e94-f1db-77a8-ad02-990e71f12a58" 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_01a03e94-f1db-7cad-ba0b-2cd1b022d22e" 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_01a03e94-f1db-77a8-ad02-990e71f12a58" xlink:to="loc_us-gaap_InterestCostsCapitalizedAdjustment_01a03e94-f1db-7cad-ba0b-2cd1b022d22e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_01a03e94-f1db-79be-8d22-b926d8b940d4" 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_01a03e94-f1db-77a8-ad02-990e71f12a58" xlink:to="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_01a03e94-f1db-79be-8d22-b926d8b940d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInterestAndDividendIncome_01a03e94-f1db-74ff-a62c-34be1c437506" 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_01a03e94-f1db-77a8-ad02-990e71f12a58" xlink:to="loc_us-gaap_OtherInterestAndDividendIncome_01a03e94-f1db-74ff-a62c-34be1c437506" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_01a03e94-f1db-72d5-8755-0a859a797334" 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_01a03e94-f1db-764b-abab-44277be17a90" 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_01a03e94-f1db-72d5-8755-0a859a797334" xlink:to="loc_us-gaap_InterestExpenseDebtExcludingAmortization_01a03e94-f1db-764b-abab-44277be17a90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_01a03e94-f1db-78b7-bf9c-6bdb4764bf27" 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_01a03e94-f1db-72d5-8755-0a859a797334" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_01a03e94-f1db-78b7-bf9c-6bdb4764bf27" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/EARNINGSPERSHAREDetails" xlink:type="simple" xlink:href="anip-20260930.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_UndistributedEarningsDiluted_01a03e94-f1db-72a3-a8b5-6ad9dd28100a" 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_01a03e94-f1db-7227-a961-a4c627918a6f" 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_01a03e94-f1db-72a3-a8b5-6ad9dd28100a" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_01a03e94-f1db-7227-a961-a4c627918a6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_01a03e94-f1db-7be2-a063-1e00639f36ff" 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_01a03e94-f1db-72a3-a8b5-6ad9dd28100a" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_01a03e94-f1db-7be2-a063-1e00639f36ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_01a03e94-f1db-74d9-98d5-e6111b569766" 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_01a03e94-f1db-73c3-a76a-6bf237404960" 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_01a03e94-f1db-74d9-98d5-e6111b569766" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_01a03e94-f1db-73c3-a76a-6bf237404960" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_01a03e94-f1db-7e0d-9374-e9e98d1b7a81" 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_01a03e94-f1db-74d9-98d5-e6111b569766" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_01a03e94-f1db-7e0d-9374-e9e98d1b7a81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_01a03e94-f1db-7c58-b51a-25c38e933a7f" 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_01a03e94-f1db-7430-a10b-8faf7010f786" 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_01a03e94-f1db-7c58-b51a-25c38e933a7f" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_01a03e94-f1db-7430-a10b-8faf7010f786" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_anip_NetIncomeLossAttributableToCommonStockholdersBeforeParticipatingSecuritiesAllocation_01a03e94-f1db-7816-87e1-f8fd921f3fe5" xlink:href="anip-20260930.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_01a03e94-f1db-7c58-b51a-25c38e933a7f" xlink:to="loc_anip_NetIncomeLossAttributableToCommonStockholdersBeforeParticipatingSecuritiesAllocation_01a03e94-f1db-7816-87e1-f8fd921f3fe5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/INVENTORIESScheduleofinventoryDetails" xlink:type="simple" xlink:href="anip-20260930.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_01a03e94-f1db-771a-bc63-e1c4fc4f0fe4" 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_01a03e94-f1db-7860-bf3a-c57033926934" 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_01a03e94-f1db-771a-bc63-e1c4fc4f0fe4" xlink:to="loc_us-gaap_InventoryRawMaterials_01a03e94-f1db-7860-bf3a-c57033926934" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcess_01a03e94-f1db-75ad-a499-d388a75e5c08" 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_01a03e94-f1db-771a-bc63-e1c4fc4f0fe4" xlink:to="loc_us-gaap_InventoryWorkInProcess_01a03e94-f1db-75ad-a499-d388a75e5c08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoods_01a03e94-f1db-70f0-9603-dcf42c297622" 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_01a03e94-f1db-771a-bc63-e1c4fc4f0fe4" xlink:to="loc_us-gaap_InventoryFinishedGoods_01a03e94-f1db-70f0-9603-dcf42c297622" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.anipharmaceuticals.com/role/GOODWILLANDINTANGIBLEASSETSComponentsDetails" xlink:type="simple" xlink:href="anip-20260930.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_01a03e94-f1db-7c3c-b867-c1be755b3f32" 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_01a03e94-f1db-733e-a3d7-91386240df09" 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_01a03e94-f1db-7c3c-b867-c1be755b3f32" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_01a03e94-f1db-733e-a3d7-91386240df09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_01a03e94-f1db-7981-8081-6b6eb30041f3" 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_01a03e94-f1db-7c3c-b867-c1be755b3f32" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_01a03e94-f1db-7981-8081-6b6eb30041f3" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
