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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:725b1776-dc25-4687-bbd0-986f6408e739,g:a3688a1e-e939-4f08-a062-03f0d6e9b48d-->
<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-20210930.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_5c235368-78b8-451c-ae5d-ae6e3c539bc0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_035525e5-36f5-4edd-9f5f-e13c27df9e11" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5c235368-78b8-451c-ae5d-ae6e3c539bc0" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_035525e5-36f5-4edd-9f5f-e13c27df9e11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_c515329e-9242-41ec-ac10-ba9e7e6212f2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5c235368-78b8-451c-ae5d-ae6e3c539bc0" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_c515329e-9242-41ec-ac10-ba9e7e6212f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_0c87dece-9864-4988-b1f6-adad7328a91b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5c235368-78b8-451c-ae5d-ae6e3c539bc0" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_0c87dece-9864-4988-b1f6-adad7328a91b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_99e6a694-181c-4da4-a482-e376146ddc9d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5c235368-78b8-451c-ae5d-ae6e3c539bc0" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_99e6a694-181c-4da4-a482-e376146ddc9d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_60851397-9824-4037-8de4-cf78a8c764f2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_183e222a-9c89-453c-a08e-f24061734d98" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_60851397-9824-4037-8de4-cf78a8c764f2" xlink:to="loc_us-gaap_Liabilities_183e222a-9c89-453c-a08e-f24061734d98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_eb87bb81-6de8-4cb7-b66f-65409b4e46f4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_60851397-9824-4037-8de4-cf78a8c764f2" xlink:to="loc_us-gaap_CommitmentsAndContingencies_eb87bb81-6de8-4cb7-b66f-65409b4e46f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_f643efbb-deb6-479a-b025-cfe95fb1633c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_60851397-9824-4037-8de4-cf78a8c764f2" xlink:to="loc_us-gaap_StockholdersEquity_f643efbb-deb6-479a-b025-cfe95fb1633c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_2179671d-669e-49ef-ab84-1afd515c7a6c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_7e71700d-d75c-465e-8acd-daf2611a765b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_2179671d-669e-49ef-ab84-1afd515c7a6c" xlink:to="loc_us-gaap_LiabilitiesCurrent_7e71700d-d75c-465e-8acd-daf2611a765b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_1df89163-9288-4dce-8208-edc0adf6d34c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_2179671d-669e-49ef-ab84-1afd515c7a6c" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_1df89163-9288-4dce-8208-edc0adf6d34c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_61af5c42-d4b0-41ee-a977-d990b59f75ad" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_2179671d-669e-49ef-ab84-1afd515c7a6c" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_61af5c42-d4b0-41ee-a977-d990b59f75ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_e0a0df66-b93a-4633-ab4e-091d009e4d7e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_a21429c1-7481-4cc1-80ce-600b0c2f3c6e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_e0a0df66-b93a-4633-ab4e-091d009e4d7e" xlink:to="loc_us-gaap_AssetsCurrent_a21429c1-7481-4cc1-80ce-600b0c2f3c6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_82aa3ad3-1970-4795-9eb8-42b34175823e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e0a0df66-b93a-4633-ab4e-091d009e4d7e" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_82aa3ad3-1970-4795-9eb8-42b34175823e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_204d27e9-607d-4981-936c-30793a428ace" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_e0a0df66-b93a-4633-ab4e-091d009e4d7e" xlink:to="loc_us-gaap_Goodwill_204d27e9-607d-4981-936c-30793a428ace" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_4dd97c6f-3d17-4299-898f-24912f827060" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_e0a0df66-b93a-4633-ab4e-091d009e4d7e" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_4dd97c6f-3d17-4299-898f-24912f827060" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_4183413c-e2a8-4bd9-b282-7c0943d27bf9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_e0a0df66-b93a-4633-ab4e-091d009e4d7e" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_4183413c-e2a8-4bd9-b282-7c0943d27bf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_dd5771e1-9d89-48a3-8a4a-903cdc47f830" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_6a66555a-b017-40a0-ba76-cbc4fde6f038" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_dd5771e1-9d89-48a3-8a4a-903cdc47f830" xlink:to="loc_us-gaap_AccountsPayableCurrent_6a66555a-b017-40a0-ba76-cbc4fde6f038" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_a3338073-b9d8-4d8c-8b3c-6d255862d58c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_dd5771e1-9d89-48a3-8a4a-903cdc47f830" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_a3338073-b9d8-4d8c-8b3c-6d255862d58c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_229ac74c-eb94-4da4-837b-6adff1a6446c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_a7292254-575c-43c1-8d12-8f12d1122155" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_229ac74c-eb94-4da4-837b-6adff1a6446c" xlink:to="loc_us-gaap_PreferredStockValue_a7292254-575c-43c1-8d12-8f12d1122155" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_a3480d47-89b2-489b-a29a-a3264b54de78" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_229ac74c-eb94-4da4-837b-6adff1a6446c" xlink:to="loc_us-gaap_CommonStockValue_a3480d47-89b2-489b-a29a-a3264b54de78" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_36d8c65b-7621-4606-9003-0d0ef0917e39" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_229ac74c-eb94-4da4-837b-6adff1a6446c" xlink:to="loc_us-gaap_TreasuryStockValue_36d8c65b-7621-4606-9003-0d0ef0917e39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_65bfdd21-c1af-4b06-ad99-aaa32a2c7e8c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_229ac74c-eb94-4da4-837b-6adff1a6446c" xlink:to="loc_us-gaap_AdditionalPaidInCapital_65bfdd21-c1af-4b06-ad99-aaa32a2c7e8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_e6f4a24f-82a7-4960-aa57-fad15ab601c6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_229ac74c-eb94-4da4-837b-6adff1a6446c" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_e6f4a24f-82a7-4960-aa57-fad15ab601c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_70cc12b4-51f1-4f2c-b167-8ea9bff1ae7f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_229ac74c-eb94-4da4-837b-6adff1a6446c" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_70cc12b4-51f1-4f2c-b167-8ea9bff1ae7f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="pubm-20210930.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_da0b58d1-0e34-43b7-9b97-310ffce8929a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_b475bf45-120d-4899-bfb5-9ec2b49bcfbf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_da0b58d1-0e34-43b7-9b97-310ffce8929a" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_b475bf45-120d-4899-bfb5-9ec2b49bcfbf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_7b15b7ad-9a18-4f3f-a8c9-cfe60149c1ea" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_da0b58d1-0e34-43b7-9b97-310ffce8929a" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_7b15b7ad-9a18-4f3f-a8c9-cfe60149c1ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_16409ffc-7650-4b69-b277-36a9d8d9e9d8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_c85efa7a-0e85-428f-bc8d-42b278179e3b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_16409ffc-7650-4b69-b277-36a9d8d9e9d8" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_c85efa7a-0e85-428f-bc8d-42b278179e3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1a62f389-5d23-4962-ac86-fde716fb59e0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_16409ffc-7650-4b69-b277-36a9d8d9e9d8" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1a62f389-5d23-4962-ac86-fde716fb59e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_69c0a08b-e2a6-4b09-924f-eb15457b27bd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_79f46274-309b-48d7-bb36-84d52541423a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_69c0a08b-e2a6-4b09-924f-eb15457b27bd" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_79f46274-309b-48d7-bb36-84d52541423a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_64cf6ff8-6374-4a3a-a5c1-facb14cdd27b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_69c0a08b-e2a6-4b09-924f-eb15457b27bd" xlink:to="loc_us-gaap_OperatingIncomeLoss_64cf6ff8-6374-4a3a-a5c1-facb14cdd27b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_4ad37ada-7536-47cd-ba71-08836cea375e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_3b71e744-8b47-4190-8499-cef40cc3474c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_4ad37ada-7536-47cd-ba71-08836cea375e" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_3b71e744-8b47-4190-8499-cef40cc3474c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_545828c1-7453-44ff-a984-de439a194bbc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_4ad37ada-7536-47cd-ba71-08836cea375e" xlink:to="loc_us-gaap_SellingAndMarketingExpense_545828c1-7453-44ff-a984-de439a194bbc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_353771be-bcf3-454d-a5a4-9467a11d5662" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_4ad37ada-7536-47cd-ba71-08836cea375e" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_353771be-bcf3-454d-a5a4-9467a11d5662" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_b447ca9e-e111-492c-baf4-001e92d9c353" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_a06c4b50-b509-48d5-a948-f1f1a7db5263" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_b447ca9e-e111-492c-baf4-001e92d9c353" xlink:to="loc_us-gaap_OperatingExpenses_a06c4b50-b509-48d5-a948-f1f1a7db5263" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_f079ce20-03ac-44f7-887f-955f5bb3678a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_b447ca9e-e111-492c-baf4-001e92d9c353" xlink:to="loc_us-gaap_GrossProfit_f079ce20-03ac-44f7-887f-955f5bb3678a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_282ca0d7-d136-4a30-a39c-5c9b7ceb4f5f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_ec34d6d7-a53c-4e22-9e49-12f118321531" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_282ca0d7-d136-4a30-a39c-5c9b7ceb4f5f" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_ec34d6d7-a53c-4e22-9e49-12f118321531" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_75fd3933-4d69-4496-837f-d7649f7e6599" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_282ca0d7-d136-4a30-a39c-5c9b7ceb4f5f" xlink:to="loc_us-gaap_InvestmentIncomeInterest_75fd3933-4d69-4496-837f-d7649f7e6599" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="simple" xlink:href="pubm-20210930.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_60533370-145a-4d61-a417-f06392b1eaf5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_4b597273-6617-4a4d-ba6d-b53fcf2ee1be" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_60533370-145a-4d61-a417-f06392b1eaf5" xlink:to="loc_us-gaap_NetIncomeLoss_4b597273-6617-4a4d-ba6d-b53fcf2ee1be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_b86be110-b9c2-415b-b0ef-8db56e43f29a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_60533370-145a-4d61-a417-f06392b1eaf5" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_b86be110-b9c2-415b-b0ef-8db56e43f29a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="pubm-20210930.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_59eee536-3a5e-435f-a944-9b8930f41561" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_b8b75ffd-5ef6-43f0-88a2-33cd94bdc566" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_59eee536-3a5e-435f-a944-9b8930f41561" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_b8b75ffd-5ef6-43f0-88a2-33cd94bdc566" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_1e7383f6-c3c6-460e-a4c0-49d9ff6dd219" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_59eee536-3a5e-435f-a944-9b8930f41561" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_1e7383f6-c3c6-460e-a4c0-49d9ff6dd219" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_69e24389-15ef-4424-b265-56ab4e5d10ac" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_59eee536-3a5e-435f-a944-9b8930f41561" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_69e24389-15ef-4424-b265-56ab4e5d10ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_e18e7dad-615d-480f-965f-230fb786d7fc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_59eee536-3a5e-435f-a944-9b8930f41561" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_e18e7dad-615d-480f-965f-230fb786d7fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfNotesPayable_7a1eb4da-b2ae-40fa-aa4c-888038f1c6dc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromRepaymentsOfNotesPayable"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_59eee536-3a5e-435f-a944-9b8930f41561" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfNotesPayable_7a1eb4da-b2ae-40fa-aa4c-888038f1c6dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_32953c6d-d875-40ce-b58c-a12efa2e5351" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_39223fb9-705e-46eb-b841-8f4b40d601f9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_32953c6d-d875-40ce-b58c-a12efa2e5351" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_39223fb9-705e-46eb-b841-8f4b40d601f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToDevelopSoftware_893b347b-43f1-435d-a359-2dd541e07950" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_32953c6d-d875-40ce-b58c-a12efa2e5351" xlink:to="loc_us-gaap_PaymentsToDevelopSoftware_893b347b-43f1-435d-a359-2dd541e07950" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMarketableSecurities_e21e4e14-75f2-4cee-8173-8031d88afaf9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_32953c6d-d875-40ce-b58c-a12efa2e5351" xlink:to="loc_us-gaap_PaymentsToAcquireMarketableSecurities_e21e4e14-75f2-4cee-8173-8031d88afaf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfHeldToMaturitySecurities_115eb408-f7e6-4119-853e-802c386a5466" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfHeldToMaturitySecurities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_32953c6d-d875-40ce-b58c-a12efa2e5351" xlink:to="loc_us-gaap_ProceedsFromSaleOfHeldToMaturitySecurities_115eb408-f7e6-4119-853e-802c386a5466" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_bb61bb64-a755-4930-b269-203560f6ca2d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_32953c6d-d875-40ce-b58c-a12efa2e5351" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_bb61bb64-a755-4930-b269-203560f6ca2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_0f9eab13-dba9-4e15-9d2a-4f5b3c595dc3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6851f084-c8bc-48a1-89eb-b36141bfba37" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_0f9eab13-dba9-4e15-9d2a-4f5b3c595dc3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6851f084-c8bc-48a1-89eb-b36141bfba37" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a75dc87c-a7d1-429f-877e-ff3e7936ad57" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_0f9eab13-dba9-4e15-9d2a-4f5b3c595dc3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a75dc87c-a7d1-429f-877e-ff3e7936ad57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_68097cd0-95af-4b1c-a3ab-e9dc6e500b9c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_0f9eab13-dba9-4e15-9d2a-4f5b3c595dc3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_68097cd0-95af-4b1c-a3ab-e9dc6e500b9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5a901116-d0c0-45ac-935a-6f9988287769" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_e2d97269-50ac-4602-a04b-ec15ff4b34d2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5a901116-d0c0-45ac-935a-6f9988287769" xlink:to="loc_us-gaap_NetIncomeLoss_e2d97269-50ac-4602-a04b-ec15ff4b34d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDepreciationAndAmortization_645199e3-7ff2-464a-917a-6fe363960543" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5a901116-d0c0-45ac-935a-6f9988287769" xlink:to="loc_us-gaap_OtherDepreciationAndAmortization_645199e3-7ff2-464a-917a-6fe363960543" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_56708f6a-0eb4-4f0b-b1c0-8748e45bf80f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5a901116-d0c0-45ac-935a-6f9988287769" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_56708f6a-0eb4-4f0b-b1c0-8748e45bf80f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_131ec81d-2509-4dcb-bd71-9a7bab430b5b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProvisionForDoubtfulAccounts"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5a901116-d0c0-45ac-935a-6f9988287769" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_131ec81d-2509-4dcb-bd71-9a7bab430b5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_1d3fbd06-1c74-498c-bc5b-a8da46847fdb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5a901116-d0c0-45ac-935a-6f9988287769" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_1d3fbd06-1c74-498c-bc5b-a8da46847fdb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_d4b900b3-b3f0-4c0e-8229-e78e902f4ed2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5a901116-d0c0-45ac-935a-6f9988287769" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_d4b900b3-b3f0-4c0e-8229-e78e902f4ed2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_ffce9e6e-0c49-4a88-8480-3ee2adcde9cf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5a901116-d0c0-45ac-935a-6f9988287769" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_ffce9e6e-0c49-4a88-8480-3ee2adcde9cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_53c4f492-f05c-45b1-9aee-f67224258a59" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5a901116-d0c0-45ac-935a-6f9988287769" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_53c4f492-f05c-45b1-9aee-f67224258a59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_61c9cc6e-61ab-4230-92c5-b1d6e3a9faec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5a901116-d0c0-45ac-935a-6f9988287769" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_61c9cc6e-61ab-4230-92c5-b1d6e3a9faec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_754cc867-4b18-4f61-8623-0dfe14cee5d8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5a901116-d0c0-45ac-935a-6f9988287769" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_754cc867-4b18-4f61-8623-0dfe14cee5d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_2d8d02b7-f9e1-489b-bdec-a600dce6332b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5a901116-d0c0-45ac-935a-6f9988287769" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_2d8d02b7-f9e1-489b-bdec-a600dce6332b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_0299c150-10a8-45a8-88c0-1bfa764f2c32" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5a901116-d0c0-45ac-935a-6f9988287769" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_0299c150-10a8-45a8-88c0-1bfa764f2c32" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsSummaryofMarketableSecuritiesDetails" xlink:type="simple" xlink:href="pubm-20210930.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_b79b4d61-83fc-44e9-822a-ea83c2fdd963" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_b065e518-37c0-4994-b77b-badbe15de50f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_b79b4d61-83fc-44e9-822a-ea83c2fdd963" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_b065e518-37c0-4994-b77b-badbe15de50f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_83271023-b822-4233-b6d8-5bebc5efc589" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostCurrent_b79b4d61-83fc-44e9-822a-ea83c2fdd963" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_83271023-b822-4233-b6d8-5bebc5efc589" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_c3d5012a-575d-469f-ad8c-4c10181efd79" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostCurrent_b79b4d61-83fc-44e9-822a-ea83c2fdd963" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_c3d5012a-575d-469f-ad8c-4c10181efd79" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareNetDetails" xlink:type="simple" xlink:href="pubm-20210930.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_4a5b422d-0e29-432f-af94-65f53587aadc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_3f7daaf8-8cd2-415f-bd75-0e135f808ff2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_4a5b422d-0e29-432f-af94-65f53587aadc" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_3f7daaf8-8cd2-415f-bd75-0e135f808ff2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_e3511f90-db9a-494f-8852-e788a09a5bae" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_4a5b422d-0e29-432f-af94-65f53587aadc" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_e3511f90-db9a-494f-8852-e788a09a5bae" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsScheduleofAccountsPayableDetails" xlink:type="simple" xlink:href="pubm-20210930.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_460a0a9d-7372-44f7-b86f-dd3c8446a92e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableTradeCurrent_cecf2c9d-9b82-459c-911b-7d3c2f01bb2d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_460a0a9d-7372-44f7-b86f-dd3c8446a92e" xlink:to="loc_us-gaap_AccountsPayableTradeCurrent_cecf2c9d-9b82-459c-911b-7d3c2f01bb2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableOtherCurrent_83c0b7c5-3dbf-46cb-822a-4af6807d64b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_460a0a9d-7372-44f7-b86f-dd3c8446a92e" xlink:to="loc_us-gaap_AccountsPayableOtherCurrent_83c0b7c5-3dbf-46cb-822a-4af6807d64b5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsScheduleofAccruedExpensesDetails" xlink:type="simple" xlink:href="pubm-20210930.xsd#BalanceSheetComponentsScheduleofAccruedExpensesDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/BalanceSheetComponentsScheduleofAccruedExpensesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_306edd1c-1859-4031-b21f-bdb11cb54427" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_47843245-29f3-4cc4-92e1-bf19e68a121a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_306edd1c-1859-4031-b21f-bdb11cb54427" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_47843245-29f3-4cc4-92e1-bf19e68a121a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_939f7186-998d-4384-ae59-a326d5bf43ce" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_306edd1c-1859-4031-b21f-bdb11cb54427" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_939f7186-998d-4384-ae59-a326d5bf43ce" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/CommitmentsandContingenciesFutureMinimumCommitmentsDetails" xlink:type="simple" xlink:href="pubm-20210930.xsd#CommitmentsandContingenciesFutureMinimumCommitmentsDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CommitmentsandContingenciesFutureMinimumCommitmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractualObligation_9288078a-bd0c-48cb-b39b-c5ccd66f50f5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractualObligation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractualObligationDueInSecondYear_6d5f49f1-8138-4123-9014-65727accec5a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractualObligationDueInSecondYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ContractualObligation_9288078a-bd0c-48cb-b39b-c5ccd66f50f5" xlink:to="loc_us-gaap_ContractualObligationDueInSecondYear_6d5f49f1-8138-4123-9014-65727accec5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractualObligationDueInNextTwelveMonths_441018d4-2071-43f0-9eb5-dc4dad719eb1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractualObligationDueInNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ContractualObligation_9288078a-bd0c-48cb-b39b-c5ccd66f50f5" xlink:to="loc_us-gaap_ContractualObligationDueInNextTwelveMonths_441018d4-2071-43f0-9eb5-dc4dad719eb1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractualObligationDueInThirdYear_c0b6bc78-32a5-4587-a7b0-0b35f335f302" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractualObligationDueInThirdYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ContractualObligation_9288078a-bd0c-48cb-b39b-c5ccd66f50f5" xlink:to="loc_us-gaap_ContractualObligationDueInThirdYear_c0b6bc78-32a5-4587-a7b0-0b35f335f302" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractualObligationFutureMinimumPaymentsDueRemainderOfFiscalYear_111831b4-f834-4311-898b-b8c09bb2c76e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractualObligationFutureMinimumPaymentsDueRemainderOfFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ContractualObligation_9288078a-bd0c-48cb-b39b-c5ccd66f50f5" xlink:to="loc_us-gaap_ContractualObligationFutureMinimumPaymentsDueRemainderOfFiscalYear_111831b4-f834-4311-898b-b8c09bb2c76e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_92621f8c-be03-41c6-a9f7-56686f1a75b0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_ce5ecf18-5d66-4232-b1e9-243c7bf84438" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_92621f8c-be03-41c6-a9f7-56686f1a75b0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_ce5ecf18-5d66-4232-b1e9-243c7bf84438" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear_55e47bfe-a121-4866-8d77-e84f3062305c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_92621f8c-be03-41c6-a9f7-56686f1a75b0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear_55e47bfe-a121-4866-8d77-e84f3062305c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_1a7faece-6f94-401f-a9b3-8532056a5339" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_92621f8c-be03-41c6-a9f7-56686f1a75b0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_1a7faece-6f94-401f-a9b3-8532056a5339" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_21979236-c756-4f00-a525-ecd334fe02e1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_92621f8c-be03-41c6-a9f7-56686f1a75b0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_21979236-c756-4f00-a525-ecd334fe02e1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/StockholdersEquityandStockOptionPlansStockbasedCompensationExpenseDetails" xlink:type="simple" xlink:href="pubm-20210930.xsd#StockholdersEquityandStockOptionPlansStockbasedCompensationExpenseDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/StockholdersEquityandStockOptionPlansStockbasedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pubm_ShareBasedPaymentArrangementExpenseNet_a8837107-61bc-40ad-b33d-40264e69d8f4" xlink:href="pubm-20210930.xsd#pubm_ShareBasedPaymentArrangementExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_ShareBasedPaymentArrangementTaxBenefit_814b7719-994a-42bd-8eb7-a7525083907f" xlink:href="pubm-20210930.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_a8837107-61bc-40ad-b33d-40264e69d8f4" xlink:to="loc_pubm_ShareBasedPaymentArrangementTaxBenefit_814b7719-994a-42bd-8eb7-a7525083907f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_ec69067e-032f-4c87-b400-472b8c4ac1ae" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_a8837107-61bc-40ad-b33d-40264e69d8f4" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_ec69067e-032f-4c87-b400-472b8c4ac1ae" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/NetIncomePerShareAttributabletoCommonStockholdersBasicandDilutedNetIncomeperShareDetails" xlink:type="simple" xlink:href="pubm-20210930.xsd#NetIncomePerShareAttributabletoCommonStockholdersBasicandDilutedNetIncomeperShareDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/NetIncomePerShareAttributabletoCommonStockholdersBasicandDilutedNetIncomeperShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_d5e4f55d-fea6-4e08-ba6c-417fbbddf56e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_ccfb7493-17c1-4971-9d1d-f034862c5bb8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_NetIncomeLossAvailableToCommonStockholdersBasic_d5e4f55d-fea6-4e08-ba6c-417fbbddf56e" xlink:to="loc_us-gaap_NetIncomeLoss_ccfb7493-17c1-4971-9d1d-f034862c5bb8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_5db0cd6f-1ab0-409f-bea9-c40e36a4305f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_d5e4f55d-fea6-4e08-ba6c-417fbbddf56e" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_5db0cd6f-1ab0-409f-bea9-c40e36a4305f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_ReallocationOfNetIncomeLossAttributableToCommonStockholders_e7d09f96-0308-40c6-ba23-5c72c8403254" xlink:href="pubm-20210930.xsd#pubm_ReallocationOfNetIncomeLossAttributableToCommonStockholders"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_d5e4f55d-fea6-4e08-ba6c-417fbbddf56e" xlink:to="loc_pubm_ReallocationOfNetIncomeLossAttributableToCommonStockholders_e7d09f96-0308-40c6-ba23-5c72c8403254" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_68b3d3df-ca07-4355-9346-cd40a0ad16e5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_13eb52bf-2a99-454b-849f-e4a0952d57db" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_68b3d3df-ca07-4355-9346-cd40a0ad16e5" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_13eb52bf-2a99-454b-849f-e4a0952d57db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_IncrementalCommonSharesAttributableToEmployeeStockPurchasePlan_e94a74ad-88e5-4565-8580-04d03fe27e46" xlink:href="pubm-20210930.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_68b3d3df-ca07-4355-9346-cd40a0ad16e5" xlink:to="loc_pubm_IncrementalCommonSharesAttributableToEmployeeStockPurchasePlan_e94a74ad-88e5-4565-8580-04d03fe27e46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_IncrementalCommonSharesAttributableToDilutiveEffectOfCallOptions_d74beed0-e3d4-4b60-891c-84e0ef19f730" xlink:href="pubm-20210930.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_68b3d3df-ca07-4355-9346-cd40a0ad16e5" xlink:to="loc_pubm_IncrementalCommonSharesAttributableToDilutiveEffectOfCallOptions_d74beed0-e3d4-4b60-891c-84e0ef19f730" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_IncrementalCommonSharesAttributableToRestrictedStock_afba57f3-60ff-46ea-80eb-74f378f0a583" xlink:href="pubm-20210930.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_68b3d3df-ca07-4355-9346-cd40a0ad16e5" xlink:to="loc_pubm_IncrementalCommonSharesAttributableToRestrictedStock_afba57f3-60ff-46ea-80eb-74f378f0a583" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
