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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:e5d0f0b2-28f0-402b-8ff5-56208266c5ea,g:67c8cf01-c06c-4e46-bd53-697f2af788ac-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.x4pharma.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="xfor-20240331.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.x4pharma.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_a4919b0e-4f5d-4fa4-8eee-aa0a8a02e1f1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_c6d97b9e-7876-4607-a2aa-fe4ba527aad7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_a4919b0e-4f5d-4fa4-8eee-aa0a8a02e1f1" xlink:to="loc_us-gaap_Liabilities_c6d97b9e-7876-4607-a2aa-fe4ba527aad7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_9d5d61ea-f80f-4c76-bc85-6b8aef2c9a0b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_a4919b0e-4f5d-4fa4-8eee-aa0a8a02e1f1" xlink:to="loc_us-gaap_CommitmentsAndContingencies_9d5d61ea-f80f-4c76-bc85-6b8aef2c9a0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_8c07b61e-d30f-42d8-9a06-907d5af655d1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_a4919b0e-4f5d-4fa4-8eee-aa0a8a02e1f1" xlink:to="loc_us-gaap_StockholdersEquity_8c07b61e-d30f-42d8-9a06-907d5af655d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_075c0f2c-ad5a-4149-8f7f-339a9b4dd21e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_3251094a-9c15-4039-9049-a150eff7591d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_075c0f2c-ad5a-4149-8f7f-339a9b4dd21e" xlink:to="loc_us-gaap_CommonStockValue_3251094a-9c15-4039-9049-a150eff7591d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_7d2bc230-7e15-4949-961a-46353cf1cb40" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_075c0f2c-ad5a-4149-8f7f-339a9b4dd21e" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_7d2bc230-7e15-4949-961a-46353cf1cb40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_94598335-9736-43ff-9e76-2340a5f7759d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_075c0f2c-ad5a-4149-8f7f-339a9b4dd21e" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_94598335-9736-43ff-9e76-2340a5f7759d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_0274bb4c-27d9-42d5-bacb-d76117168091" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_075c0f2c-ad5a-4149-8f7f-339a9b4dd21e" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_0274bb4c-27d9-42d5-bacb-d76117168091" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_3cc9d018-dbce-48a0-8507-062e64312b7d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_57088336-8e2f-4ffe-9397-9da63a4a953e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_3cc9d018-dbce-48a0-8507-062e64312b7d" xlink:to="loc_us-gaap_AccountsPayableCurrent_57088336-8e2f-4ffe-9397-9da63a4a953e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_b084b505-185d-4ae1-ae26-6bf3edcf5edb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_3cc9d018-dbce-48a0-8507-062e64312b7d" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_b084b505-185d-4ae1-ae26-6bf3edcf5edb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_136d91d7-b5bc-4319-bc1e-17ce4763025f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_3cc9d018-dbce-48a0-8507-062e64312b7d" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_136d91d7-b5bc-4319-bc1e-17ce4763025f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_23b55410-f869-426e-bc12-9fabeff5771c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_f8d81a06-9c53-40fd-a4b1-6cd6bc5407b6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_23b55410-f869-426e-bc12-9fabeff5771c" xlink:to="loc_us-gaap_AssetsCurrent_f8d81a06-9c53-40fd-a4b1-6cd6bc5407b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_fa88333c-7d02-46dd-9d93-71101f6a5796" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_23b55410-f869-426e-bc12-9fabeff5771c" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_fa88333c-7d02-46dd-9d93-71101f6a5796" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_b2843124-b15e-4308-80f0-07f70016e967" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_23b55410-f869-426e-bc12-9fabeff5771c" xlink:to="loc_us-gaap_Goodwill_b2843124-b15e-4308-80f0-07f70016e967" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_a66156c7-bb0e-4f89-803d-c72b401ad60e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_23b55410-f869-426e-bc12-9fabeff5771c" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_a66156c7-bb0e-4f89-803d-c72b401ad60e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_c49e6f20-03cd-4d65-9964-66406315f961" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_23b55410-f869-426e-bc12-9fabeff5771c" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_c49e6f20-03cd-4d65-9964-66406315f961" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_51e9c37c-8504-4752-9daa-19284cec0f08" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_324163e1-2d7e-47ed-b54f-27de2122b2c6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_51e9c37c-8504-4752-9daa-19284cec0f08" xlink:to="loc_us-gaap_LiabilitiesCurrent_324163e1-2d7e-47ed-b54f-27de2122b2c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xfor_LongTermDebtNonCurrentIncludingAccretion_da25d553-6349-4ac1-9999-5d93fe28facc" xlink:href="xfor-20240331.xsd#xfor_LongTermDebtNonCurrentIncludingAccretion"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_51e9c37c-8504-4752-9daa-19284cec0f08" xlink:to="loc_xfor_LongTermDebtNonCurrentIncludingAccretion_da25d553-6349-4ac1-9999-5d93fe28facc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_b34e6271-7c4b-4135-924c-abc657e746ef" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_51e9c37c-8504-4752-9daa-19284cec0f08" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_b34e6271-7c4b-4135-924c-abc657e746ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_8415a437-108f-4adc-bcb8-9331ab9b1dd3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_51e9c37c-8504-4752-9daa-19284cec0f08" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_8415a437-108f-4adc-bcb8-9331ab9b1dd3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilitiesNoncurrent_9c94917f-0735-4eae-9bc2-9d7615fcbc6d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilitiesNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_51e9c37c-8504-4752-9daa-19284cec0f08" xlink:to="loc_us-gaap_DerivativeLiabilitiesNoncurrent_9c94917f-0735-4eae-9bc2-9d7615fcbc6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_a4c18860-ad57-4126-8a62-db3333fb78a9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_b2b554de-81f2-4c58-9a5d-63334dd462df" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_a4c18860-ad57-4126-8a62-db3333fb78a9" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_b2b554de-81f2-4c58-9a5d-63334dd462df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xfor_ResearchAndDevelopmentIncentiveReceivable_a173a10c-c07f-4b4f-867b-cb16085a45ad" xlink:href="xfor-20240331.xsd#xfor_ResearchAndDevelopmentIncentiveReceivable"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_a4c18860-ad57-4126-8a62-db3333fb78a9" xlink:to="loc_xfor_ResearchAndDevelopmentIncentiveReceivable_a173a10c-c07f-4b4f-867b-cb16085a45ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_a77e7e63-3a0d-4168-a10f-12efc56af12f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_a4c18860-ad57-4126-8a62-db3333fb78a9" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_a77e7e63-3a0d-4168-a10f-12efc56af12f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MarketableSecurities_a1d1798b-cc65-40b9-be7f-f1f270f0ce30" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MarketableSecurities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_a4c18860-ad57-4126-8a62-db3333fb78a9" xlink:to="loc_us-gaap_MarketableSecurities_a1d1798b-cc65-40b9-be7f-f1f270f0ce30" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.x4pharma.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="xfor-20240331.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS"/>
  <link:calculationLink xlink:role="http://www.x4pharma.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_9b031d60-990d-470d-a55e-5d7d342c213d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_6b8aa518-5bb0-44ab-a2b7-ab060844bd33" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_9b031d60-990d-470d-a55e-5d7d342c213d" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_6b8aa518-5bb0-44ab-a2b7-ab060844bd33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_7a171ce7-71e6-41f5-9530-0f71c034ae7c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_9b031d60-990d-470d-a55e-5d7d342c213d" xlink:to="loc_us-gaap_OperatingIncomeLoss_7a171ce7-71e6-41f5-9530-0f71c034ae7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_ca38dd47-cc03-4bb5-a61e-4782ca6c78ab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_381c4f32-c9bf-4a8e-bb7e-a7b167c85c0f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_ca38dd47-cc03-4bb5-a61e-4782ca6c78ab" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_381c4f32-c9bf-4a8e-bb7e-a7b167c85c0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a6a9ab62-5f95-4abd-8f78-d6ba31c29a85" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_ca38dd47-cc03-4bb5-a61e-4782ca6c78ab" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a6a9ab62-5f95-4abd-8f78-d6ba31c29a85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_40a0da8a-d877-40db-901f-6bdd04602c20" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_a6e84733-61a3-4f67-80a9-da291b9808f6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingExpenses"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_40a0da8a-d877-40db-901f-6bdd04602c20" xlink:to="loc_us-gaap_OperatingExpenses_a6e84733-61a3-4f67-80a9-da291b9808f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_2ec4eca7-5ab3-4fe4-bf39-11eaf7b3f831" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_ea12bcb0-4f9c-4e7e-b0c9-d7d23732b1b3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_2ec4eca7-5ab3-4fe4-bf39-11eaf7b3f831" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_ea12bcb0-4f9c-4e7e-b0c9-d7d23732b1b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_1bb8fcce-7e12-4052-b943-3ddbbf6aa433" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_2ec4eca7-5ab3-4fe4-bf39-11eaf7b3f831" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_1bb8fcce-7e12-4052-b943-3ddbbf6aa433" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_f80eacd9-7b06-465e-8a9a-9c6da0395ec5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_ff0ffec4-e300-4413-9f1f-9b573a03ff5b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeGainLossOnDerivativeNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_f80eacd9-7b06-465e-8a9a-9c6da0395ec5" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_ff0ffec4-e300-4413-9f1f-9b573a03ff5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_9e7ef4d2-80f9-4681-8557-83a8d88c3c74" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_f80eacd9-7b06-465e-8a9a-9c6da0395ec5" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_9e7ef4d2-80f9-4681-8557-83a8d88c3c74" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_0e4e414a-963f-44f9-8529-9adfaa452619" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_f80eacd9-7b06-465e-8a9a-9c6da0395ec5" xlink:to="loc_us-gaap_InvestmentIncomeInterest_0e4e414a-963f-44f9-8529-9adfaa452619" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_23583d33-e223-4ac0-8f82-299bf695fe93" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_f80eacd9-7b06-465e-8a9a-9c6da0395ec5" xlink:to="loc_us-gaap_InterestExpense_23583d33-e223-4ac0-8f82-299bf695fe93" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.x4pharma.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="xfor-20240331.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.x4pharma.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6832c86e-09cf-4e5b-9292-0519b2daa688" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_d9484bea-4885-47e1-b98d-67699336641f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6832c86e-09cf-4e5b-9292-0519b2daa688" xlink:to="loc_us-gaap_NetIncomeLoss_d9484bea-4885-47e1-b98d-67699336641f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_14df6a01-54e8-4b22-a2cb-3f5874f974aa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6832c86e-09cf-4e5b-9292-0519b2daa688" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_14df6a01-54e8-4b22-a2cb-3f5874f974aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xfor_NonCashLeaseExpense_5eb36ffc-f244-4932-91af-245f302558bc" xlink:href="xfor-20240331.xsd#xfor_NonCashLeaseExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6832c86e-09cf-4e5b-9292-0519b2daa688" xlink:to="loc_xfor_NonCashLeaseExpense_5eb36ffc-f244-4932-91af-245f302558bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xfor_NonCashInterestExpense_8a099b83-9f16-430b-9d05-31595470acf0" xlink:href="xfor-20240331.xsd#xfor_NonCashInterestExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6832c86e-09cf-4e5b-9292-0519b2daa688" xlink:to="loc_xfor_NonCashInterestExpense_8a099b83-9f16-430b-9d05-31595470acf0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_367ba6eb-44af-45a4-bd85-2d48df72555d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6832c86e-09cf-4e5b-9292-0519b2daa688" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_367ba6eb-44af-45a4-bd85-2d48df72555d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_b425b06d-76be-4423-9fdb-efa0c96d22ab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6832c86e-09cf-4e5b-9292-0519b2daa688" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_b425b06d-76be-4423-9fdb-efa0c96d22ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_18a20f2c-5165-4a06-a6ab-48fddad1f960" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6832c86e-09cf-4e5b-9292-0519b2daa688" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_18a20f2c-5165-4a06-a6ab-48fddad1f960" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_fb178761-3af7-470f-afb5-672ffe758c40" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6832c86e-09cf-4e5b-9292-0519b2daa688" xlink:to="loc_us-gaap_ShareBasedCompensation_fb178761-3af7-470f-afb5-672ffe758c40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xfor_IncreaseDecreaseInLeaseLiabilities_b72a94e7-fed1-4abb-b9de-36fabb60e0e7" xlink:href="xfor-20240331.xsd#xfor_IncreaseDecreaseInLeaseLiabilities"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6832c86e-09cf-4e5b-9292-0519b2daa688" xlink:to="loc_xfor_IncreaseDecreaseInLeaseLiabilities_b72a94e7-fed1-4abb-b9de-36fabb60e0e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_c00dbd7a-27a9-4425-92c2-9789af4d2bff" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6832c86e-09cf-4e5b-9292-0519b2daa688" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_c00dbd7a-27a9-4425-92c2-9789af4d2bff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAdjustmentOfWarrants_adf039e6-4208-4aa6-ba74-e7afb8adf6d3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueAdjustmentOfWarrants"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6832c86e-09cf-4e5b-9292-0519b2daa688" xlink:to="loc_us-gaap_FairValueAdjustmentOfWarrants_adf039e6-4208-4aa6-ba74-e7afb8adf6d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_36a71bf3-7d84-443e-8abe-7c7aa700a231" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMarketableSecurities_dfb19c6e-5f02-44df-a7ab-8d7246ae1cfe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireMarketableSecurities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_36a71bf3-7d84-443e-8abe-7c7aa700a231" xlink:to="loc_us-gaap_PaymentsToAcquireMarketableSecurities_dfb19c6e-5f02-44df-a7ab-8d7246ae1cfe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireProductiveAssets_d25d0f32-b74f-420e-8766-1a1ca8b54d26" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireProductiveAssets"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_36a71bf3-7d84-443e-8abe-7c7aa700a231" xlink:to="loc_us-gaap_PaymentsToAcquireProductiveAssets_d25d0f32-b74f-420e-8766-1a1ca8b54d26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_c26ae028-a587-4251-acc7-df642fb5d039" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_36a71bf3-7d84-443e-8abe-7c7aa700a231" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_c26ae028-a587-4251-acc7-df642fb5d039" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_63fe92d8-f083-44b9-bc15-b69f0027a818" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_807a6934-22fe-4289-a0ba-7660faa65d65" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_63fe92d8-f083-44b9-bc15-b69f0027a818" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_807a6934-22fe-4289-a0ba-7660faa65d65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a9fc3ade-ea73-4301-98dd-640616731641" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_63fe92d8-f083-44b9-bc15-b69f0027a818" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a9fc3ade-ea73-4301-98dd-640616731641" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e94e4ae1-6383-4e24-8fc8-98b7cf1c0f51" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_63fe92d8-f083-44b9-bc15-b69f0027a818" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e94e4ae1-6383-4e24-8fc8-98b7cf1c0f51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_54e63c2b-66ac-4f91-a895-382fea74d05a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_63fe92d8-f083-44b9-bc15-b69f0027a818" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_54e63c2b-66ac-4f91-a895-382fea74d05a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_5c7449d8-9658-4a0f-ad59-ecc86ae8a29d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_xfor_IssuanceCostsRelatedToSaleOfWarrantsAndFeesPaidForAmendmentsToLoanAndSecurityAgreement_184b07f1-4bb0-4766-8842-4c6a9fa8f8e1" xlink:href="xfor-20240331.xsd#xfor_IssuanceCostsRelatedToSaleOfWarrantsAndFeesPaidForAmendmentsToLoanAndSecurityAgreement"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_5c7449d8-9658-4a0f-ad59-ecc86ae8a29d" xlink:to="loc_xfor_IssuanceCostsRelatedToSaleOfWarrantsAndFeesPaidForAmendmentsToLoanAndSecurityAgreement_184b07f1-4bb0-4766-8842-4c6a9fa8f8e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xfor_ProceedsFromIssuanceOrSaleOfEquityNetOfIssuanceCosts_73941108-4c9b-4d29-81b0-2d33877b64be" xlink:href="xfor-20240331.xsd#xfor_ProceedsFromIssuanceOrSaleOfEquityNetOfIssuanceCosts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_5c7449d8-9658-4a0f-ad59-ecc86ae8a29d" xlink:to="loc_xfor_ProceedsFromIssuanceOrSaleOfEquityNetOfIssuanceCosts_73941108-4c9b-4d29-81b0-2d33877b64be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfSecuredDebt_a44da6ca-f61b-408b-8c93-2cd4aed912cb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfSecuredDebt"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_5c7449d8-9658-4a0f-ad59-ecc86ae8a29d" xlink:to="loc_us-gaap_RepaymentsOfSecuredDebt_a44da6ca-f61b-408b-8c93-2cd4aed912cb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.x4pharma.com/role/SummaryofSignificantAccountingPoliciesScheduleofReconciliationofCashCashEquivalentsandRestrictedCashDetail" xlink:type="simple" xlink:href="xfor-20240331.xsd#SummaryofSignificantAccountingPoliciesScheduleofReconciliationofCashCashEquivalentsandRestrictedCashDetail"/>
  <link:calculationLink xlink:role="http://www.x4pharma.com/role/SummaryofSignificantAccountingPoliciesScheduleofReconciliationofCashCashEquivalentsandRestrictedCashDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_ae2ae1ed-9831-4b9e-9c0f-cc33652c7cee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashNoncurrent_295a4e90-91e7-47e9-a7fa-4b69848f8952" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_ae2ae1ed-9831-4b9e-9c0f-cc33652c7cee" xlink:to="loc_us-gaap_RestrictedCashNoncurrent_295a4e90-91e7-47e9-a7fa-4b69848f8952" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashCurrent_943719d4-d192-40fd-b023-0882800c9fcc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_ae2ae1ed-9831-4b9e-9c0f-cc33652c7cee" xlink:to="loc_us-gaap_RestrictedCashCurrent_943719d4-d192-40fd-b023-0882800c9fcc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_977e5b7f-ddc7-41ab-bb7a-e7fa5b615409" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_ae2ae1ed-9831-4b9e-9c0f-cc33652c7cee" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_977e5b7f-ddc7-41ab-bb7a-e7fa5b615409" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.x4pharma.com/role/PropertyandEquipmentNetScheduleofPropertyandEquipmentNetDetail" xlink:type="simple" xlink:href="xfor-20240331.xsd#PropertyandEquipmentNetScheduleofPropertyandEquipmentNetDetail"/>
  <link:calculationLink xlink:role="http://www.x4pharma.com/role/PropertyandEquipmentNetScheduleofPropertyandEquipmentNetDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_ea16a992-7c8c-41b6-a197-172aac51af54" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_5af52748-c337-43f5-aff1-ae10de2f03aa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_ea16a992-7c8c-41b6-a197-172aac51af54" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_5af52748-c337-43f5-aff1-ae10de2f03aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_63b092fa-0f99-46af-bc3d-ce4bd992c9f4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_ea16a992-7c8c-41b6-a197-172aac51af54" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_63b092fa-0f99-46af-bc3d-ce4bd992c9f4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.x4pharma.com/role/AccruedExpensesScheduleofAccruedExpensesDetail" xlink:type="simple" xlink:href="xfor-20240331.xsd#AccruedExpensesScheduleofAccruedExpensesDetail"/>
  <link:calculationLink xlink:role="http://www.x4pharma.com/role/AccruedExpensesScheduleofAccruedExpensesDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_418059c8-6f38-4788-8de7-3615cb6dabc2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_8c7a9a44-a93a-4831-af82-b743da08f604" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_418059c8-6f38-4788-8de7-3615cb6dabc2" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_8c7a9a44-a93a-4831-af82-b743da08f604" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_e387eddb-9af0-4b0a-bbfa-1ba07bebcf7a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_418059c8-6f38-4788-8de7-3615cb6dabc2" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_e387eddb-9af0-4b0a-bbfa-1ba07bebcf7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedProfessionalFeesCurrent_d07b740e-f44b-4903-b887-297514617cb2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedProfessionalFeesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_418059c8-6f38-4788-8de7-3615cb6dabc2" xlink:to="loc_us-gaap_AccruedProfessionalFeesCurrent_d07b740e-f44b-4903-b887-297514617cb2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xfor_AccruedExternalResearchAndDevelopmentExpenses_263424a6-2454-4b49-a3cf-8c84d3537cd3" xlink:href="xfor-20240331.xsd#xfor_AccruedExternalResearchAndDevelopmentExpenses"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_418059c8-6f38-4788-8de7-3615cb6dabc2" xlink:to="loc_xfor_AccruedExternalResearchAndDevelopmentExpenses_263424a6-2454-4b49-a3cf-8c84d3537cd3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.x4pharma.com/role/LongTermDebtSummaryofLongTermDebtDetail" xlink:type="simple" xlink:href="xfor-20240331.xsd#LongTermDebtSummaryofLongTermDebtDetail"/>
  <link:calculationLink xlink:role="http://www.x4pharma.com/role/LongTermDebtSummaryofLongTermDebtDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_xfor_LongTermDebtIncludingAccretion_f27971fc-72a1-4240-aa9d-e48022de9204" xlink:href="xfor-20240331.xsd#xfor_LongTermDebtIncludingAccretion"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_82cf9d2c-59ea-4e9a-942a-e182316ee029" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_xfor_LongTermDebtIncludingAccretion_f27971fc-72a1-4240-aa9d-e48022de9204" xlink:to="loc_us-gaap_LongTermDebt_82cf9d2c-59ea-4e9a-942a-e182316ee029" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xfor_AccretionOnLongTermDebt_471153ea-b098-4404-b97c-0f8d93f0bb51" xlink:href="xfor-20240331.xsd#xfor_AccretionOnLongTermDebt"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_xfor_LongTermDebtIncludingAccretion_f27971fc-72a1-4240-aa9d-e48022de9204" xlink:to="loc_xfor_AccretionOnLongTermDebt_471153ea-b098-4404-b97c-0f8d93f0bb51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_ad578f98-a944-4989-892f-d85e921e840c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_xfor_LongTermDebtIncludingAccretion_f27971fc-72a1-4240-aa9d-e48022de9204" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_ad578f98-a944-4989-892f-d85e921e840c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.x4pharma.com/role/LongTermDebtScheduleofFuturePrincipalPaymentsandtheFinalPaymentsDueDetail" xlink:type="simple" xlink:href="xfor-20240331.xsd#LongTermDebtScheduleofFuturePrincipalPaymentsandtheFinalPaymentsDueDetail"/>
  <link:calculationLink xlink:role="http://www.x4pharma.com/role/LongTermDebtScheduleofFuturePrincipalPaymentsandtheFinalPaymentsDueDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_xfor_LongTermDebtAndEOTPayment_f6805d95-8cd1-4387-9ed1-693356d31681" xlink:href="xfor-20240331.xsd#xfor_LongTermDebtAndEOTPayment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_310d89e9-6324-4ca9-9064-4a3dfaa30548" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_xfor_LongTermDebtAndEOTPayment_f6805d95-8cd1-4387-9ed1-693356d31681" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_310d89e9-6324-4ca9-9064-4a3dfaa30548" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear_06954112-02b6-4d85-8451-bc041aca624e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_xfor_LongTermDebtAndEOTPayment_f6805d95-8cd1-4387-9ed1-693356d31681" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear_06954112-02b6-4d85-8451-bc041aca624e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_10fb0348-47bf-44bf-baee-4bd0b7a700a2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_xfor_LongTermDebtAndEOTPayment_f6805d95-8cd1-4387-9ed1-693356d31681" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_10fb0348-47bf-44bf-baee-4bd0b7a700a2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.x4pharma.com/role/LeasesScheduleofComponentsofLeaseExpenseDetail" xlink:type="simple" xlink:href="xfor-20240331.xsd#LeasesScheduleofComponentsofLeaseExpenseDetail"/>
  <link:calculationLink xlink:role="http://www.x4pharma.com/role/LeasesScheduleofComponentsofLeaseExpenseDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_33199c39-a918-4e98-b24c-0cce63a91bfa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_a3d10fc7-bc32-411f-8fcb-9f3d7d644ee6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_33199c39-a918-4e98-b24c-0cce63a91bfa" xlink:to="loc_us-gaap_OperatingLeaseCost_a3d10fc7-bc32-411f-8fcb-9f3d7d644ee6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.x4pharma.com/role/LeasesScheduleofMaturitiesofLeaseLiabilitiesDetail" xlink:type="simple" xlink:href="xfor-20240331.xsd#LeasesScheduleofMaturitiesofLeaseLiabilitiesDetail"/>
  <link:calculationLink xlink:role="http://www.x4pharma.com/role/LeasesScheduleofMaturitiesofLeaseLiabilitiesDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_17da3d38-4a68-42d4-bc55-407331a872b0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_e1fae804-8840-4029-9aba-5847521fbf46" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_17da3d38-4a68-42d4-bc55-407331a872b0" xlink:to="loc_us-gaap_OperatingLeaseLiability_e1fae804-8840-4029-9aba-5847521fbf46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_582812d9-55da-4e66-ba56-0181d3fd582d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_17da3d38-4a68-42d4-bc55-407331a872b0" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_582812d9-55da-4e66-ba56-0181d3fd582d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.x4pharma.com/role/LeasesScheduleofMaturitiesofLeaseLiabilitiesDetail_1" xlink:type="simple" xlink:href="xfor-20240331.xsd#LeasesScheduleofMaturitiesofLeaseLiabilitiesDetail_1"/>
  <link:calculationLink xlink:role="http://www.x4pharma.com/role/LeasesScheduleofMaturitiesofLeaseLiabilitiesDetail_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_631038a0-00c2-480c-81fe-8d1c403c459c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_4f8939a0-1ea5-491c-bb60-7abde46dcaa3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_631038a0-00c2-480c-81fe-8d1c403c459c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_4f8939a0-1ea5-491c-bb60-7abde46dcaa3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_79ce683d-065e-4fdd-a4be-5c78964c619d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_631038a0-00c2-480c-81fe-8d1c403c459c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_79ce683d-065e-4fdd-a4be-5c78964c619d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_9cf8cec9-85ef-4a79-ba10-4a07517ef19d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_631038a0-00c2-480c-81fe-8d1c403c459c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_9cf8cec9-85ef-4a79-ba10-4a07517ef19d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_3d679179-682d-4055-be52-0ff1a65b9553" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_631038a0-00c2-480c-81fe-8d1c403c459c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_3d679179-682d-4055-be52-0ff1a65b9553" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_aa01d0f3-b851-43eb-9579-c61389e10bc2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_631038a0-00c2-480c-81fe-8d1c403c459c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_aa01d0f3-b851-43eb-9579-c61389e10bc2" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
