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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2025 Workiva-->
<!--r:3f54626a-21a5-4afb-84fd-1a29a311332f,g:d3393ba5-5522-4623-b2ea-5fb25beb1aa7-->
<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.xencor.com/role/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="xncr-20241231.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_8e74c79a-2ba1-4cb0-9ff5-9aa5d7aa2560" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_a2d8d7b4-b5ad-4e9d-bea8-05354cb42d5e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_8e74c79a-2ba1-4cb0-9ff5-9aa5d7aa2560" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_a2d8d7b4-b5ad-4e9d-bea8-05354cb42d5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtCurrent_a427edaf-8879-45f9-b82f-e60974d52bd0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_8e74c79a-2ba1-4cb0-9ff5-9aa5d7aa2560" xlink:to="loc_us-gaap_DebtCurrent_a427edaf-8879-45f9-b82f-e60974d52bd0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_d2fd1dad-15e1-49ce-a3ed-18e9f968ffbd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedIncomeTaxesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_8e74c79a-2ba1-4cb0-9ff5-9aa5d7aa2560" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_d2fd1dad-15e1-49ce-a3ed-18e9f968ffbd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_e6c396ff-f7f6-4079-b2c5-f4ec4ec49278" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_8e74c79a-2ba1-4cb0-9ff5-9aa5d7aa2560" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_e6c396ff-f7f6-4079-b2c5-f4ec4ec49278" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_09afa90d-1e94-41aa-9840-7183b86e21f4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_8e74c79a-2ba1-4cb0-9ff5-9aa5d7aa2560" xlink:to="loc_us-gaap_AccountsPayableCurrent_09afa90d-1e94-41aa-9840-7183b86e21f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_f3c81690-f091-4f29-b0c2-367f35d23736" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_d0f2466e-055c-46a3-883a-224d887815e3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_f3c81690-f091-4f29-b0c2-367f35d23736" xlink:to="loc_us-gaap_Liabilities_d0f2466e-055c-46a3-883a-224d887815e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_37c435f7-e6bf-44a6-a1d7-f70dd599ef66" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_f3c81690-f091-4f29-b0c2-367f35d23736" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_37c435f7-e6bf-44a6-a1d7-f70dd599ef66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_2fd29cf5-2798-4436-8031-5124455c8f72" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_f3c81690-f091-4f29-b0c2-367f35d23736" xlink:to="loc_us-gaap_CommitmentsAndContingencies_2fd29cf5-2798-4436-8031-5124455c8f72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_9f52929a-a1e0-4674-a9b1-f7ad989c4a39" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_d8cf9400-53ad-4fdb-9173-7523214afd87" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_9f52929a-a1e0-4674-a9b1-f7ad989c4a39" xlink:to="loc_us-gaap_PreferredStockValue_d8cf9400-53ad-4fdb-9173-7523214afd87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_cc42f9bb-c2c1-4d5e-88a7-3d780930c6fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_9f52929a-a1e0-4674-a9b1-f7ad989c4a39" xlink:to="loc_us-gaap_CommonStockValue_cc42f9bb-c2c1-4d5e-88a7-3d780930c6fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_3a69080f-3f2e-48b8-9984-85cc7d4d131f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_9f52929a-a1e0-4674-a9b1-f7ad989c4a39" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_3a69080f-3f2e-48b8-9984-85cc7d4d131f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_99f894af-396e-431c-a214-e63eec1fa180" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_9f52929a-a1e0-4674-a9b1-f7ad989c4a39" xlink:to="loc_us-gaap_AdditionalPaidInCapital_99f894af-396e-431c-a214-e63eec1fa180" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_cccce124-c2ff-4710-9f8e-1db48ee1a7c2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_9f52929a-a1e0-4674-a9b1-f7ad989c4a39" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_cccce124-c2ff-4710-9f8e-1db48ee1a7c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_ee8a2110-dc21-4eb8-aeb4-c365bb7a8cb4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_dc172cdc-2b44-43eb-bb19-cc9df5f6a344" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_ee8a2110-dc21-4eb8-aeb4-c365bb7a8cb4" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_dc172cdc-2b44-43eb-bb19-cc9df5f6a344" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_3466b23f-a9f5-4b66-8888-76b41d65419d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_ee8a2110-dc21-4eb8-aeb4-c365bb7a8cb4" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_3466b23f-a9f5-4b66-8888-76b41d65419d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_08b3a015-87d7-4da9-8a0f-97fc89defb7a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_AssetsCurrent_ee8a2110-dc21-4eb8-aeb4-c365bb7a8cb4" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_08b3a015-87d7-4da9-8a0f-97fc89defb7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesCurrent_0353a1d2-e0db-40f9-9525-84f7ffa0344d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_ee8a2110-dc21-4eb8-aeb4-c365bb7a8cb4" xlink:to="loc_us-gaap_DebtSecuritiesCurrent_0353a1d2-e0db-40f9-9525-84f7ffa0344d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_f79efc97-239a-4de3-abe8-255852aa9719" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_ee8a2110-dc21-4eb8-aeb4-c365bb7a8cb4" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_f79efc97-239a-4de3-abe8-255852aa9719" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_392999c8-b57c-49d9-86f5-432d76a6b702" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_a6772358-0b71-40b4-b386-b2c61f0252eb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_392999c8-b57c-49d9-86f5-432d76a6b702" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_a6772358-0b71-40b4-b386-b2c61f0252eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesNoncurrent_64a7a9bd-9abb-4d6c-86bc-ba0ff35cf6ca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_392999c8-b57c-49d9-86f5-432d76a6b702" xlink:to="loc_us-gaap_DebtSecuritiesNoncurrent_64a7a9bd-9abb-4d6c-86bc-ba0ff35cf6ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashNoncurrent_7707fb6a-5727-48d5-b3ed-66c965dc4a92" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedCashNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_392999c8-b57c-49d9-86f5-432d76a6b702" xlink:to="loc_us-gaap_RestrictedCashNoncurrent_7707fb6a-5727-48d5-b3ed-66c965dc4a92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_e6bb0c38-9973-458d-8192-c071c8679bad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_392999c8-b57c-49d9-86f5-432d76a6b702" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_e6bb0c38-9973-458d-8192-c071c8679bad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFVNINoncurrent_03f35bf3-0e7b-4a73-bb32-e6a6a1f61a83" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesFVNINoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_392999c8-b57c-49d9-86f5-432d76a6b702" xlink:to="loc_us-gaap_EquitySecuritiesFVNINoncurrent_03f35bf3-0e7b-4a73-bb32-e6a6a1f61a83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_a9682c19-03b2-47f3-9587-1d82ccfa11d6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_392999c8-b57c-49d9-86f5-432d76a6b702" xlink:to="loc_us-gaap_AssetsCurrent_a9682c19-03b2-47f3-9587-1d82ccfa11d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0c1317ae-0263-49cf-9862-5764aaf4002c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_392999c8-b57c-49d9-86f5-432d76a6b702" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0c1317ae-0263-49cf-9862-5764aaf4002c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_7df9db02-12ab-4d2f-b343-555cd37e5cc8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_392999c8-b57c-49d9-86f5-432d76a6b702" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_7df9db02-12ab-4d2f-b343-555cd37e5cc8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_25b8dcfb-43ab-4013-95cf-c6f0c5f8e081" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesPayableCurrentAndNoncurrent_d85a81b2-54d2-4fcd-9aa1-2059b98ddcfa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxesPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_25b8dcfb-43ab-4013-95cf-c6f0c5f8e081" xlink:to="loc_us-gaap_TaxesPayableCurrentAndNoncurrent_d85a81b2-54d2-4fcd-9aa1-2059b98ddcfa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_7340697d-024f-4178-87b3-21e645b07c60" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_25b8dcfb-43ab-4013-95cf-c6f0c5f8e081" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_7340697d-024f-4178-87b3-21e645b07c60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_48e1b6af-804a-431c-a3f1-f0420ef6d97e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_25b8dcfb-43ab-4013-95cf-c6f0c5f8e081" xlink:to="loc_us-gaap_LiabilitiesCurrent_48e1b6af-804a-431c-a3f1-f0420ef6d97e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_f0f4c2da-06e4-4727-a237-5d059e8f449d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_25b8dcfb-43ab-4013-95cf-c6f0c5f8e081" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_f0f4c2da-06e4-4727-a237-5d059e8f449d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_f394441b-3943-4a89-8bda-948d63498646" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterest_2dec01c9-f8f0-4987-9e47-910e3a22bf55" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MinorityInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_f394441b-3943-4a89-8bda-948d63498646" xlink:to="loc_us-gaap_MinorityInterest_2dec01c9-f8f0-4987-9e47-910e3a22bf55" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_0214b627-f8cb-4a62-a867-7c57582da673" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_f394441b-3943-4a89-8bda-948d63498646" xlink:to="loc_us-gaap_StockholdersEquity_0214b627-f8cb-4a62-a867-7c57582da673" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xencor.com/role/ConsolidatedStatementsofLoss" xlink:type="simple" xlink:href="xncr-20241231.xsd#ConsolidatedStatementsofLoss"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/ConsolidatedStatementsofLoss" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_bdcf34bd-666a-41d9-b73b-433929fd66dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_28e33ad6-1c2d-4549-9446-c80d0e03d7fb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_bdcf34bd-666a-41d9-b73b-433929fd66dd" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_28e33ad6-1c2d-4549-9446-c80d0e03d7fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_b6c665cb-570f-4471-bd55-f4ed969dbd39" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_bdcf34bd-666a-41d9-b73b-433929fd66dd" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_b6c665cb-570f-4471-bd55-f4ed969dbd39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_dc7e7e2d-0021-4e97-8362-72d83b23e8f6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_bdcf34bd-666a-41d9-b73b-433929fd66dd" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_dc7e7e2d-0021-4e97-8362-72d83b23e8f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiGainLoss_d3090867-1e12-413c-ad69-364168645208" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesFvNiGainLoss"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_bdcf34bd-666a-41d9-b73b-433929fd66dd" xlink:to="loc_us-gaap_EquitySecuritiesFvNiGainLoss_d3090867-1e12-413c-ad69-364168645208" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseNonoperating_72e6bddb-d8ea-4042-a59e-e9d82d9c405d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpenseNonoperating"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_bdcf34bd-666a-41d9-b73b-433929fd66dd" xlink:to="loc_us-gaap_InterestExpenseNonoperating_72e6bddb-d8ea-4042-a59e-e9d82d9c405d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_50351d5e-1bd0-47d6-aff5-5845f7bf78b7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_f608c679-d04d-4169-93a9-ccc620978189" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_50351d5e-1bd0-47d6-aff5-5845f7bf78b7" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_f608c679-d04d-4169-93a9-ccc620978189" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_b23736ad-02d4-4a5d-b78d-eae5e21ea21a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_50351d5e-1bd0-47d6-aff5-5845f7bf78b7" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_b23736ad-02d4-4a5d-b78d-eae5e21ea21a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_a2219fd4-9ca5-4f7c-9f06-3c1b16efc481" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_c120a6f3-98c0-40e6-8b40-ff530710956c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_a2219fd4-9ca5-4f7c-9f06-3c1b16efc481" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_c120a6f3-98c0-40e6-8b40-ff530710956c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_f277a69c-7e7d-4282-b7c1-352461d9b148" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingExpenses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_a2219fd4-9ca5-4f7c-9f06-3c1b16efc481" xlink:to="loc_us-gaap_OperatingExpenses_f277a69c-7e7d-4282-b7c1-352461d9b148" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_6ea70d34-706a-482a-81eb-4bc5313a59f5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_bc2f05d6-f33b-42e8-8ca6-3f3bbdef832c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_6ea70d34-706a-482a-81eb-4bc5313a59f5" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_bc2f05d6-f33b-42e8-8ca6-3f3bbdef832c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_9b454217-11bf-4881-b3ce-3824a7191b3f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_6ea70d34-706a-482a-81eb-4bc5313a59f5" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_9b454217-11bf-4881-b3ce-3824a7191b3f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_d975a8dd-9b5e-4ef4-ad83-e5bba9a0cd61" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_d6577323-8e94-47fd-83b6-027f23dc45f7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_d975a8dd-9b5e-4ef4-ad83-e5bba9a0cd61" xlink:to="loc_us-gaap_OperatingIncomeLoss_d6577323-8e94-47fd-83b6-027f23dc45f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_92c9e54d-e12a-4266-bbf0-6526550d24bc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_d975a8dd-9b5e-4ef4-ad83-e5bba9a0cd61" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_92c9e54d-e12a-4266-bbf0-6526550d24bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_f05958d8-4253-44ce-87fa-80f43b7908a3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_ea0bee9f-cb79-4fd3-b853-af106b3a89a2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_f05958d8-4253-44ce-87fa-80f43b7908a3" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_ea0bee9f-cb79-4fd3-b853-af106b3a89a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_492fd7b8-bb98-4772-a860-078268579388" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_f05958d8-4253-44ce-87fa-80f43b7908a3" xlink:to="loc_us-gaap_ProfitLoss_492fd7b8-bb98-4772-a860-078268579388" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xencor.com/role/ConsolidatedStatementsofComprehensiveLoss" xlink:type="simple" xlink:href="xncr-20241231.xsd#ConsolidatedStatementsofComprehensiveLoss"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/ConsolidatedStatementsofComprehensiveLoss" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_8b307519-b6fe-4cca-aac9-2060404308ee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_5a691fae-a9d6-4a7e-8f84-f5f59d2571f5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_8b307519-b6fe-4cca-aac9-2060404308ee" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_5a691fae-a9d6-4a7e-8f84-f5f59d2571f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_ee89e36d-68fc-4149-b892-74972e10c07e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_8b307519-b6fe-4cca-aac9-2060404308ee" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_ee89e36d-68fc-4149-b892-74972e10c07e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_8bce8c3f-4a5a-4acb-846f-ec0d6030a4d6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_8457f099-f1de-4b35-9785-419ee58b1387" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_8bce8c3f-4a5a-4acb-846f-ec0d6030a4d6" xlink:to="loc_us-gaap_ProfitLoss_8457f099-f1de-4b35-9785-419ee58b1387" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_05240ae0-69a6-4f29-b00d-774d65c9f386" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_8bce8c3f-4a5a-4acb-846f-ec0d6030a4d6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_05240ae0-69a6-4f29-b00d-774d65c9f386" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xencor.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="xncr-20241231.xsd#ConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/ConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_NoncashInterestExpense_66c03c08-d95c-47c2-9346-0e457a1e3dd0" xlink:href="xncr-20241231.xsd#xncr_NoncashInterestExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_xncr_NoncashInterestExpense_66c03c08-d95c-47c2-9346-0e457a1e3dd0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesReceivable_207cf37e-82b8-47bf-85a9-41f60067d120" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesReceivable"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesReceivable_207cf37e-82b8-47bf-85a9-41f60067d120" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_NoncashConsiderationReceivedFromRevenueContracts_c2856988-6bad-4995-a40e-11d7b5a15aa4" xlink:href="xncr-20241231.xsd#xncr_NoncashConsiderationReceivedFromRevenueContracts"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_xncr_NoncashConsiderationReceivedFromRevenueContracts_c2856988-6bad-4995-a40e-11d7b5a15aa4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_NoncashRoyaltyRevenue_03fe1a8b-2d37-45a7-b41a-9212cdb434c2" xlink:href="xncr-20241231.xsd#xncr_NoncashRoyaltyRevenue"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_xncr_NoncashRoyaltyRevenue_03fe1a8b-2d37-45a7-b41a-9212cdb434c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_ba76b78e-2fae-4830-860e-5b20653a4916" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_ba76b78e-2fae-4830-860e-5b20653a4916" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MarketableSecuritiesRealizedGainLossExcludingOtherThanTemporaryImpairments_30ed6be9-ba24-4cf9-9214-af8ebead7159" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MarketableSecuritiesRealizedGainLossExcludingOtherThanTemporaryImpairments"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_us-gaap_MarketableSecuritiesRealizedGainLossExcludingOtherThanTemporaryImpairments_30ed6be9-ba24-4cf9-9214-af8ebead7159" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_d957d126-0f91-444b-bcfa-4c42f8bae14d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_us-gaap_ProfitLoss_d957d126-0f91-444b-bcfa-4c42f8bae14d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_IncreaseDecreaseInAccountsAndOtherReceivablesAndContractWithCustomerAssets_d95bea70-8800-41a5-a7e5-36be41c22b1c" xlink:href="xncr-20241231.xsd#xncr_IncreaseDecreaseInAccountsAndOtherReceivablesAndContractWithCustomerAssets"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_xncr_IncreaseDecreaseInAccountsAndOtherReceivablesAndContractWithCustomerAssets_d95bea70-8800-41a5-a7e5-36be41c22b1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiGainLoss_36edba65-be8f-46b2-9212-beb92be82559" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesFvNiGainLoss"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_us-gaap_EquitySecuritiesFvNiGainLoss_36edba65-be8f-46b2-9212-beb92be82559" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_4345f35c-5051-4b90-9648-264a1ff8971b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_4345f35c-5051-4b90-9648-264a1ff8971b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_4aeae4b8-b2ea-4937-8e69-cbb3aeec3cd7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_4aeae4b8-b2ea-4937-8e69-cbb3aeec3cd7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_8fb0a951-b230-4173-9f1d-476257b37de6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_8fb0a951-b230-4173-9f1d-476257b37de6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_e50fa071-3b4a-4355-8333-5cb63418708b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_e50fa071-3b4a-4355-8333-5cb63418708b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_3457af06-6daf-49bd-b145-31355afec39b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_3457af06-6daf-49bd-b145-31355afec39b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_69f7c6af-a738-4d6c-9224-7b6b81df888a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_us-gaap_ShareBasedCompensation_69f7c6af-a738-4d6c-9224-7b6b81df888a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_IncreaseDecreaseInLeaseLiabilitiesAndRightOfUseAssets_9b82f11f-920b-45d7-9613-7dea0d4f783d" xlink:href="xncr-20241231.xsd#xncr_IncreaseDecreaseInLeaseLiabilitiesAndRightOfUseAssets"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_xncr_IncreaseDecreaseInLeaseLiabilitiesAndRightOfUseAssets_9b82f11f-920b-45d7-9613-7dea0d4f783d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_03eeda7b-5fbd-4350-8d3a-e75596d5da49" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_03eeda7b-5fbd-4350-8d3a-e75596d5da49" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_bfb4aee6-84cc-4e99-919b-166c18555fa9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="18" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_bfb4aee6-84cc-4e99-919b-166c18555fa9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncashProjectAbandonmentCosts_b4035a8b-74d4-4f5b-bd26-2712e43b8b8a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NoncashProjectAbandonmentCosts"/>
    <link:calculationArc order="19" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_us-gaap_NoncashProjectAbandonmentCosts_b4035a8b-74d4-4f5b-bd26-2712e43b8b8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_acf7202e-22b2-4607-8c69-ce5ffac9cbb9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:calculationArc order="20" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2a74e271-af1a-4c56-8de3-beceaab2e85c" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_acf7202e-22b2-4607-8c69-ce5ffac9cbb9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_d5abe07e-f960-4596-aa9c-ed599a50ab4f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_cd63a060-aee6-4ad3-8976-2f848c7bb97f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_d5abe07e-f960-4596-aa9c-ed599a50ab4f" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_cd63a060-aee6-4ad3-8976-2f848c7bb97f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5f8d52f4-0326-4497-b4e5-ef5aa49476ca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_d5abe07e-f960-4596-aa9c-ed599a50ab4f" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5f8d52f4-0326-4497-b4e5-ef5aa49476ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_03728736-614e-4765-aa88-a4d67b7dcc86" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_d5abe07e-f960-4596-aa9c-ed599a50ab4f" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_03728736-614e-4765-aa88-a4d67b7dcc86" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_35cba6cc-8149-4939-96ea-8e29dddb4751" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMinorityShareholders_1923f44e-719a-4412-b008-d93557d77eeb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromMinorityShareholders"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_35cba6cc-8149-4939-96ea-8e29dddb4751" xlink:to="loc_us-gaap_ProceedsFromMinorityShareholders_1923f44e-719a-4412-b008-d93557d77eeb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions_7a2d7bf5-a721-45c1-8c8c-a977aa749cd3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_35cba6cc-8149-4939-96ea-8e29dddb4751" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions_7a2d7bf5-a721-45c1-8c8c-a977aa749cd3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_de04cc66-8e7d-4b81-bd66-08fd8648d160" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_35cba6cc-8149-4939-96ea-8e29dddb4751" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_de04cc66-8e7d-4b81-bd66-08fd8648d160" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_eff74026-86ea-41b2-9e31-cabfa8a86267" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_35cba6cc-8149-4939-96ea-8e29dddb4751" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_eff74026-86ea-41b2-9e31-cabfa8a86267" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_ProceedsFromFutureSaleOfRoyalties_98e2fcf0-0944-43bb-af9e-9d69ed8a338a" xlink:href="xncr-20241231.xsd#xncr_ProceedsFromFutureSaleOfRoyalties"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_35cba6cc-8149-4939-96ea-8e29dddb4751" xlink:to="loc_xncr_ProceedsFromFutureSaleOfRoyalties_98e2fcf0-0944-43bb-af9e-9d69ed8a338a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockPlans_d23b4965-d8df-4deb-8d24-a6a165a3c10d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromStockPlans"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_35cba6cc-8149-4939-96ea-8e29dddb4751" xlink:to="loc_us-gaap_ProceedsFromStockPlans_d23b4965-d8df-4deb-8d24-a6a165a3c10d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_3fd7edf7-9be8-48f5-aea8-5ed886dd1173" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMarketableSecurities_b876c43c-bff0-4755-9ec2-61920b886367" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_3fd7edf7-9be8-48f5-aea8-5ed886dd1173" xlink:to="loc_us-gaap_PaymentsToAcquireMarketableSecurities_b876c43c-bff0-4755-9ec2-61920b886367" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_c5f88c75-2e55-4a75-9466-9142c4d02c04" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_3fd7edf7-9be8-48f5-aea8-5ed886dd1173" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_c5f88c75-2e55-4a75-9466-9142c4d02c04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_c2943091-9c14-4542-a4ac-b7afb8fb03bd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_3fd7edf7-9be8-48f5-aea8-5ed886dd1173" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_c2943091-9c14-4542-a4ac-b7afb8fb03bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfEquitySecuritiesFvNi_2a630430-76dd-41d1-b214-58f702e0eff5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromSaleOfEquitySecuritiesFvNi"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_3fd7edf7-9be8-48f5-aea8-5ed886dd1173" xlink:to="loc_us-gaap_ProceedsFromSaleOfEquitySecuritiesFvNi_2a630430-76dd-41d1-b214-58f702e0eff5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_PaymentsConversionOfNotesReceivable_3656913c-761f-4fee-82c3-1cd83a2aeaf9" xlink:href="xncr-20241231.xsd#xncr_PaymentsConversionOfNotesReceivable"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_3fd7edf7-9be8-48f5-aea8-5ed886dd1173" xlink:to="loc_xncr_PaymentsConversionOfNotesReceivable_3656913c-761f-4fee-82c3-1cd83a2aeaf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_542a0cd8-3eef-44fa-9e8d-c389299f04e1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_3fd7edf7-9be8-48f5-aea8-5ed886dd1173" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_542a0cd8-3eef-44fa-9e8d-c389299f04e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireIntangibleAssets_367806c5-d817-40d9-af05-b48cb6777b13" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquireIntangibleAssets"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_3fd7edf7-9be8-48f5-aea8-5ed886dd1173" xlink:to="loc_us-gaap_PaymentsToAcquireIntangibleAssets_367806c5-d817-40d9-af05-b48cb6777b13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_21f2f04c-249b-4620-9c13-76003a4c8440" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_3fd7edf7-9be8-48f5-aea8-5ed886dd1173" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_21f2f04c-249b-4620-9c13-76003a4c8440" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xencor.com/role/SummaryofSignificantAccountingPoliciesFairValueofFinancialInstrumentsDetails" xlink:type="simple" xlink:href="xncr-20241231.xsd#SummaryofSignificantAccountingPoliciesFairValueofFinancialInstrumentsDetails"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/SummaryofSignificantAccountingPoliciesFairValueofFinancialInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_668a9b4c-4983-4ac7-a9aa-f152b65f19ef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1fd98704-5577-4232-8c46-9ad236691b62" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_AssetsFairValueDisclosure_668a9b4c-4983-4ac7-a9aa-f152b65f19ef" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1fd98704-5577-4232-8c46-9ad236691b62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_cfabb892-1465-47b3-a85d-232b11da139b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_668a9b4c-4983-4ac7-a9aa-f152b65f19ef" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_cfabb892-1465-47b3-a85d-232b11da139b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xencor.com/role/SummaryofSignificantAccountingPoliciesPatentsLicensesandOtherIntangibleAssetsDetails" xlink:type="simple" xlink:href="xncr-20241231.xsd#SummaryofSignificantAccountingPoliciesPatentsLicensesandOtherIntangibleAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/SummaryofSignificantAccountingPoliciesPatentsLicensesandOtherIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_933162c1-e1f2-4251-a1bb-ca0aec78cb17" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_e0796b41-8347-400d-b41b-7093387ca474" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_933162c1-e1f2-4251-a1bb-ca0aec78cb17" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_e0796b41-8347-400d-b41b-7093387ca474" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_ccbf4886-0f82-4ea4-9c72-0735479a359d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_933162c1-e1f2-4251-a1bb-ca0aec78cb17" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_ccbf4886-0f82-4ea4-9c72-0735479a359d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_5bd317a6-1d9c-4455-b631-6ebab23858fe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_933162c1-e1f2-4251-a1bb-ca0aec78cb17" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_5bd317a6-1d9c-4455-b631-6ebab23858fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_d8956984-11b8-4fbd-b477-8d3d8499ba40" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_933162c1-e1f2-4251-a1bb-ca0aec78cb17" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_d8956984-11b8-4fbd-b477-8d3d8499ba40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_e8f74bb5-cbc6-45c0-92d5-328750b23783" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_933162c1-e1f2-4251-a1bb-ca0aec78cb17" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_e8f74bb5-cbc6-45c0-92d5-328750b23783" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_71558642-3467-47f4-89e8-608f1c32dee2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_933162c1-e1f2-4251-a1bb-ca0aec78cb17" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_71558642-3467-47f4-89e8-608f1c32dee2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xencor.com/role/MarketableDebtandEquitySecuritiesScheduleofmarketablesecuritiesDetails" xlink:type="simple" xlink:href="xncr-20241231.xsd#MarketableDebtandEquitySecuritiesScheduleofmarketablesecuritiesDetails"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/MarketableDebtandEquitySecuritiesScheduleofmarketablesecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_xncr_CashAndCashEquivalentsAndMarketableSecuritiesAmortizedCost_2804e38b-cdb1-476e-a7df-7c30e5af9940" xlink:href="xncr-20241231.xsd#xncr_CashAndCashEquivalentsAndMarketableSecuritiesAmortizedCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_3ae89176-abaf-4733-b4a0-f30c5942af5a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_xncr_CashAndCashEquivalentsAndMarketableSecuritiesAmortizedCost_2804e38b-cdb1-476e-a7df-7c30e5af9940" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_3ae89176-abaf-4733-b4a0-f30c5942af5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_19fe3277-af85-4aac-b666-6a95863665a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Investments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_xncr_CashAndCashEquivalentsAndMarketableSecuritiesAmortizedCost_2804e38b-cdb1-476e-a7df-7c30e5af9940" xlink:to="loc_us-gaap_Investments_19fe3277-af85-4aac-b666-6a95863665a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_1b13a50f-6f2e-47da-a4ea-8965baee48cd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_xncr_CashAndCashEquivalentsAndMarketableSecuritiesAmortizedCost_2804e38b-cdb1-476e-a7df-7c30e5af9940" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_1b13a50f-6f2e-47da-a4ea-8965baee48cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_a1805f72-05e7-4986-8c50-f33bacf38538" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_08608acb-8dfd-4681-a7b0-d82becb2e8c4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_a1805f72-05e7-4986-8c50-f33bacf38538" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_08608acb-8dfd-4681-a7b0-d82becb2e8c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_32ace3c9-6ec7-464d-98b1-bc26069a2730" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_a1805f72-05e7-4986-8c50-f33bacf38538" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_32ace3c9-6ec7-464d-98b1-bc26069a2730" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_a37992b4-874f-4b2f-a08a-b4700ea5b542" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_a1805f72-05e7-4986-8c50-f33bacf38538" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_a37992b4-874f-4b2f-a08a-b4700ea5b542" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xencor.com/role/MarketableDebtandEquitySecuritiesMaturitiesDetails" xlink:type="simple" xlink:href="xncr-20241231.xsd#MarketableDebtandEquitySecuritiesMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/MarketableDebtandEquitySecuritiesMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_50ef943d-e72d-4897-beca-3ebb659e5ed1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_3100852e-c7cb-4392-a699-1a9db170f20b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_50ef943d-e72d-4897-beca-3ebb659e5ed1" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_3100852e-c7cb-4392-a699-1a9db170f20b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_bb87c593-e383-4c4b-9ed6-e6d8615f3a31" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_50ef943d-e72d-4897-beca-3ebb659e5ed1" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_bb87c593-e383-4c4b-9ed6-e6d8615f3a31" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_2afe0aa6-4b65-4a03-9e9f-d0ba60ded868" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_27588dc6-bc26-42f0-bc0d-0acc28ff94c4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_2afe0aa6-4b65-4a03-9e9f-d0ba60ded868" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_27588dc6-bc26-42f0-bc0d-0acc28ff94c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_56643adb-d74f-4117-98b3-7f35bdf9985b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_2afe0aa6-4b65-4a03-9e9f-d0ba60ded868" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_56643adb-d74f-4117-98b3-7f35bdf9985b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xencor.com/role/MarketableDebtandEquitySecuritiesNetGainsandLossesDetails" xlink:type="simple" xlink:href="xncr-20241231.xsd#MarketableDebtandEquitySecuritiesNetGainsandLossesDetails"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/MarketableDebtandEquitySecuritiesNetGainsandLossesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiGainLoss_b2a40dec-0e36-40b9-b825-fe551fa91e71" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesFvNiGainLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiRealizedGainLoss_8e41b97f-2702-48f0-a740-8bf7d43ccb40" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesFvNiRealizedGainLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EquitySecuritiesFvNiGainLoss_b2a40dec-0e36-40b9-b825-fe551fa91e71" xlink:to="loc_us-gaap_EquitySecuritiesFvNiRealizedGainLoss_8e41b97f-2702-48f0-a740-8bf7d43ccb40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_93d1b211-6477-4842-8567-8c970d4d9444" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EquitySecuritiesFvNiGainLoss_b2a40dec-0e36-40b9-b825-fe551fa91e71" xlink:to="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_93d1b211-6477-4842-8567-8c970d4d9444" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xencor.com/role/PropertyandEquipmentDetails" xlink:type="simple" xlink:href="xncr-20241231.xsd#PropertyandEquipmentDetails"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/PropertyandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_ee52ca67-e51a-4356-b9fb-6c7c3bead507" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_56b4ca48-79fe-4f10-920e-d3dd479fd422" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_ee52ca67-e51a-4356-b9fb-6c7c3bead507" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_56b4ca48-79fe-4f10-920e-d3dd479fd422" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_ec06fce7-d18c-4406-9d47-fa6293737929" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_ee52ca67-e51a-4356-b9fb-6c7c3bead507" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_ec06fce7-d18c-4406-9d47-fa6293737929" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xencor.com/role/IncomeTaxesScheduleofComponentsonIncomeTaxExpenseDetails" xlink:type="simple" xlink:href="xncr-20241231.xsd#IncomeTaxesScheduleofComponentsonIncomeTaxExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/IncomeTaxesScheduleofComponentsonIncomeTaxExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d420e801-0aa2-4352-9a86-673d0a6d2993" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_216f3820-93f5-40b4-8bbe-1b5b807798c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d420e801-0aa2-4352-9a86-673d0a6d2993" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_216f3820-93f5-40b4-8bbe-1b5b807798c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_8355b449-f34c-428b-900e-e440d743cea5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d420e801-0aa2-4352-9a86-673d0a6d2993" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_8355b449-f34c-428b-900e-e440d743cea5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_dc45d491-0d8c-488b-a633-7d4b341b7264" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_4202a1f5-7d55-40a2-b0aa-65bf5a42edfc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_dc45d491-0d8c-488b-a633-7d4b341b7264" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_4202a1f5-7d55-40a2-b0aa-65bf5a42edfc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalStateAndLocalTaxExpenseBenefit_4f5c9509-1407-4dde-b468-b043690f3851" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredFederalStateAndLocalTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_dc45d491-0d8c-488b-a633-7d4b341b7264" xlink:to="loc_us-gaap_DeferredFederalStateAndLocalTaxExpenseBenefit_4f5c9509-1407-4dde-b468-b043690f3851" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_926ad9c4-e69f-4b3f-9cb2-bdb051401111" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_0998121b-1e33-4032-931f-98c63334fa98" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_926ad9c4-e69f-4b3f-9cb2-bdb051401111" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_0998121b-1e33-4032-931f-98c63334fa98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_1ecffc91-0b9d-4326-95be-dc0fffb2d21f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_926ad9c4-e69f-4b3f-9cb2-bdb051401111" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_1ecffc91-0b9d-4326-95be-dc0fffb2d21f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xencor.com/role/IncomeTaxesReconciliationtoeffectiveincometaxDetails" xlink:type="simple" xlink:href="xncr-20241231.xsd#IncomeTaxesReconciliationtoeffectiveincometaxDetails"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/IncomeTaxesReconciliationtoeffectiveincometaxDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_8cb01c93-42e4-4bf2-a4a0-4ec96a6bfc72" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_EffectiveIncomeTaxRateReconciliationChangeInStateRateAmount_2ccf2f5b-2342-4f90-bf2b-764c2991c699" xlink:href="xncr-20241231.xsd#xncr_EffectiveIncomeTaxRateReconciliationChangeInStateRateAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_8cb01c93-42e4-4bf2-a4a0-4ec96a6bfc72" xlink:to="loc_xncr_EffectiveIncomeTaxRateReconciliationChangeInStateRateAmount_2ccf2f5b-2342-4f90-bf2b-764c2991c699" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_EffectiveIncomeTaxRateReconciliationDeferredTaxAdjustment_317eab47-bf00-4da8-9248-f9594b5d8a3c" xlink:href="xncr-20241231.xsd#xncr_EffectiveIncomeTaxRateReconciliationDeferredTaxAdjustment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_8cb01c93-42e4-4bf2-a4a0-4ec96a6bfc72" xlink:to="loc_xncr_EffectiveIncomeTaxRateReconciliationDeferredTaxAdjustment_317eab47-bf00-4da8-9248-f9594b5d8a3c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_75ebfe5b-62e5-4aa4-ad86-ae4123192ccf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_8cb01c93-42e4-4bf2-a4a0-4ec96a6bfc72" xlink:to="loc_us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_75ebfe5b-62e5-4aa4-ad86-ae4123192ccf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_IncomeTaxReconciliationResearchAndDevelopmentCredit_ab8aab3f-42ef-407a-9f3f-130cc728fa5e" xlink:href="xncr-20241231.xsd#xncr_IncomeTaxReconciliationResearchAndDevelopmentCredit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_8cb01c93-42e4-4bf2-a4a0-4ec96a6bfc72" xlink:to="loc_xncr_IncomeTaxReconciliationResearchAndDevelopmentCredit_ab8aab3f-42ef-407a-9f3f-130cc728fa5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_7e7ec4f7-1775-4659-bd0a-2fbc72e2e228" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_8cb01c93-42e4-4bf2-a4a0-4ec96a6bfc72" xlink:to="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_7e7ec4f7-1775-4659-bd0a-2fbc72e2e228" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationFdiiAmount_cd03d2fd-6b94-4501-b79d-ecf3658aef16" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationFdiiAmount"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_8cb01c93-42e4-4bf2-a4a0-4ec96a6bfc72" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationFdiiAmount_cd03d2fd-6b94-4501-b79d-ecf3658aef16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationOtherAdjustments_ee1a5efd-57e4-4c61-a78e-3d3f3ebd1d5e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxReconciliationOtherAdjustments"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_8cb01c93-42e4-4bf2-a4a0-4ec96a6bfc72" xlink:to="loc_us-gaap_IncomeTaxReconciliationOtherAdjustments_ee1a5efd-57e4-4c61-a78e-3d3f3ebd1d5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_88780df0-4ce0-4e0f-9f40-312a183d71c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_8cb01c93-42e4-4bf2-a4a0-4ec96a6bfc72" xlink:to="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_88780df0-4ce0-4e0f-9f40-312a183d71c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_EffectiveIncomeTaxRateReconciliationUncertainTaxPosition_ea803f4a-6450-499a-ac02-bf4944cdcf54" xlink:href="xncr-20241231.xsd#xncr_EffectiveIncomeTaxRateReconciliationUncertainTaxPosition"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_8cb01c93-42e4-4bf2-a4a0-4ec96a6bfc72" xlink:to="loc_xncr_EffectiveIncomeTaxRateReconciliationUncertainTaxPosition_ea803f4a-6450-499a-ac02-bf4944cdcf54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost_ee4d5901-fd94-4656-9e3a-553b21d50711" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_8cb01c93-42e4-4bf2-a4a0-4ec96a6bfc72" xlink:to="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost_ee4d5901-fd94-4656-9e3a-553b21d50711" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xencor.com/role/IncomeTaxesDeferredtaxassetsandliabilitiesDetails" xlink:type="simple" xlink:href="xncr-20241231.xsd#IncomeTaxesDeferredtaxassetsandliabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/IncomeTaxesDeferredtaxassetsandliabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_305cfea7-c67c-48db-b11a-83b2e557abbb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_4456f8f1-3bd5-4d1e-bc84-a85f7ad4a6b8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_305cfea7-c67c-48db-b11a-83b2e557abbb" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_4456f8f1-3bd5-4d1e-bc84-a85f7ad4a6b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_cc2815ec-6692-4c6b-8fcc-bc4670f36808" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_305cfea7-c67c-48db-b11a-83b2e557abbb" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_cc2815ec-6692-4c6b-8fcc-bc4670f36808" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_b0e31f22-1580-4139-be22-1053022ea112" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_DeferredTaxLiabilitiesLicenseCosts_85383856-1705-4475-a20f-e6b50e25f406" xlink:href="xncr-20241231.xsd#xncr_DeferredTaxLiabilitiesLicenseCosts"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_b0e31f22-1580-4139-be22-1053022ea112" xlink:to="loc_xncr_DeferredTaxLiabilitiesLicenseCosts_85383856-1705-4475-a20f-e6b50e25f406" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_DeferredTaxLiabilitiesCapitalizedLegalCosts_580187c2-876f-4b55-948b-00d5cd296bd5" xlink:href="xncr-20241231.xsd#xncr_DeferredTaxLiabilitiesCapitalizedLegalCosts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_b0e31f22-1580-4139-be22-1053022ea112" xlink:to="loc_xncr_DeferredTaxLiabilitiesCapitalizedLegalCosts_580187c2-876f-4b55-948b-00d5cd296bd5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_e2ead982-0a44-4160-9130-aec52b29098c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxLiabilitiesLeasingArrangements"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_b0e31f22-1580-4139-be22-1053022ea112" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_e2ead982-0a44-4160-9130-aec52b29098c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_eccc7506-0796-4c21-9f13-1989ddf09937" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_b0e31f22-1580-4139-be22-1053022ea112" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_eccc7506-0796-4c21-9f13-1989ddf09937" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOtherComprehensiveIncome_48baf618-cf89-43e1-a429-d807384b0fa0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxLiabilitiesOtherComprehensiveIncome"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_b0e31f22-1580-4139-be22-1053022ea112" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOtherComprehensiveIncome_48baf618-cf89-43e1-a429-d807384b0fa0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedPatentCosts_f1eee35f-dd36-44ae-b896-a177a98b7258" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedPatentCosts"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_b0e31f22-1580-4139-be22-1053022ea112" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedPatentCosts_f1eee35f-dd36-44ae-b896-a177a98b7258" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_b038fdc7-b681-4e5a-ab5f-842ab47d0267" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_DeferredTaxAssetsCapitalizedLeaseAssets_47fb310b-241a-4fd3-ad2b-a2a4af480572" xlink:href="xncr-20241231.xsd#xncr_DeferredTaxAssetsCapitalizedLeaseAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b038fdc7-b681-4e5a-ab5f-842ab47d0267" xlink:to="loc_xncr_DeferredTaxAssetsCapitalizedLeaseAssets_47fb310b-241a-4fd3-ad2b-a2a4af480572" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsDeferredIncome_99bd9941-fcad-4991-a1fa-9240431b5362" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsDeferredIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b038fdc7-b681-4e5a-ab5f-842ab47d0267" xlink:to="loc_us-gaap_DeferredTaxAssetsDeferredIncome_99bd9941-fcad-4991-a1fa-9240431b5362" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_DeferredTaxAssetsLicenseCosts_971b2da2-028c-43ab-80df-8366e241ddcf" xlink:href="xncr-20241231.xsd#xncr_DeferredTaxAssetsLicenseCosts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b038fdc7-b681-4e5a-ab5f-842ab47d0267" xlink:to="loc_xncr_DeferredTaxAssetsLicenseCosts_971b2da2-028c-43ab-80df-8366e241ddcf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation_b0e5b0c3-684a-4420-8f69-e061d3b5f80b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b038fdc7-b681-4e5a-ab5f-842ab47d0267" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation_b0e5b0c3-684a-4420-8f69-e061d3b5f80b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_DeferredTaxAssetsEquitySecuritiesImpairment_4426f67a-91a6-400c-9f44-f66fe0878716" xlink:href="xncr-20241231.xsd#xncr_DeferredTaxAssetsEquitySecuritiesImpairment"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b038fdc7-b681-4e5a-ab5f-842ab47d0267" xlink:to="loc_xncr_DeferredTaxAssetsEquitySecuritiesImpairment_4426f67a-91a6-400c-9f44-f66fe0878716" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_995ab89d-1a74-4d38-a4f0-70ea7e353b71" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b038fdc7-b681-4e5a-ab5f-842ab47d0267" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_995ab89d-1a74-4d38-a4f0-70ea7e353b71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_DeferredTaxAssetsTaxDeferredExpenseCapitalizedResearchAndExperimentalExpenditures_715ecf24-91a0-4393-b8e3-225d0da3da8d" xlink:href="xncr-20241231.xsd#xncr_DeferredTaxAssetsTaxDeferredExpenseCapitalizedResearchAndExperimentalExpenditures"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b038fdc7-b681-4e5a-ab5f-842ab47d0267" xlink:to="loc_xncr_DeferredTaxAssetsTaxDeferredExpenseCapitalizedResearchAndExperimentalExpenditures_715ecf24-91a0-4393-b8e3-225d0da3da8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_8ac5dcbd-abc0-43d7-a20c-220f967b2238" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b038fdc7-b681-4e5a-ab5f-842ab47d0267" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_8ac5dcbd-abc0-43d7-a20c-220f967b2238" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_7540d1f8-9f02-4e32-8768-8e27beaf6936" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_37b44f1a-0848-4539-a432-918df920eeb8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_7540d1f8-9f02-4e32-8768-8e27beaf6936" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_37b44f1a-0848-4539-a432-918df920eeb8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_4d1ad07b-dceb-40f1-85ac-85e7ce415b2d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_7540d1f8-9f02-4e32-8768-8e27beaf6936" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_4d1ad07b-dceb-40f1-85ac-85e7ce415b2d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xencor.com/role/LeasesUndiscountedCashFlowsDetails" xlink:type="simple" xlink:href="xncr-20241231.xsd#LeasesUndiscountedCashFlowsDetails"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/LeasesUndiscountedCashFlowsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b2d5e7e0-f9be-4f94-b6be-44d63092224b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_ccaea87b-11e5-4b0c-a24a-cc5b8d12dc94" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b2d5e7e0-f9be-4f94-b6be-44d63092224b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_ccaea87b-11e5-4b0c-a24a-cc5b8d12dc94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_5fc440d3-0253-4776-8493-2954e59dc19e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b2d5e7e0-f9be-4f94-b6be-44d63092224b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_5fc440d3-0253-4776-8493-2954e59dc19e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_d73e9da1-ffff-4d52-83ca-60fc09494cbe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b2d5e7e0-f9be-4f94-b6be-44d63092224b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_d73e9da1-ffff-4d52-83ca-60fc09494cbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_7750420d-6bd9-48c6-bf20-f321a49ed177" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b2d5e7e0-f9be-4f94-b6be-44d63092224b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_7750420d-6bd9-48c6-bf20-f321a49ed177" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_e3c67dc0-f6e4-4bab-8e9f-b767f0583644" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b2d5e7e0-f9be-4f94-b6be-44d63092224b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_e3c67dc0-f6e4-4bab-8e9f-b767f0583644" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_2383edc0-690a-4c4e-8afb-1d2a28ef96d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b2d5e7e0-f9be-4f94-b6be-44d63092224b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_2383edc0-690a-4c4e-8afb-1d2a28ef96d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_807aa140-49d1-4636-9d7b-43063d63a8a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_c103790c-46d1-4aad-84f0-319d92508014" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_807aa140-49d1-4636-9d7b-43063d63a8a5" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_c103790c-46d1-4aad-84f0-319d92508014" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_1b684b8b-d43f-443d-b556-3bb4578cd6c2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_807aa140-49d1-4636-9d7b-43063d63a8a5" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_1b684b8b-d43f-443d-b556-3bb4578cd6c2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xencor.com/role/LeasesUndiscountedCashFlowsDetails_1" xlink:type="simple" xlink:href="xncr-20241231.xsd#LeasesUndiscountedCashFlowsDetails_1"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/LeasesUndiscountedCashFlowsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_cda8e462-8385-422c-a7d1-042f9e81bc40" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_LesseeOperatingLeaseLiabilityTenantAllowance_b2d0f47e-5590-4516-a723-6a3ee479ac06" xlink:href="xncr-20241231.xsd#xncr_LesseeOperatingLeaseLiabilityTenantAllowance"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_cda8e462-8385-422c-a7d1-042f9e81bc40" xlink:to="loc_xncr_LesseeOperatingLeaseLiabilityTenantAllowance_b2d0f47e-5590-4516-a723-6a3ee479ac06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_47ae1b00-e87d-4124-9ace-0e9d8efac17f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_cda8e462-8385-422c-a7d1-042f9e81bc40" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_47ae1b00-e87d-4124-9ace-0e9d8efac17f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_1831fa96-11fe-427c-bc6f-6ff88231875f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_cda8e462-8385-422c-a7d1-042f9e81bc40" xlink:to="loc_us-gaap_OperatingLeaseLiability_1831fa96-11fe-427c-bc6f-6ff88231875f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xencor.com/role/LeasesLeaseCostsDetails" xlink:type="simple" xlink:href="xncr-20241231.xsd#LeasesLeaseCostsDetails"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/LeasesLeaseCostsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_7e73ec65-9498-4460-809d-3f36496ad21f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_4a88f495-a56c-4aad-a1da-99762137549b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_7e73ec65-9498-4460-809d-3f36496ad21f" xlink:to="loc_us-gaap_OperatingLeaseCost_4a88f495-a56c-4aad-a1da-99762137549b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableLeaseCost_dcb789ac-f554-4253-96ad-471dc1157c78" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableLeaseCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_7e73ec65-9498-4460-809d-3f36496ad21f" xlink:to="loc_us-gaap_VariableLeaseCost_dcb789ac-f554-4253-96ad-471dc1157c78" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xencor.com/role/SalesofFutureRoyaltiesDebtofFutureRoyaltiesDetails" xlink:type="simple" xlink:href="xncr-20241231.xsd#SalesofFutureRoyaltiesDebtofFutureRoyaltiesDetails"/>
  <link:calculationLink xlink:role="http://www.xencor.com/role/SalesofFutureRoyaltiesDebtofFutureRoyaltiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_xncr_RoyaltyLiabilityDebtLongTermAndShortTermCombinedAmount_b9e68c53-b818-4456-9a9f-13c007823125" xlink:href="xncr-20241231.xsd#xncr_RoyaltyLiabilityDebtLongTermAndShortTermCombinedAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_RoyaltyLiabilitiesLongTermDebt_4750cf5e-488e-41c1-91c1-97f995376c6d" xlink:href="xncr-20241231.xsd#xncr_RoyaltyLiabilitiesLongTermDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_xncr_RoyaltyLiabilityDebtLongTermAndShortTermCombinedAmount_b9e68c53-b818-4456-9a9f-13c007823125" xlink:to="loc_xncr_RoyaltyLiabilitiesLongTermDebt_4750cf5e-488e-41c1-91c1-97f995376c6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xncr_RoyaltyLiabilitiesShortTermDebt_d5918e38-c371-4999-bb09-93d19ff5d36b" xlink:href="xncr-20241231.xsd#xncr_RoyaltyLiabilitiesShortTermDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_xncr_RoyaltyLiabilityDebtLongTermAndShortTermCombinedAmount_b9e68c53-b818-4456-9a9f-13c007823125" xlink:to="loc_xncr_RoyaltyLiabilitiesShortTermDebt_d5918e38-c371-4999-bb09-93d19ff5d36b" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
