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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2023 Workiva-->
<!--r:4f0d6696-f06f-48ca-8c0b-71f00f860221,g:bf071932-0ecb-45cf-ab4f-75602b7cacb1-->
<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-20230930.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_f22fe3d9-5c80-4b0a-b59f-e151e4f31162" 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_e86ae550-c8e1-49ca-ae62-1d21aef474b5" 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_f22fe3d9-5c80-4b0a-b59f-e151e4f31162" xlink:to="loc_us-gaap_AccountsPayableCurrent_e86ae550-c8e1-49ca-ae62-1d21aef474b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_941c881c-0c9a-45d0-81ac-6500615f593c" 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_f22fe3d9-5c80-4b0a-b59f-e151e4f31162" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_941c881c-0c9a-45d0-81ac-6500615f593c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_8fd36da7-95e3-4490-b004-dad28e8ee48f" 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_f22fe3d9-5c80-4b0a-b59f-e151e4f31162" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_8fd36da7-95e3-4490-b004-dad28e8ee48f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_2f7ceedf-b3ee-4871-9226-7958a08ff9bb" 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_a9c97902-6142-4759-97ce-36b8c56aa8d7" 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_2f7ceedf-b3ee-4871-9226-7958a08ff9bb" xlink:to="loc_us-gaap_AssetsCurrent_a9c97902-6142-4759-97ce-36b8c56aa8d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_0991343b-d3e2-4ed4-9efb-01e8e903013a" 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_2f7ceedf-b3ee-4871-9226-7958a08ff9bb" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_0991343b-d3e2-4ed4-9efb-01e8e903013a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_6011ebee-113d-4d54-829c-4ac5133cc7d5" 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_2f7ceedf-b3ee-4871-9226-7958a08ff9bb" xlink:to="loc_us-gaap_Goodwill_6011ebee-113d-4d54-829c-4ac5133cc7d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_4ebab041-cbca-4d0a-a687-6c5196bf44c8" 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_2f7ceedf-b3ee-4871-9226-7958a08ff9bb" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_4ebab041-cbca-4d0a-a687-6c5196bf44c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_e14ecfbe-8e6c-482e-90b2-28125d58a591" 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_2f7ceedf-b3ee-4871-9226-7958a08ff9bb" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_e14ecfbe-8e6c-482e-90b2-28125d58a591" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_e9690a31-5dcf-4f1f-8a71-207a2d581eea" 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_2f7ceedf-b3ee-4871-9226-7958a08ff9bb" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_e9690a31-5dcf-4f1f-8a71-207a2d581eea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_1896dac5-a0ab-4f2a-93c4-47f7eedb0019" 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_2f7ceedf-b3ee-4871-9226-7958a08ff9bb" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_1896dac5-a0ab-4f2a-93c4-47f7eedb0019" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_1a1ec442-6bde-41c6-b7af-c72f41d08dfa" 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_6f5e8629-a508-4975-a9c2-be90efbe6af4" 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_1a1ec442-6bde-41c6-b7af-c72f41d08dfa" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_6f5e8629-a508-4975-a9c2-be90efbe6af4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_050c0142-7073-44c9-ba52-7985ad5306b2" 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_1a1ec442-6bde-41c6-b7af-c72f41d08dfa" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_050c0142-7073-44c9-ba52-7985ad5306b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_aff41e4e-5f87-4f54-b100-a1d868644455" 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_1a1ec442-6bde-41c6-b7af-c72f41d08dfa" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_aff41e4e-5f87-4f54-b100-a1d868644455" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_586259cb-fa92-47c3-a337-5339f5001762" 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_1a1ec442-6bde-41c6-b7af-c72f41d08dfa" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_586259cb-fa92-47c3-a337-5339f5001762" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_5a1a094c-71e7-49c7-ad25-c197d14b2947" 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_44a24425-af8e-4fb1-ab64-bd4f0be83cdc" 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_5a1a094c-71e7-49c7-ad25-c197d14b2947" xlink:to="loc_us-gaap_PreferredStockValue_44a24425-af8e-4fb1-ab64-bd4f0be83cdc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_7eee1486-e389-497c-87b1-e8fa175224a0" 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_5a1a094c-71e7-49c7-ad25-c197d14b2947" xlink:to="loc_us-gaap_CommonStockValue_7eee1486-e389-497c-87b1-e8fa175224a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_2d842043-ab59-4b51-8afe-b419680464a8" 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_5a1a094c-71e7-49c7-ad25-c197d14b2947" xlink:to="loc_us-gaap_TreasuryStockValue_2d842043-ab59-4b51-8afe-b419680464a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_bd5b5f8a-3e47-47c2-982b-f951c99e971e" 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_5a1a094c-71e7-49c7-ad25-c197d14b2947" xlink:to="loc_us-gaap_AdditionalPaidInCapital_bd5b5f8a-3e47-47c2-982b-f951c99e971e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_ef6d7d11-fc7d-4ac8-a26f-980326556250" 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_5a1a094c-71e7-49c7-ad25-c197d14b2947" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_ef6d7d11-fc7d-4ac8-a26f-980326556250" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_c4b2726a-96f9-440c-abb2-0c475e476cf0" 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_5a1a094c-71e7-49c7-ad25-c197d14b2947" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_c4b2726a-96f9-440c-abb2-0c475e476cf0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_fcebefec-dc5e-48d1-82be-67fb6d9bfa98" 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_fb2a5ffb-43f6-4371-bdf4-d2f1f1225315" 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_fcebefec-dc5e-48d1-82be-67fb6d9bfa98" xlink:to="loc_us-gaap_LiabilitiesCurrent_fb2a5ffb-43f6-4371-bdf4-d2f1f1225315" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_89b7a343-95ae-4216-8cd7-abb98db508c6" 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_fcebefec-dc5e-48d1-82be-67fb6d9bfa98" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_89b7a343-95ae-4216-8cd7-abb98db508c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_28964e12-a0bd-4bc0-803f-0ca59b8485ab" 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_fcebefec-dc5e-48d1-82be-67fb6d9bfa98" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_28964e12-a0bd-4bc0-803f-0ca59b8485ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_440392a4-6266-4922-85af-dc6b368dbe2d" 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_50fe2276-e600-4b05-b19a-1850b578c627" 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_440392a4-6266-4922-85af-dc6b368dbe2d" xlink:to="loc_us-gaap_Liabilities_50fe2276-e600-4b05-b19a-1850b578c627" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_f22ed826-7a1e-413b-9c76-3976051cecfa" 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_440392a4-6266-4922-85af-dc6b368dbe2d" xlink:to="loc_us-gaap_CommitmentsAndContingencies_f22ed826-7a1e-413b-9c76-3976051cecfa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_dcdb6969-8483-4a85-8538-d7aa78ec53fd" 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_440392a4-6266-4922-85af-dc6b368dbe2d" xlink:to="loc_us-gaap_StockholdersEquity_dcdb6969-8483-4a85-8538-d7aa78ec53fd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="pubm-20230930.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_f0cca0cb-d70d-4e38-91f1-d0a8e59f4533" 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_4e1ed397-aa0a-49c3-8d9f-f834e39056aa" 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_f0cca0cb-d70d-4e38-91f1-d0a8e59f4533" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_4e1ed397-aa0a-49c3-8d9f-f834e39056aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_1310f7ab-3661-482d-bb7a-908939c8a1f5" 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_f0cca0cb-d70d-4e38-91f1-d0a8e59f4533" xlink:to="loc_us-gaap_SellingAndMarketingExpense_1310f7ab-3661-482d-bb7a-908939c8a1f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_235d2972-7c86-4391-a2d4-939564ac3df3" 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_f0cca0cb-d70d-4e38-91f1-d0a8e59f4533" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_235d2972-7c86-4391-a2d4-939564ac3df3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_c96e55c6-2b9c-4380-8f53-1358ef9599a7" 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_db608e59-f8bc-4534-b0ca-873e9433fed4" 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_c96e55c6-2b9c-4380-8f53-1358ef9599a7" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_db608e59-f8bc-4534-b0ca-873e9433fed4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_010a554b-8eb9-41fc-a3dc-4f3541c10579" 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_c96e55c6-2b9c-4380-8f53-1358ef9599a7" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_010a554b-8eb9-41fc-a3dc-4f3541c10579" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_bc0e9306-2e0f-48df-be6a-f72f43fa439b" 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_8284c125-f499-40a6-a734-6f4108c4da81" 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_bc0e9306-2e0f-48df-be6a-f72f43fa439b" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_8284c125-f499-40a6-a734-6f4108c4da81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_bfd3cebd-7789-4b2c-98e3-394c735fa30e" 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_bc0e9306-2e0f-48df-be6a-f72f43fa439b" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_bfd3cebd-7789-4b2c-98e3-394c735fa30e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_540f1035-7202-4722-ae00-1a609ab39086" 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_2a591716-f640-4f3f-b1fe-960ab26d4390" 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_540f1035-7202-4722-ae00-1a609ab39086" xlink:to="loc_us-gaap_OperatingExpenses_2a591716-f640-4f3f-b1fe-960ab26d4390" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_e6f5cf7f-2c7e-4da3-af11-7c1578f0e5e2" 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_540f1035-7202-4722-ae00-1a609ab39086" xlink:to="loc_us-gaap_GrossProfit_e6f5cf7f-2c7e-4da3-af11-7c1578f0e5e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_836a7d4e-80f1-4da3-bde3-922ce9e2a0dd" 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_4055d3cd-1327-46e6-9097-f1798dfa3456" 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_836a7d4e-80f1-4da3-bde3-922ce9e2a0dd" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_4055d3cd-1327-46e6-9097-f1798dfa3456" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_fedb635c-1618-4ba5-ae9f-f6ed42f457ef" 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_836a7d4e-80f1-4da3-bde3-922ce9e2a0dd" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_fedb635c-1618-4ba5-ae9f-f6ed42f457ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_306d07be-d258-4970-8948-6ed7b72a9b95" 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_836a7d4e-80f1-4da3-bde3-922ce9e2a0dd" xlink:to="loc_us-gaap_OperatingIncomeLoss_306d07be-d258-4970-8948-6ed7b72a9b95" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="simple" xlink:href="pubm-20230930.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_458fe138-5a4d-4d53-8a0b-a843eff6feb8" 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_0e106295-8504-4fa7-a19d-8a16fd368602" 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_458fe138-5a4d-4d53-8a0b-a843eff6feb8" xlink:to="loc_us-gaap_NetIncomeLoss_0e106295-8504-4fa7-a19d-8a16fd368602" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_0b11cf86-eef3-4f44-be47-05efe60203c7" 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_458fe138-5a4d-4d53-8a0b-a843eff6feb8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_0b11cf86-eef3-4f44-be47-05efe60203c7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="pubm-20230930.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_4e9e74c7-d867-4dfc-a6ef-b03e5cea736d" 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_7ef1bf02-3d00-4d3b-90a4-9d381f4fad30" 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_4e9e74c7-d867-4dfc-a6ef-b03e5cea736d" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_7ef1bf02-3d00-4d3b-90a4-9d381f4fad30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_4342e700-7cb1-4e25-9618-c4ceb1485465" 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_4e9e74c7-d867-4dfc-a6ef-b03e5cea736d" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_4342e700-7cb1-4e25-9618-c4ceb1485465" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeasePrincipalPayments_dc042708-2275-4b65-890d-5041c2fc0cee" 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_4e9e74c7-d867-4dfc-a6ef-b03e5cea736d" xlink:to="loc_us-gaap_FinanceLeasePrincipalPayments_dc042708-2275-4b65-890d-5041c2fc0cee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockPlans_6817f848-a83a-49ea-85d5-3e91106c0e56" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromStockPlans"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4e9e74c7-d867-4dfc-a6ef-b03e5cea736d" xlink:to="loc_us-gaap_ProceedsFromStockPlans_6817f848-a83a-49ea-85d5-3e91106c0e56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5cb5ba88-221e-4c3a-aa47-727b4c97eca3" 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_81e658f6-f732-4790-90f3-3a524fff5065" 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_5cb5ba88-221e-4c3a-aa47-727b4c97eca3" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_81e658f6-f732-4790-90f3-3a524fff5065" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToDevelopSoftware_887f7bf1-b682-4f01-8a2d-58dc60146954" 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_5cb5ba88-221e-4c3a-aa47-727b4c97eca3" xlink:to="loc_us-gaap_PaymentsToDevelopSoftware_887f7bf1-b682-4f01-8a2d-58dc60146954" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMarketableSecurities_f8bc5469-f838-4af5-ad3e-60d1122ae47b" 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_5cb5ba88-221e-4c3a-aa47-727b4c97eca3" xlink:to="loc_us-gaap_PaymentsToAcquireMarketableSecurities_f8bc5469-f838-4af5-ad3e-60d1122ae47b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_53f12381-b1ef-4924-bdd5-106ddbc433b8" 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_5cb5ba88-221e-4c3a-aa47-727b4c97eca3" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_53f12381-b1ef-4924-bdd5-106ddbc433b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_fa44cb54-0067-4708-ad6a-9f771bd23cfc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5cb5ba88-221e-4c3a-aa47-727b4c97eca3" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_fa44cb54-0067-4708-ad6a-9f771bd23cfc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_bd87f99b-090b-4aad-8a36-8b32175edd38" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5cb5ba88-221e-4c3a-aa47-727b4c97eca3" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_bd87f99b-090b-4aad-8a36-8b32175edd38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_dc090bf8-15a7-4d6f-9831-c0e4749f6e9f" 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_a4f3be77-eb29-4c88-8015-f8c3a91d6e98" 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_dc090bf8-15a7-4d6f-9831-c0e4749f6e9f" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a4f3be77-eb29-4c88-8015-f8c3a91d6e98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f1979a8b-c976-43a5-86a0-50415685f30d" 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_dc090bf8-15a7-4d6f-9831-c0e4749f6e9f" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f1979a8b-c976-43a5-86a0-50415685f30d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_fe1b3173-3532-4691-942c-1db008d96928" 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_dc090bf8-15a7-4d6f-9831-c0e4749f6e9f" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_fe1b3173-3532-4691-942c-1db008d96928" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6e3c36a7-7b0d-481e-a833-c44593e8b5ed" 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_6b7fa0de-bfed-4fbf-8fe2-441c80fe4b85" 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_6e3c36a7-7b0d-481e-a833-c44593e8b5ed" xlink:to="loc_us-gaap_NetIncomeLoss_6b7fa0de-bfed-4fbf-8fe2-441c80fe4b85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDepreciationAndAmortization_9390bbfe-ffcc-43ac-a988-7cc87493682e" 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_6e3c36a7-7b0d-481e-a833-c44593e8b5ed" xlink:to="loc_us-gaap_OtherDepreciationAndAmortization_9390bbfe-ffcc-43ac-a988-7cc87493682e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_3501573e-95b0-4b95-81b5-676c76932fa9" 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_6e3c36a7-7b0d-481e-a833-c44593e8b5ed" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_3501573e-95b0-4b95-81b5-676c76932fa9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_9c350790-d99b-4b8e-b4b7-ea2a638f4a5c" 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_6e3c36a7-7b0d-481e-a833-c44593e8b5ed" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_9c350790-d99b-4b8e-b4b7-ea2a638f4a5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_ac779ec6-6248-423e-838d-091de83e3af2" 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_6e3c36a7-7b0d-481e-a833-c44593e8b5ed" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_ac779ec6-6248-423e-838d-091de83e3af2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_98f5fb05-eb1d-4b9c-9a0b-cf50b844182f" 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_6e3c36a7-7b0d-481e-a833-c44593e8b5ed" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_98f5fb05-eb1d-4b9c-9a0b-cf50b844182f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_516c8fce-cf02-449b-8065-5401fbed3a04" 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_6e3c36a7-7b0d-481e-a833-c44593e8b5ed" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_516c8fce-cf02-449b-8065-5401fbed3a04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_cd01ccd9-16c7-464b-acc1-5a48ac5bafaf" 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_6e3c36a7-7b0d-481e-a833-c44593e8b5ed" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_cd01ccd9-16c7-464b-acc1-5a48ac5bafaf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_a67ffebc-682a-4730-935a-9328eb6914b4" 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_6e3c36a7-7b0d-481e-a833-c44593e8b5ed" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_a67ffebc-682a-4730-935a-9328eb6914b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_0c464882-e75c-4ab8-9be4-223922a0e752" 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_6e3c36a7-7b0d-481e-a833-c44593e8b5ed" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_0c464882-e75c-4ab8-9be4-223922a0e752" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_617384c6-c9c6-47ad-9fdf-ddeb099286af" 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_6e3c36a7-7b0d-481e-a833-c44593e8b5ed" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_617384c6-c9c6-47ad-9fdf-ddeb099286af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_3e9b048a-d83f-4755-901d-65d5e3d9c4af" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6e3c36a7-7b0d-481e-a833-c44593e8b5ed" xlink:to="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_3e9b048a-d83f-4755-901d-65d5e3d9c4af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_NonCashLeaseExpense_abcdc044-06b6-4bec-8241-f701d5c9e7fd" xlink:href="pubm-20230930.xsd#pubm_NonCashLeaseExpense"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6e3c36a7-7b0d-481e-a833-c44593e8b5ed" xlink:to="loc_pubm_NonCashLeaseExpense_abcdc044-06b6-4bec-8241-f701d5c9e7fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_8e261311-28b9-4050-aa0b-bae18d8d8965" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6e3c36a7-7b0d-481e-a833-c44593e8b5ed" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_8e261311-28b9-4050-aa0b-bae18d8d8965" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_9dbc11f7-fa58-424c-80fb-22cac0dc6f48" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProvisionForDoubtfulAccounts"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6e3c36a7-7b0d-481e-a833-c44593e8b5ed" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_9dbc11f7-fa58-424c-80fb-22cac0dc6f48" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/FairValueMeasurementsDetails" xlink:type="simple" xlink:href="pubm-20230930.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_354666e1-845c-4c8f-ad75-aeca68ec94e9" 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_7a827339-a69f-46c6-b557-e4b73d938927" 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_354666e1-845c-4c8f-ad75-aeca68ec94e9" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_7a827339-a69f-46c6-b557-e4b73d938927" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_7fcdb669-db0c-4d1e-a0e7-2382438dac7a" 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_354666e1-845c-4c8f-ad75-aeca68ec94e9" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_7fcdb669-db0c-4d1e-a0e7-2382438dac7a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsSummaryofMarketableSecuritiesDetails" xlink:type="simple" xlink:href="pubm-20230930.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_e8b00a12-9e5d-4d94-94e6-959bbec7ff8b" 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_fad08d90-5b80-4c49-87a4-71ce457c58ec" 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_e8b00a12-9e5d-4d94-94e6-959bbec7ff8b" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_fad08d90-5b80-4c49-87a4-71ce457c58ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_5dcaa5ac-147e-4a00-90c3-9abdc0fb5d3b" 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_e8b00a12-9e5d-4d94-94e6-959bbec7ff8b" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_5dcaa5ac-147e-4a00-90c3-9abdc0fb5d3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_d93e4e61-dd9b-4a96-85ca-a93f1a8885a0" 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_e8b00a12-9e5d-4d94-94e6-959bbec7ff8b" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_d93e4e61-dd9b-4a96-85ca-a93f1a8885a0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareNetDetails" xlink:type="simple" xlink:href="pubm-20230930.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_af3efdb9-358c-4bbc-b45e-995ba8fa6fe1" 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_2feaf86d-d18c-4a49-a657-35a72001d7b9" 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_af3efdb9-358c-4bbc-b45e-995ba8fa6fe1" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_2feaf86d-d18c-4a49-a657-35a72001d7b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_899c0537-45b5-4e9e-b744-1330e3c11de6" 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_af3efdb9-358c-4bbc-b45e-995ba8fa6fe1" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_899c0537-45b5-4e9e-b744-1330e3c11de6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsScheduleofAccountsPayableDetails" xlink:type="simple" xlink:href="pubm-20230930.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_a30a1612-e370-4c0c-83ab-a0a4f7f70d4b" 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_dc0cfabf-c79b-4e5d-b59d-fb26e0966e98" 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_a30a1612-e370-4c0c-83ab-a0a4f7f70d4b" xlink:to="loc_us-gaap_AccountsPayableTradeCurrent_dc0cfabf-c79b-4e5d-b59d-fb26e0966e98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableOtherCurrent_ba3ca1c0-c817-493c-a252-347677355643" 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_a30a1612-e370-4c0c-83ab-a0a4f7f70d4b" xlink:to="loc_us-gaap_AccountsPayableOtherCurrent_ba3ca1c0-c817-493c-a252-347677355643" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails" xlink:type="simple" xlink:href="pubm-20230930.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_e0bbc9b6-3d86-4cf6-a2fa-5e2c99c67404" 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_3bac806b-5a68-44f5-8fad-bdcce40c8d44" 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_e0bbc9b6-3d86-4cf6-a2fa-5e2c99c67404" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_3bac806b-5a68-44f5-8fad-bdcce40c8d44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_d1fcba10-982f-4aa0-bbb6-bf5b392c1182" 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_e0bbc9b6-3d86-4cf6-a2fa-5e2c99c67404" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_d1fcba10-982f-4aa0-bbb6-bf5b392c1182" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/LeasesLeaseCostDetails" xlink:type="simple" xlink:href="pubm-20230930.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_cf52898b-6a35-4940-bef2-67244fdd45a5" 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_6cdd7b83-de90-4bad-9f08-777259242077" 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_cf52898b-6a35-4940-bef2-67244fdd45a5" xlink:to="loc_us-gaap_OperatingLeaseCost_6cdd7b83-de90-4bad-9f08-777259242077" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_a42170eb-396f-40f3-99b0-a55d7ff6cdbf" 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_cf52898b-6a35-4940-bef2-67244fdd45a5" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_a42170eb-396f-40f3-99b0-a55d7ff6cdbf" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/LeasesLeaseMaturityDetails" xlink:type="simple" xlink:href="pubm-20230930.xsd#LeasesLeaseMaturityDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/LeasesLeaseMaturityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_0c36f7e4-1b26-41d4-b302-459966cbf0b5" 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_fad1f52e-4794-439a-815c-7753b9db1cbe" 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_0c36f7e4-1b26-41d4-b302-459966cbf0b5" xlink:to="loc_us-gaap_FinanceLeaseLiability_fad1f52e-4794-439a-815c-7753b9db1cbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_ce677d9b-a5e2-4a89-ab92-bc793802aa05" 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_0c36f7e4-1b26-41d4-b302-459966cbf0b5" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_ce677d9b-a5e2-4a89-ab92-bc793802aa05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_156f529d-f261-4d0a-915f-d6ff0ef6d65b" xlink:href="pubm-20230930.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree_5771c2b3-4b64-402f-8194-75bcf4b239c1" xlink:href="pubm-20230930.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_156f529d-f261-4d0a-915f-d6ff0ef6d65b" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree_5771c2b3-4b64-402f-8194-75bcf4b239c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour_8a5df45c-2f33-42c8-9e0f-02dab5093768" xlink:href="pubm-20230930.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_156f529d-f261-4d0a-915f-d6ff0ef6d65b" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour_8a5df45c-2f33-42c8-9e0f-02dab5093768" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidAfterYearFour_88aa5013-e048-4cc4-8502-1927b31ae173" xlink:href="pubm-20230930.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_156f529d-f261-4d0a-915f-d6ff0ef6d65b" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidAfterYearFour_88aa5013-e048-4cc4-8502-1927b31ae173" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo_85e0a2c7-64d3-42b9-8475-5ec4f857b5bd" xlink:href="pubm-20230930.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_156f529d-f261-4d0a-915f-d6ff0ef6d65b" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo_85e0a2c7-64d3-42b9-8475-5ec4f857b5bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne_96c7a183-aca7-47d0-ac6a-827ecf942bf3" xlink:href="pubm-20230930.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_156f529d-f261-4d0a-915f-d6ff0ef6d65b" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne_96c7a183-aca7-47d0-ac6a-827ecf942bf3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear_23467e73-bc41-40b1-b3e7-365653ffa2a4" xlink:href="pubm-20230930.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_156f529d-f261-4d0a-915f-d6ff0ef6d65b" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear_23467e73-bc41-40b1-b3e7-365653ffa2a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidAfterYearFour_5fdff6e7-aa62-4ba9-b88e-01fa96c58499" xlink:href="pubm-20230930.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidAfterYearFour"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_FinanceLeaseLiabilityToBePaidAfterYearFour_058401f5-f340-42bb-a3fc-aedbd32b041e" xlink:href="pubm-20230930.xsd#pubm_FinanceLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidAfterYearFour_5fdff6e7-aa62-4ba9-b88e-01fa96c58499" xlink:to="loc_pubm_FinanceLeaseLiabilityToBePaidAfterYearFour_058401f5-f340-42bb-a3fc-aedbd32b041e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingLeaseLiabilityToBePaidAfterYearFor_41d01666-b08d-44a8-ba3c-2d18548e995a" xlink:href="pubm-20230930.xsd#pubm_LesseeOperatingLeaseLiabilityToBePaidAfterYearFor"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidAfterYearFour_5fdff6e7-aa62-4ba9-b88e-01fa96c58499" xlink:to="loc_pubm_LesseeOperatingLeaseLiabilityToBePaidAfterYearFor_41d01666-b08d-44a8-ba3c-2d18548e995a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount_8c13338b-9834-4892-916e-a73e3558c77a" xlink:href="pubm-20230930.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_2cb87b49-ec16-456a-838e-bde0dccd21e0" 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_8c13338b-9834-4892-916e-a73e3558c77a" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_2cb87b49-ec16-456a-838e-bde0dccd21e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_87ae2e07-191f-41d5-8ebc-8dea28dbcbe3" 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_8c13338b-9834-4892-916e-a73e3558c77a" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_87ae2e07-191f-41d5-8ebc-8dea28dbcbe3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour_a51213a3-856d-4a16-837c-d95d3659d86f" xlink:href="pubm-20230930.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_69c430c8-444b-4746-a79c-318a9cee552e" 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_a51213a3-856d-4a16-837c-d95d3659d86f" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_69c430c8-444b-4746-a79c-318a9cee552e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_2fac0b06-f2c4-451f-8c45-2211f5840cff" 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_a51213a3-856d-4a16-837c-d95d3659d86f" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_2fac0b06-f2c4-451f-8c45-2211f5840cff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_OperatingAndFinanceLeaseLiability_83800c3d-5f33-4f29-8710-6fa4ac5c5d44" xlink:href="pubm-20230930.xsd#pubm_OperatingAndFinanceLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_737cb511-dc7d-486e-bd64-33151462b500" 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_83800c3d-5f33-4f29-8710-6fa4ac5c5d44" xlink:to="loc_us-gaap_FinanceLeaseLiability_737cb511-dc7d-486e-bd64-33151462b500" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_7edbf82a-3f0f-4412-80a8-e32744c46b9b" 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_83800c3d-5f33-4f29-8710-6fa4ac5c5d44" xlink:to="loc_us-gaap_OperatingLeaseLiability_7edbf82a-3f0f-4412-80a8-e32744c46b9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_78159497-5c3c-4af7-b46c-96261b4241dc" 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_aaac2239-8b3e-4059-a7d1-f0dd277b0d57" 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_78159497-5c3c-4af7-b46c-96261b4241dc" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_aaac2239-8b3e-4059-a7d1-f0dd277b0d57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_22582d00-b633-4110-8771-34f0e48909aa" 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_78159497-5c3c-4af7-b46c-96261b4241dc" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_22582d00-b633-4110-8771-34f0e48909aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingLeaseLiabilityToBePaidAfterYearFor_873c9af5-efc4-4605-b874-1549c0ec8267" xlink:href="pubm-20230930.xsd#pubm_LesseeOperatingLeaseLiabilityToBePaidAfterYearFor"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_78159497-5c3c-4af7-b46c-96261b4241dc" xlink:to="loc_pubm_LesseeOperatingLeaseLiabilityToBePaidAfterYearFor_873c9af5-efc4-4605-b874-1549c0ec8267" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_5d51a994-3db0-4a71-b14b-4b8bb0d19da5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_78159497-5c3c-4af7-b46c-96261b4241dc" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_5d51a994-3db0-4a71-b14b-4b8bb0d19da5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_93ff86f3-e5d6-4811-80a4-d0d756e7c9c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_78159497-5c3c-4af7-b46c-96261b4241dc" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_93ff86f3-e5d6-4811-80a4-d0d756e7c9c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_7c4feab1-2bfb-4a31-b0cb-695c80edf899" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_78159497-5c3c-4af7-b46c-96261b4241dc" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_7c4feab1-2bfb-4a31-b0cb-695c80edf899" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne_bbc77508-fd07-42be-960d-507500241744" xlink:href="pubm-20230930.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_8229bb65-295f-4e83-8768-0034ac9346a3" 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_bbc77508-fd07-42be-960d-507500241744" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_8229bb65-295f-4e83-8768-0034ac9346a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_d3f25df8-d040-447d-bac8-cb3997f0e40a" 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_bbc77508-fd07-42be-960d-507500241744" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_d3f25df8-d040-447d-bac8-cb3997f0e40a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo_ce4bbec1-1345-4b32-860f-131fcc7ff8df" xlink:href="pubm-20230930.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_6071eaa5-5053-4186-b975-8eee16dbdea1" 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_ce4bbec1-1345-4b32-860f-131fcc7ff8df" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_6071eaa5-5053-4186-b975-8eee16dbdea1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_54f9e6c4-33fe-453a-9a98-200dcefa5203" 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_ce4bbec1-1345-4b32-860f-131fcc7ff8df" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_54f9e6c4-33fe-453a-9a98-200dcefa5203" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear_2d44e54f-4a76-46cb-bd2a-66b4268c54cd" xlink:href="pubm-20230930.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidRemainderOfFiscalYear"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_22b6f511-af43-41e7-b59f-0cc88a1cbe7f" 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_2d44e54f-4a76-46cb-bd2a-66b4268c54cd" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_22b6f511-af43-41e7-b59f-0cc88a1cbe7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_c078beda-db47-4514-996c-79eb976a1224" 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_2d44e54f-4a76-46cb-bd2a-66b4268c54cd" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_c078beda-db47-4514-996c-79eb976a1224" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree_2c954623-6333-4bcd-97bd-e12298a1fb4a" xlink:href="pubm-20230930.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_f24b5158-0443-41c3-b7da-9237b1ff64ce" 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_2c954623-6333-4bcd-97bd-e12298a1fb4a" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_f24b5158-0443-41c3-b7da-9237b1ff64ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_2da13630-9ca1-4056-a1e2-984868277ac2" 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_2c954623-6333-4bcd-97bd-e12298a1fb4a" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_2da13630-9ca1-4056-a1e2-984868277ac2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/LeasesLeaseMaturityDetails_1" xlink:type="simple" xlink:href="pubm-20230930.xsd#LeasesLeaseMaturityDetails_1"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/LeasesLeaseMaturityDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_81d0d65a-3276-4b96-ac43-dd61eae05eee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_FinanceLeaseLiabilityToBePaidAfterYearFour_f9bb197d-139d-4761-95a7-f7c9cbbe9202" xlink:href="pubm-20230930.xsd#pubm_FinanceLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_81d0d65a-3276-4b96-ac43-dd61eae05eee" xlink:to="loc_pubm_FinanceLeaseLiabilityToBePaidAfterYearFour_f9bb197d-139d-4761-95a7-f7c9cbbe9202" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_e0efd0bb-edd0-409c-bf7e-e045f55aaf29" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_81d0d65a-3276-4b96-ac43-dd61eae05eee" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_e0efd0bb-edd0-409c-bf7e-e045f55aaf29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_88211d1e-1a34-461d-a096-b5603acfd528" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_81d0d65a-3276-4b96-ac43-dd61eae05eee" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_88211d1e-1a34-461d-a096-b5603acfd528" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_83bf5428-8bba-4953-8c05-45a7d76e8a09" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_81d0d65a-3276-4b96-ac43-dd61eae05eee" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_83bf5428-8bba-4953-8c05-45a7d76e8a09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_24e89631-e474-4c86-a04c-2e73c89d8ce2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_81d0d65a-3276-4b96-ac43-dd61eae05eee" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_24e89631-e474-4c86-a04c-2e73c89d8ce2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_226f575f-4bed-4c4e-b26a-7650286d4254" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_81d0d65a-3276-4b96-ac43-dd61eae05eee" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_226f575f-4bed-4c4e-b26a-7650286d4254" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2ce07ad2-15cd-495e-9020-977c08a6b1c3" 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_c03b4ad1-fbed-4664-9f20-3a05d2b6abec" 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_2ce07ad2-15cd-495e-9020-977c08a6b1c3" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_c03b4ad1-fbed-4664-9f20-3a05d2b6abec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_2b8f3f8b-fa8e-4bfc-9b87-1b8210a8f2c2" 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_2ce07ad2-15cd-495e-9020-977c08a6b1c3" xlink:to="loc_us-gaap_OperatingLeaseLiability_2b8f3f8b-fa8e-4bfc-9b87-1b8210a8f2c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid_b2007467-0243-4f43-932d-f5f827667d23" xlink:href="pubm-20230930.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_279cce33-ec7d-4e3b-988b-a076d2581723" 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_b2007467-0243-4f43-932d-f5f827667d23" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_279cce33-ec7d-4e3b-988b-a076d2581723" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_f5d61b89-e192-4ef4-891c-efc45684fc8f" 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_b2007467-0243-4f43-932d-f5f827667d23" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_f5d61b89-e192-4ef4-891c-efc45684fc8f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/LeasesLeaseMaturityDetails_2" xlink:type="simple" xlink:href="pubm-20230930.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_46cb5294-cdd3-429e-ac71-6744f5d3a754" xlink:href="pubm-20230930.xsd#pubm_LesseeOperatingAndFinanceLeaseLiabilityToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount_adf27e31-5cb5-40df-a81f-e8a9891899e0" xlink:href="pubm-20230930.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_46cb5294-cdd3-429e-ac71-6744f5d3a754" xlink:to="loc_pubm_LesseeOperatingAndFinanceLeaseLiabilityUndiscountedExcessAmount_adf27e31-5cb5-40df-a81f-e8a9891899e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_OperatingAndFinanceLeaseLiability_7d994571-6f70-4395-a5c6-60b37ec09545" xlink:href="pubm-20230930.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_46cb5294-cdd3-429e-ac71-6744f5d3a754" xlink:to="loc_pubm_OperatingAndFinanceLeaseLiability_7d994571-6f70-4395-a5c6-60b37ec09545" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/AcquisitionrelatedIntangibleAssetsNetEstimatedFutureAmortizationDetails" xlink:type="simple" xlink:href="pubm-20230930.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_f881d4b1-bb36-4291-af13-acb0f12c3606" 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_4220de9a-e88a-46f8-bc67-b7fae21bb814" 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_f881d4b1-bb36-4291-af13-acb0f12c3606" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_4220de9a-e88a-46f8-bc67-b7fae21bb814" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_09c576c4-bd96-4c3a-a2b5-92ddd167d4c6" 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_f881d4b1-bb36-4291-af13-acb0f12c3606" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_09c576c4-bd96-4c3a-a2b5-92ddd167d4c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_efd85b5e-9ea4-4b23-a603-b57c23d7c207" 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_f881d4b1-bb36-4291-af13-acb0f12c3606" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_efd85b5e-9ea4-4b23-a603-b57c23d7c207" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_5d7271cf-ae55-423e-9459-610075f0b7eb" 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_f881d4b1-bb36-4291-af13-acb0f12c3606" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_5d7271cf-ae55-423e-9459-610075f0b7eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_e67ad44f-e0b9-459c-9418-910cc50c2700" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_f881d4b1-bb36-4291-af13-acb0f12c3606" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_e67ad44f-e0b9-459c-9418-910cc50c2700" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/StockholdersEquityandStockOptionPlansStockbasedCompensationExpenseDetails" xlink:type="simple" xlink:href="pubm-20230930.xsd#StockholdersEquityandStockOptionPlansStockbasedCompensationExpenseDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/StockholdersEquityandStockOptionPlansStockbasedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pubm_ShareBasedPaymentArrangementExpenseNet_d5ff2c79-1223-4192-81f7-32e188ee2919" xlink:href="pubm-20230930.xsd#pubm_ShareBasedPaymentArrangementExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_ShareBasedPaymentArrangementTaxBenefit_9b5659d6-5986-470d-9fd1-3c29299e20a8" xlink:href="pubm-20230930.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_d5ff2c79-1223-4192-81f7-32e188ee2919" xlink:to="loc_pubm_ShareBasedPaymentArrangementTaxBenefit_9b5659d6-5986-470d-9fd1-3c29299e20a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_258ea57e-e146-4881-b776-161ec043ce33" 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_d5ff2c79-1223-4192-81f7-32e188ee2919" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_258ea57e-e146-4881-b776-161ec043ce33" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://pubmatic.com/role/NetIncomeLossPerShareAttributabletoCommonStockholdersBasicandDilutedNetIncomeperShareDetails" xlink:type="simple" xlink:href="pubm-20230930.xsd#NetIncomeLossPerShareAttributabletoCommonStockholdersBasicandDilutedNetIncomeperShareDetails"/>
  <link:calculationLink xlink:role="http://pubmatic.com/role/NetIncomeLossPerShareAttributabletoCommonStockholdersBasicandDilutedNetIncomeperShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_0c8803c5-f7f4-477c-8c9f-73b558f4384c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_5fffee39-f1ab-4044-9eba-ad18f15855f0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_0c8803c5-f7f4-477c-8c9f-73b558f4384c" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_5fffee39-f1ab-4044-9eba-ad18f15855f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_IncrementalCommonSharesAttributableToEmployeeStockPurchasePlan_0c6cd34e-6132-4762-9d11-2fa7e1270859" xlink:href="pubm-20230930.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_0c8803c5-f7f4-477c-8c9f-73b558f4384c" xlink:to="loc_pubm_IncrementalCommonSharesAttributableToEmployeeStockPurchasePlan_0c6cd34e-6132-4762-9d11-2fa7e1270859" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_IncrementalCommonSharesAttributableToDilutiveEffectOfCallOptions_9ab89714-ef5f-4df8-8acb-20cf583ad1bd" xlink:href="pubm-20230930.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_0c8803c5-f7f4-477c-8c9f-73b558f4384c" xlink:to="loc_pubm_IncrementalCommonSharesAttributableToDilutiveEffectOfCallOptions_9ab89714-ef5f-4df8-8acb-20cf583ad1bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pubm_IncrementalCommonSharesAttributableToRestrictedStock_01999e30-6cba-49c8-b551-9d1320bd8474" xlink:href="pubm-20230930.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_0c8803c5-f7f4-477c-8c9f-73b558f4384c" xlink:to="loc_pubm_IncrementalCommonSharesAttributableToRestrictedStock_01999e30-6cba-49c8-b551-9d1320bd8474" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
