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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:285b859d-36e6-43c0-824a-d10cfa6bd997,g:b1db0b17-1dad-4735-9338-84a7e2dd2eb2-->
<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://pubmatic.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="pubm-20240630.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_46521b6e-9300-4335-aadd-9377f81bb142" 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_4da40d2a-fa69-4833-b654-f8aa185658c3" 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_46521b6e-9300-4335-aadd-9377f81bb142" xlink:to="loc_us-gaap_Liabilities_4da40d2a-fa69-4833-b654-f8aa185658c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_98417786-7068-43e7-85b2-935a7a53517e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_46521b6e-9300-4335-aadd-9377f81bb142" xlink:to="loc_us-gaap_CommitmentsAndContingencies_98417786-7068-43e7-85b2-935a7a53517e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_cb506043-9d7e-4979-b42b-00ee3304dd70" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_46521b6e-9300-4335-aadd-9377f81bb142" xlink:to="loc_us-gaap_StockholdersEquity_cb506043-9d7e-4979-b42b-00ee3304dd70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_cbbdb3e0-a4b7-4487-84e7-11dafd587a68" 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_CashAndCashEquivalentsAtCarryingValue_e826ea44-c7ce-4889-ae7e-ac2d5bcbb825" 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_AssetsCurrent_cbbdb3e0-a4b7-4487-84e7-11dafd587a68" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_e826ea44-c7ce-4889-ae7e-ac2d5bcbb825" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_69569757-8526-4b11-8274-b0420b044b29" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_cbbdb3e0-a4b7-4487-84e7-11dafd587a68" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_69569757-8526-4b11-8274-b0420b044b29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_98eaa216-d192-48b1-80a5-fbd889473f1c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_cbbdb3e0-a4b7-4487-84e7-11dafd587a68" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_98eaa216-d192-48b1-80a5-fbd889473f1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_cd46898f-d2d6-4b9d-960e-d87d16ab6404" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_cbbdb3e0-a4b7-4487-84e7-11dafd587a68" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_cd46898f-d2d6-4b9d-960e-d87d16ab6404" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_0a6fc9fb-85e4-4adb-9efc-27c2a02cfd65" 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_d1182668-23ac-4c04-947e-780f1d6c4dbb" 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_0a6fc9fb-85e4-4adb-9efc-27c2a02cfd65" xlink:to="loc_us-gaap_PreferredStockValue_d1182668-23ac-4c04-947e-780f1d6c4dbb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_d5789710-817e-454a-8dd3-65adc9831d54" 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_0a6fc9fb-85e4-4adb-9efc-27c2a02cfd65" xlink:to="loc_us-gaap_CommonStockValue_d5789710-817e-454a-8dd3-65adc9831d54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_cd39c29b-3a1f-4f2d-98a9-7b981e750aef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TreasuryStockValue"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_0a6fc9fb-85e4-4adb-9efc-27c2a02cfd65" xlink:to="loc_us-gaap_TreasuryStockValue_cd39c29b-3a1f-4f2d-98a9-7b981e750aef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_dad1fe40-95ee-4a9f-8a53-5ee5f3a68018" 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_0a6fc9fb-85e4-4adb-9efc-27c2a02cfd65" xlink:to="loc_us-gaap_AdditionalPaidInCapital_dad1fe40-95ee-4a9f-8a53-5ee5f3a68018" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_7fe2fc6f-e2e7-4833-a6e2-8abcb236e7ae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_0a6fc9fb-85e4-4adb-9efc-27c2a02cfd65" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_7fe2fc6f-e2e7-4833-a6e2-8abcb236e7ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a89be2a9-e6d6-45ff-9eef-c62978e8751a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_0a6fc9fb-85e4-4adb-9efc-27c2a02cfd65" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a89be2a9-e6d6-45ff-9eef-c62978e8751a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_7e9be6b3-ec7e-484d-9ae7-ec9dd1abeaa5" 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_AccountsPayableCurrent_eb3ed545-4e21-467b-b5f1-06240d86217f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_7e9be6b3-ec7e-484d-9ae7-ec9dd1abeaa5" xlink:to="loc_us-gaap_AccountsPayableCurrent_eb3ed545-4e21-467b-b5f1-06240d86217f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_c96808b2-ac1f-4f58-961c-929a747a8a8c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_7e9be6b3-ec7e-484d-9ae7-ec9dd1abeaa5" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_c96808b2-ac1f-4f58-961c-929a747a8a8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_5db8fc86-6fc1-4030-b855-542311bba54c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_7e9be6b3-ec7e-484d-9ae7-ec9dd1abeaa5" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_5db8fc86-6fc1-4030-b855-542311bba54c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_79e410d1-9d58-4f87-8260-c453ef1ee272" 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_AssetsCurrent_7299f2bf-b84f-4031-8691-63eb55ee349e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_79e410d1-9d58-4f87-8260-c453ef1ee272" xlink:to="loc_us-gaap_AssetsCurrent_7299f2bf-b84f-4031-8691-63eb55ee349e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_96a26a73-8c70-416e-ad45-d4794657e110" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_79e410d1-9d58-4f87-8260-c453ef1ee272" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_96a26a73-8c70-416e-ad45-d4794657e110" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_fb4deb6e-fb0e-459a-b2f6-ba641f5ec218" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_79e410d1-9d58-4f87-8260-c453ef1ee272" xlink:to="loc_us-gaap_Goodwill_fb4deb6e-fb0e-459a-b2f6-ba641f5ec218" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_1f6af996-1b8f-4c9e-b86f-55398954b568" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_79e410d1-9d58-4f87-8260-c453ef1ee272" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_1f6af996-1b8f-4c9e-b86f-55398954b568" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_10b999df-c076-4f09-80e9-f7bcdc16cf9b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_79e410d1-9d58-4f87-8260-c453ef1ee272" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_10b999df-c076-4f09-80e9-f7bcdc16cf9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_4bb1816d-0780-4e82-97e1-ec60e40be191" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_79e410d1-9d58-4f87-8260-c453ef1ee272" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_4bb1816d-0780-4e82-97e1-ec60e40be191" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_2852d855-87ff-41eb-b195-71d0901cd8c0" 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_79e410d1-9d58-4f87-8260-c453ef1ee272" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_2852d855-87ff-41eb-b195-71d0901cd8c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_eda0c476-dd90-47ab-9f24-e4b3ff559965" 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_LiabilitiesCurrent_8fa3b296-b219-4567-a246-eae0a722c86e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eda0c476-dd90-47ab-9f24-e4b3ff559965" xlink:to="loc_us-gaap_LiabilitiesCurrent_8fa3b296-b219-4567-a246-eae0a722c86e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_73097295-84a4-4347-9d1c-c2afa4933793" 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_eda0c476-dd90-47ab-9f24-e4b3ff559965" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_73097295-84a4-4347-9d1c-c2afa4933793" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_e0d7e415-8563-4562-91f0-a1a349117125" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eda0c476-dd90-47ab-9f24-e4b3ff559965" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_e0d7e415-8563-4562-91f0-a1a349117125" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="pubm-20240630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_881b0be9-ca6b-405c-bace-7972e5926112" 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_GeneralAndAdministrativeExpense_5bfb269a-8da4-4286-ae29-61496161c911" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_881b0be9-ca6b-405c-bace-7972e5926112" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_5bfb269a-8da4-4286-ae29-61496161c911" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_aaa09733-84a9-42c0-87df-6e3d86d9288a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_881b0be9-ca6b-405c-bace-7972e5926112" xlink:to="loc_us-gaap_SellingAndMarketingExpense_aaa09733-84a9-42c0-87df-6e3d86d9288a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_738f5d5b-0f71-4359-b345-394cd09b3220" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_881b0be9-ca6b-405c-bace-7972e5926112" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_738f5d5b-0f71-4359-b345-394cd09b3220" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_e1fe486c-971c-4b68-b33c-28df9ae77394" 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_InterestIncomeExpenseNonoperatingNet_8bfac84c-09ab-473c-a6d4-7a830067b30e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_e1fe486c-971c-4b68-b33c-28df9ae77394" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_8bfac84c-09ab-473c-a6d4-7a830067b30e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_d91b75b6-76ce-42a2-aa32-a90582d3063f" 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_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_e1fe486c-971c-4b68-b33c-28df9ae77394" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_d91b75b6-76ce-42a2-aa32-a90582d3063f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_5edf53fa-14ba-4999-a520-6b6bbddeda27" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_e1fe486c-971c-4b68-b33c-28df9ae77394" xlink:to="loc_us-gaap_OperatingIncomeLoss_5edf53fa-14ba-4999-a520-6b6bbddeda27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_20cfa870-34c2-4d38-823c-f13696f86692" 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_GrossProfit_846af584-8e48-4929-862e-4b56a36b0036" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GrossProfit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_20cfa870-34c2-4d38-823c-f13696f86692" xlink:to="loc_us-gaap_GrossProfit_846af584-8e48-4929-862e-4b56a36b0036" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_8a161706-7b46-4c90-9219-7b7848721c6f" 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_20cfa870-34c2-4d38-823c-f13696f86692" xlink:to="loc_us-gaap_OperatingExpenses_8a161706-7b46-4c90-9219-7b7848721c6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_bf0f1b27-14c1-4623-be6b-d108107164d4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_40abf59f-91a2-4c54-8143-b38fb46baae7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_bf0f1b27-14c1-4623-be6b-d108107164d4" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_40abf59f-91a2-4c54-8143-b38fb46baae7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1ab419ff-01ac-4c2b-90dd-1d764d208524" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_bf0f1b27-14c1-4623-be6b-d108107164d4" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1ab419ff-01ac-4c2b-90dd-1d764d208524" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_25165070-f514-4ab8-a0d7-9a595a9bc9f4" 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_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_6e34187b-394e-474f-9b03-3597874b69f6" 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_NetIncomeLoss_25165070-f514-4ab8-a0d7-9a595a9bc9f4" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_6e34187b-394e-474f-9b03-3597874b69f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_442cea2d-9715-41f4-b794-a71a6e548da8" 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_NetIncomeLoss_25165070-f514-4ab8-a0d7-9a595a9bc9f4" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_442cea2d-9715-41f4-b794-a71a6e548da8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="pubm-20240630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_6b51849c-0734-4568-8d48-fe00bbc5c630" 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_NetIncomeLoss_d246ea32-074e-46da-96a1-6b30fdde64b5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_6b51849c-0734-4568-8d48-fe00bbc5c630" xlink:to="loc_us-gaap_NetIncomeLoss_d246ea32-074e-46da-96a1-6b30fdde64b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_5c1dd90c-957b-41e3-aed8-4a0c251ea6ea" 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_ComprehensiveIncomeNetOfTax_6b51849c-0734-4568-8d48-fe00bbc5c630" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_5c1dd90c-957b-41e3-aed8-4a0c251ea6ea" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="pubm-20240630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4c57bda9-56f0-4ce3-b9e2-444943110c42" 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_us-gaap_NetIncomeLoss_5be85713-f146-455d-9632-b1965bcb627e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4c57bda9-56f0-4ce3-b9e2-444943110c42" xlink:to="loc_us-gaap_NetIncomeLoss_5be85713-f146-455d-9632-b1965bcb627e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDepreciationAndAmortization_05ebea4c-7d7b-4b1b-8b39-d5417dc677b8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherDepreciationAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4c57bda9-56f0-4ce3-b9e2-444943110c42" xlink:to="loc_us-gaap_OtherDepreciationAndAmortization_05ebea4c-7d7b-4b1b-8b39-d5417dc677b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_04bdca9a-56f8-470b-bcbd-365c46484918" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4c57bda9-56f0-4ce3-b9e2-444943110c42" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_04bdca9a-56f8-470b-bcbd-365c46484918" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_308bd6fb-e1b2-4576-84fa-1723e7e1e207" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4c57bda9-56f0-4ce3-b9e2-444943110c42" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_308bd6fb-e1b2-4576-84fa-1723e7e1e207" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_15049208-f43b-4db7-ad66-ebf49b8051f4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4c57bda9-56f0-4ce3-b9e2-444943110c42" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_15049208-f43b-4db7-ad66-ebf49b8051f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_650f89c9-4132-464c-a5df-d483afca721b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4c57bda9-56f0-4ce3-b9e2-444943110c42" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_650f89c9-4132-464c-a5df-d483afca721b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_1266b902-dbd7-4fdb-9535-e88b6fe85a77" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4c57bda9-56f0-4ce3-b9e2-444943110c42" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_1266b902-dbd7-4fdb-9535-e88b6fe85a77" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_c7e3d513-9214-49a5-bd36-51524dcb357a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4c57bda9-56f0-4ce3-b9e2-444943110c42" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_c7e3d513-9214-49a5-bd36-51524dcb357a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_5681e6ef-9b82-428d-adfd-a3f248f52122" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4c57bda9-56f0-4ce3-b9e2-444943110c42" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_5681e6ef-9b82-428d-adfd-a3f248f52122" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_b492d01d-5fea-4905-811b-05889b0eb4cb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4c57bda9-56f0-4ce3-b9e2-444943110c42" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_b492d01d-5fea-4905-811b-05889b0eb4cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_cf81b3f5-fd24-40f5-b6f6-681c711d60a0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4c57bda9-56f0-4ce3-b9e2-444943110c42" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_cf81b3f5-fd24-40f5-b6f6-681c711d60a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_NonCashLeaseExpense_e16a27f6-5949-4ffe-b041-30a9f6cd70e6" xlink:href="pubm-20240630.xsd#pubm_NonCashLeaseExpense"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4c57bda9-56f0-4ce3-b9e2-444943110c42" xlink:to="loc_pubm_NonCashLeaseExpense_e16a27f6-5949-4ffe-b041-30a9f6cd70e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_53db0431-8a00-47c1-b9ca-126f6098d201" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4c57bda9-56f0-4ce3-b9e2-444943110c42" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_53db0431-8a00-47c1-b9ca-126f6098d201" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_2c4e9fa0-9b9c-46f7-8f9a-d0cbb99d9c36" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProvisionForDoubtfulAccounts"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4c57bda9-56f0-4ce3-b9e2-444943110c42" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_2c4e9fa0-9b9c-46f7-8f9a-d0cbb99d9c36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_16b3b1bb-23af-4a5a-9800-34cebe23995b" 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_d6feec0d-2c5b-4545-b221-40816406c60f" 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_16b3b1bb-23af-4a5a-9800-34cebe23995b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d6feec0d-2c5b-4545-b221-40816406c60f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_06eb3a0d-d3f9-4389-8406-6483777ca1b3" 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_16b3b1bb-23af-4a5a-9800-34cebe23995b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_06eb3a0d-d3f9-4389-8406-6483777ca1b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3b1a8223-90fb-4ed1-aeae-78e54e8f238f" 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_16b3b1bb-23af-4a5a-9800-34cebe23995b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3b1a8223-90fb-4ed1-aeae-78e54e8f238f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_100e842e-8ea2-4d03-aaec-cdc3fb80247c" 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_PaymentsForRepurchaseOfCommonStock_8999ab47-49bd-4b97-b2ac-04ea18fc16a2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_100e842e-8ea2-4d03-aaec-cdc3fb80247c" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_8999ab47-49bd-4b97-b2ac-04ea18fc16a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_d62dd715-5031-48fd-9d71-542b1f923f75" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_100e842e-8ea2-4d03-aaec-cdc3fb80247c" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_d62dd715-5031-48fd-9d71-542b1f923f75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeasePrincipalPayments_e258baff-e728-4c14-9016-d3cdcb2edb05" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeasePrincipalPayments"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_100e842e-8ea2-4d03-aaec-cdc3fb80247c" xlink:to="loc_us-gaap_FinanceLeasePrincipalPayments_e258baff-e728-4c14-9016-d3cdcb2edb05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_9ded747c-03ef-4462-ad68-1c3db53594fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_100e842e-8ea2-4d03-aaec-cdc3fb80247c" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_9ded747c-03ef-4462-ad68-1c3db53594fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockPlans_a047a924-6a48-4d01-a010-e7a39615551f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromStockPlans"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_100e842e-8ea2-4d03-aaec-cdc3fb80247c" xlink:to="loc_us-gaap_ProceedsFromStockPlans_a047a924-6a48-4d01-a010-e7a39615551f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5d437956-172d-427a-8e8b-aac85b42bcab" 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_PaymentsToAcquirePropertyPlantAndEquipment_9efca105-fd75-4b38-86cf-de43315c6e9b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5d437956-172d-427a-8e8b-aac85b42bcab" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_9efca105-fd75-4b38-86cf-de43315c6e9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToDevelopSoftware_f6371ba8-e429-4b41-8018-dc4b6d90f77b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToDevelopSoftware"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5d437956-172d-427a-8e8b-aac85b42bcab" xlink:to="loc_us-gaap_PaymentsToDevelopSoftware_f6371ba8-e429-4b41-8018-dc4b6d90f77b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMarketableSecurities_6eef642c-75a1-4ccc-b607-914767f301d5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquireMarketableSecurities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5d437956-172d-427a-8e8b-aac85b42bcab" xlink:to="loc_us-gaap_PaymentsToAcquireMarketableSecurities_6eef642c-75a1-4ccc-b607-914767f301d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_449062ce-a712-48bd-99e1-c3848733ddf8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5d437956-172d-427a-8e8b-aac85b42bcab" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_449062ce-a712-48bd-99e1-c3848733ddf8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_e08fe722-5652-4497-ae21-4816c6534002" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5d437956-172d-427a-8e8b-aac85b42bcab" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_e08fe722-5652-4497-ae21-4816c6534002" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/FairValueMeasurementsDetails" xlink:type="simple" xlink:href="pubm-20240630.xsd#FairValueMeasurementsDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/FairValueMeasurementsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_28d37276-a27a-4fbc-b652-503e699cfaec" 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_AvailableForSaleSecuritiesDebtSecurities_6fd9dff8-af5a-4de9-8b4e-ae8cd50efec7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_28d37276-a27a-4fbc-b652-503e699cfaec" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_6fd9dff8-af5a-4de9-8b4e-ae8cd50efec7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_7db3f393-3753-4335-9337-aa207248a340" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_28d37276-a27a-4fbc-b652-503e699cfaec" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_7db3f393-3753-4335-9337-aa207248a340" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsSummaryofMarketableSecuritiesDetails" xlink:type="simple" xlink:href="pubm-20240630.xsd#BalanceSheetComponentsSummaryofMarketableSecuritiesDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/BalanceSheetComponentsSummaryofMarketableSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostCurrent_a25985d0-5755-4541-82b9-4553dbe452ba" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_ec52ad40-0085-47fb-8e37-bd65ee7822e6" 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_DebtSecuritiesAvailableForSaleAmortizedCostCurrent_a25985d0-5755-4541-82b9-4553dbe452ba" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_ec52ad40-0085-47fb-8e37-bd65ee7822e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_e0625e39-7ca9-4fde-a57c-f0cba9b5bd08" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostCurrent_a25985d0-5755-4541-82b9-4553dbe452ba" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_e0625e39-7ca9-4fde-a57c-f0cba9b5bd08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_40a677bc-1891-4adc-b3b3-c270f0dd6189" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostCurrent_a25985d0-5755-4541-82b9-4553dbe452ba" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_40a677bc-1891-4adc-b3b3-c270f0dd6189" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareNetDetails" xlink:type="simple" xlink:href="pubm-20240630.xsd#BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareNetDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_151e73ec-bab8-4789-9597-f359b24a552a" 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_4dce370f-34fa-4b21-b01a-3be41c4fc030" 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_151e73ec-bab8-4789-9597-f359b24a552a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_4dce370f-34fa-4b21-b01a-3be41c4fc030" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_5af4ef70-2eba-44f4-bf0c-76aef671bb75" 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_151e73ec-bab8-4789-9597-f359b24a552a" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_5af4ef70-2eba-44f4-bf0c-76aef671bb75" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsScheduleofAccountsPayableDetails" xlink:type="simple" xlink:href="pubm-20240630.xsd#BalanceSheetComponentsScheduleofAccountsPayableDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/BalanceSheetComponentsScheduleofAccountsPayableDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_0c31a138-1a45-4a36-93e6-a24207edb1c9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableTradeCurrent_1239f190-5a93-4166-bcba-084387af268d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableTradeCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableCurrent_0c31a138-1a45-4a36-93e6-a24207edb1c9" xlink:to="loc_us-gaap_AccountsPayableTradeCurrent_1239f190-5a93-4166-bcba-084387af268d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableOtherCurrent_789cae18-1e99-45ae-b235-9634bef410d2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableOtherCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableCurrent_0c31a138-1a45-4a36-93e6-a24207edb1c9" xlink:to="loc_us-gaap_AccountsPayableOtherCurrent_789cae18-1e99-45ae-b235-9634bef410d2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails" xlink:type="simple" xlink:href="pubm-20240630.xsd#BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_fa3466cf-6d97-4f90-99d4-6de4905228f7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_2c083310-0cf9-46c6-aba4-2f8bcf5c7f8f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_fa3466cf-6d97-4f90-99d4-6de4905228f7" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_2c083310-0cf9-46c6-aba4-2f8bcf5c7f8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_0009edc8-8327-4ec8-881a-ac1e33ba9187" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_fa3466cf-6d97-4f90-99d4-6de4905228f7" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_0009edc8-8327-4ec8-881a-ac1e33ba9187" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/LeasesLeaseCostDetails" xlink:type="simple" xlink:href="pubm-20240630.xsd#LeasesLeaseCostDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/LeasesLeaseCostDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_92fe3d69-462c-4c31-b1fa-64a6950e3ad8" 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_9a2a412e-4eb2-4a4b-9df1-52c30ad81c9d" 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_92fe3d69-462c-4c31-b1fa-64a6950e3ad8" xlink:to="loc_us-gaap_OperatingLeaseCost_9a2a412e-4eb2-4a4b-9df1-52c30ad81c9d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_f358e02b-0ca6-49a1-bf1b-97f9cb027e4d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseRightOfUseAssetAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_92fe3d69-462c-4c31-b1fa-64a6950e3ad8" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_f358e02b-0ca6-49a1-bf1b-97f9cb027e4d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/LeasesLeaseMaturityDetails" xlink:type="simple" xlink:href="pubm-20240630.xsd#LeasesLeaseMaturityDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/LeasesLeaseMaturityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b33b88dd-8640-47ce-9ae6-a23c939eb41a" 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_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_ef0c5774-7372-4f23-aa3a-28bb10a7be86" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b33b88dd-8640-47ce-9ae6-a23c939eb41a" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_ef0c5774-7372-4f23-aa3a-28bb10a7be86" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_2428688b-ae8b-4bb7-bb6f-520b3c42f40a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b33b88dd-8640-47ce-9ae6-a23c939eb41a" xlink:to="loc_us-gaap_OperatingLeaseLiability_2428688b-ae8b-4bb7-bb6f-520b3c42f40a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_b000f9bf-58e6-4e83-a4f3-aa2973731de7" xlink:href="pubm-20240630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree_1c1dbf51-626c-4d99-a897-a978593e6e85" xlink:href="pubm-20240630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_b000f9bf-58e6-4e83-a4f3-aa2973731de7" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree_1c1dbf51-626c-4d99-a897-a978593e6e85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour_264a6954-60f8-45b4-9b52-acba2dd691d9" xlink:href="pubm-20240630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_b000f9bf-58e6-4e83-a4f3-aa2973731de7" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour_264a6954-60f8-45b4-9b52-acba2dd691d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo_8b638d51-a394-4667-891e-bf973d1b9171" xlink:href="pubm-20240630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_b000f9bf-58e6-4e83-a4f3-aa2973731de7" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo_8b638d51-a394-4667-891e-bf973d1b9171" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne_c4e03054-d258-452f-b902-68387798f1b3" xlink:href="pubm-20240630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_b000f9bf-58e6-4e83-a4f3-aa2973731de7" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne_c4e03054-d258-452f-b902-68387798f1b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear_1a64f147-9183-4831-aa1f-c847a560fcaf" xlink:href="pubm-20240630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_b000f9bf-58e6-4e83-a4f3-aa2973731de7" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear_1a64f147-9183-4831-aa1f-c847a560fcaf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne_cf07bdf2-4420-472f-a837-ca283ec6f5b5" xlink:href="pubm-20240630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_14b57a5f-592f-41bb-beaf-eca26e4764c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne_cf07bdf2-4420-472f-a837-ca283ec6f5b5" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_14b57a5f-592f-41bb-beaf-eca26e4764c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_86748e81-d232-4515-9088-23648247adff" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne_cf07bdf2-4420-472f-a837-ca283ec6f5b5" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_86748e81-d232-4515-9088-23648247adff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_74c7c735-e7b9-41bb-98bc-fe13dda90814" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_0f9ee9ce-0d33-4106-ac9c-fa1061e79f36" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_74c7c735-e7b9-41bb-98bc-fe13dda90814" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_0f9ee9ce-0d33-4106-ac9c-fa1061e79f36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_903a4d7e-1e9a-4e29-81a3-978bbb62b19d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_74c7c735-e7b9-41bb-98bc-fe13dda90814" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_903a4d7e-1e9a-4e29-81a3-978bbb62b19d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_40f51963-fb8c-41b7-bbf6-be426612cd83" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_74c7c735-e7b9-41bb-98bc-fe13dda90814" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_40f51963-fb8c-41b7-bbf6-be426612cd83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_ff96f609-cecb-4c63-bdca-7dc5c8a5d4ad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_74c7c735-e7b9-41bb-98bc-fe13dda90814" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_ff96f609-cecb-4c63-bdca-7dc5c8a5d4ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_1da48334-7305-4f37-9c5a-a9f41f321fc6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_74c7c735-e7b9-41bb-98bc-fe13dda90814" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_1da48334-7305-4f37-9c5a-a9f41f321fc6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount_16b2683d-60e0-47a6-827e-d390bb474463" xlink:href="pubm-20240630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_231e1534-9758-4e5f-aa16-3d32f86828aa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount_16b2683d-60e0-47a6-827e-d390bb474463" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_231e1534-9758-4e5f-aa16-3d32f86828aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_9988e3e1-f919-4fdc-928c-c9b545c0df23" 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_pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount_16b2683d-60e0-47a6-827e-d390bb474463" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_9988e3e1-f919-4fdc-928c-c9b545c0df23" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo_d194aa10-0237-484a-b9fe-ee884dd4e7fb" xlink:href="pubm-20240630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_264b3ae2-32fe-4a01-bba2-a65ba4c741af" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo_d194aa10-0237-484a-b9fe-ee884dd4e7fb" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_264b3ae2-32fe-4a01-bba2-a65ba4c741af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_f97ef4e4-34c2-46c8-af40-fdc56d8d3de3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo_d194aa10-0237-484a-b9fe-ee884dd4e7fb" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_f97ef4e4-34c2-46c8-af40-fdc56d8d3de3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree_0823bc4a-5b94-4a8f-a6b0-ff3b359139f2" xlink:href="pubm-20240630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_dcf1e997-929e-4f4e-b60f-c13d372f2387" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree_0823bc4a-5b94-4a8f-a6b0-ff3b359139f2" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_dcf1e997-929e-4f4e-b60f-c13d372f2387" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_a0b0b8a3-fc10-4f74-b660-d6af51e5e2c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree_0823bc4a-5b94-4a8f-a6b0-ff3b359139f2" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_a0b0b8a3-fc10-4f74-b660-d6af51e5e2c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear_2119add1-da9e-4ed6-80bb-0c72b677afd0" xlink:href="pubm-20240630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_2473fc31-d796-4730-8c0d-a35297f9f037" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear_2119add1-da9e-4ed6-80bb-0c72b677afd0" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_2473fc31-d796-4730-8c0d-a35297f9f037" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_a2799e97-315d-438b-aa24-c06215f8400e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear_2119add1-da9e-4ed6-80bb-0c72b677afd0" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_a2799e97-315d-438b-aa24-c06215f8400e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_OperatingAndFinanceLeaseLiability_56d25bd7-efd2-4156-aaa0-3a0166d65bf9" xlink:href="pubm-20240630.xsd#pubm_OperatingAndFinanceLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_047b36a4-3115-4079-a859-f404a3d8e7a4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_OperatingAndFinanceLeaseLiability_56d25bd7-efd2-4156-aaa0-3a0166d65bf9" xlink:to="loc_us-gaap_FinanceLeaseLiability_047b36a4-3115-4079-a859-f404a3d8e7a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_dd34aaaf-b371-4e07-92de-7837748161f8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_OperatingAndFinanceLeaseLiability_56d25bd7-efd2-4156-aaa0-3a0166d65bf9" xlink:to="loc_us-gaap_OperatingLeaseLiability_dd34aaaf-b371-4e07-92de-7837748161f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour_ff381542-6082-43a3-9215-ab09a141009c" xlink:href="pubm-20240630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_dcea90ce-37c9-445f-9d68-dbb633031d16" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour_ff381542-6082-43a3-9215-ab09a141009c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_dcea90ce-37c9-445f-9d68-dbb633031d16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_becda6bb-dab4-49fe-af1a-76a1c46dbcbb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour_ff381542-6082-43a3-9215-ab09a141009c" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_becda6bb-dab4-49fe-af1a-76a1c46dbcbb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/LeasesLeaseMaturityDetails_1" xlink:type="simple" xlink:href="pubm-20240630.xsd#LeasesLeaseMaturityDetails_1"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/LeasesLeaseMaturityDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_964283ca-bf45-42a4-ae10-925c29b4dc20" 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_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_2bc5b653-563d-419f-b0e2-52e9630dcc38" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_964283ca-bf45-42a4-ae10-925c29b4dc20" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_2bc5b653-563d-419f-b0e2-52e9630dcc38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_bcb87381-6369-4971-b14f-150c7e8999d5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_964283ca-bf45-42a4-ae10-925c29b4dc20" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_bcb87381-6369-4971-b14f-150c7e8999d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_3163289c-ff47-4cb2-b75e-4e2738b5bfa1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_964283ca-bf45-42a4-ae10-925c29b4dc20" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_3163289c-ff47-4cb2-b75e-4e2738b5bfa1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_d313897f-845d-4421-9fcc-f43f418e776a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_964283ca-bf45-42a4-ae10-925c29b4dc20" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_d313897f-845d-4421-9fcc-f43f418e776a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_f2036cc7-2b9a-44e7-93f7-970a672aedec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_964283ca-bf45-42a4-ae10-925c29b4dc20" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_f2036cc7-2b9a-44e7-93f7-970a672aedec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_ec091720-c946-4e95-aa4d-246bac6a028c" xlink:href="pubm-20240630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount_b5fe575e-979e-4763-a9ed-7f8caae25b1e" xlink:href="pubm-20240630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_ec091720-c946-4e95-aa4d-246bac6a028c" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount_b5fe575e-979e-4763-a9ed-7f8caae25b1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_OperatingAndFinanceLeaseLiability_031e86e7-289a-4cd4-9183-f16003fac0bb" xlink:href="pubm-20240630.xsd#pubm_OperatingAndFinanceLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_ec091720-c946-4e95-aa4d-246bac6a028c" xlink:to="loc_pubm_OperatingAndFinanceLeaseLiability_031e86e7-289a-4cd4-9183-f16003fac0bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_2fe4de33-da94-4d21-8d07-2acc6e859d04" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_f21b6a05-43d8-4a0a-8973-d1fc1935ae2c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_2fe4de33-da94-4d21-8d07-2acc6e859d04" xlink:to="loc_us-gaap_FinanceLeaseLiability_f21b6a05-43d8-4a0a-8973-d1fc1935ae2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_3b84d853-a53a-45f6-b750-1bf182b86350" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_2fe4de33-da94-4d21-8d07-2acc6e859d04" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_3b84d853-a53a-45f6-b750-1bf182b86350" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/LeasesLeaseMaturityDetails_2" xlink:type="simple" xlink:href="pubm-20240630.xsd#LeasesLeaseMaturityDetails_2"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/LeasesLeaseMaturityDetails_2" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_5dab4aaa-85ff-465b-a823-c833eb8b76f8" xlink:href="pubm-20240630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_f7f9c323-e2a5-48b9-9481-1467888a005f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_5dab4aaa-85ff-465b-a823-c833eb8b76f8" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_f7f9c323-e2a5-48b9-9481-1467888a005f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_046d364f-7a57-4d90-8a28-6a9a4d103579" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_5dab4aaa-85ff-465b-a823-c833eb8b76f8" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_046d364f-7a57-4d90-8a28-6a9a4d103579" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/AcquisitionrelatedIntangibleAssetsNetEstimatedFutureAmortizationDetails" xlink:type="simple" xlink:href="pubm-20240630.xsd#AcquisitionrelatedIntangibleAssetsNetEstimatedFutureAmortizationDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/AcquisitionrelatedIntangibleAssetsNetEstimatedFutureAmortizationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_cc6c3d70-b3b4-4c51-beca-87bdf1a4e574" 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_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_8d9e344b-611d-4e1a-8669-47ca927388c5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_cc6c3d70-b3b4-4c51-beca-87bdf1a4e574" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_8d9e344b-611d-4e1a-8669-47ca927388c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_5d8f982a-65b4-4907-9319-deaa58835374" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_cc6c3d70-b3b4-4c51-beca-87bdf1a4e574" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_5d8f982a-65b4-4907-9319-deaa58835374" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_7f4a7525-4f6d-49f4-b57a-fc92f92d2729" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_cc6c3d70-b3b4-4c51-beca-87bdf1a4e574" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_7f4a7525-4f6d-49f4-b57a-fc92f92d2729" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_f9aa6e40-2856-42ba-ae49-24dbb76b609c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_cc6c3d70-b3b4-4c51-beca-87bdf1a4e574" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_f9aa6e40-2856-42ba-ae49-24dbb76b609c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/StockholdersEquityandStockOptionPlansStockbasedCompensationExpenseDetails" xlink:type="simple" xlink:href="pubm-20240630.xsd#StockholdersEquityandStockOptionPlansStockbasedCompensationExpenseDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/StockholdersEquityandStockOptionPlansStockbasedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pubm_ShareBasedPaymentArrangementExpenseNet_94ff9a4d-3ee9-4f58-9cc0-a46e49304ae3" xlink:href="pubm-20240630.xsd#pubm_ShareBasedPaymentArrangementExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_ShareBasedPaymentArrangementTaxBenefit_e6f18d7f-fa59-48b5-a371-f523268a9b76" xlink:href="pubm-20240630.xsd#pubm_ShareBasedPaymentArrangementTaxBenefit"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_ShareBasedPaymentArrangementExpenseNet_94ff9a4d-3ee9-4f58-9cc0-a46e49304ae3" xlink:to="loc_pubm_ShareBasedPaymentArrangementTaxBenefit_e6f18d7f-fa59-48b5-a371-f523268a9b76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_700e9311-6b63-4db5-ba6c-ad9c388efe45" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_ShareBasedPaymentArrangementExpenseNet_94ff9a4d-3ee9-4f58-9cc0-a46e49304ae3" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_700e9311-6b63-4db5-ba6c-ad9c388efe45" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/NetIncomeLossPerShareBasicandDilutedNetIncomeperShareDetails" xlink:type="simple" xlink:href="pubm-20240630.xsd#NetIncomeLossPerShareBasicandDilutedNetIncomeperShareDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/NetIncomeLossPerShareBasicandDilutedNetIncomeperShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_b782c57b-467b-4294-a376-01d86cb1ed5c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_c4171c57-47c5-41fd-99b3-65aa9f02552e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_b782c57b-467b-4294-a376-01d86cb1ed5c" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_c4171c57-47c5-41fd-99b3-65aa9f02552e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_6ce53de3-7975-419a-9c53-18ce8e99813f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_b782c57b-467b-4294-a376-01d86cb1ed5c" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_6ce53de3-7975-419a-9c53-18ce8e99813f" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
