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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2023 Workiva-->
<!--r:591743c0-a30e-4cd5-b5cf-95090ad5ca96,g:9b4d8017-2a7d-43d3-9727-7a4e10a8159e-->
<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-20230630.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_ad7849f3-18ea-46b9-9c6d-5fd279f2e3a8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_78bf8c27-b5bc-420f-9cde-5c811f0648c1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_ad7849f3-18ea-46b9-9c6d-5fd279f2e3a8" xlink:to="loc_us-gaap_AccountsPayableCurrent_78bf8c27-b5bc-420f-9cde-5c811f0648c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_a998bb75-c77c-4408-95a2-e3c6e7689067" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_ad7849f3-18ea-46b9-9c6d-5fd279f2e3a8" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_a998bb75-c77c-4408-95a2-e3c6e7689067" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_31ff6982-ee1c-43a4-869f-e7141443d831" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_ad7849f3-18ea-46b9-9c6d-5fd279f2e3a8" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_31ff6982-ee1c-43a4-869f-e7141443d831" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_d515a13e-f34c-4cdc-b0b5-e7dbc771e0c2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_c51ab456-7a46-493d-af47-9e7292be5611" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d515a13e-f34c-4cdc-b0b5-e7dbc771e0c2" xlink:to="loc_us-gaap_AssetsCurrent_c51ab456-7a46-493d-af47-9e7292be5611" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_ec2149d0-9596-4961-9f04-1c87f4ce5cb5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d515a13e-f34c-4cdc-b0b5-e7dbc771e0c2" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_ec2149d0-9596-4961-9f04-1c87f4ce5cb5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_c1e4164f-1be1-4096-8841-32adbc6aac1a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d515a13e-f34c-4cdc-b0b5-e7dbc771e0c2" xlink:to="loc_us-gaap_Goodwill_c1e4164f-1be1-4096-8841-32adbc6aac1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_af2636b7-16dc-49dc-bc7a-9eb6787031a7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d515a13e-f34c-4cdc-b0b5-e7dbc771e0c2" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_af2636b7-16dc-49dc-bc7a-9eb6787031a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_114d8fbc-d38a-4f00-89ad-420652e0528f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d515a13e-f34c-4cdc-b0b5-e7dbc771e0c2" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_114d8fbc-d38a-4f00-89ad-420652e0528f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_253ff7cd-b804-42a4-9493-f1be4bd08a05" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d515a13e-f34c-4cdc-b0b5-e7dbc771e0c2" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_253ff7cd-b804-42a4-9493-f1be4bd08a05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_dd337b87-a292-40d3-b8f8-6f4f913890dd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d515a13e-f34c-4cdc-b0b5-e7dbc771e0c2" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_dd337b87-a292-40d3-b8f8-6f4f913890dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_67411572-5a56-44d0-aaa9-9ac043cf7e25" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_e4104e2b-7f99-4197-8398-5a8eb57eb2c9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_67411572-5a56-44d0-aaa9-9ac043cf7e25" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_e4104e2b-7f99-4197-8398-5a8eb57eb2c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_fac259b4-d4f7-4151-ba24-c7a56e37d973" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_67411572-5a56-44d0-aaa9-9ac043cf7e25" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_fac259b4-d4f7-4151-ba24-c7a56e37d973" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_f3e450b6-e5c4-43ed-a8c3-ef6310b6e01c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_67411572-5a56-44d0-aaa9-9ac043cf7e25" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_f3e450b6-e5c4-43ed-a8c3-ef6310b6e01c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_22ed8333-822d-454d-9a11-01ecd9de0994" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_67411572-5a56-44d0-aaa9-9ac043cf7e25" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_22ed8333-822d-454d-9a11-01ecd9de0994" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_540a33e6-ff28-4e4f-b0ca-3d6fba45be61" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_4c41055a-e60e-4ab8-8249-1316dcb6f82c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_540a33e6-ff28-4e4f-b0ca-3d6fba45be61" xlink:to="loc_us-gaap_LiabilitiesCurrent_4c41055a-e60e-4ab8-8249-1316dcb6f82c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_d64082be-c57a-414e-ae45-164cbecc70c1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_540a33e6-ff28-4e4f-b0ca-3d6fba45be61" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_d64082be-c57a-414e-ae45-164cbecc70c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_abbdde94-2a4e-41f5-94e1-17f42cfdefcd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_540a33e6-ff28-4e4f-b0ca-3d6fba45be61" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_abbdde94-2a4e-41f5-94e1-17f42cfdefcd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_09617bf5-fee9-4674-919d-c4eff0ddc899" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_f6e2b352-a3bb-41cd-88f5-8fbab348c490" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_09617bf5-fee9-4674-919d-c4eff0ddc899" xlink:to="loc_us-gaap_Liabilities_f6e2b352-a3bb-41cd-88f5-8fbab348c490" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_25ee6b4e-a45e-4d27-a46e-1c9511c8723e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_09617bf5-fee9-4674-919d-c4eff0ddc899" xlink:to="loc_us-gaap_CommitmentsAndContingencies_25ee6b4e-a45e-4d27-a46e-1c9511c8723e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_cc85560f-5e72-47e6-840f-c724bcd185ef" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_09617bf5-fee9-4674-919d-c4eff0ddc899" xlink:to="loc_us-gaap_StockholdersEquity_cc85560f-5e72-47e6-840f-c724bcd185ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_4c816a9f-d1bd-474a-984f-fa373f5ea789" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_56c6d016-63f7-43fc-8e00-b3c8268e5478" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4c816a9f-d1bd-474a-984f-fa373f5ea789" xlink:to="loc_us-gaap_PreferredStockValue_56c6d016-63f7-43fc-8e00-b3c8268e5478" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_86dfde98-2061-48e4-bfd0-0df1df842a62" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4c816a9f-d1bd-474a-984f-fa373f5ea789" xlink:to="loc_us-gaap_CommonStockValue_86dfde98-2061-48e4-bfd0-0df1df842a62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_079776f2-e82f-4810-99f0-1e71ff2ef3fe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4c816a9f-d1bd-474a-984f-fa373f5ea789" xlink:to="loc_us-gaap_TreasuryStockValue_079776f2-e82f-4810-99f0-1e71ff2ef3fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_3ee50c4f-04c5-46e3-9866-4e2c1715b931" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4c816a9f-d1bd-474a-984f-fa373f5ea789" xlink:to="loc_us-gaap_AdditionalPaidInCapital_3ee50c4f-04c5-46e3-9866-4e2c1715b931" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_9442d85d-b165-47fa-bcec-579121045146" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4c816a9f-d1bd-474a-984f-fa373f5ea789" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_9442d85d-b165-47fa-bcec-579121045146" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_2b6fa666-f322-4ec7-8501-fd84ca9b16ff" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4c816a9f-d1bd-474a-984f-fa373f5ea789" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_2b6fa666-f322-4ec7-8501-fd84ca9b16ff" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="pubm-20230630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_4925a9e9-730e-47eb-9885-98c0b11c3a4b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_3c7df6bc-2dfc-4ce3-861b-bcf24d5459af" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4925a9e9-730e-47eb-9885-98c0b11c3a4b" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_3c7df6bc-2dfc-4ce3-861b-bcf24d5459af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_e8810066-57d5-476e-b502-0e49f7d8fc5b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4925a9e9-730e-47eb-9885-98c0b11c3a4b" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_e8810066-57d5-476e-b502-0e49f7d8fc5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_7840c30b-83a8-4504-a4cd-2fee16e69e53" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_5af63cf6-5d90-4bae-abbf-b93590b7ea1b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_7840c30b-83a8-4504-a4cd-2fee16e69e53" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_5af63cf6-5d90-4bae-abbf-b93590b7ea1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_63712599-fea1-4cf4-b32c-572bdf833283" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_7840c30b-83a8-4504-a4cd-2fee16e69e53" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_63712599-fea1-4cf4-b32c-572bdf833283" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_6fb1c311-67bd-43b9-9e4a-b295e5c42b36" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_0a200d3b-f751-4777-822b-551bb7ccdd37" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingExpenses"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_6fb1c311-67bd-43b9-9e4a-b295e5c42b36" xlink:to="loc_us-gaap_OperatingExpenses_0a200d3b-f751-4777-822b-551bb7ccdd37" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_b0fb94c7-3326-447b-9646-f573819784fb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GrossProfit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_6fb1c311-67bd-43b9-9e4a-b295e5c42b36" xlink:to="loc_us-gaap_GrossProfit_b0fb94c7-3326-447b-9646-f573819784fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_a7f06306-125c-4835-b47f-758f7c3206e2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_b9e98b95-62b0-427d-b6c9-7a9173d3cb44" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_a7f06306-125c-4835-b47f-758f7c3206e2" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_b9e98b95-62b0-427d-b6c9-7a9173d3cb44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_e9644245-7689-44bf-affc-fbfcdf1958f0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_a7f06306-125c-4835-b47f-758f7c3206e2" xlink:to="loc_us-gaap_SellingAndMarketingExpense_e9644245-7689-44bf-affc-fbfcdf1958f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_675c1177-89f1-44f2-8699-0bd7de43a054" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_a7f06306-125c-4835-b47f-758f7c3206e2" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_675c1177-89f1-44f2-8699-0bd7de43a054" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ab414ce8-d464-40fb-a736-589cb3631f19" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_2ba128ce-b8be-4f4a-afde-c8260ec1942f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ab414ce8-d464-40fb-a736-589cb3631f19" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_2ba128ce-b8be-4f4a-afde-c8260ec1942f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_ffbe70f6-25c2-4068-8a51-ee7d813a5cc2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ab414ce8-d464-40fb-a736-589cb3631f19" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_ffbe70f6-25c2-4068-8a51-ee7d813a5cc2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_aac99d6d-de63-4e56-b112-1a2f9b86b57c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_ab414ce8-d464-40fb-a736-589cb3631f19" xlink:to="loc_us-gaap_OperatingIncomeLoss_aac99d6d-de63-4e56-b112-1a2f9b86b57c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="simple" xlink:href="pubm-20230630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_b6ea97af-0b14-41ae-9286-3da55f0cea34" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_95c4b484-02bd-4583-a726-53c71667a3df" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_b6ea97af-0b14-41ae-9286-3da55f0cea34" xlink:to="loc_us-gaap_NetIncomeLoss_95c4b484-02bd-4583-a726-53c71667a3df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_de4dc7bf-3334-4b0b-99af-2bb2739dea10" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_b6ea97af-0b14-41ae-9286-3da55f0cea34" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_de4dc7bf-3334-4b0b-99af-2bb2739dea10" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="pubm-20230630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_98244b0c-5ceb-4b80-9e4b-50e69901f5ea" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_45566075-8e19-4f0b-8212-762520a3da42" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_98244b0c-5ceb-4b80-9e4b-50e69901f5ea" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_45566075-8e19-4f0b-8212-762520a3da42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_5a054604-949c-432c-8373-faa37ee8c40e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_98244b0c-5ceb-4b80-9e4b-50e69901f5ea" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_5a054604-949c-432c-8373-faa37ee8c40e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeasePrincipalPayments_3e041a48-78dc-4b43-ba15-3e89c071cf8d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_98244b0c-5ceb-4b80-9e4b-50e69901f5ea" xlink:to="loc_us-gaap_FinanceLeasePrincipalPayments_3e041a48-78dc-4b43-ba15-3e89c071cf8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockPlans_0b3d8ebc-f44e-4acd-8a08-2521e63c6b87" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromStockPlans"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_98244b0c-5ceb-4b80-9e4b-50e69901f5ea" xlink:to="loc_us-gaap_ProceedsFromStockPlans_0b3d8ebc-f44e-4acd-8a08-2521e63c6b87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_745e4d91-fff7-40c1-8b75-37bf64704c36" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_e82a8fc2-54b0-4e9a-97cd-c0afa8eda3fe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_745e4d91-fff7-40c1-8b75-37bf64704c36" xlink:to="loc_us-gaap_NetIncomeLoss_e82a8fc2-54b0-4e9a-97cd-c0afa8eda3fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDepreciationAndAmortization_f89f3665-9fdc-48e8-b1f2-f2f527daf42f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_745e4d91-fff7-40c1-8b75-37bf64704c36" xlink:to="loc_us-gaap_OtherDepreciationAndAmortization_f89f3665-9fdc-48e8-b1f2-f2f527daf42f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_f5047280-7961-404b-b18a-2975a4cb02ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_745e4d91-fff7-40c1-8b75-37bf64704c36" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_f5047280-7961-404b-b18a-2975a4cb02ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_667a623c-6658-4248-9577-7bd5da6faefd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_745e4d91-fff7-40c1-8b75-37bf64704c36" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_667a623c-6658-4248-9577-7bd5da6faefd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_8a4d533d-707b-4e89-b4c5-666c6bbc17c4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_745e4d91-fff7-40c1-8b75-37bf64704c36" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_8a4d533d-707b-4e89-b4c5-666c6bbc17c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_f0e55a8b-6da9-4ead-b6ee-48f002f96710" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_745e4d91-fff7-40c1-8b75-37bf64704c36" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_f0e55a8b-6da9-4ead-b6ee-48f002f96710" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_bbdf5f46-bfe3-41b7-b4a8-c8f3f78cc3d8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_745e4d91-fff7-40c1-8b75-37bf64704c36" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_bbdf5f46-bfe3-41b7-b4a8-c8f3f78cc3d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_75f1d490-ead5-42c5-9ecc-f140fad24f6a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_745e4d91-fff7-40c1-8b75-37bf64704c36" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_75f1d490-ead5-42c5-9ecc-f140fad24f6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_9de3b6e7-4fc2-4da1-9c70-6a745ab112cb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_745e4d91-fff7-40c1-8b75-37bf64704c36" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_9de3b6e7-4fc2-4da1-9c70-6a745ab112cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_8cb92269-0e7e-4b17-b761-57dc162bea72" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_745e4d91-fff7-40c1-8b75-37bf64704c36" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_8cb92269-0e7e-4b17-b761-57dc162bea72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_c253a7c1-4ee1-48de-bce6-4a39e780d45e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_745e4d91-fff7-40c1-8b75-37bf64704c36" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_c253a7c1-4ee1-48de-bce6-4a39e780d45e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_20b2d1f5-b315-4f64-8fa4-7a3b5f69b590" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_745e4d91-fff7-40c1-8b75-37bf64704c36" xlink:to="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_20b2d1f5-b315-4f64-8fa4-7a3b5f69b590" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_NonCashLeaseExpense_e8d6c7f7-c9d2-42b4-b5c6-2b914c774747" xlink:href="pubm-20230630.xsd#pubm_NonCashLeaseExpense"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_745e4d91-fff7-40c1-8b75-37bf64704c36" xlink:to="loc_pubm_NonCashLeaseExpense_e8d6c7f7-c9d2-42b4-b5c6-2b914c774747" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_040a0b62-2baf-486f-9b27-95d1567a090f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_745e4d91-fff7-40c1-8b75-37bf64704c36" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_040a0b62-2baf-486f-9b27-95d1567a090f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_2a3da466-4cb1-4a7b-a129-669d1477ec8d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProvisionForDoubtfulAccounts"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_745e4d91-fff7-40c1-8b75-37bf64704c36" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_2a3da466-4cb1-4a7b-a129-669d1477ec8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_8c109413-5854-4b08-baa9-b63e592f9e55" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bcc7f67e-06aa-4ba5-bdb1-dc4a8edcbc3a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_8c109413-5854-4b08-baa9-b63e592f9e55" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bcc7f67e-06aa-4ba5-bdb1-dc4a8edcbc3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d8e3740a-a0f8-4f6a-bbed-920eda25c2b2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_8c109413-5854-4b08-baa9-b63e592f9e55" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d8e3740a-a0f8-4f6a-bbed-920eda25c2b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_0b4b396c-10de-4697-9f94-cafb455417e6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_8c109413-5854-4b08-baa9-b63e592f9e55" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_0b4b396c-10de-4697-9f94-cafb455417e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_85c331ed-ab04-4d1c-bd3c-92a7fb4f6b43" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_a193c5eb-6713-4880-925b-cff2c26d354a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_85c331ed-ab04-4d1c-bd3c-92a7fb4f6b43" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_a193c5eb-6713-4880-925b-cff2c26d354a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToDevelopSoftware_402dd3c7-27ec-48bb-b9fe-3651f583b87a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_85c331ed-ab04-4d1c-bd3c-92a7fb4f6b43" xlink:to="loc_us-gaap_PaymentsToDevelopSoftware_402dd3c7-27ec-48bb-b9fe-3651f583b87a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMarketableSecurities_bf055d53-2042-4385-953b-960f8d7adb0f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_85c331ed-ab04-4d1c-bd3c-92a7fb4f6b43" xlink:to="loc_us-gaap_PaymentsToAcquireMarketableSecurities_bf055d53-2042-4385-953b-960f8d7adb0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_e7075cfe-f542-4384-8f75-e751c8954925" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_85c331ed-ab04-4d1c-bd3c-92a7fb4f6b43" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_e7075cfe-f542-4384-8f75-e751c8954925" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_4554ad0d-9517-4880-8a75-2a3d4346ce38" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_85c331ed-ab04-4d1c-bd3c-92a7fb4f6b43" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_4554ad0d-9517-4880-8a75-2a3d4346ce38" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/FairValueMeasurementsDetails" xlink:type="simple" xlink:href="pubm-20230630.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_9525045f-bdb1-4461-b7cd-56af94967184" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_0266f282-670a-427b-95ce-72b6d1d6c1c1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_9525045f-bdb1-4461-b7cd-56af94967184" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_0266f282-670a-427b-95ce-72b6d1d6c1c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_9ed8d54f-6e72-4b28-a17c-e681e711928d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_9525045f-bdb1-4461-b7cd-56af94967184" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_9ed8d54f-6e72-4b28-a17c-e681e711928d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsSummaryofMarketableSecuritiesDetails" xlink:type="simple" xlink:href="pubm-20230630.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_4a35eee4-77e1-4767-9adf-eeb4e7905f33" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_67839017-7260-45c5-8146-9306ae920f48" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4a35eee4-77e1-4767-9adf-eeb4e7905f33" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_67839017-7260-45c5-8146-9306ae920f48" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_8a41a127-ed38-4fb6-879a-77609f747d71" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4a35eee4-77e1-4767-9adf-eeb4e7905f33" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_8a41a127-ed38-4fb6-879a-77609f747d71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_941ce62c-7be5-44d4-927f-4a9197ddc5f0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4a35eee4-77e1-4767-9adf-eeb4e7905f33" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_941ce62c-7be5-44d4-927f-4a9197ddc5f0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareNetDetails" xlink:type="simple" xlink:href="pubm-20230630.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_6baa46de-8b75-4a43-b146-6dd067059e41" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_a579a021-8e17-4736-81c8-f83275d78a7a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_6baa46de-8b75-4a43-b146-6dd067059e41" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_a579a021-8e17-4736-81c8-f83275d78a7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_7600ac42-8b6b-422a-842a-5f68f24a42db" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_6baa46de-8b75-4a43-b146-6dd067059e41" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_7600ac42-8b6b-422a-842a-5f68f24a42db" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsScheduleofAccountsPayableDetails" xlink:type="simple" xlink:href="pubm-20230630.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_f866d5ae-47e1-4be0-89ea-2196674eedb7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableTradeCurrent_b7b0e7a4-a87b-4e99-8976-0e20c00aafa8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_f866d5ae-47e1-4be0-89ea-2196674eedb7" xlink:to="loc_us-gaap_AccountsPayableTradeCurrent_b7b0e7a4-a87b-4e99-8976-0e20c00aafa8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableOtherCurrent_397d5d6f-4777-4327-8839-daa09004af8e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_f866d5ae-47e1-4be0-89ea-2196674eedb7" xlink:to="loc_us-gaap_AccountsPayableOtherCurrent_397d5d6f-4777-4327-8839-daa09004af8e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails" xlink:type="simple" xlink:href="pubm-20230630.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_7808a016-65a7-42cc-a341-d2da757bff85" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_4e468a31-54fe-4f68-a315-c40c6e0bf7d8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_7808a016-65a7-42cc-a341-d2da757bff85" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_4e468a31-54fe-4f68-a315-c40c6e0bf7d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_80e1a4fc-2963-43dc-8937-f29776838df7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_7808a016-65a7-42cc-a341-d2da757bff85" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_80e1a4fc-2963-43dc-8937-f29776838df7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/LeasesLeaseCostDetails" xlink:type="simple" xlink:href="pubm-20230630.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_83e22d43-bf2f-4470-8014-a5894977e21e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_6e7bb00b-f4fe-4985-af47-0a2354a982e8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_83e22d43-bf2f-4470-8014-a5894977e21e" xlink:to="loc_us-gaap_OperatingLeaseCost_6e7bb00b-f4fe-4985-af47-0a2354a982e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_e1a72896-67e7-4e50-95cc-3fa31052fa2b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_83e22d43-bf2f-4470-8014-a5894977e21e" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_e1a72896-67e7-4e50-95cc-3fa31052fa2b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/LeasesLeaseMaturityDetails" xlink:type="simple" xlink:href="pubm-20230630.xsd#LeasesLeaseMaturityDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/LeasesLeaseMaturityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_ab61b620-6cef-4aea-924c-f7ab0102bb4f" xlink:href="pubm-20230630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_5115eaa7-cd7c-4851-b2d4-67f2a61c8018" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_ab61b620-6cef-4aea-924c-f7ab0102bb4f" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_5115eaa7-cd7c-4851-b2d4-67f2a61c8018" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_29569c5a-1463-4012-b101-0eabd74a2b34" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_ab61b620-6cef-4aea-924c-f7ab0102bb4f" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_29569c5a-1463-4012-b101-0eabd74a2b34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_96e743df-5cf4-4bf5-b50e-416db633b76b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_10f64d02-6107-46af-a299-17c0113e6c51" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_96e743df-5cf4-4bf5-b50e-416db633b76b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_10f64d02-6107-46af-a299-17c0113e6c51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_ef577512-d544-4262-b562-64f1e46141aa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_96e743df-5cf4-4bf5-b50e-416db633b76b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_ef577512-d544-4262-b562-64f1e46141aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingLeaseLiabilityToBePaidAfterYearFor_459670da-5446-4da9-a69e-1d38201a93d4" xlink:href="pubm-20230630.xsd#pubm_LesseeOperatingLeaseLiabilityToBePaidAfterYearFor"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_96e743df-5cf4-4bf5-b50e-416db633b76b" xlink:to="loc_pubm_LesseeOperatingLeaseLiabilityToBePaidAfterYearFor_459670da-5446-4da9-a69e-1d38201a93d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_9ce00578-70ec-42b9-9f5b-d3940f4a1486" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_96e743df-5cf4-4bf5-b50e-416db633b76b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_9ce00578-70ec-42b9-9f5b-d3940f4a1486" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_4757d4e6-160b-48d5-b9c3-8400eb3524e1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_96e743df-5cf4-4bf5-b50e-416db633b76b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_4757d4e6-160b-48d5-b9c3-8400eb3524e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_1dca2253-ab50-4774-b1e6-a49594523a1c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_96e743df-5cf4-4bf5-b50e-416db633b76b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_1dca2253-ab50-4774-b1e6-a49594523a1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidAfterYearFour_8a0fd026-4748-4dba-948c-82bddfa7c43e" xlink:href="pubm-20230630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidAfterYearFour"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_FinanceLeaseLiabilityToBePaidAfterYearFour_ba1cdd9a-9edf-4aa4-a020-6b54b02991a8" xlink:href="pubm-20230630.xsd#pubm_FinanceLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidAfterYearFour_8a0fd026-4748-4dba-948c-82bddfa7c43e" xlink:to="loc_pubm_FinanceLeaseLiabilityToBePaidAfterYearFour_ba1cdd9a-9edf-4aa4-a020-6b54b02991a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingLeaseLiabilityToBePaidAfterYearFor_6eb2bfc1-b7dd-4429-b658-ca59c68f2869" xlink:href="pubm-20230630.xsd#pubm_LesseeOperatingLeaseLiabilityToBePaidAfterYearFor"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidAfterYearFour_8a0fd026-4748-4dba-948c-82bddfa7c43e" xlink:to="loc_pubm_LesseeOperatingLeaseLiabilityToBePaidAfterYearFor_6eb2bfc1-b7dd-4429-b658-ca59c68f2869" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_bdaf8351-ef33-4bd6-bdb7-a27e517d77ae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_FinanceLeaseLiabilityToBePaidAfterYearFour_d257c020-c949-44dd-92ec-4bfd90f592d1" xlink:href="pubm-20230630.xsd#pubm_FinanceLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_bdaf8351-ef33-4bd6-bdb7-a27e517d77ae" xlink:to="loc_pubm_FinanceLeaseLiabilityToBePaidAfterYearFour_d257c020-c949-44dd-92ec-4bfd90f592d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_d3f45a96-358a-47e6-ae0e-98b46a76de18" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_bdaf8351-ef33-4bd6-bdb7-a27e517d77ae" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_d3f45a96-358a-47e6-ae0e-98b46a76de18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_cd0f9257-069b-4c21-9864-1b67cb18d798" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_bdaf8351-ef33-4bd6-bdb7-a27e517d77ae" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_cd0f9257-069b-4c21-9864-1b67cb18d798" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_7b44b622-d2ae-497b-acf4-e3fcccb9af04" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_bdaf8351-ef33-4bd6-bdb7-a27e517d77ae" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_7b44b622-d2ae-497b-acf4-e3fcccb9af04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_0f0c808f-b50a-4f08-838f-9ad1f826e80a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_bdaf8351-ef33-4bd6-bdb7-a27e517d77ae" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_0f0c808f-b50a-4f08-838f-9ad1f826e80a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_6f789697-ce69-4900-a36d-a9585e0db8fd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_bdaf8351-ef33-4bd6-bdb7-a27e517d77ae" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_6f789697-ce69-4900-a36d-a9585e0db8fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour_27b78256-c639-4912-98c3-7f34be0dc628" xlink:href="pubm-20230630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_6f533eba-5543-4df5-be57-54aabe387f25" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_27b78256-c639-4912-98c3-7f34be0dc628" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_6f533eba-5543-4df5-be57-54aabe387f25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_37be778f-7afb-4831-aae3-3921c0e915f9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_27b78256-c639-4912-98c3-7f34be0dc628" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_37be778f-7afb-4831-aae3-3921c0e915f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree_c371d79a-cc8c-4ac0-9256-d4417c0ab3ff" xlink:href="pubm-20230630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_9940674d-dbec-45d8-8b8e-d51de1045b17" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_c371d79a-cc8c-4ac0-9256-d4417c0ab3ff" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_9940674d-dbec-45d8-8b8e-d51de1045b17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_57b73186-6986-46b0-a93a-77b565426bf4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_c371d79a-cc8c-4ac0-9256-d4417c0ab3ff" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_57b73186-6986-46b0-a93a-77b565426bf4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo_04bcf966-45de-4762-b351-e3686409054e" xlink:href="pubm-20230630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_4318a49c-1c47-478b-aadb-17c2253ff2ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_04bcf966-45de-4762-b351-e3686409054e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_4318a49c-1c47-478b-aadb-17c2253ff2ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_b9c86d46-6c8f-4ea5-8828-34c6db6c5ef3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_04bcf966-45de-4762-b351-e3686409054e" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_b9c86d46-6c8f-4ea5-8828-34c6db6c5ef3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear_aae31ff6-a77c-4517-8190-dccae7870b7f" xlink:href="pubm-20230630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_51320cd0-df69-4ad6-9d8a-4286f1a39681" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_aae31ff6-a77c-4517-8190-dccae7870b7f" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_51320cd0-df69-4ad6-9d8a-4286f1a39681" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_b5d01016-774c-469f-802f-aadf8c97dbcf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_aae31ff6-a77c-4517-8190-dccae7870b7f" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_b5d01016-774c-469f-802f-aadf8c97dbcf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne_4a831df9-3611-4489-9bd8-21bfa68980d8" xlink:href="pubm-20230630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_4b2365be-a83b-4214-86e6-5398f23a4340" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4a831df9-3611-4489-9bd8-21bfa68980d8" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_4b2365be-a83b-4214-86e6-5398f23a4340" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_9c6e3aa5-0d94-4a7f-a6a6-ad31083ebf17" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4a831df9-3611-4489-9bd8-21bfa68980d8" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_9c6e3aa5-0d94-4a7f-a6a6-ad31083ebf17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_OperatingAndFinanceLeaseLiability_8863cc5e-8844-47dd-98aa-ce8ced784d14" xlink:href="pubm-20230630.xsd#pubm_OperatingAndFinanceLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_ea5579fa-e295-42d0-8f19-951dbbf9d860" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8863cc5e-8844-47dd-98aa-ce8ced784d14" xlink:to="loc_us-gaap_FinanceLeaseLiability_ea5579fa-e295-42d0-8f19-951dbbf9d860" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_7a44fc58-eb5b-43f0-9801-8533049a32ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8863cc5e-8844-47dd-98aa-ce8ced784d14" xlink:to="loc_us-gaap_OperatingLeaseLiability_7a44fc58-eb5b-43f0-9801-8533049a32ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount_8911ee77-5417-430b-8a72-57761b3e2bcc" xlink:href="pubm-20230630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_1289ba2d-d9aa-4ba4-bb59-eae64c1c627e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8911ee77-5417-430b-8a72-57761b3e2bcc" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_1289ba2d-d9aa-4ba4-bb59-eae64c1c627e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_279ec094-171d-4941-8bf9-248a13d3c4ae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount_8911ee77-5417-430b-8a72-57761b3e2bcc" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_279ec094-171d-4941-8bf9-248a13d3c4ae" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/LeasesLeaseMaturityDetails_1" xlink:type="simple" xlink:href="pubm-20230630.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_FinanceLeaseLiabilityPaymentsDue_8ecb8d6a-b9cb-4fe8-9133-9b175c89e206" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_968c3fac-7280-4b43-9893-bff404edbb11" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8ecb8d6a-b9cb-4fe8-9133-9b175c89e206" xlink:to="loc_us-gaap_FinanceLeaseLiability_968c3fac-7280-4b43-9893-bff404edbb11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_976a1cbc-1a9c-44d3-98b3-b4ffed605c54" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8ecb8d6a-b9cb-4fe8-9133-9b175c89e206" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_976a1cbc-1a9c-44d3-98b3-b4ffed605c54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_8832e25f-9e3b-4580-bc2b-e1e390aefa85" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_e7413590-73eb-46a5-8811-932a1fce22fc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8832e25f-9e3b-4580-bc2b-e1e390aefa85" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_e7413590-73eb-46a5-8811-932a1fce22fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_fecf1bd8-05b1-4aa7-aedf-254056668f52" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8832e25f-9e3b-4580-bc2b-e1e390aefa85" xlink:to="loc_us-gaap_OperatingLeaseLiability_fecf1bd8-05b1-4aa7-aedf-254056668f52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_7557f6e3-eb1a-489f-b926-ded0bc855ea0" xlink:href="pubm-20230630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount_2dca9ef1-0b06-4923-8856-2a2854e9f1ba" xlink:href="pubm-20230630.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_7557f6e3-eb1a-489f-b926-ded0bc855ea0" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount_2dca9ef1-0b06-4923-8856-2a2854e9f1ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_OperatingAndFinanceLeaseLiability_98ccb406-0f13-4db6-abb0-8604ba900cf8" xlink:href="pubm-20230630.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_7557f6e3-eb1a-489f-b926-ded0bc855ea0" xlink:to="loc_pubm_OperatingAndFinanceLeaseLiability_98ccb406-0f13-4db6-abb0-8604ba900cf8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/LeasesLeaseMaturityDetails_2" xlink:type="simple" xlink:href="pubm-20230630.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_478deec5-38dc-4cb2-a06e-40c135944a54" xlink:href="pubm-20230630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree_b981f69c-02ea-483a-806c-585d97ea560b" xlink:href="pubm-20230630.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_478deec5-38dc-4cb2-a06e-40c135944a54" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree_b981f69c-02ea-483a-806c-585d97ea560b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour_2f2bbd0a-29fd-4b5f-b2cf-19e6e690a96e" xlink:href="pubm-20230630.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_478deec5-38dc-4cb2-a06e-40c135944a54" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour_2f2bbd0a-29fd-4b5f-b2cf-19e6e690a96e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidAfterYearFour_0ad16b19-754b-422a-a81e-01f094aab261" xlink:href="pubm-20230630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_478deec5-38dc-4cb2-a06e-40c135944a54" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidAfterYearFour_0ad16b19-754b-422a-a81e-01f094aab261" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo_20fbb810-02ae-451d-8919-4077fd7645b2" xlink:href="pubm-20230630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_478deec5-38dc-4cb2-a06e-40c135944a54" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo_20fbb810-02ae-451d-8919-4077fd7645b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne_011b4fcf-1d6a-4765-a779-4ac8dba509c4" xlink:href="pubm-20230630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_478deec5-38dc-4cb2-a06e-40c135944a54" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne_011b4fcf-1d6a-4765-a779-4ac8dba509c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear_63e20f18-3734-49d1-a97f-69a8643b8768" xlink:href="pubm-20230630.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_478deec5-38dc-4cb2-a06e-40c135944a54" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear_63e20f18-3734-49d1-a97f-69a8643b8768" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/AcquisitionrelatedIntangibleAssetsNetEstimatedFutureAmortizationDetails" xlink:type="simple" xlink:href="pubm-20230630.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_fee80067-cffb-45fb-a9f2-0f3fc93822cf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_e92e7e1b-2d31-4eff-b204-a1a3065502ea" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_fee80067-cffb-45fb-a9f2-0f3fc93822cf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_e92e7e1b-2d31-4eff-b204-a1a3065502ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_22a75141-8449-414a-b1a5-fc93cc13aaa7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_fee80067-cffb-45fb-a9f2-0f3fc93822cf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_22a75141-8449-414a-b1a5-fc93cc13aaa7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_e8477d33-4e11-4922-b2a4-5682310381af" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_fee80067-cffb-45fb-a9f2-0f3fc93822cf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_e8477d33-4e11-4922-b2a4-5682310381af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_940a6e40-3e2b-49e0-ae19-153ed49589c9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_fee80067-cffb-45fb-a9f2-0f3fc93822cf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_940a6e40-3e2b-49e0-ae19-153ed49589c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_a3f1a17e-9bf1-4478-b09b-fef1380ccb02" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_fee80067-cffb-45fb-a9f2-0f3fc93822cf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_a3f1a17e-9bf1-4478-b09b-fef1380ccb02" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/StockholdersEquityandStockOptionPlansStockbasedCompensationExpenseDetails" xlink:type="simple" xlink:href="pubm-20230630.xsd#StockholdersEquityandStockOptionPlansStockbasedCompensationExpenseDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/StockholdersEquityandStockOptionPlansStockbasedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pubm_ShareBasedPaymentArrangementExpenseNet_c25c2e3e-773b-47fc-b509-f60e521d4e1c" xlink:href="pubm-20230630.xsd#pubm_ShareBasedPaymentArrangementExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_ShareBasedPaymentArrangementTaxBenefit_b2adfeed-c71e-47ce-87f2-72a55649357b" xlink:href="pubm-20230630.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_c25c2e3e-773b-47fc-b509-f60e521d4e1c" xlink:to="loc_pubm_ShareBasedPaymentArrangementTaxBenefit_b2adfeed-c71e-47ce-87f2-72a55649357b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_52b27fd7-1ed7-419d-a360-4bbe64f2b0e8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_c25c2e3e-773b-47fc-b509-f60e521d4e1c" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_52b27fd7-1ed7-419d-a360-4bbe64f2b0e8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/NetIncomeLossPerShareAttributabletoCommonStockholdersBasicandDilutedNetIncomeperShareDetails" xlink:type="simple" xlink:href="pubm-20230630.xsd#NetIncomeLossPerShareAttributabletoCommonStockholdersBasicandDilutedNetIncomeperShareDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/NetIncomeLossPerShareAttributabletoCommonStockholdersBasicandDilutedNetIncomeperShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_ecad21fb-64c5-41a0-a294-ad105287edc6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_2e78ef99-9597-4cba-afe7-3a68e3d914d2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_ecad21fb-64c5-41a0-a294-ad105287edc6" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_2e78ef99-9597-4cba-afe7-3a68e3d914d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_IncrementalCommonSharesAttributableToEmployeeStockPurchasePlan_f452cece-3443-4880-b5e3-d52af8390ca9" xlink:href="pubm-20230630.xsd#pubm_IncrementalCommonSharesAttributableToEmployeeStockPurchasePlan"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_ecad21fb-64c5-41a0-a294-ad105287edc6" xlink:to="loc_pubm_IncrementalCommonSharesAttributableToEmployeeStockPurchasePlan_f452cece-3443-4880-b5e3-d52af8390ca9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_IncrementalCommonSharesAttributableToDilutiveEffectOfCallOptions_f5c3c3c5-712a-43b7-a10a-142153a600ad" xlink:href="pubm-20230630.xsd#pubm_IncrementalCommonSharesAttributableToDilutiveEffectOfCallOptions"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_ecad21fb-64c5-41a0-a294-ad105287edc6" xlink:to="loc_pubm_IncrementalCommonSharesAttributableToDilutiveEffectOfCallOptions_f5c3c3c5-712a-43b7-a10a-142153a600ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_IncrementalCommonSharesAttributableToRestrictedStock_c0aa0a77-ae5f-4ba7-8ce2-8ad50bf9e418" xlink:href="pubm-20230630.xsd#pubm_IncrementalCommonSharesAttributableToRestrictedStock"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_ecad21fb-64c5-41a0-a294-ad105287edc6" xlink:to="loc_pubm_IncrementalCommonSharesAttributableToRestrictedStock_c0aa0a77-ae5f-4ba7-8ce2-8ad50bf9e418" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
