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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:9699a27b-36b6-49b1-a7c6-a5b45693f859,g:250859d5-a7ab-4875-9bb9-635f9debcc5d-->
<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.xyleminc.com/role/CondensedConsolidatedIncomeStatementsUnaudited" xlink:type="simple" xlink:href="xyl-20220630.xsd#CondensedConsolidatedIncomeStatementsUnaudited"/>
  <link:calculationLink xlink:role="http://www.xyleminc.com/role/CondensedConsolidatedIncomeStatementsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_325adf9b-d923-4ed3-9808-79811fa86c38" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_e94cdf84-5d00-4ad6-835f-bdc6260aa181" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_325adf9b-d923-4ed3-9808-79811fa86c38" xlink:to="loc_us-gaap_OperatingIncomeLoss_e94cdf84-5d00-4ad6-835f-bdc6260aa181" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_c0fed6d6-e625-41cd-999c-d08949d093dd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_325adf9b-d923-4ed3-9808-79811fa86c38" xlink:to="loc_us-gaap_InterestExpense_c0fed6d6-e625-41cd-999c-d08949d093dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_477aa2d9-47f3-46f6-b42f-3dc73bc2a03b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_325adf9b-d923-4ed3-9808-79811fa86c38" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_477aa2d9-47f3-46f6-b42f-3dc73bc2a03b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfBusiness_edabcfbe-84cc-4247-8b2d-e95c4b52000a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GainLossOnSaleOfBusiness"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_325adf9b-d923-4ed3-9808-79811fa86c38" xlink:to="loc_us-gaap_GainLossOnSaleOfBusiness_edabcfbe-84cc-4247-8b2d-e95c4b52000a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_d70e19ed-8219-4ea7-b2ab-cf8d63770230" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_f48452a8-0715-465e-86ab-9992a5af10a6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_d70e19ed-8219-4ea7-b2ab-cf8d63770230" xlink:to="loc_us-gaap_GrossProfit_f48452a8-0715-465e-86ab-9992a5af10a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_ccdebda2-6ae5-4624-b60a-6426174c71ff" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_d70e19ed-8219-4ea7-b2ab-cf8d63770230" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_ccdebda2-6ae5-4624-b60a-6426174c71ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_dafc7040-6477-4018-9a50-e58ed46297e9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_d70e19ed-8219-4ea7-b2ab-cf8d63770230" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_dafc7040-6477-4018-9a50-e58ed46297e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xyl_RestructuringAndAssetImpairmentLosses_d17247d0-2435-4dc7-a295-61aa6d28842d" xlink:href="xyl-20220630.xsd#xyl_RestructuringAndAssetImpairmentLosses"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_d70e19ed-8219-4ea7-b2ab-cf8d63770230" xlink:to="loc_xyl_RestructuringAndAssetImpairmentLosses_d17247d0-2435-4dc7-a295-61aa6d28842d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_557d0475-c2bf-493f-8ce5-a408af5fee65" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a23de4b4-6fd4-48cc-97bf-a4ba8e606cd3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_557d0475-c2bf-493f-8ce5-a408af5fee65" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a23de4b4-6fd4-48cc-97bf-a4ba8e606cd3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_0a97a06d-a397-4e55-bee7-52676855f159" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_557d0475-c2bf-493f-8ce5-a408af5fee65" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_0a97a06d-a397-4e55-bee7-52676855f159" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_8a54d01a-89b5-4a8c-b8ba-44926f4fa9a2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_d8c41e96-1ccd-4b5f-b2b5-77e0832eb017" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_8a54d01a-89b5-4a8c-b8ba-44926f4fa9a2" xlink:to="loc_us-gaap_Revenues_d8c41e96-1ccd-4b5f-b2b5-77e0832eb017" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_a3984a54-d9de-4d6a-9360-d8d2b63e91d2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CostOfRevenue"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_8a54d01a-89b5-4a8c-b8ba-44926f4fa9a2" xlink:to="loc_us-gaap_CostOfRevenue_a3984a54-d9de-4d6a-9360-d8d2b63e91d2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xyleminc.com/role/CondensedConsolidatedStatementsofComprehensiveLossIncomeUnaudited" xlink:type="simple" xlink:href="xyl-20220630.xsd#CondensedConsolidatedStatementsofComprehensiveLossIncomeUnaudited"/>
  <link:calculationLink xlink:role="http://www.xyleminc.com/role/CondensedConsolidatedStatementsofComprehensiveLossIncomeUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_8370ebbb-bff7-4044-822b-13ce48f109a5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTax_0cedb881-eea5-454e-a771-63937d235933" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_8370ebbb-bff7-4044-822b-13ce48f109a5" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTax_0cedb881-eea5-454e-a771-63937d235933" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_2533a4f4-1a5e-4337-97b5-6a2d1fc4b216" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_8370ebbb-bff7-4044-822b-13ce48f109a5" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_2533a4f4-1a5e-4337-97b5-6a2d1fc4b216" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_c75d105a-3a02-41ab-89c2-f613035eb799" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_4c931897-6c38-40c2-91b2-faacad21f7f7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_c75d105a-3a02-41ab-89c2-f613035eb799" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_4c931897-6c38-40c2-91b2-faacad21f7f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_19350405-24f8-45ba-885b-9e3793975b61" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_c75d105a-3a02-41ab-89c2-f613035eb799" xlink:to="loc_us-gaap_ProfitLoss_19350405-24f8-45ba-885b-9e3793975b61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_bb514aba-827b-4def-8085-98088bdd8dd9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossBeforeReclassificationAndTax_36480e16-d2bc-446c-a33a-c8c0f1b2ca5c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossBeforeReclassificationAndTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_bb514aba-827b-4def-8085-98088bdd8dd9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossBeforeReclassificationAndTax_36480e16-d2bc-446c-a33a-c8c0f1b2ca5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnForeignCurrencyDerivativesNetBeforeTax_e61eb253-998d-403d-8410-bfaf9fef51e4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_UnrealizedGainLossOnForeignCurrencyDerivativesNetBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_bb514aba-827b-4def-8085-98088bdd8dd9" xlink:to="loc_us-gaap_UnrealizedGainLossOnForeignCurrencyDerivativesNetBeforeTax_e61eb253-998d-403d-8410-bfaf9fef51e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyCashFlowHedgeGainLossReclassifiedToEarningsNet_05bac6f4-c3c8-4d6f-ae00-2d40b2065998" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ForeignCurrencyCashFlowHedgeGainLossReclassifiedToEarningsNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_bb514aba-827b-4def-8085-98088bdd8dd9" xlink:to="loc_us-gaap_ForeignCurrencyCashFlowHedgeGainLossReclassifiedToEarningsNet_05bac6f4-c3c8-4d6f-ae00-2d40b2065998" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlanNetPriorServiceCostCreditArisingDuringPeriodBeforeTax_b4282e0a-1785-45ed-8036-fd5c9c3f60a0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlanNetPriorServiceCostCreditArisingDuringPeriodBeforeTax"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_bb514aba-827b-4def-8085-98088bdd8dd9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlanNetPriorServiceCostCreditArisingDuringPeriodBeforeTax_b4282e0a-1785-45ed-8036-fd5c9c3f60a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansBeforeTax_b5c7d47c-881b-4465-a337-421d93ae812b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansBeforeTax"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_bb514aba-827b-4def-8085-98088bdd8dd9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansBeforeTax_b5c7d47c-881b-4465-a337-421d93ae812b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xyleminc.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="simple" xlink:href="xyl-20220630.xsd#CondensedConsolidatedBalanceSheetsUnaudited"/>
  <link:calculationLink xlink:role="http://www.xyleminc.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_3201af38-dfe5-4fa7-89c8-8b752597a5b5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_c1aa9656-16bc-44f2-a942-fff8fb0922a1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_3201af38-dfe5-4fa7-89c8-8b752597a5b5" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_c1aa9656-16bc-44f2-a942-fff8fb0922a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_c3577d6e-387b-4607-96b0-9c3851efe9a6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_3201af38-dfe5-4fa7-89c8-8b752597a5b5" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_c3577d6e-387b-4607-96b0-9c3851efe9a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_a714002f-6e17-4c86-9c55-6c772e374d8c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_3201af38-dfe5-4fa7-89c8-8b752597a5b5" xlink:to="loc_us-gaap_InventoryNet_a714002f-6e17-4c86-9c55-6c772e374d8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_7ebaf510-4cf0-4697-ba39-56210f7b4ab3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_3201af38-dfe5-4fa7-89c8-8b752597a5b5" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_7ebaf510-4cf0-4697-ba39-56210f7b4ab3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_643a41cb-2c7e-442a-8d41-6ecb4a6aa473" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_3db1b624-b6b6-48fa-8e24-e339e5c7c927" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_643a41cb-2c7e-442a-8d41-6ecb4a6aa473" xlink:to="loc_us-gaap_StockholdersEquity_3db1b624-b6b6-48fa-8e24-e339e5c7c927" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterest_6370da65-1222-4ce2-846e-36cdd867f579" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_MinorityInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_643a41cb-2c7e-442a-8d41-6ecb4a6aa473" xlink:to="loc_us-gaap_MinorityInterest_6370da65-1222-4ce2-846e-36cdd867f579" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_5ee9d428-7d13-4c7f-a8ba-fdf750c6df6e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_2574d137-d8b4-4397-8ab9-e709f7d4b538" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_5ee9d428-7d13-4c7f-a8ba-fdf750c6df6e" xlink:to="loc_us-gaap_LiabilitiesCurrent_2574d137-d8b4-4397-8ab9-e709f7d4b538" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_4419d753-db6b-4978-9f93-5ae087dfec53" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_5ee9d428-7d13-4c7f-a8ba-fdf750c6df6e" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_4419d753-db6b-4978-9f93-5ae087dfec53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_03d91760-3c11-4839-a3a9-8fec4060d835" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_5ee9d428-7d13-4c7f-a8ba-fdf750c6df6e" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_03d91760-3c11-4839-a3a9-8fec4060d835" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesNoncurrent_5a202129-d4f3-4a29-b460-d782687cb354" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAccruedLiabilitiesNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_5ee9d428-7d13-4c7f-a8ba-fdf750c6df6e" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesNoncurrent_5a202129-d4f3-4a29-b460-d782687cb354" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_e1ebaf43-e08c-48aa-bb2f-854e919a3c03" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_5ee9d428-7d13-4c7f-a8ba-fdf750c6df6e" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_e1ebaf43-e08c-48aa-bb2f-854e919a3c03" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_40815215-f0b8-434c-a897-6eae91c07495" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_0102ab26-6ace-413a-a681-a06c3449ebdb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_40815215-f0b8-434c-a897-6eae91c07495" xlink:to="loc_us-gaap_AccountsPayableCurrent_0102ab26-6ace-413a-a681-a06c3449ebdb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_3eb40264-a348-4b20-b78b-058d715be9e3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_40815215-f0b8-434c-a897-6eae91c07495" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_3eb40264-a348-4b20-b78b-058d715be9e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtCurrent_f2ab8ba3-1b1c-45bb-890c-74d801b589a0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_40815215-f0b8-434c-a897-6eae91c07495" xlink:to="loc_us-gaap_DebtCurrent_f2ab8ba3-1b1c-45bb-890c-74d801b589a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_b59e323d-8bf9-45a5-b924-1f8e605c50a6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_79df63d0-6374-49a6-a22c-084c76fc5965" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_b59e323d-8bf9-45a5-b924-1f8e605c50a6" xlink:to="loc_us-gaap_CommonStockValue_79df63d0-6374-49a6-a22c-084c76fc5965" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_c803cf86-35cd-45aa-befb-b8e19d7191f1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_b59e323d-8bf9-45a5-b924-1f8e605c50a6" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_c803cf86-35cd-45aa-befb-b8e19d7191f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_3b0ae582-4a08-45cf-bf73-b0a9691c4d8e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_StockholdersEquity_b59e323d-8bf9-45a5-b924-1f8e605c50a6" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_3b0ae582-4a08-45cf-bf73-b0a9691c4d8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_e6e23724-6a85-4238-8062-0e71762f534d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TreasuryStockValue"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_b59e323d-8bf9-45a5-b924-1f8e605c50a6" xlink:to="loc_us-gaap_TreasuryStockValue_e6e23724-6a85-4238-8062-0e71762f534d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_00687b0f-fb94-4d97-9d78-13d99fc1fd61" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_b59e323d-8bf9-45a5-b924-1f8e605c50a6" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_00687b0f-fb94-4d97-9d78-13d99fc1fd61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_d13a71e4-174f-45ed-b10b-c8d124f5eebd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_647ac72d-e880-41fc-9285-904728e3035a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d13a71e4-174f-45ed-b10b-c8d124f5eebd" xlink:to="loc_us-gaap_AssetsCurrent_647ac72d-e880-41fc-9285-904728e3035a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_32dcaf8f-4630-4b7e-93a7-1a1fc8002426" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d13a71e4-174f-45ed-b10b-c8d124f5eebd" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_32dcaf8f-4630-4b7e-93a7-1a1fc8002426" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_b946bc49-a4af-4111-89c7-3649d417003b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d13a71e4-174f-45ed-b10b-c8d124f5eebd" xlink:to="loc_us-gaap_Goodwill_b946bc49-a4af-4111-89c7-3649d417003b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_99a4d17e-e994-4c3d-95d7-8fa86ee59009" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d13a71e4-174f-45ed-b10b-c8d124f5eebd" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_99a4d17e-e994-4c3d-95d7-8fa86ee59009" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_51b7ccd5-0bd7-4aea-a2c6-d86c60652d57" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d13a71e4-174f-45ed-b10b-c8d124f5eebd" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_51b7ccd5-0bd7-4aea-a2c6-d86c60652d57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_e53f19f7-1908-4974-8fd5-001b8d7f9017" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_ffb03652-51ee-4901-956e-e3ad3472d3f4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_e53f19f7-1908-4974-8fd5-001b8d7f9017" xlink:to="loc_us-gaap_Liabilities_ffb03652-51ee-4901-956e-e3ad3472d3f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_4b6e4186-3212-404f-ac6d-5dd17b5324d2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_e53f19f7-1908-4974-8fd5-001b8d7f9017" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_4b6e4186-3212-404f-ac6d-5dd17b5324d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_154ebb53-d56f-4aa7-8bb7-19872b7b7e7d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_e53f19f7-1908-4974-8fd5-001b8d7f9017" xlink:to="loc_us-gaap_CommitmentsAndContingencies_154ebb53-d56f-4aa7-8bb7-19872b7b7e7d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xyleminc.com/role/CondensedConsolidatedStatementsofCashFlowsUnaudited" xlink:type="simple" xlink:href="xyl-20220630.xsd#CondensedConsolidatedStatementsofCashFlowsUnaudited"/>
  <link:calculationLink xlink:role="http://www.xyleminc.com/role/CondensedConsolidatedStatementsofCashFlowsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4954dbaa-6de1-4358-ad96-a93367082e02" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_c431d23e-6b0d-429e-8e0b-df60c2c43871" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4954dbaa-6de1-4358-ad96-a93367082e02" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_c431d23e-6b0d-429e-8e0b-df60c2c43871" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_823fc195-af54-48c1-9e0c-7010c426b927" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4954dbaa-6de1-4358-ad96-a93367082e02" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_823fc195-af54-48c1-9e0c-7010c426b927" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_d768e270-60ab-431d-8f39-11cc75f72b07" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4954dbaa-6de1-4358-ad96-a93367082e02" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_d768e270-60ab-431d-8f39-11cc75f72b07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_73fed06b-da5a-423e-85b4-6f75cdb06792" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromPaymentsForOtherFinancingActivities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4954dbaa-6de1-4358-ad96-a93367082e02" xlink:to="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_73fed06b-da5a-423e-85b4-6f75cdb06792" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_346243b2-ec94-4b89-9ce4-122842cf7a85" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_faa259ac-5baa-453f-bc3f-053aef72fc22" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_346243b2-ec94-4b89-9ce4-122842cf7a85" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_faa259ac-5baa-453f-bc3f-053aef72fc22" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_2be8ec87-edeb-4d1f-bcb1-84f0a7758118" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_346243b2-ec94-4b89-9ce4-122842cf7a85" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_2be8ec87-edeb-4d1f-bcb1-84f0a7758118" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e069be90-8e17-4e1a-b1de-d399a8d2332b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_346243b2-ec94-4b89-9ce4-122842cf7a85" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e069be90-8e17-4e1a-b1de-d399a8d2332b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_664a35a0-cb0d-43b5-bbb1-c4d56184f9e3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_346243b2-ec94-4b89-9ce4-122842cf7a85" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_664a35a0-cb0d-43b5-bbb1-c4d56184f9e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a4d691a6-13e6-4d03-a0b1-3b6dcf85a043" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_6df813b7-ecd7-42a5-95ac-772f3cef3ff3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_NetCashProvidedByUsedInOperatingActivities_a4d691a6-13e6-4d03-a0b1-3b6dcf85a043" xlink:to="loc_us-gaap_ProfitLoss_6df813b7-ecd7-42a5-95ac-772f3cef3ff3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_89274504-2b97-43d1-b73a-6205a98e415b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Depreciation"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a4d691a6-13e6-4d03-a0b1-3b6dcf85a043" xlink:to="loc_us-gaap_Depreciation_89274504-2b97-43d1-b73a-6205a98e415b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentForAmortization_34c875a1-d420-4345-8502-f37c319cd197" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdjustmentForAmortization"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a4d691a6-13e6-4d03-a0b1-3b6dcf85a043" xlink:to="loc_us-gaap_AdjustmentForAmortization_34c875a1-d420-4345-8502-f37c319cd197" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_92f92bee-98da-4e32-96ed-7f25813e0d06" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_NetCashProvidedByUsedInOperatingActivities_a4d691a6-13e6-4d03-a0b1-3b6dcf85a043" xlink:to="loc_us-gaap_ShareBasedCompensation_92f92bee-98da-4e32-96ed-7f25813e0d06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_dff743e5-817a-4efb-abd3-ddab30b9855f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestructuringCostsAndAssetImpairmentCharges"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a4d691a6-13e6-4d03-a0b1-3b6dcf85a043" xlink:to="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_dff743e5-817a-4efb-abd3-ddab30b9855f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_39712af9-4000-4b5f-a1b7-a0e4dc0e24de" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a4d691a6-13e6-4d03-a0b1-3b6dcf85a043" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_39712af9-4000-4b5f-a1b7-a0e4dc0e24de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRestructuring_65bb9379-5e44-4f44-994d-95519e5a8c5b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsForRestructuring"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a4d691a6-13e6-4d03-a0b1-3b6dcf85a043" xlink:to="loc_us-gaap_PaymentsForRestructuring_65bb9379-5e44-4f44-994d-95519e5a8c5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInReceivables_9a6dc71b-9882-4778-87cf-fe3f71eb2eba" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInReceivables"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a4d691a6-13e6-4d03-a0b1-3b6dcf85a043" xlink:to="loc_us-gaap_IncreaseDecreaseInReceivables_9a6dc71b-9882-4778-87cf-fe3f71eb2eba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_906c926d-b676-4562-b1ca-31d4f3f3d1bb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a4d691a6-13e6-4d03-a0b1-3b6dcf85a043" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_906c926d-b676-4562-b1ca-31d4f3f3d1bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_7a132df9-0be1-4cbe-ba31-ac54dab6831a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a4d691a6-13e6-4d03-a0b1-3b6dcf85a043" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_7a132df9-0be1-4cbe-ba31-ac54dab6831a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_4fc0449f-7e22-43a9-b6e7-645a2ae9a394" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a4d691a6-13e6-4d03-a0b1-3b6dcf85a043" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_4fc0449f-7e22-43a9-b6e7-645a2ae9a394" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfBusiness_2514ba0c-5321-4bf8-b1b6-69563251a8d1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GainLossOnSaleOfBusiness"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a4d691a6-13e6-4d03-a0b1-3b6dcf85a043" xlink:to="loc_us-gaap_GainLossOnSaleOfBusiness_2514ba0c-5321-4bf8-b1b6-69563251a8d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_115360e9-1c22-4a0e-8ea4-cc9f49060caf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireProductiveAssets_f013156c-abd3-48db-88d8-9a63e307e72a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquireProductiveAssets"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_115360e9-1c22-4a0e-8ea4-cc9f49060caf" xlink:to="loc_us-gaap_PaymentsToAcquireProductiveAssets_f013156c-abd3-48db-88d8-9a63e307e72a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinessesNetOfCashDivested_b40eb926-494b-41d9-aee1-acbc134e2e10" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromDivestitureOfBusinessesNetOfCashDivested"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_115360e9-1c22-4a0e-8ea4-cc9f49060caf" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinessesNetOfCashDivested_b40eb926-494b-41d9-aee1-acbc134e2e10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_cb5453d1-83f3-41a3-bd86-cc00ac5ba06c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_115360e9-1c22-4a0e-8ea4-cc9f49060caf" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_cb5453d1-83f3-41a3-bd86-cc00ac5ba06c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_c3909f2e-35fa-496c-b377-177c665f27af" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquireInvestments"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_115360e9-1c22-4a0e-8ea4-cc9f49060caf" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_c3909f2e-35fa-496c-b377-177c665f27af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_58f55842-7653-4a68-b577-15ec4b3ac8e0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_115360e9-1c22-4a0e-8ea4-cc9f49060caf" xlink:to="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_58f55842-7653-4a68-b577-15ec4b3ac8e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_ce835598-d981-47ee-89a4-39508fbe2d0c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_115360e9-1c22-4a0e-8ea4-cc9f49060caf" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_ce835598-d981-47ee-89a4-39508fbe2d0c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xyleminc.com/role/RevenueDisaggregationofRevenueDetails" xlink:type="simple" xlink:href="xyl-20220630.xsd#RevenueDisaggregationofRevenueDetails"/>
  <link:calculationLink xlink:role="http://www.xyleminc.com/role/RevenueDisaggregationofRevenueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_e9fcbe27-1555-4fec-b99a-b71b10669102" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Revenues"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_dc81999c-0dcd-40f1-9646-c92d25d93817" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_e9fcbe27-1555-4fec-b99a-b71b10669102" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_dc81999c-0dcd-40f1-9646-c92d25d93817" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xyl_OtherRevenues_c541f200-7b92-4207-8831-97e8d01c1c23" xlink:href="xyl-20220630.xsd#xyl_OtherRevenues"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_e9fcbe27-1555-4fec-b99a-b71b10669102" xlink:to="loc_xyl_OtherRevenues_c541f200-7b92-4207-8831-97e8d01c1c23" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xyleminc.com/role/RestructuringChargesRestructuringChargesDetails" xlink:type="simple" xlink:href="xyl-20220630.xsd#RestructuringChargesRestructuringChargesDetails"/>
  <link:calculationLink xlink:role="http://www.xyleminc.com/role/RestructuringChargesRestructuringChargesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_xyl_AssetImpairmentandRestructuringCharges_f8e18bfa-0236-4d90-821d-dfc2a74febc0" xlink:href="xyl-20220630.xsd#xyl_AssetImpairmentandRestructuringCharges"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_7c1e3ea4-e761-4dcb-a061-f45377709100" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestructuringCharges"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_xyl_AssetImpairmentandRestructuringCharges_f8e18bfa-0236-4d90-821d-dfc2a74febc0" xlink:to="loc_us-gaap_RestructuringCharges_7c1e3ea4-e761-4dcb-a061-f45377709100" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_6b7eb312-4d1b-404e-a568-e52d83e78b5c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_xyl_AssetImpairmentandRestructuringCharges_f8e18bfa-0236-4d90-821d-dfc2a74febc0" xlink:to="loc_us-gaap_AssetImpairmentCharges_6b7eb312-4d1b-404e-a568-e52d83e78b5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_999442da-fc53-4fdf-b2fa-1db016a50410" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestructuringCharges"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeveranceCosts1_9f4532c7-3962-40a8-a67a-dc9217705182" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SeveranceCosts1"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCharges_999442da-fc53-4fdf-b2fa-1db016a50410" xlink:to="loc_us-gaap_SeveranceCosts1_9f4532c7-3962-40a8-a67a-dc9217705182" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xyl_RestructuringReserveAssetImpairmentCosts_f4aa31f2-d7f3-4f9d-b459-7e260fefa97d" xlink:href="xyl-20220630.xsd#xyl_RestructuringReserveAssetImpairmentCosts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCharges_999442da-fc53-4fdf-b2fa-1db016a50410" xlink:to="loc_xyl_RestructuringReserveAssetImpairmentCosts_f4aa31f2-d7f3-4f9d-b459-7e260fefa97d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xyleminc.com/role/EarningsPerShareCalculationsforEPSDetails" xlink:type="simple" xlink:href="xyl-20220630.xsd#EarningsPerShareCalculationsforEPSDetails"/>
  <link:calculationLink xlink:role="http://www.xyleminc.com/role/EarningsPerShareCalculationsforEPSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_168ef891-fc8b-482b-801d-347ff8efa283" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesIssuedBasic_21ecba7e-4d3e-47bb-b59d-72b05a2dd410" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesIssuedBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_168ef891-fc8b-482b-801d-347ff8efa283" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesIssuedBasic_21ecba7e-4d3e-47bb-b59d-72b05a2dd410" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToParticipatingNonvestedSharesWithNonForfeitableDividendRights_07cb5072-5ace-4d4e-bce6-2d8a35f2d136" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToParticipatingNonvestedSharesWithNonForfeitableDividendRights"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_168ef891-fc8b-482b-801d-347ff8efa283" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToParticipatingNonvestedSharesWithNonForfeitableDividendRights_07cb5072-5ace-4d4e-bce6-2d8a35f2d136" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xyleminc.com/role/InventoriesDetails" xlink:type="simple" xlink:href="xyl-20220630.xsd#InventoriesDetails"/>
  <link:calculationLink xlink:role="http://www.xyleminc.com/role/InventoriesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_a395790a-17c4-4e06-8f44-f04d0c0b465d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_7a3f0d60-d48e-4fc0-824c-3dbdf3a8ad3e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryFinishedGoodsNetOfReserves"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_a395790a-17c4-4e06-8f44-f04d0c0b465d" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_7a3f0d60-d48e-4fc0-824c-3dbdf3a8ad3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_f3a59cdd-9685-4df2-b930-d99590f66692" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryWorkInProcessNetOfReserves"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_a395790a-17c4-4e06-8f44-f04d0c0b465d" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_f3a59cdd-9685-4df2-b930-d99590f66692" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsNetOfReserves_1829180c-152e-4c7a-bc1b-2fbe994bfc92" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryRawMaterialsNetOfReserves"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_a395790a-17c4-4e06-8f44-f04d0c0b465d" xlink:to="loc_us-gaap_InventoryRawMaterialsNetOfReserves_1829180c-152e-4c7a-bc1b-2fbe994bfc92" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xyleminc.com/role/GoodwillandOtherIntangibleAssetsSummaryofIntangibleAssetsDetails" xlink:type="simple" xlink:href="xyl-20220630.xsd#GoodwillandOtherIntangibleAssetsSummaryofIntangibleAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.xyleminc.com/role/GoodwillandOtherIntangibleAssetsSummaryofIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_3b67328f-8e6a-40bb-b461-4f0930893f6b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_688ddc5c-2567-45e6-aa74-1b22dbb7d128" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_3b67328f-8e6a-40bb-b461-4f0930893f6b" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_688ddc5c-2567-45e6-aa74-1b22dbb7d128" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_c445eb2b-e2bc-40d9-8d86-402aa662ebd8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_FiniteLivedIntangibleAssetsNet_3b67328f-8e6a-40bb-b461-4f0930893f6b" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_c445eb2b-e2bc-40d9-8d86-402aa662ebd8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xyleminc.com/role/AccruedandOtherCurrentLiabilitiesDetails" xlink:type="simple" xlink:href="xyl-20220630.xsd#AccruedandOtherCurrentLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.xyleminc.com/role/AccruedandOtherCurrentLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_3d150677-3956-4b1c-9560-d5cbc7393cb5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_177547b8-8ec5-40b9-96fd-c7c594c23af1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_3d150677-3956-4b1c-9560-d5cbc7393cb5" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_177547b8-8ec5-40b9-96fd-c7c594c23af1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_xyl_CustomerRelatedLiabilitiesCurrent_6c611768-b6de-471a-a97b-74654ccb3af1" xlink:href="xyl-20220630.xsd#xyl_CustomerRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_3d150677-3956-4b1c-9560-d5cbc7393cb5" xlink:to="loc_xyl_CustomerRelatedLiabilitiesCurrent_6c611768-b6de-471a-a97b-74654ccb3af1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductWarrantyAccrualClassifiedCurrent_a0d8396b-b6d7-48ba-961d-ef286544cef7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProductWarrantyAccrualClassifiedCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_3d150677-3956-4b1c-9560-d5cbc7393cb5" xlink:to="loc_us-gaap_ProductWarrantyAccrualClassifiedCurrent_a0d8396b-b6d7-48ba-961d-ef286544cef7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_290366e4-a5f2-4ffb-a2fe-da840d28d5b4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedIncomeTaxesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_3d150677-3956-4b1c-9560-d5cbc7393cb5" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_290366e4-a5f2-4ffb-a2fe-da840d28d5b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_1bed5465-ac36-46f7-a0f7-728ca1844549" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_3d150677-3956-4b1c-9560-d5cbc7393cb5" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_1bed5465-ac36-46f7-a0f7-728ca1844549" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_b2146a1b-41d1-419f-819f-2812fe52a5a8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_3d150677-3956-4b1c-9560-d5cbc7393cb5" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_b2146a1b-41d1-419f-819f-2812fe52a5a8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xyleminc.com/role/CreditFacilitiesandDebtSummaryofDebtOutstandingDetails" xlink:type="simple" xlink:href="xyl-20220630.xsd#CreditFacilitiesandDebtSummaryofDebtOutstandingDetails"/>
  <link:calculationLink xlink:role="http://www.xyleminc.com/role/CreditFacilitiesandDebtSummaryofDebtOutstandingDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_9bf27fc2-f785-4802-aad7-f169cf176e01" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtLongtermAndShorttermCombinedAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_477a9955-2f04-4902-a524-cdf9858a89ed" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_9bf27fc2-f785-4802-aad7-f169cf176e01" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_477a9955-2f04-4902-a524-cdf9858a89ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtCurrent_26d16c51-9427-4b3e-a22c-e0ded4116190" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_9bf27fc2-f785-4802-aad7-f169cf176e01" xlink:to="loc_us-gaap_DebtCurrent_26d16c51-9427-4b3e-a22c-e0ded4116190" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.xyleminc.com/role/PostretirementBenefitPlansSummaryofNetPeriodicBenefitCostDetails" xlink:type="simple" xlink:href="xyl-20220630.xsd#PostretirementBenefitPlansSummaryofNetPeriodicBenefitCostDetails"/>
  <link:calculationLink xlink:role="http://www.xyleminc.com/role/PostretirementBenefitPlansSummaryofNetPeriodicBenefitCostDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_99a83ebd-8622-40c3-857f-c7b273bbb6d1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_8ef01835-8ca4-4cc9-a3b5-b26b07cae4e7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_99a83ebd-8622-40c3-857f-c7b273bbb6d1" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_8ef01835-8ca4-4cc9-a3b5-b26b07cae4e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_286f447b-84bb-40ee-8fab-8d9b1ca2dcb3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_99a83ebd-8622-40c3-857f-c7b273bbb6d1" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_286f447b-84bb-40ee-8fab-8d9b1ca2dcb3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_64a7e761-ab64-4d36-9c73-e25477033902" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_99a83ebd-8622-40c3-857f-c7b273bbb6d1" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_64a7e761-ab64-4d36-9c73-e25477033902" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_62316c04-8821-49ff-94e1-b63ddf6b0bda" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_99a83ebd-8622-40c3-857f-c7b273bbb6d1" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_62316c04-8821-49ff-94e1-b63ddf6b0bda" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
