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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:5f0beb76-c462-4d89-ae2a-52a70e7621b8,g:d95b66ff-5274-4b3e-bcec-8483479991b7-->
<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-20240331.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_5069bd24-0784-4f7e-b173-3cd3d634cbfa" 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_38bd7aac-e0b9-4942-b863-ad568488e5b9" 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_5069bd24-0784-4f7e-b173-3cd3d634cbfa" xlink:to="loc_us-gaap_Liabilities_38bd7aac-e0b9-4942-b863-ad568488e5b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_175e1a45-1a71-49ed-a589-f0549e637ea9" 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_5069bd24-0784-4f7e-b173-3cd3d634cbfa" xlink:to="loc_us-gaap_CommitmentsAndContingencies_175e1a45-1a71-49ed-a589-f0549e637ea9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_fb874395-9526-4abb-9305-007d5527e493" 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_5069bd24-0784-4f7e-b173-3cd3d634cbfa" xlink:to="loc_us-gaap_StockholdersEquity_fb874395-9526-4abb-9305-007d5527e493" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_9986736b-7911-4718-8a97-d8485e9797a3" 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_b1628deb-3d63-4b1a-98ec-c5729a1e8462" 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_9986736b-7911-4718-8a97-d8485e9797a3" xlink:to="loc_us-gaap_AccountsPayableCurrent_b1628deb-3d63-4b1a-98ec-c5729a1e8462" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_7823b588-0cd1-44c6-be81-90bc9b3925fc" 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_9986736b-7911-4718-8a97-d8485e9797a3" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_7823b588-0cd1-44c6-be81-90bc9b3925fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_b296616b-534f-4443-89bb-92e52a68d528" 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_9986736b-7911-4718-8a97-d8485e9797a3" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_b296616b-534f-4443-89bb-92e52a68d528" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_e57110e6-a039-48c6-bdbf-b9af2729f653" 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_91bd3645-e6f4-43ba-b542-4a7b5fde416c" 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_e57110e6-a039-48c6-bdbf-b9af2729f653" xlink:to="loc_us-gaap_PreferredStockValue_91bd3645-e6f4-43ba-b542-4a7b5fde416c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_53d1ffa6-e67c-48f3-92ae-f77e4512a439" 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_e57110e6-a039-48c6-bdbf-b9af2729f653" xlink:to="loc_us-gaap_CommonStockValue_53d1ffa6-e67c-48f3-92ae-f77e4512a439" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_b0a1f271-69ce-4562-ac0f-dd340b4c17b6" 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_e57110e6-a039-48c6-bdbf-b9af2729f653" xlink:to="loc_us-gaap_TreasuryStockValue_b0a1f271-69ce-4562-ac0f-dd340b4c17b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_f25ab9b8-f8c1-43bd-9037-387932428b67" 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_e57110e6-a039-48c6-bdbf-b9af2729f653" xlink:to="loc_us-gaap_AdditionalPaidInCapital_f25ab9b8-f8c1-43bd-9037-387932428b67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_f63e7e7d-ae65-4d00-9db4-2e64c787581a" 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_e57110e6-a039-48c6-bdbf-b9af2729f653" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_f63e7e7d-ae65-4d00-9db4-2e64c787581a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_79f8d432-4c2f-497b-a127-f4f7353f8250" 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_e57110e6-a039-48c6-bdbf-b9af2729f653" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_79f8d432-4c2f-497b-a127-f4f7353f8250" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_5d7bb475-2611-4b20-9ce6-f00c364876c8" 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_7c95bbbf-d03f-47fb-b12f-73e661138a7d" 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_5d7bb475-2611-4b20-9ce6-f00c364876c8" xlink:to="loc_us-gaap_AssetsCurrent_7c95bbbf-d03f-47fb-b12f-73e661138a7d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_e5b5cf89-3b1e-4db4-836a-1085ce114af8" 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_5d7bb475-2611-4b20-9ce6-f00c364876c8" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_e5b5cf89-3b1e-4db4-836a-1085ce114af8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_60fedc43-3cf5-4951-8cf2-201c1683d080" 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_5d7bb475-2611-4b20-9ce6-f00c364876c8" xlink:to="loc_us-gaap_Goodwill_60fedc43-3cf5-4951-8cf2-201c1683d080" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_cc41ba65-332d-4da8-a6d5-33fb573623fb" 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_5d7bb475-2611-4b20-9ce6-f00c364876c8" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_cc41ba65-332d-4da8-a6d5-33fb573623fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_0f0e479e-da0f-400c-9293-612c64d87af0" 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_5d7bb475-2611-4b20-9ce6-f00c364876c8" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_0f0e479e-da0f-400c-9293-612c64d87af0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_0d3fa566-5676-4757-81f9-12c89d8ca248" 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_5d7bb475-2611-4b20-9ce6-f00c364876c8" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_0d3fa566-5676-4757-81f9-12c89d8ca248" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_b1694c70-e257-44a6-b7f8-c64df196129d" 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_5d7bb475-2611-4b20-9ce6-f00c364876c8" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_b1694c70-e257-44a6-b7f8-c64df196129d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_2f55f1e6-7749-4983-94a0-d3c3cd2a8b00" 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_df3be513-6ede-4e3e-a654-6b577606f253" 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_2f55f1e6-7749-4983-94a0-d3c3cd2a8b00" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_df3be513-6ede-4e3e-a654-6b577606f253" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_53e0a696-47d6-44ee-924c-efe4afdb2fa3" 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_2f55f1e6-7749-4983-94a0-d3c3cd2a8b00" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_53e0a696-47d6-44ee-924c-efe4afdb2fa3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_c25d0b43-9090-4710-ab5c-65da41015c76" 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_2f55f1e6-7749-4983-94a0-d3c3cd2a8b00" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_c25d0b43-9090-4710-ab5c-65da41015c76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_0fdb8adc-6d0e-4753-a3db-057953447f96" 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_2f55f1e6-7749-4983-94a0-d3c3cd2a8b00" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_0fdb8adc-6d0e-4753-a3db-057953447f96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_b027a869-5638-4c1b-8bfc-823eee7b8577" 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_d5f9d5d4-0c5a-4015-ad00-6131b0a602bf" 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_b027a869-5638-4c1b-8bfc-823eee7b8577" xlink:to="loc_us-gaap_LiabilitiesCurrent_d5f9d5d4-0c5a-4015-ad00-6131b0a602bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_86b559b4-fca7-4860-8716-3d1aa8ea82b0" 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_b027a869-5638-4c1b-8bfc-823eee7b8577" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_86b559b4-fca7-4860-8716-3d1aa8ea82b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_12b3370a-3064-4e53-95fc-d8ecbaf6d979" 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_b027a869-5638-4c1b-8bfc-823eee7b8577" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_12b3370a-3064-4e53-95fc-d8ecbaf6d979" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="pubm-20240331.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_94f1b9c3-a232-4e28-8e14-dadf3f0b5da6" 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_3e4c783d-ce7c-4591-a3f3-b2b96ef5aafa" 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_94f1b9c3-a232-4e28-8e14-dadf3f0b5da6" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_3e4c783d-ce7c-4591-a3f3-b2b96ef5aafa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_672c0532-c6fd-4122-9230-b3cf2837d332" 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_94f1b9c3-a232-4e28-8e14-dadf3f0b5da6" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_672c0532-c6fd-4122-9230-b3cf2837d332" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_7a68f219-6149-4c18-bce3-2a353dc030dc" 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_e5b752ce-2123-4dcf-8daf-4f68422cae72" 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_7a68f219-6149-4c18-bce3-2a353dc030dc" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_e5b752ce-2123-4dcf-8daf-4f68422cae72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_48c8d4a5-3352-404c-a660-adec7a3e3988" 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_7a68f219-6149-4c18-bce3-2a353dc030dc" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_48c8d4a5-3352-404c-a660-adec7a3e3988" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_03d5752e-9b52-45b5-af9f-d1b9149a71ac" 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_7a68f219-6149-4c18-bce3-2a353dc030dc" xlink:to="loc_us-gaap_OperatingIncomeLoss_03d5752e-9b52-45b5-af9f-d1b9149a71ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_106f51ae-fc5e-4c5b-ad07-272eb3c7c914" 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_fae8be1b-fee0-44b4-be8e-ce3eee7e67cd" 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_106f51ae-fc5e-4c5b-ad07-272eb3c7c914" xlink:to="loc_us-gaap_OperatingExpenses_fae8be1b-fee0-44b4-be8e-ce3eee7e67cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_3f223fd4-2817-4fdb-85fd-57d00e082e9f" 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_106f51ae-fc5e-4c5b-ad07-272eb3c7c914" xlink:to="loc_us-gaap_GrossProfit_3f223fd4-2817-4fdb-85fd-57d00e082e9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_06c5237c-4875-4627-9e32-063edcbbf1db" 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_ed768d57-396b-472d-811a-996ceb6b4cc5" 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_06c5237c-4875-4627-9e32-063edcbbf1db" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ed768d57-396b-472d-811a-996ceb6b4cc5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_2870bc19-2c26-4797-969d-7a7ed1e7a47d" 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_06c5237c-4875-4627-9e32-063edcbbf1db" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_2870bc19-2c26-4797-969d-7a7ed1e7a47d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_96ca0add-8a4d-48f1-9ba3-88eb84b16235" 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_46aaead3-a816-45aa-a005-761c9d6ba6e5" 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_96ca0add-8a4d-48f1-9ba3-88eb84b16235" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_46aaead3-a816-45aa-a005-761c9d6ba6e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_0a908034-2cfb-4e57-b597-65f79156baf3" 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_96ca0add-8a4d-48f1-9ba3-88eb84b16235" xlink:to="loc_us-gaap_SellingAndMarketingExpense_0a908034-2cfb-4e57-b597-65f79156baf3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_9b6c104f-4b9d-4ae9-961f-db95deb04c14" 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_96ca0add-8a4d-48f1-9ba3-88eb84b16235" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_9b6c104f-4b9d-4ae9-961f-db95deb04c14" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="pubm-20240331.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_012307ba-72a0-4ea7-a1ba-71c6cae4ba91" 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_8857ce40-d5f4-44cd-a69c-f16ce75004e9" 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_012307ba-72a0-4ea7-a1ba-71c6cae4ba91" xlink:to="loc_us-gaap_NetIncomeLoss_8857ce40-d5f4-44cd-a69c-f16ce75004e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_0568679e-ab92-4f7f-a504-825d1e65917e" 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_012307ba-72a0-4ea7-a1ba-71c6cae4ba91" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_0568679e-ab92-4f7f-a504-825d1e65917e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="pubm-20240331.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_90a4886e-5f17-4fb9-93fb-f5ac18cc86fe" 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_6d9e084c-5631-4a1a-89c8-27e1df2a0fef" 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_90a4886e-5f17-4fb9-93fb-f5ac18cc86fe" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6d9e084c-5631-4a1a-89c8-27e1df2a0fef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_65ebf002-3a2c-44e7-a7e6-40fa0bd87759" 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_90a4886e-5f17-4fb9-93fb-f5ac18cc86fe" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_65ebf002-3a2c-44e7-a7e6-40fa0bd87759" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6d4cbbdd-1209-429a-b64e-707a3c332d0b" 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_90a4886e-5f17-4fb9-93fb-f5ac18cc86fe" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6d4cbbdd-1209-429a-b64e-707a3c332d0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7e644680-e19d-49d3-aaf4-73753c5c630d" 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_3f0019d3-af37-4f21-97c1-5490c8506614" 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_7e644680-e19d-49d3-aaf4-73753c5c630d" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_3f0019d3-af37-4f21-97c1-5490c8506614" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToDevelopSoftware_62cf8506-87ea-4e93-b413-c93767717ff1" 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_7e644680-e19d-49d3-aaf4-73753c5c630d" xlink:to="loc_us-gaap_PaymentsToDevelopSoftware_62cf8506-87ea-4e93-b413-c93767717ff1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMarketableSecurities_a661368d-5d7b-42d9-b826-09865319c87b" 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_7e644680-e19d-49d3-aaf4-73753c5c630d" xlink:to="loc_us-gaap_PaymentsToAcquireMarketableSecurities_a661368d-5d7b-42d9-b826-09865319c87b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_27b53736-51c7-4a1a-8794-ba3305153806" 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_7e644680-e19d-49d3-aaf4-73753c5c630d" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_27b53736-51c7-4a1a-8794-ba3305153806" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_99dd98ce-a03d-44e9-a628-470b43468503" 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_f9477c72-e462-43a2-8e6d-243079bede0a" 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_99dd98ce-a03d-44e9-a628-470b43468503" xlink:to="loc_us-gaap_NetIncomeLoss_f9477c72-e462-43a2-8e6d-243079bede0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDepreciationAndAmortization_6dfa8404-be8e-4ad5-8bc2-277f7315d349" 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_99dd98ce-a03d-44e9-a628-470b43468503" xlink:to="loc_us-gaap_OtherDepreciationAndAmortization_6dfa8404-be8e-4ad5-8bc2-277f7315d349" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_30c6bd52-e14a-4086-b49a-5f6ccda14d35" 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_99dd98ce-a03d-44e9-a628-470b43468503" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_30c6bd52-e14a-4086-b49a-5f6ccda14d35" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_819ce263-b704-4ee9-98ee-c3d78efb2c58" 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_99dd98ce-a03d-44e9-a628-470b43468503" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_819ce263-b704-4ee9-98ee-c3d78efb2c58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_0ecd83ce-fa5e-4c71-a775-c8a6e6568d8e" 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_99dd98ce-a03d-44e9-a628-470b43468503" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_0ecd83ce-fa5e-4c71-a775-c8a6e6568d8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_d19a98df-0773-4f51-b5ef-7bf969f7e2f3" 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_99dd98ce-a03d-44e9-a628-470b43468503" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_d19a98df-0773-4f51-b5ef-7bf969f7e2f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_18f2978a-a6db-44e4-95cd-e466b9fe899e" 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_99dd98ce-a03d-44e9-a628-470b43468503" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_18f2978a-a6db-44e4-95cd-e466b9fe899e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_7d5c8b18-10ff-4411-bc1a-c18a0726410c" 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_99dd98ce-a03d-44e9-a628-470b43468503" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_7d5c8b18-10ff-4411-bc1a-c18a0726410c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_020ef6a0-465d-4a43-b19f-5f76871d1228" 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_99dd98ce-a03d-44e9-a628-470b43468503" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_020ef6a0-465d-4a43-b19f-5f76871d1228" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_2fe11c2c-b71e-4580-b9ce-68d7c1d45a61" 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_99dd98ce-a03d-44e9-a628-470b43468503" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_2fe11c2c-b71e-4580-b9ce-68d7c1d45a61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_a7578da5-db49-4d63-bdf3-127849cc7546" 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_99dd98ce-a03d-44e9-a628-470b43468503" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_a7578da5-db49-4d63-bdf3-127849cc7546" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_NonCashLeaseExpense_afcf9299-85a5-49a4-9995-ca358f456b20" xlink:href="pubm-20240331.xsd#pubm_NonCashLeaseExpense"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_99dd98ce-a03d-44e9-a628-470b43468503" xlink:to="loc_pubm_NonCashLeaseExpense_afcf9299-85a5-49a4-9995-ca358f456b20" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_21696d9e-5f38-45e5-9f1f-77bce858c132" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_99dd98ce-a03d-44e9-a628-470b43468503" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_21696d9e-5f38-45e5-9f1f-77bce858c132" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4753099a-6222-4c46-a33c-3130015b42fa" 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_6a7f80f8-b1fd-40c9-8245-5c27f9d2e3ba" 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_4753099a-6222-4c46-a33c-3130015b42fa" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_6a7f80f8-b1fd-40c9-8245-5c27f9d2e3ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_6f979a4f-3f0e-4a11-8405-1882e5a806a1" 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_4753099a-6222-4c46-a33c-3130015b42fa" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_6f979a4f-3f0e-4a11-8405-1882e5a806a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeasePrincipalPayments_5deb6f86-1c80-473f-9595-1ad055bda2ef" 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_4753099a-6222-4c46-a33c-3130015b42fa" xlink:to="loc_us-gaap_FinanceLeasePrincipalPayments_5deb6f86-1c80-473f-9595-1ad055bda2ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_6d3027d2-0320-44a1-87b5-2352e3ccc56c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4753099a-6222-4c46-a33c-3130015b42fa" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_6d3027d2-0320-44a1-87b5-2352e3ccc56c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/FairValueMeasurementsDetails" xlink:type="simple" xlink:href="pubm-20240331.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_42c85832-4b66-4d8e-9cec-bc98b025dbb4" 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_ab66ae58-21d9-4fcb-849b-39955a8e6707" 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_42c85832-4b66-4d8e-9cec-bc98b025dbb4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_ab66ae58-21d9-4fcb-849b-39955a8e6707" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_83d2fafc-f90c-498f-847d-9e305946ceba" 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_42c85832-4b66-4d8e-9cec-bc98b025dbb4" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_83d2fafc-f90c-498f-847d-9e305946ceba" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsSummaryofMarketableSecuritiesDetails" xlink:type="simple" xlink:href="pubm-20240331.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_1067a7b6-6d93-4b28-a6f2-2a923f7eb73e" 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_eaeb7132-b41e-46bf-b324-26779e5cdbf9" 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_1067a7b6-6d93-4b28-a6f2-2a923f7eb73e" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_eaeb7132-b41e-46bf-b324-26779e5cdbf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_4bd00057-85c0-4858-9b00-9fcff0b6405b" 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_1067a7b6-6d93-4b28-a6f2-2a923f7eb73e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_4bd00057-85c0-4858-9b00-9fcff0b6405b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_8eae1e63-8836-488b-83f3-97af2c40afc8" 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_1067a7b6-6d93-4b28-a6f2-2a923f7eb73e" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_8eae1e63-8836-488b-83f3-97af2c40afc8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareNetDetails" xlink:type="simple" xlink:href="pubm-20240331.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_f36fa5a2-fc29-477a-a457-1857ed0e7d44" 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_b7ad9dc5-b7ac-4dae-88c5-2542461a8656" 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_f36fa5a2-fc29-477a-a457-1857ed0e7d44" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_b7ad9dc5-b7ac-4dae-88c5-2542461a8656" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_f1c0b3ef-42b1-48e0-8db9-ebf519de8a1e" 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_f36fa5a2-fc29-477a-a457-1857ed0e7d44" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_f1c0b3ef-42b1-48e0-8db9-ebf519de8a1e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsScheduleofAccountsPayableDetails" xlink:type="simple" xlink:href="pubm-20240331.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_aba7a404-0535-4d9a-8a83-9b474d51e72b" 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_5ecece2b-24dc-4f06-9820-76a78ae920d7" 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_aba7a404-0535-4d9a-8a83-9b474d51e72b" xlink:to="loc_us-gaap_AccountsPayableTradeCurrent_5ecece2b-24dc-4f06-9820-76a78ae920d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableOtherCurrent_ca731e14-d604-4c8a-a928-9e89dae021c5" 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_aba7a404-0535-4d9a-8a83-9b474d51e72b" xlink:to="loc_us-gaap_AccountsPayableOtherCurrent_ca731e14-d604-4c8a-a928-9e89dae021c5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails" xlink:type="simple" xlink:href="pubm-20240331.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_5328461f-1b77-4730-b528-ee9113e838c6" 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_056c4805-6306-4ef8-9748-d286da47529d" 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_5328461f-1b77-4730-b528-ee9113e838c6" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_056c4805-6306-4ef8-9748-d286da47529d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_a560e361-9895-4151-9412-3444fceb5177" 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_5328461f-1b77-4730-b528-ee9113e838c6" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_a560e361-9895-4151-9412-3444fceb5177" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/LeasesLeaseCostDetails" xlink:type="simple" xlink:href="pubm-20240331.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_f6a9e7ad-22d9-4e04-9556-3abef100501a" 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_fbb4e5db-e6bb-4e4b-ab8e-67e6b6c7b088" 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_f6a9e7ad-22d9-4e04-9556-3abef100501a" xlink:to="loc_us-gaap_OperatingLeaseCost_fbb4e5db-e6bb-4e4b-ab8e-67e6b6c7b088" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_40107e82-cb26-4dd0-990e-c0fcde9bf262" 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_f6a9e7ad-22d9-4e04-9556-3abef100501a" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_40107e82-cb26-4dd0-990e-c0fcde9bf262" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/LeasesLeaseMaturityDetails" xlink:type="simple" xlink:href="pubm-20240331.xsd#LeasesLeaseMaturityDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/LeasesLeaseMaturityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne_410ec5b5-5a6b-4061-8399-b86a2aa00098" xlink:href="pubm-20240331.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_a7d0bbbe-2303-4ec8-9456-9d562af296da" 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_410ec5b5-5a6b-4061-8399-b86a2aa00098" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_a7d0bbbe-2303-4ec8-9456-9d562af296da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_b2c33356-bd2d-4054-83b1-cbd305b9dbf9" 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_410ec5b5-5a6b-4061-8399-b86a2aa00098" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_b2c33356-bd2d-4054-83b1-cbd305b9dbf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_f0c2f719-c907-4c52-8447-d03f2f2072d4" xlink:href="pubm-20240331.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_abed79c9-371a-45e1-bd74-d2ebff6dd253" 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_f0c2f719-c907-4c52-8447-d03f2f2072d4" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_abed79c9-371a-45e1-bd74-d2ebff6dd253" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_66f1d6ff-eec8-49c1-862d-e27344f40030" 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_f0c2f719-c907-4c52-8447-d03f2f2072d4" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_66f1d6ff-eec8-49c1-862d-e27344f40030" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour_118ddbf5-6004-4a34-abd2-93c35e30ea3f" xlink:href="pubm-20240331.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_bbf3d661-dd6f-4e41-8768-24f7b2b66462" 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_118ddbf5-6004-4a34-abd2-93c35e30ea3f" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_bbf3d661-dd6f-4e41-8768-24f7b2b66462" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_a9675a86-faf2-422b-9544-cd62e3f042b9" 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_118ddbf5-6004-4a34-abd2-93c35e30ea3f" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_a9675a86-faf2-422b-9544-cd62e3f042b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo_c96eb408-db43-45eb-a85a-454de06906cc" xlink:href="pubm-20240331.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_332630d6-51fc-4845-b4af-42ac6920db64" 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_c96eb408-db43-45eb-a85a-454de06906cc" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_332630d6-51fc-4845-b4af-42ac6920db64" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_6e375337-5e93-47b6-a7a0-c49306806b1b" 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_c96eb408-db43-45eb-a85a-454de06906cc" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_6e375337-5e93-47b6-a7a0-c49306806b1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_06a20ded-e185-4d6c-8d3c-c6cd3d1498e1" 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_3392067b-f3a0-43ed-9b85-f9433168a35c" 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_06a20ded-e185-4d6c-8d3c-c6cd3d1498e1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_3392067b-f3a0-43ed-9b85-f9433168a35c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_820d18c9-08fa-4abb-92bc-78ee5d5d2d18" 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_06a20ded-e185-4d6c-8d3c-c6cd3d1498e1" xlink:to="loc_us-gaap_OperatingLeaseLiability_820d18c9-08fa-4abb-92bc-78ee5d5d2d18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_OperatingAndFinanceLeaseLiability_e0b4074a-e274-4357-ae6d-d0ca9b0e4dfa" xlink:href="pubm-20240331.xsd#pubm_OperatingAndFinanceLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_1a21fbe3-01f4-4c2f-94c8-576b072e04f7" 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_e0b4074a-e274-4357-ae6d-d0ca9b0e4dfa" xlink:to="loc_us-gaap_FinanceLeaseLiability_1a21fbe3-01f4-4c2f-94c8-576b072e04f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_f7369783-1028-4e7f-9d78-a7335b6088e2" 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_e0b4074a-e274-4357-ae6d-d0ca9b0e4dfa" xlink:to="loc_us-gaap_OperatingLeaseLiability_f7369783-1028-4e7f-9d78-a7335b6088e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_7742c7a4-aed2-4aa8-8a2f-e47bf4530134" 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_b1880834-7ac9-4497-80fe-6a2f015baa60" 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_7742c7a4-aed2-4aa8-8a2f-e47bf4530134" xlink:to="loc_us-gaap_FinanceLeaseLiability_b1880834-7ac9-4497-80fe-6a2f015baa60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_2f431a27-5e0f-4b4f-a130-de74d280921a" 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_7742c7a4-aed2-4aa8-8a2f-e47bf4530134" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_2f431a27-5e0f-4b4f-a130-de74d280921a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree_da9a3ff8-4667-4d17-8a6a-9e836d716221" xlink:href="pubm-20240331.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_b78fee02-b71d-4703-8c92-39cd22929dd0" 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_da9a3ff8-4667-4d17-8a6a-9e836d716221" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_b78fee02-b71d-4703-8c92-39cd22929dd0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_23f88946-b628-47ac-995a-fe308f32c837" 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_da9a3ff8-4667-4d17-8a6a-9e836d716221" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_23f88946-b628-47ac-995a-fe308f32c837" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount_f0568bd5-d930-4b00-bfad-c8330eb83c58" xlink:href="pubm-20240331.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_c08d0adb-b866-4aa1-8a3f-42a313206178" 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_f0568bd5-d930-4b00-bfad-c8330eb83c58" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_c08d0adb-b866-4aa1-8a3f-42a313206178" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_740b74cd-bf9b-4f5a-b1d7-d4b1fc37b778" 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_f0568bd5-d930-4b00-bfad-c8330eb83c58" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_740b74cd-bf9b-4f5a-b1d7-d4b1fc37b778" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear_5c7df087-be7d-4abc-b3b7-18c3f1f70a8d" xlink:href="pubm-20240331.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_b488f1e9-feb9-4c2a-9fe5-449eb95af2e1" 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_5c7df087-be7d-4abc-b3b7-18c3f1f70a8d" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_b488f1e9-feb9-4c2a-9fe5-449eb95af2e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_b7861386-6aec-440f-889c-ee23c1fd7aa0" 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_5c7df087-be7d-4abc-b3b7-18c3f1f70a8d" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_b7861386-6aec-440f-889c-ee23c1fd7aa0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/LeasesLeaseMaturityDetails_1" xlink:type="simple" xlink:href="pubm-20240331.xsd#LeasesLeaseMaturityDetails_1"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/LeasesLeaseMaturityDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_6bab0712-3925-4135-ae31-dc94b7ba2545" 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_a965fab8-53cf-4d4b-814d-b86f2e2220b6" 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_6bab0712-3925-4135-ae31-dc94b7ba2545" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_a965fab8-53cf-4d4b-814d-b86f2e2220b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_09bdb7e0-7159-47af-b46f-a8810245f400" 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_6bab0712-3925-4135-ae31-dc94b7ba2545" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_09bdb7e0-7159-47af-b46f-a8810245f400" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_69297a23-8cb3-49b5-8ba5-f315eb9e5945" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_6bab0712-3925-4135-ae31-dc94b7ba2545" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_69297a23-8cb3-49b5-8ba5-f315eb9e5945" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_e886b9e2-739e-43ef-9860-252cb6dcd3fd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_6bab0712-3925-4135-ae31-dc94b7ba2545" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_e886b9e2-739e-43ef-9860-252cb6dcd3fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_b9730e3c-30dc-4a17-b2ba-b2946835da19" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_6bab0712-3925-4135-ae31-dc94b7ba2545" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_b9730e3c-30dc-4a17-b2ba-b2946835da19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_0e42e8eb-066d-4e20-ad1c-5e3364f76fd8" xlink:href="pubm-20240331.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree_fc6dbf5c-2b5b-47b4-b658-37e9b39fb9f5" xlink:href="pubm-20240331.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_0e42e8eb-066d-4e20-ad1c-5e3364f76fd8" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree_fc6dbf5c-2b5b-47b4-b658-37e9b39fb9f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour_795ff282-8e52-4590-9b6d-db69d5d7781f" xlink:href="pubm-20240331.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_0e42e8eb-066d-4e20-ad1c-5e3364f76fd8" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour_795ff282-8e52-4590-9b6d-db69d5d7781f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo_81835e7f-b0d6-4bfc-97bb-b92940cd0ddc" xlink:href="pubm-20240331.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_0e42e8eb-066d-4e20-ad1c-5e3364f76fd8" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo_81835e7f-b0d6-4bfc-97bb-b92940cd0ddc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne_76067796-feaf-47bb-aada-4840e539b669" xlink:href="pubm-20240331.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_0e42e8eb-066d-4e20-ad1c-5e3364f76fd8" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne_76067796-feaf-47bb-aada-4840e539b669" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear_d5fc91cc-fc1c-4a57-999f-53c497cda1bf" xlink:href="pubm-20240331.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_0e42e8eb-066d-4e20-ad1c-5e3364f76fd8" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear_d5fc91cc-fc1c-4a57-999f-53c497cda1bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_36d323da-ebc3-46ec-8acd-e976dfb768db" 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_FinanceLeaseLiabilityPaymentsDueYearThree_3de1ec8c-2150-45b9-884d-c3b77f1155e6" 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_us-gaap_FinanceLeaseLiabilityPaymentsDue_36d323da-ebc3-46ec-8acd-e976dfb768db" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_3de1ec8c-2150-45b9-884d-c3b77f1155e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_f02a4e5b-700d-417e-8634-6a2bd19283b5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_36d323da-ebc3-46ec-8acd-e976dfb768db" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_f02a4e5b-700d-417e-8634-6a2bd19283b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_b189379f-c0db-4d22-b65c-5ebd8934e0f5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_36d323da-ebc3-46ec-8acd-e976dfb768db" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_b189379f-c0db-4d22-b65c-5ebd8934e0f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_84333b09-8af4-46f6-bc59-9bd148513afb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_36d323da-ebc3-46ec-8acd-e976dfb768db" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_84333b09-8af4-46f6-bc59-9bd148513afb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_c0ec2c38-2958-47e4-a8f4-3319637c4571" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_36d323da-ebc3-46ec-8acd-e976dfb768db" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_c0ec2c38-2958-47e4-a8f4-3319637c4571" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/LeasesLeaseMaturityDetails_2" xlink:type="simple" xlink:href="pubm-20240331.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_8dd7689e-a587-4e73-80b9-c2266e9e433f" xlink:href="pubm-20240331.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount_498223d1-c0bc-4db9-a675-991485f03af4" xlink:href="pubm-20240331.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_8dd7689e-a587-4e73-80b9-c2266e9e433f" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount_498223d1-c0bc-4db9-a675-991485f03af4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_OperatingAndFinanceLeaseLiability_cf631d77-62c9-4ea0-a5f5-b66aa721fb62" xlink:href="pubm-20240331.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_8dd7689e-a587-4e73-80b9-c2266e9e433f" xlink:to="loc_pubm_OperatingAndFinanceLeaseLiability_cf631d77-62c9-4ea0-a5f5-b66aa721fb62" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/AcquisitionrelatedIntangibleAssetsNetEstimatedFutureAmortizationDetails" xlink:type="simple" xlink:href="pubm-20240331.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_de4f3f3f-55cf-4e35-a1e5-747d10d0643a" 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_59cf211c-3dbc-4470-9d64-67e3c5a8d48c" 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_de4f3f3f-55cf-4e35-a1e5-747d10d0643a" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_59cf211c-3dbc-4470-9d64-67e3c5a8d48c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_ce7449ae-ea13-468f-9d5c-74c707a55fc1" 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_de4f3f3f-55cf-4e35-a1e5-747d10d0643a" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_ce7449ae-ea13-468f-9d5c-74c707a55fc1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_97bfcde8-14c0-4264-b6ea-8c74e92dbc27" 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_de4f3f3f-55cf-4e35-a1e5-747d10d0643a" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_97bfcde8-14c0-4264-b6ea-8c74e92dbc27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_8da1112a-f2d5-47eb-ad32-1dae0d420781" 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_de4f3f3f-55cf-4e35-a1e5-747d10d0643a" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_8da1112a-f2d5-47eb-ad32-1dae0d420781" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/StockholdersEquityandStockOptionPlansStockbasedCompensationExpenseDetails" xlink:type="simple" xlink:href="pubm-20240331.xsd#StockholdersEquityandStockOptionPlansStockbasedCompensationExpenseDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/StockholdersEquityandStockOptionPlansStockbasedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pubm_ShareBasedPaymentArrangementExpenseNet_027f93d4-7aa7-4058-b0b0-cf9ef73ea090" xlink:href="pubm-20240331.xsd#pubm_ShareBasedPaymentArrangementExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_ShareBasedPaymentArrangementTaxBenefit_f88aab59-12fd-4cc6-8ad2-3c7f075a5208" xlink:href="pubm-20240331.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_027f93d4-7aa7-4058-b0b0-cf9ef73ea090" xlink:to="loc_pubm_ShareBasedPaymentArrangementTaxBenefit_f88aab59-12fd-4cc6-8ad2-3c7f075a5208" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_b6925fd9-bf66-4f1e-b03a-abb40e2cd0da" 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_027f93d4-7aa7-4058-b0b0-cf9ef73ea090" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_b6925fd9-bf66-4f1e-b03a-abb40e2cd0da" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
