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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:9915ba0a-3d19-4eca-9204-ae61828ef550,g:169b7d5e-cb78-4a69-82a9-c667821d889f-->
<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://www.pentair.com/role/CondensedConsolidatedStatementsofOperationsandComprehensiveIncomeLoss" xlink:type="simple" xlink:href="pnr-20240630.xsd#CondensedConsolidatedStatementsofOperationsandComprehensiveIncomeLoss"/>
  <link:calculationLink xlink:role="http://www.pentair.com/role/CondensedConsolidatedStatementsofOperationsandComprehensiveIncomeLoss" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_ce01fc76-9b6e-4ee7-b6cf-044993792435" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare_76f527c5-72e3-4b1e-9f20-63ecad07c780" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareDiluted_ce01fc76-9b6e-4ee7-b6cf-044993792435" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare_76f527c5-72e3-4b1e-9f20-63ecad07c780" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerDilutedShare_b2f78cb6-b822-4a56-b58a-3cd642c6adc6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerDilutedShare"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareDiluted_ce01fc76-9b6e-4ee7-b6cf-044993792435" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerDilutedShare_b2f78cb6-b822-4a56-b58a-3cd642c6adc6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_d8bda052-8d8e-4983-9654-1e73a8381a7a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_687f03a9-5df2-4dc8-9ef8-f0e0627184ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_d8bda052-8d8e-4983-9654-1e73a8381a7a" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_687f03a9-5df2-4dc8-9ef8-f0e0627184ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_a1077515-ee07-4475-a205-6ca6403acb36" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_d8bda052-8d8e-4983-9654-1e73a8381a7a" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_a1077515-ee07-4475-a205-6ca6403acb36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_796ecd9d-1aa4-4c34-98dc-3a09345561a7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_d8bda052-8d8e-4983-9654-1e73a8381a7a" xlink:to="loc_us-gaap_OperatingIncomeLoss_796ecd9d-1aa4-4c34-98dc-3a09345561a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_d3e0d74e-5f1e-4a11-8c99-cf6d564b5c06" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_7f6117a6-ef0a-4601-8ba3-e04446655818" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_d3e0d74e-5f1e-4a11-8c99-cf6d564b5c06" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_7f6117a6-ef0a-4601-8ba3-e04446655818" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_1235cd77-2473-41e2-8c5b-872eaaa151ca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_d3e0d74e-5f1e-4a11-8c99-cf6d564b5c06" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_1235cd77-2473-41e2-8c5b-872eaaa151ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_ee4906c7-31fc-44c3-8eca-589d125351bf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_ada8516a-79da-4da3-bc8b-eb0994f3c069" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_ee4906c7-31fc-44c3-8eca-589d125351bf" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_ada8516a-79da-4da3-bc8b-eb0994f3c069" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationDuringPhaseOutPeriodNetOfTax_19cc7225-f240-4c91-8b45-cc4692403a64" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationDuringPhaseOutPeriodNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_ee4906c7-31fc-44c3-8eca-589d125351bf" xlink:to="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationDuringPhaseOutPeriodNetOfTax_19cc7225-f240-4c91-8b45-cc4692403a64" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_465f5010-be2b-4715-a4d0-a55e70d6070c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_359b6f94-701f-495a-b6b8-9d68f2e5367b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_465f5010-be2b-4715-a4d0-a55e70d6070c" xlink:to="loc_us-gaap_ProfitLoss_359b6f94-701f-495a-b6b8-9d68f2e5367b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_01fe0f4e-f5ca-4384-8186-b2f7ab96b8ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_465f5010-be2b-4715-a4d0-a55e70d6070c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_01fe0f4e-f5ca-4384-8186-b2f7ab96b8ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_a4002777-cd26-4d2f-aed3-e21c1d926439" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_465f5010-be2b-4715-a4d0-a55e70d6070c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_a4002777-cd26-4d2f-aed3-e21c1d926439" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_59495d71-7dd3-4b0b-8ed3-2e1f6f1424b6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_ff805d57-f588-4fa8-82d9-4959971f009c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_59495d71-7dd3-4b0b-8ed3-2e1f6f1424b6" xlink:to="loc_us-gaap_Revenues_ff805d57-f588-4fa8-82d9-4959971f009c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_c254e2e2-16d4-4f0a-8280-e0271be8d235" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_59495d71-7dd3-4b0b-8ed3-2e1f6f1424b6" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_c254e2e2-16d4-4f0a-8280-e0271be8d235" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_c8f2a31a-c8fa-4739-8d81-9f025a307e26" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_a019c2eb-1adb-4fcc-b14c-25a4ac1718c7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GrossProfit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_c8f2a31a-c8fa-4739-8d81-9f025a307e26" xlink:to="loc_us-gaap_GrossProfit_a019c2eb-1adb-4fcc-b14c-25a4ac1718c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_beb90ac4-938a-41c0-9457-b18bfe2398b8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_c8f2a31a-c8fa-4739-8d81-9f025a307e26" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_beb90ac4-938a-41c0-9457-b18bfe2398b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_20cb4c27-ee64-4b57-b246-30f64e13d5b4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_c8f2a31a-c8fa-4739-8d81-9f025a307e26" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_20cb4c27-ee64-4b57-b246-30f64e13d5b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_023ec718-eac9-4dbc-9a9b-564504fd983e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsPerBasicShare_7eff6c27-a9ab-4f7f-9543-e924d4e572e2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsPerBasicShare"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareBasic_023ec718-eac9-4dbc-9a9b-564504fd983e" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsPerBasicShare_7eff6c27-a9ab-4f7f-9543-e924d4e572e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerBasicShare_233c68df-bbe1-4856-90ab-a15faa53ce78" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerBasicShare"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareBasic_023ec718-eac9-4dbc-9a9b-564504fd983e" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerBasicShare_233c68df-bbe1-4856-90ab-a15faa53ce78" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.pentair.com/role/CondensedConsolidatedBalanceSheets" xlink:type="simple" xlink:href="pnr-20240630.xsd#CondensedConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.pentair.com/role/CondensedConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_db478966-422e-4685-af3d-96c4d9985237" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_82bc81b9-a64d-4b04-88ff-b06e57f1c99c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_db478966-422e-4685-af3d-96c4d9985237" xlink:to="loc_us-gaap_LiabilitiesCurrent_82bc81b9-a64d-4b04-88ff-b06e57f1c99c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_d6fb03cc-7d88-4e87-8be8-7cae2aff40bc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_db478966-422e-4685-af3d-96c4d9985237" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_d6fb03cc-7d88-4e87-8be8-7cae2aff40bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_1b53cce9-04af-4cc2-a28a-2f96551ecd6e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_db478966-422e-4685-af3d-96c4d9985237" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_1b53cce9-04af-4cc2-a28a-2f96551ecd6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_769bbecb-af77-4d54-b8a8-28d632678deb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_db478966-422e-4685-af3d-96c4d9985237" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_769bbecb-af77-4d54-b8a8-28d632678deb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_17e684b3-4227-403c-98f8-d52cb40bfa42" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_db478966-422e-4685-af3d-96c4d9985237" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_17e684b3-4227-403c-98f8-d52cb40bfa42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_dbda4657-5413-4357-8516-4df5733b523f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_59911016-3c60-4cc4-8e81-d6c7b7f9eb1f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_dbda4657-5413-4357-8516-4df5733b523f" xlink:to="loc_us-gaap_AssetsCurrent_59911016-3c60-4cc4-8e81-d6c7b7f9eb1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_4d906e59-5b53-4457-8754-82cafcf16f82" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_dbda4657-5413-4357-8516-4df5733b523f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_4d906e59-5b53-4457-8754-82cafcf16f82" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_89947573-e3e9-4bd9-b81c-09213712b3b8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_dbda4657-5413-4357-8516-4df5733b523f" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_89947573-e3e9-4bd9-b81c-09213712b3b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_3324cd6f-4b6b-4f01-95b4-8c3f116c7479" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1dc8ef57-139c-442f-9f29-f32498aec429" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_3324cd6f-4b6b-4f01-95b4-8c3f116c7479" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1dc8ef57-139c-442f-9f29-f32498aec429" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsAndNotesReceivableNet_881e1c2b-064f-4226-b825-7384d5a3fa71" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsAndNotesReceivableNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_3324cd6f-4b6b-4f01-95b4-8c3f116c7479" xlink:to="loc_us-gaap_AccountsAndNotesReceivableNet_881e1c2b-064f-4226-b825-7384d5a3fa71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_7c92ac3c-41cf-4bfa-966d-d3fe62a44ff5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_3324cd6f-4b6b-4f01-95b4-8c3f116c7479" xlink:to="loc_us-gaap_InventoryNet_7c92ac3c-41cf-4bfa-966d-d3fe62a44ff5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_5f1d5c6c-e780-4550-944f-a1aa53762295" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_3324cd6f-4b6b-4f01-95b4-8c3f116c7479" xlink:to="loc_us-gaap_OtherAssetsCurrent_5f1d5c6c-e780-4550-944f-a1aa53762295" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_f713ec90-4fe6-4e5d-ae6f-8e859f8d6bbe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_87488122-902c-436b-b1d4-0991b97cf23a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f713ec90-4fe6-4e5d-ae6f-8e859f8d6bbe" xlink:to="loc_us-gaap_AccountsPayableCurrent_87488122-902c-436b-b1d4-0991b97cf23a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent_caa60ff8-fe8f-49af-87b8-bf9cb95c54a7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f713ec90-4fe6-4e5d-ae6f-8e859f8d6bbe" xlink:to="loc_us-gaap_OtherLiabilitiesCurrent_caa60ff8-fe8f-49af-87b8-bf9cb95c54a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_3e00d835-76ad-47ba-893e-05613d8a5d83" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f713ec90-4fe6-4e5d-ae6f-8e859f8d6bbe" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_3e00d835-76ad-47ba-893e-05613d8a5d83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherShortTermBorrowings_fa08c1ca-8b67-459c-b92d-f6683fe40de0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherShortTermBorrowings"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f713ec90-4fe6-4e5d-ae6f-8e859f8d6bbe" xlink:to="loc_us-gaap_OtherShortTermBorrowings_fa08c1ca-8b67-459c-b92d-f6683fe40de0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_1ff7e39b-4029-430e-be62-4f7f28bcfca2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValueOutstanding_00a73d45-1ee1-4436-bc06-1cea4bf10f5f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockValueOutstanding"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_1ff7e39b-4029-430e-be62-4f7f28bcfca2" xlink:to="loc_us-gaap_CommonStockValueOutstanding_00a73d45-1ee1-4436-bc06-1cea4bf10f5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_0eda80e6-2e4b-4cce-badc-0f0279ef65cf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_1ff7e39b-4029-430e-be62-4f7f28bcfca2" xlink:to="loc_us-gaap_AdditionalPaidInCapital_0eda80e6-2e4b-4cce-badc-0f0279ef65cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_8430d58d-e487-4294-8760-dc3505806ff7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_1ff7e39b-4029-430e-be62-4f7f28bcfca2" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_8430d58d-e487-4294-8760-dc3505806ff7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_668f8081-8942-430e-8561-cc83f23ef7a2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_1ff7e39b-4029-430e-be62-4f7f28bcfca2" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_668f8081-8942-430e-8561-cc83f23ef7a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_d7123a68-cccb-44c1-82d5-4d6891764cf7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_39422739-2d22-4d3b-b176-4528581edb52" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_d7123a68-cccb-44c1-82d5-4d6891764cf7" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_39422739-2d22-4d3b-b176-4528581edb52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_064de83d-856d-48e5-85f9-7e910c8d5885" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_d7123a68-cccb-44c1-82d5-4d6891764cf7" xlink:to="loc_us-gaap_Goodwill_064de83d-856d-48e5-85f9-7e910c8d5885" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_599d1002-6aa5-40ae-93cc-5cc67055768d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsMiscellaneousNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_d7123a68-cccb-44c1-82d5-4d6891764cf7" xlink:to="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_599d1002-6aa5-40ae-93cc-5cc67055768d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_d45eba43-f457-4097-a0a2-5fd940663147" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_dcc3ac4f-cf88-4353-8aa6-c5b7ddba3d47" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_d45eba43-f457-4097-a0a2-5fd940663147" xlink:to="loc_us-gaap_Liabilities_dcc3ac4f-cf88-4353-8aa6-c5b7ddba3d47" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_ac47285d-86df-4b32-9359-c3ebc3fe8bcb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_d45eba43-f457-4097-a0a2-5fd940663147" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_ac47285d-86df-4b32-9359-c3ebc3fe8bcb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.pentair.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="pnr-20240630.xsd#CondensedConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.pentair.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b9a0f709-c384-4aad-8239-b6e1edee9451" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_de1497c2-eebc-46b8-90e0-ff2c203c57a9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b9a0f709-c384-4aad-8239-b6e1edee9451" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_de1497c2-eebc-46b8-90e0-ff2c203c57a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations_cf125eea-cc78-4af8-bc42-829b49e9dc90" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b9a0f709-c384-4aad-8239-b6e1edee9451" xlink:to="loc_us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations_cf125eea-cc78-4af8-bc42-829b49e9dc90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_168a2edb-76ce-4cb0-9f52-e0dd5ccc7350" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_8ebe0571-73c4-470d-b3b9-7c4afbc9a95f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_168a2edb-76ce-4cb0-9f52-e0dd5ccc7350" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_8ebe0571-73c4-470d-b3b9-7c4afbc9a95f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_8f7ec8e2-78b5-4029-a340-481627767ba3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_168a2edb-76ce-4cb0-9f52-e0dd5ccc7350" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_8f7ec8e2-78b5-4029-a340-481627767ba3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_ac09f5ae-4983-4183-af54-daf7e4ffe944" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_168a2edb-76ce-4cb0-9f52-e0dd5ccc7350" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_ac09f5ae-4983-4183-af54-daf7e4ffe944" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_6961cb44-3651-4a1d-a063-ac83c8582e5d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_168a2edb-76ce-4cb0-9f52-e0dd5ccc7350" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_6961cb44-3651-4a1d-a063-ac83c8582e5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_933d1f9d-1d8e-4686-822c-a58e2e5f5c3c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_fa46c514-feea-438c-a2c5-eeaca7be0ee9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_933d1f9d-1d8e-4686-822c-a58e2e5f5c3c" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_fa46c514-feea-438c-a2c5-eeaca7be0ee9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pnr_ProceedsIssuanceOfSharesShareBasedPaymentArrangementIncludingOptionExercisedNetOfSharesWithheld_91f690d9-8a74-463c-85cd-98f3d6b93bfa" xlink:href="pnr-20240630.xsd#pnr_ProceedsIssuanceOfSharesShareBasedPaymentArrangementIncludingOptionExercisedNetOfSharesWithheld"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_933d1f9d-1d8e-4686-822c-a58e2e5f5c3c" xlink:to="loc_pnr_ProceedsIssuanceOfSharesShareBasedPaymentArrangementIncludingOptionExercisedNetOfSharesWithheld_91f690d9-8a74-463c-85cd-98f3d6b93bfa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromShortTermDebt_e7c98539-dcfb-457a-8bf6-ed0d6f951ff1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromShortTermDebt"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_933d1f9d-1d8e-4686-822c-a58e2e5f5c3c" xlink:to="loc_us-gaap_ProceedsFromShortTermDebt_e7c98539-dcfb-457a-8bf6-ed0d6f951ff1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_b0a04332-62df-4eb0-80f5-1fbd12c684ca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_933d1f9d-1d8e-4686-822c-a58e2e5f5c3c" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_b0a04332-62df-4eb0-80f5-1fbd12c684ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfLinesOfCredit_554db575-ffec-4625-9177-5de4308c54d4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromRepaymentsOfLinesOfCredit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_933d1f9d-1d8e-4686-822c-a58e2e5f5c3c" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfLinesOfCredit_554db575-ffec-4625-9177-5de4308c54d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfEquity_eea4123e-c867-44d6-af01-0944892fa447" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForRepurchaseOfEquity"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_933d1f9d-1d8e-4686-822c-a58e2e5f5c3c" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfEquity_eea4123e-c867-44d6-af01-0944892fa447" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_cd08c320-8a50-4d1c-a91e-aed0167cb815" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1ec81660-41d2-426d-97ab-f9af74045b46" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_cd08c320-8a50-4d1c-a91e-aed0167cb815" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1ec81660-41d2-426d-97ab-f9af74045b46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7a01bf5b-ca40-4738-a78d-51f25961a240" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_cd08c320-8a50-4d1c-a91e-aed0167cb815" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7a01bf5b-ca40-4738-a78d-51f25961a240" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_8944bd90-7e5e-49a7-a4e1-c00ff3331f58" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_cd08c320-8a50-4d1c-a91e-aed0167cb815" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_8944bd90-7e5e-49a7-a4e1-c00ff3331f58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_9ea89dc9-499d-4f29-854b-d9f0929626d6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_cd08c320-8a50-4d1c-a91e-aed0167cb815" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_9ea89dc9-499d-4f29-854b-d9f0929626d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_befbe6c4-23a1-4800-8604-625702e03732" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_befbe6c4-23a1-4800-8604-625702e03732" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_11a6f280-1868-4303-b001-9aa4594026ae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:to="loc_us-gaap_ProfitLoss_11a6f280-1868-4303-b001-9aa4594026ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherCurrentLiabilities_ae23bc2c-9ec2-4ad6-ab97-da287c1b3585" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherCurrentLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherCurrentLiabilities_ae23bc2c-9ec2-4ad6-ab97-da287c1b3585" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_5beda090-6cd3-4786-b725-402dae673904" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:to="loc_us-gaap_ShareBasedCompensation_5beda090-6cd3-4786-b725-402dae673904" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_23732ff8-794e-489b-b327-088e1601b7a1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_23732ff8-794e-489b-b327-088e1601b7a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_90ab72c6-64f8-4a14-8614-ab8d168ca0fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_90ab72c6-64f8-4a14-8614-ab8d168ca0fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_57aade88-cfb7-42a9-9fbd-1b3c4106d7a8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Depreciation"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:to="loc_us-gaap_Depreciation_57aade88-cfb7-42a9-9fbd-1b3c4106d7a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_fbd0f2ed-0f20-4ffc-a51f-aad1c2dd0d1b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_fbd0f2ed-0f20-4ffc-a51f-aad1c2dd0d1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_0c085cc1-7d66-4a8a-b5c7-9ab2f15606c4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxesAndTaxCredits"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_0c085cc1-7d66-4a8a-b5c7-9ab2f15606c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherEmployeeRelatedLiabilities_b3146de1-e15e-4e65-a3d7-dcccd0b5f8a4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherEmployeeRelatedLiabilities"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherEmployeeRelatedLiabilities_b3146de1-e15e-4e65-a3d7-dcccd0b5f8a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_97a61eaa-c2cd-4721-a1fb-835a5c01d437" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_97a61eaa-c2cd-4721-a1fb-835a5c01d437" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_97f929cc-9f26-4b93-8669-94ea7eb60b61" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_97f929cc-9f26-4b93-8669-94ea7eb60b61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_e5133e98-18a2-4ef5-9ec3-369beabf9e2b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:to="loc_us-gaap_AssetImpairmentCharges_e5133e98-18a2-4ef5-9ec3-369beabf9e2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssetsAndLiabilitiesNet_67f6d47a-1966-45e2-98a9-a0f27a05f114" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentAssetsAndLiabilitiesNet"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssetsAndLiabilitiesNet_67f6d47a-1966-45e2-98a9-a0f27a05f114" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherCurrentAssets_121e5e96-12e7-4598-91c5-4aeadbf0897a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherCurrentAssets"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherCurrentAssets_121e5e96-12e7-4598-91c5-4aeadbf0897a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_616e7889-4835-45f0-99e8-6708380604d7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:calculationArc order="16" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_04d0cd77-07a0-41b6-b877-65d961c296fd" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_616e7889-4835-45f0-99e8-6708380604d7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.pentair.com/role/RevenueScheduleofContractAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="pnr-20240630.xsd#RevenueScheduleofContractAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.pentair.com/role/RevenueScheduleofContractAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pnr_ContractWithCustomerAssetLiabilityNet_b3000041-8ac0-4014-b1a3-10ac06fc51f5" xlink:href="pnr-20240630.xsd#pnr_ContractWithCustomerAssetLiabilityNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetCurrent_66f9be21-805b-434b-a1a4-cd91d90e941e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerAssetNetCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pnr_ContractWithCustomerAssetLiabilityNet_b3000041-8ac0-4014-b1a3-10ac06fc51f5" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetCurrent_66f9be21-805b-434b-a1a4-cd91d90e941e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiability_eb6ed420-305e-4e79-8a2e-af362085a478" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerLiability"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pnr_ContractWithCustomerAssetLiabilityNet_b3000041-8ac0-4014-b1a3-10ac06fc51f5" xlink:to="loc_us-gaap_ContractWithCustomerLiability_eb6ed420-305e-4e79-8a2e-af362085a478" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.pentair.com/role/RestructuringandTransformationProgramCostsIncludedinSellingGeneralAdministrativeExpensesDetail" xlink:type="simple" xlink:href="pnr-20240630.xsd#RestructuringandTransformationProgramCostsIncludedinSellingGeneralAdministrativeExpensesDetail"/>
  <link:calculationLink xlink:role="http://www.pentair.com/role/RestructuringandTransformationProgramCostsIncludedinSellingGeneralAdministrativeExpensesDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pnr_TotalRestructuringAndTransformationCosts_6a43bcb4-ebb8-4819-8871-999f7ff25149" xlink:href="pnr-20240630.xsd#pnr_TotalRestructuringAndTransformationCosts"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_ad8b5318-1c7e-4045-aeac-82f9973a0667" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringCharges"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pnr_TotalRestructuringAndTransformationCosts_6a43bcb4-ebb8-4819-8871-999f7ff25149" xlink:to="loc_us-gaap_RestructuringCharges_ad8b5318-1c7e-4045-aeac-82f9973a0667" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pnr_TransformationCosts_53473f42-297e-419b-b777-b2c329c1b421" xlink:href="pnr-20240630.xsd#pnr_TransformationCosts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pnr_TotalRestructuringAndTransformationCosts_6a43bcb4-ebb8-4819-8871-999f7ff25149" xlink:to="loc_pnr_TransformationCosts_53473f42-297e-419b-b777-b2c329c1b421" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.pentair.com/role/EarningsPerShareBasicandDilutedEarningsPerShareDetail" xlink:type="simple" xlink:href="pnr-20240630.xsd#EarningsPerShareBasicandDilutedEarningsPerShareDetail"/>
  <link:calculationLink xlink:role="http://www.pentair.com/role/EarningsPerShareBasicandDilutedEarningsPerShareDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_e9e388db-7bd2-435e-b0fa-3a212edacd21" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_d1839af0-2398-4eb1-b79e-60e30ea979dc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_e9e388db-7bd2-435e-b0fa-3a212edacd21" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_d1839af0-2398-4eb1-b79e-60e30ea979dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_7553f80f-c5be-454b-aada-692502559be9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_e9e388db-7bd2-435e-b0fa-3a212edacd21" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_7553f80f-c5be-454b-aada-692502559be9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.pentair.com/role/SupplementalBalanceSheetInformationDetail" xlink:type="simple" xlink:href="pnr-20240630.xsd#SupplementalBalanceSheetInformationDetail"/>
  <link:calculationLink xlink:role="http://www.pentair.com/role/SupplementalBalanceSheetInformationDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_8af1d20b-6efb-436f-a819-f4311cf5caad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandAndLandImprovements_d213d8f4-63eb-4a7f-bc1b-f5287621b32c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LandAndLandImprovements"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_8af1d20b-6efb-436f-a819-f4311cf5caad" xlink:to="loc_us-gaap_LandAndLandImprovements_d213d8f4-63eb-4a7f-bc1b-f5287621b32c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingsAndImprovementsGross_62459022-0006-421f-b82b-5847f3277f77" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BuildingsAndImprovementsGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_8af1d20b-6efb-436f-a819-f4311cf5caad" xlink:to="loc_us-gaap_BuildingsAndImprovementsGross_62459022-0006-421f-b82b-5847f3277f77" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentGross_7750d8e8-4a73-4537-8434-6eff69955d3d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MachineryAndEquipmentGross"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_8af1d20b-6efb-436f-a819-f4311cf5caad" xlink:to="loc_us-gaap_MachineryAndEquipmentGross_7750d8e8-4a73-4537-8434-6eff69955d3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedComputerSoftwareGross_be59fcdc-b67e-414f-b922-73297856f618" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CapitalizedComputerSoftwareGross"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_8af1d20b-6efb-436f-a819-f4311cf5caad" xlink:to="loc_us-gaap_CapitalizedComputerSoftwareGross_be59fcdc-b67e-414f-b922-73297856f618" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressGross_79a97d2a-fa93-49a2-a8bb-58401e2ebb46" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConstructionInProgressGross"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_8af1d20b-6efb-436f-a819-f4311cf5caad" xlink:to="loc_us-gaap_ConstructionInProgressGross_79a97d2a-fa93-49a2-a8bb-58401e2ebb46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_92ae9087-33e7-4584-a571-7e699e60071e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_b1f870bf-d60a-49ae-ab92-be59992f1ea7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_92ae9087-33e7-4584-a571-7e699e60071e" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_b1f870bf-d60a-49ae-ab92-be59992f1ea7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_dbeb25f1-c2a9-4743-8adc-567f5e3cb64d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_92ae9087-33e7-4584-a571-7e699e60071e" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_dbeb25f1-c2a9-4743-8adc-567f5e3cb64d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_a06e4378-722d-4702-9c35-06ac3b0b70c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPrepaidExpenseCurrent_f4b3640d-3b57-4a7a-b516-bafceb049561" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherPrepaidExpenseCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsCurrent_a06e4378-722d-4702-9c35-06ac3b0b70c6" xlink:to="loc_us-gaap_OtherPrepaidExpenseCurrent_f4b3640d-3b57-4a7a-b516-bafceb049561" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pnr_OtherCurrentAssets_a4eabff8-dc9e-427c-9af7-ceafe33d4998" xlink:href="pnr-20240630.xsd#pnr_OtherCurrentAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsCurrent_a06e4378-722d-4702-9c35-06ac3b0b70c6" xlink:to="loc_pnr_OtherCurrentAssets_a4eabff8-dc9e-427c-9af7-ceafe33d4998" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetCurrent_dd1573fa-f254-4b7c-acf6-e55c47d190e4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerAssetNetCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsCurrent_a06e4378-722d-4702-9c35-06ac3b0b70c6" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetCurrent_dd1573fa-f254-4b7c-acf6-e55c47d190e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent_cb7840c9-933e-4776-9a5a-7bda58cda4ca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductWarrantyAccrualClassifiedCurrent_d0b3271d-8c05-4e57-837b-fc30d277a7ee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProductWarrantyAccrualClassifiedCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_cb7840c9-933e-4776-9a5a-7bda58cda4ca" xlink:to="loc_us-gaap_ProductWarrantyAccrualClassifiedCurrent_d0b3271d-8c05-4e57-837b-fc30d277a7ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pnr_AccruedFreight_03b6531b-f3a8-4bb1-b9c1-dd99b80a780d" xlink:href="pnr-20240630.xsd#pnr_AccruedFreight"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_cb7840c9-933e-4776-9a5a-7bda58cda4ca" xlink:to="loc_pnr_AccruedFreight_03b6531b-f3a8-4bb1-b9c1-dd99b80a780d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserve_cc65d16f-25c2-4b45-bbe3-2d7dcea35485" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringReserve"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_cb7840c9-933e-4776-9a5a-7bda58cda4ca" xlink:to="loc_us-gaap_RestructuringReserve_cc65d16f-25c2-4b45-bbe3-2d7dcea35485" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPayableCurrent_0304aa9c-752f-4e20-ba00-8e1204369abf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DividendsPayableCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_cb7840c9-933e-4776-9a5a-7bda58cda4ca" xlink:to="loc_us-gaap_DividendsPayableCurrent_0304aa9c-752f-4e20-ba00-8e1204369abf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_beeba8f3-d68e-48e2-835b-7b8a1ad2d346" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_cb7840c9-933e-4776-9a5a-7bda58cda4ca" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_beeba8f3-d68e-48e2-835b-7b8a1ad2d346" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_a55b8cfd-57c1-4d3b-8799-05e7ac7bc59a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_cb7840c9-933e-4776-9a5a-7bda58cda4ca" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_a55b8cfd-57c1-4d3b-8799-05e7ac7bc59a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesPayableCurrentAndNoncurrent_560a32e6-5d77-4a9b-9ee8-0e62bf4a165a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxesPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_cb7840c9-933e-4776-9a5a-7bda58cda4ca" xlink:to="loc_us-gaap_TaxesPayableCurrentAndNoncurrent_560a32e6-5d77-4a9b-9ee8-0e62bf4a165a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_82746818-719e-41ba-99d1-f104cef39148" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_cb7840c9-933e-4776-9a5a-7bda58cda4ca" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_82746818-719e-41ba-99d1-f104cef39148" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedExchangeFeeRebateCurrentAndNoncurrent_2f810a48-a151-4ce7-8d46-07b7bfd0f045" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedExchangeFeeRebateCurrentAndNoncurrent"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_cb7840c9-933e-4776-9a5a-7bda58cda4ca" xlink:to="loc_us-gaap_AccruedExchangeFeeRebateCurrentAndNoncurrent_2f810a48-a151-4ce7-8d46-07b7bfd0f045" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_3862b36c-192c-478c-9e0b-87ef773472b7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesCurrent_cb7840c9-933e-4776-9a5a-7bda58cda4ca" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_3862b36c-192c-478c-9e0b-87ef773472b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_2f96b22c-2540-4ebd-8881-0bb4256caf54" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsMiscellaneousNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_47c14e09-b478-4206-aef1-18431d37511d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_2f96b22c-2540-4ebd-8881-0bb4256caf54" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_47c14e09-b478-4206-aef1-18431d37511d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pnr_OtherLongTermAssets_a0027f88-9939-4e36-acd1-02aae6320382" xlink:href="pnr-20240630.xsd#pnr_OtherLongTermAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_2f96b22c-2540-4ebd-8881-0bb4256caf54" xlink:to="loc_pnr_OtherLongTermAssets_a0027f88-9939-4e36-acd1-02aae6320382" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_e2275f47-ece7-482e-8172-338ff20b311b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_2f96b22c-2540-4ebd-8881-0bb4256caf54" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_e2275f47-ece7-482e-8172-338ff20b311b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationPlanAssets_8e0ce300-01dd-4ee3-b1c2-eab253e042b8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredCompensationPlanAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_2f96b22c-2540-4ebd-8881-0bb4256caf54" xlink:to="loc_us-gaap_DeferredCompensationPlanAssets_8e0ce300-01dd-4ee3-b1c2-eab253e042b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_2addd5a1-feb7-42f2-8c99-9df95411acd2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsAndSupplies_36791404-3364-4bb4-9c57-ccf4156d90dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryRawMaterialsAndSupplies"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_2addd5a1-feb7-42f2-8c99-9df95411acd2" xlink:to="loc_us-gaap_InventoryRawMaterialsAndSupplies_36791404-3364-4bb4-9c57-ccf4156d90dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcess_bc88502d-9553-48b6-8361-058c17fffa7a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryWorkInProcess"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_2addd5a1-feb7-42f2-8c99-9df95411acd2" xlink:to="loc_us-gaap_InventoryWorkInProcess_bc88502d-9553-48b6-8361-058c17fffa7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoods_8f14561d-c0b6-4cbd-ab79-39bb1c3410b5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryFinishedGoods"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_2addd5a1-feb7-42f2-8c99-9df95411acd2" xlink:to="loc_us-gaap_InventoryFinishedGoods_8f14561d-c0b6-4cbd-ab79-39bb1c3410b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_9216d4d3-88b0-4d50-880b-5a9e2dd40506" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_038f14b7-1bd4-4132-ae89-403a779cd8ec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_9216d4d3-88b0-4d50-880b-5a9e2dd40506" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_038f14b7-1bd4-4132-ae89-403a779cd8ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesNoncurrent_0e42a075-8598-4352-a2a8-4546c08a201b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedIncomeTaxesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_9216d4d3-88b0-4d50-880b-5a9e2dd40506" xlink:to="loc_us-gaap_AccruedIncomeTaxesNoncurrent_0e42a075-8598-4352-a2a8-4546c08a201b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SelfInsuranceReserveNoncurrent_289f9867-3a9b-40df-be82-6a0dd19d9829" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SelfInsuranceReserveNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_9216d4d3-88b0-4d50-880b-5a9e2dd40506" xlink:to="loc_us-gaap_SelfInsuranceReserveNoncurrent_289f9867-3a9b-40df-be82-6a0dd19d9829" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationLiabilityCurrent_4e9a23dd-1aaa-4520-9c9b-0f6d777522c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredCompensationLiabilityCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_9216d4d3-88b0-4d50-880b-5a9e2dd40506" xlink:to="loc_us-gaap_DeferredCompensationLiabilityCurrent_4e9a23dd-1aaa-4520-9c9b-0f6d777522c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pnr_OtherLongTermLiabilities_75f04aad-aa36-4334-92d0-570fdf95845b" xlink:href="pnr-20240630.xsd#pnr_OtherLongTermLiabilities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_9216d4d3-88b0-4d50-880b-5a9e2dd40506" xlink:to="loc_pnr_OtherLongTermLiabilities_75f04aad-aa36-4334-92d0-570fdf95845b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure_ddc34ee7-43ae-4a09-8ce7-f18831127477" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_9216d4d3-88b0-4d50-880b-5a9e2dd40506" xlink:to="loc_us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure_ddc34ee7-43ae-4a09-8ce7-f18831127477" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.pentair.com/role/GoodwillandOtherIdentifiableIntangibleAssetsDetailofIdentifiableIntangibleAssetsDetail" xlink:type="simple" xlink:href="pnr-20240630.xsd#GoodwillandOtherIdentifiableIntangibleAssetsDetailofIdentifiableIntangibleAssetsDetail"/>
  <link:calculationLink xlink:role="http://www.pentair.com/role/GoodwillandOtherIdentifiableIntangibleAssetsDetailofIdentifiableIntangibleAssetsDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_82664831-8004-4bde-85b6-e0279ff4e309" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_02e6374c-5abc-4c8e-8393-b8b8c979803e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_82664831-8004-4bde-85b6-e0279ff4e309" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_02e6374c-5abc-4c8e-8393-b8b8c979803e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_376682d6-f0bd-4fc3-a88c-1b94c15afe00" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_82664831-8004-4bde-85b6-e0279ff4e309" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_376682d6-f0bd-4fc3-a88c-1b94c15afe00" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.pentair.com/role/DebtDebtandAverageInterestRatesonDebtOutstandingDetail" xlink:type="simple" xlink:href="pnr-20240630.xsd#DebtDebtandAverageInterestRatesonDebtOutstandingDetail"/>
  <link:calculationLink xlink:role="http://www.pentair.com/role/DebtDebtandAverageInterestRatesonDebtOutstandingDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_11dc782d-6593-40c9-bc54-d40bc0e1c2e5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtLongtermAndShorttermCombinedAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherShortTermBorrowings_972a2bdd-31a8-4ef9-aa70-9056e8b65b1f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherShortTermBorrowings"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_11dc782d-6593-40c9-bc54-d40bc0e1c2e5" xlink:to="loc_us-gaap_OtherShortTermBorrowings_972a2bdd-31a8-4ef9-aa70-9056e8b65b1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_8047e5b4-4e8a-4c18-9b03-359520150f34" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_11dc782d-6593-40c9-bc54-d40bc0e1c2e5" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_8047e5b4-4e8a-4c18-9b03-359520150f34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnamortizedDebtIssuanceExpense_ef03a41e-1649-4282-a6dd-5b0ca79a0fab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnamortizedDebtIssuanceExpense"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_11dc782d-6593-40c9-bc54-d40bc0e1c2e5" xlink:to="loc_us-gaap_UnamortizedDebtIssuanceExpense_ef03a41e-1649-4282-a6dd-5b0ca79a0fab" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.pentair.com/role/DebtDebtandAverageInterestRatesonDebtOutstandingDetail_1" xlink:type="simple" xlink:href="pnr-20240630.xsd#DebtDebtandAverageInterestRatesonDebtOutstandingDetail_1"/>
  <link:calculationLink xlink:role="http://www.pentair.com/role/DebtDebtandAverageInterestRatesonDebtOutstandingDetail_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_17fc9c28-8a1e-472b-a127-04c3b6dd903d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtLongtermAndShorttermCombinedAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_0757fe2d-8da1-4f67-86e9-e63e0bb64e93" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_17fc9c28-8a1e-472b-a127-04c3b6dd903d" xlink:to="loc_us-gaap_LongTermDebt_0757fe2d-8da1-4f67-86e9-e63e0bb64e93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherShortTermBorrowings_c8a4ba27-a373-4eb0-abc9-133bcf2a473e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherShortTermBorrowings"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_17fc9c28-8a1e-472b-a127-04c3b6dd903d" xlink:to="loc_us-gaap_OtherShortTermBorrowings_c8a4ba27-a373-4eb0-abc9-133bcf2a473e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.pentair.com/role/DebtDebtOutstandingMaturesonCalendarYearBasisDetail" xlink:type="simple" xlink:href="pnr-20240630.xsd#DebtDebtOutstandingMaturesonCalendarYearBasisDetail"/>
  <link:calculationLink xlink:role="http://www.pentair.com/role/DebtDebtOutstandingMaturesonCalendarYearBasisDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pnr_DebtLongTermAndShortTermCombinedAmountGross_abe92c0b-114d-4f93-ad1e-c9b3c2f5e65b" xlink:href="pnr-20240630.xsd#pnr_DebtLongTermAndShortTermCombinedAmountGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear_a7fe493b-d04c-448b-9f3a-79c4df9b7645" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pnr_DebtLongTermAndShortTermCombinedAmountGross_abe92c0b-114d-4f93-ad1e-c9b3c2f5e65b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear_a7fe493b-d04c-448b-9f3a-79c4df9b7645" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_8984ed27-4442-4a75-8ccc-9159acf84fd2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pnr_DebtLongTermAndShortTermCombinedAmountGross_abe92c0b-114d-4f93-ad1e-c9b3c2f5e65b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_8984ed27-4442-4a75-8ccc-9159acf84fd2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_827af939-fc93-49dc-8a2f-4cdea7fb490a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pnr_DebtLongTermAndShortTermCombinedAmountGross_abe92c0b-114d-4f93-ad1e-c9b3c2f5e65b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_827af939-fc93-49dc-8a2f-4cdea7fb490a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_0a0836c5-f2ea-4760-9458-79918f4a7357" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pnr_DebtLongTermAndShortTermCombinedAmountGross_abe92c0b-114d-4f93-ad1e-c9b3c2f5e65b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_0a0836c5-f2ea-4760-9458-79918f4a7357" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_fba59e5e-0449-4b9a-8edc-0f43fe98c4a4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pnr_DebtLongTermAndShortTermCombinedAmountGross_abe92c0b-114d-4f93-ad1e-c9b3c2f5e65b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_fba59e5e-0449-4b9a-8edc-0f43fe98c4a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_966869d4-f4ae-433c-8152-07dea3af3943" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pnr_DebtLongTermAndShortTermCombinedAmountGross_abe92c0b-114d-4f93-ad1e-c9b3c2f5e65b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_966869d4-f4ae-433c-8152-07dea3af3943" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_f4eb360c-3676-4a0d-b84a-884583cac60a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pnr_DebtLongTermAndShortTermCombinedAmountGross_abe92c0b-114d-4f93-ad1e-c9b3c2f5e65b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_f4eb360c-3676-4a0d-b84a-884583cac60a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.pentair.com/role/DerivativesandFinancialInstrumentsRecordedAmountsandEstimatedFairValuesDetail" xlink:type="simple" xlink:href="pnr-20240630.xsd#DerivativesandFinancialInstrumentsRecordedAmountsandEstimatedFairValuesDetail"/>
  <link:calculationLink xlink:role="http://www.pentair.com/role/DerivativesandFinancialInstrumentsRecordedAmountsandEstimatedFairValuesDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_3a0f7c39-eb0a-4222-98e2-becb54b1cbf2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtPercentageBearingVariableInterestAmount_03633e7a-42d0-4365-b5c6-078440015ad2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtPercentageBearingVariableInterestAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_3a0f7c39-eb0a-4222-98e2-becb54b1cbf2" xlink:to="loc_us-gaap_LongtermDebtPercentageBearingVariableInterestAmount_03633e7a-42d0-4365-b5c6-078440015ad2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtPercentageBearingFixedInterestAmount_7cb41cec-59b5-41af-9ba2-dbd616587041" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtPercentageBearingFixedInterestAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_3a0f7c39-eb0a-4222-98e2-becb54b1cbf2" xlink:to="loc_us-gaap_LongtermDebtPercentageBearingFixedInterestAmount_7cb41cec-59b5-41af-9ba2-dbd616587041" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.pentair.com/role/DerivativesandFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueDetail" xlink:type="simple" xlink:href="pnr-20240630.xsd#DerivativesandFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueDetail"/>
  <link:calculationLink xlink:role="http://www.pentair.com/role/DerivativesandFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_4a893280-8b44-4f82-abe7-fb4c1a38b6b8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_pnr_DeferredCompensationPlanAssetsFairValueDisclosure_d6f5e08b-3fae-4d7a-9be1-6adf4487cfc5" xlink:href="pnr-20240630.xsd#pnr_DeferredCompensationPlanAssetsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_4a893280-8b44-4f82-abe7-fb4c1a38b6b8" xlink:to="loc_pnr_DeferredCompensationPlanAssetsFairValueDisclosure_d6f5e08b-3fae-4d7a-9be1-6adf4487cfc5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure_bf470195-c457-40c3-aeff-b90983dd9b7c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_4a893280-8b44-4f82-abe7-fb4c1a38b6b8" xlink:to="loc_us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure_bf470195-c457-40c3-aeff-b90983dd9b7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_b67dbe7d-2777-4af8-99f9-23c6869131b9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_4a893280-8b44-4f82-abe7-fb4c1a38b6b8" xlink:to="loc_us-gaap_DerivativeAssets_b67dbe7d-2777-4af8-99f9-23c6869131b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyContractAssetFairValueDisclosure_62359f4b-cbf9-4ad2-85ad-d80d847c0be7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignCurrencyContractAssetFairValueDisclosure"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_4a893280-8b44-4f82-abe7-fb4c1a38b6b8" xlink:to="loc_us-gaap_ForeignCurrencyContractAssetFairValueDisclosure_62359f4b-cbf9-4ad2-85ad-d80d847c0be7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.pentair.com/role/BenefitPlansComponentsofNetPeriodicBenefitCostDetail" xlink:type="simple" xlink:href="pnr-20240630.xsd#BenefitPlansComponentsofNetPeriodicBenefitCostDetail"/>
  <link:calculationLink xlink:role="http://www.pentair.com/role/BenefitPlansComponentsofNetPeriodicBenefitCostDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_0895f5ee-dd0d-4552-92fb-927c3bfd16e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_fec1e5e8-39f6-404e-8872-a87f873de1fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_0895f5ee-dd0d-4552-92fb-927c3bfd16e7" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_fec1e5e8-39f6-404e-8872-a87f873de1fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_e0d43c7e-8604-4f44-89dd-e78552ed4224" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_0895f5ee-dd0d-4552-92fb-927c3bfd16e7" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_e0d43c7e-8604-4f44-89dd-e78552ed4224" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_4376d54c-544c-45d0-b6cf-9ffbb873b7ec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_0895f5ee-dd0d-4552-92fb-927c3bfd16e7" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_4376d54c-544c-45d0-b6cf-9ffbb873b7ec" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.pentair.com/role/SegmentInformationReconciliationofOperatingProfitLossfromSegmentstoConsolidatedDetails" xlink:type="simple" xlink:href="pnr-20240630.xsd#SegmentInformationReconciliationofOperatingProfitLossfromSegmentstoConsolidatedDetails"/>
  <link:calculationLink xlink:role="http://www.pentair.com/role/SegmentInformationReconciliationofOperatingProfitLossfromSegmentstoConsolidatedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f2a0844f-7e76-4610-9f70-7956e5c682b7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_6890c6b3-7af4-4c56-9976-5cadf188b613" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f2a0844f-7e76-4610-9f70-7956e5c682b7" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_6890c6b3-7af4-4c56-9976-5cadf188b613" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pnr_TransformationCosts_c8b31002-1d87-44ad-9ac3-23c7d0f257fd" xlink:href="pnr-20240630.xsd#pnr_TransformationCosts"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f2a0844f-7e76-4610-9f70-7956e5c682b7" xlink:to="loc_pnr_TransformationCosts_c8b31002-1d87-44ad-9ac3-23c7d0f257fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_29e7f46d-c048-4d7d-ad11-75cc460b13fc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f2a0844f-7e76-4610-9f70-7956e5c682b7" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_29e7f46d-c048-4d7d-ad11-75cc460b13fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pnr_LegalAccrualAdjustments_887a52b2-5a2e-48c2-a1bc-eabc6f3bf182" xlink:href="pnr-20240630.xsd#pnr_LegalAccrualAdjustments"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f2a0844f-7e76-4610-9f70-7956e5c682b7" xlink:to="loc_pnr_LegalAccrualAdjustments_887a52b2-5a2e-48c2-a1bc-eabc6f3bf182" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_930e0ab7-c8a7-464f-a212-5e3aafe124da" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f2a0844f-7e76-4610-9f70-7956e5c682b7" xlink:to="loc_us-gaap_OperatingIncomeLoss_930e0ab7-c8a7-464f-a212-5e3aafe124da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_dabe5f03-dd04-449a-82ba-0c6aef335f12" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f2a0844f-7e76-4610-9f70-7956e5c682b7" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_dabe5f03-dd04-449a-82ba-0c6aef335f12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_pnr_RestructuringandOtherCosts_52347763-523d-4364-a8be-72c2de3500ee" xlink:href="pnr-20240630.xsd#pnr_RestructuringandOtherCosts"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f2a0844f-7e76-4610-9f70-7956e5c682b7" xlink:to="loc_pnr_RestructuringandOtherCosts_52347763-523d-4364-a8be-72c2de3500ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_dda7e980-55fc-4fc2-bfcf-dea21d0ff294" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f2a0844f-7e76-4610-9f70-7956e5c682b7" xlink:to="loc_us-gaap_AssetImpairmentCharges_dda7e980-55fc-4fc2-bfcf-dea21d0ff294" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
