<?xml version="1.0" encoding="us-ascii"?>
<!--Generated by Broadridge PROfile 23.1.2.5118 Broadridge-->
<link:linkbase 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" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xbrli="http://www.xbrl.org/2003/instance">
  <link:roleRef roleURI="http://yorkwater.com/role/IncomeTaxesDetailsCalc2" xlink:type="simple" xlink:href="yorw-20221231.xsd#IncomeTaxesDetailsCalc2" />
  <link:roleRef roleURI="http://yorkwater.com/role/IncomeTaxesDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#IncomeTaxesDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/TaxesOtherThanIncomeTaxesDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#TaxesOtherThanIncomeTaxesDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/EmployeeBenefitPlansComponentsOfNetPeriodicBenefitCostDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#EmployeeBenefitPlansComponentsOfNetPeriodicBenefitCostDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/EmployeeBenefitPlansChangesInBenefitObligationAndPlanAssetsDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#EmployeeBenefitPlansChangesInBenefitObligationAndPlanAssetsDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/RevenueDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#RevenueDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/CommonStockAndEarningsPerShareDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#CommonStockAndEarningsPerShareDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/AccountsReceivableAndContractAssetsDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#AccountsReceivableAndContractAssetsDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/StatementsOfCashFlows" xlink:type="simple" xlink:href="yorw-20221231.xsd#StatementsOfCashFlows" />
  <link:roleRef roleURI="http://yorkwater.com/role/StatementsOfIncome" xlink:type="simple" xlink:href="yorw-20221231.xsd#StatementsOfIncome" />
  <link:roleRef roleURI="http://yorkwater.com/role/BalanceSheets" xlink:type="simple" xlink:href="yorw-20221231.xsd#BalanceSheets" />
  <link:calculationLink xlink:type="extended" xlink:role="http://yorkwater.com/role/BalanceSheets">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets" xlink:label="Assets" xlink:title="Assets" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsCurrent" xlink:label="AssetsCurrent" xlink:title="AssetsCurrent" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesInventory" xlink:label="PublicUtilitiesInventory" xlink:title="PublicUtilitiesInventory" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsCurrent" xlink:to="PublicUtilitiesInventory" xlink:title="calculation: AssetsCurrent to PublicUtilitiesInventory" order="8.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="CashAndCashEquivalentsAtCarryingValue" xlink:title="CashAndCashEquivalentsAtCarryingValue" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsCurrent" xlink:to="CashAndCashEquivalentsAtCarryingValue" xlink:title="calculation: AssetsCurrent to CashAndCashEquivalentsAtCarryingValue" order="1.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="AccountsReceivableNetCurrent" xlink:title="AccountsReceivableNetCurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsCurrent" xlink:to="AccountsReceivableNetCurrent" xlink:title="calculation: AssetsCurrent to AccountsReceivableNetCurrent" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UnbilledReceivablesCurrent" xlink:label="UnbilledReceivablesCurrent" xlink:title="UnbilledReceivablesCurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsCurrent" xlink:to="UnbilledReceivablesCurrent" xlink:title="calculation: AssetsCurrent to UnbilledReceivablesCurrent" order="4.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PrepaidExpenseCurrent" xlink:label="PrepaidExpenseCurrent" xlink:title="PrepaidExpenseCurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsCurrent" xlink:to="PrepaidExpenseCurrent" xlink:title="calculation: AssetsCurrent to PrepaidExpenseCurrent" order="9.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxesReceivable" xlink:label="IncomeTaxesReceivable" xlink:title="IncomeTaxesReceivable" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsCurrent" xlink:to="IncomeTaxesReceivable" xlink:title="calculation: AssetsCurrent to IncomeTaxesReceivable" order="6.0" weight="1.0" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="AssetsCurrent" xlink:title="calculation: Assets to AssetsCurrent" order="3.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsNoncurrentOtherThanNoncurrentInvestmentsAndPropertyPlantAndEquipment" xlink:label="AssetsNoncurrentOtherThanNoncurrentInvestmentsAndPropertyPlantAndEquipment" xlink:title="AssetsNoncurrentOtherThanNoncurrentInvestmentsAndPropertyPlantAndEquipment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="OtherAssetsNoncurrent" xlink:title="OtherAssetsNoncurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsNoncurrentOtherThanNoncurrentInvestmentsAndPropertyPlantAndEquipment" xlink:to="OtherAssetsNoncurrent" xlink:title="calculation: AssetsNoncurrentOtherThanNoncurrentInvestmentsAndPropertyPlantAndEquipment to OtherAssetsNoncurrent" order="6.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryAssetsNoncurrent" xlink:label="RegulatoryAssetsNoncurrent" xlink:title="RegulatoryAssetsNoncurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsNoncurrentOtherThanNoncurrentInvestmentsAndPropertyPlantAndEquipment" xlink:to="RegulatoryAssetsNoncurrent" xlink:title="calculation: AssetsNoncurrentOtherThanNoncurrentInvestmentsAndPropertyPlantAndEquipment to RegulatoryAssetsNoncurrent" order="4.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NotesAndLoansReceivableNetNoncurrent" xlink:label="NotesAndLoansReceivableNetNoncurrent" xlink:title="NotesAndLoansReceivableNetNoncurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsNoncurrentOtherThanNoncurrentInvestmentsAndPropertyPlantAndEquipment" xlink:to="NotesAndLoansReceivableNetNoncurrent" xlink:title="calculation: AssetsNoncurrentOtherThanNoncurrentInvestmentsAndPropertyPlantAndEquipment to NotesAndLoansReceivableNetNoncurrent" order="3.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent" xlink:label="DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent" xlink:title="DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsNoncurrentOtherThanNoncurrentInvestmentsAndPropertyPlantAndEquipment" xlink:to="DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent" xlink:title="calculation: AssetsNoncurrentOtherThanNoncurrentInvestmentsAndPropertyPlantAndEquipment to DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent" order="2.0" weight="1.0" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="AssetsNoncurrentOtherThanNoncurrentInvestmentsAndPropertyPlantAndEquipment" xlink:title="calculation: Assets to AssetsNoncurrentOtherThanNoncurrentInvestmentsAndPropertyPlantAndEquipment" order="4.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="PropertyPlantAndEquipmentNet" xlink:title="PropertyPlantAndEquipmentNet" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="PropertyPlantAndEquipmentNet" xlink:title="calculation: Assets to PropertyPlantAndEquipmentNet" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesPropertyPlantAndEquipmentNet" xlink:label="PublicUtilitiesPropertyPlantAndEquipmentNet" xlink:title="PublicUtilitiesPropertyPlantAndEquipmentNet" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesPropertyPlantAndEquipmentAccumulatedDepreciation" xlink:label="PublicUtilitiesPropertyPlantAndEquipmentAccumulatedDepreciation" xlink:title="PublicUtilitiesPropertyPlantAndEquipmentAccumulatedDepreciation" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="PublicUtilitiesPropertyPlantAndEquipmentNet" xlink:to="PublicUtilitiesPropertyPlantAndEquipmentAccumulatedDepreciation" xlink:title="calculation: PublicUtilitiesPropertyPlantAndEquipmentNet to PublicUtilitiesPropertyPlantAndEquipmentAccumulatedDepreciation" order="3.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesPropertyPlantAndEquipmentAmountOfAcquisitionAdjustments1" xlink:label="PublicUtilitiesPropertyPlantAndEquipmentAmountOfAcquisitionAdjustments1" xlink:title="PublicUtilitiesPropertyPlantAndEquipmentAmountOfAcquisitionAdjustments1" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="PublicUtilitiesPropertyPlantAndEquipmentNet" xlink:to="PublicUtilitiesPropertyPlantAndEquipmentAmountOfAcquisitionAdjustments1" xlink:title="calculation: PublicUtilitiesPropertyPlantAndEquipmentNet to PublicUtilitiesPropertyPlantAndEquipmentAmountOfAcquisitionAdjustments1" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesPropertyPlantAndEquipmentPlantInService" xlink:label="PublicUtilitiesPropertyPlantAndEquipmentPlantInService" xlink:title="PublicUtilitiesPropertyPlantAndEquipmentPlantInService" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="PublicUtilitiesPropertyPlantAndEquipmentNet" xlink:to="PublicUtilitiesPropertyPlantAndEquipmentPlantInService" xlink:title="calculation: PublicUtilitiesPropertyPlantAndEquipmentNet to PublicUtilitiesPropertyPlantAndEquipmentPlantInService" order="1.0" weight="1.0" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="PublicUtilitiesPropertyPlantAndEquipmentNet" xlink:title="calculation: Assets to PublicUtilitiesPropertyPlantAndEquipmentNet" order="1.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="LiabilitiesAndStockholdersEquity" xlink:title="LiabilitiesAndStockholdersEquity" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="CommitmentsAndContingencies" xlink:title="CommitmentsAndContingencies" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="CommitmentsAndContingencies" xlink:title="calculation: LiabilitiesAndStockholdersEquity to CommitmentsAndContingencies" order="4.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesOtherThanLongtermDebtNoncurrent" xlink:label="LiabilitiesOtherThanLongtermDebtNoncurrent" xlink:title="LiabilitiesOtherThanLongtermDebtNoncurrent" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PensionAndOtherPostretirementAndPostemploymentBenefitPlansLiabilitiesNoncurrent" xlink:label="PensionAndOtherPostretirementAndPostemploymentBenefitPlansLiabilitiesNoncurrent" xlink:title="PensionAndOtherPostretirementAndPostemploymentBenefitPlansLiabilitiesNoncurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesOtherThanLongtermDebtNoncurrent" xlink:to="PensionAndOtherPostretirementAndPostemploymentBenefitPlansLiabilitiesNoncurrent" xlink:title="calculation: LiabilitiesOtherThanLongtermDebtNoncurrent to PensionAndOtherPostretirementAndPostemploymentBenefitPlansLiabilitiesNoncurrent" order="4.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="OtherLiabilitiesNoncurrent" xlink:title="OtherLiabilitiesNoncurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesOtherThanLongtermDebtNoncurrent" xlink:to="OtherLiabilitiesNoncurrent" xlink:title="calculation: LiabilitiesOtherThanLongtermDebtNoncurrent to OtherLiabilitiesNoncurrent" order="5.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet" xlink:label="DeferredIncomeTaxLiabilitiesNet" xlink:title="DeferredIncomeTaxLiabilitiesNet" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesOtherThanLongtermDebtNoncurrent" xlink:to="DeferredIncomeTaxLiabilitiesNet" xlink:title="calculation: LiabilitiesOtherThanLongtermDebtNoncurrent to DeferredIncomeTaxLiabilitiesNet" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerLiabilityNoncurrent" xlink:label="ContractWithCustomerLiabilityNoncurrent" xlink:title="ContractWithCustomerLiabilityNoncurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesOtherThanLongtermDebtNoncurrent" xlink:to="ContractWithCustomerLiabilityNoncurrent" xlink:title="calculation: LiabilitiesOtherThanLongtermDebtNoncurrent to ContractWithCustomerLiabilityNoncurrent" order="1.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilityNoncurrent" xlink:label="RegulatoryLiabilityNoncurrent" xlink:title="RegulatoryLiabilityNoncurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesOtherThanLongtermDebtNoncurrent" xlink:to="RegulatoryLiabilityNoncurrent" xlink:title="calculation: LiabilitiesOtherThanLongtermDebtNoncurrent to RegulatoryLiabilityNoncurrent" order="3.0" weight="1.0" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="LiabilitiesOtherThanLongtermDebtNoncurrent" xlink:title="calculation: LiabilitiesAndStockholdersEquity to LiabilitiesOtherThanLongtermDebtNoncurrent" order="6.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContributionsInAidOfConstruction" xlink:label="ContributionsInAidOfConstruction" xlink:title="ContributionsInAidOfConstruction" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="ContributionsInAidOfConstruction" xlink:title="calculation: LiabilitiesAndStockholdersEquity to ContributionsInAidOfConstruction" order="7.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="LongTermDebtNoncurrent" xlink:title="LongTermDebtNoncurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="LongTermDebtNoncurrent" xlink:title="calculation: LiabilitiesAndStockholdersEquity to LongTermDebtNoncurrent" order="3.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity" xlink:label="StockholdersEquity" xlink:title="StockholdersEquity" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockValue" xlink:label="CommonStockValue" xlink:title="CommonStockValue" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="StockholdersEquity" xlink:to="CommonStockValue" xlink:title="calculation: StockholdersEquity to CommonStockValue" order="1.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="RetainedEarningsAccumulatedDeficit" xlink:title="RetainedEarningsAccumulatedDeficit" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="StockholdersEquity" xlink:to="RetainedEarningsAccumulatedDeficit" xlink:title="calculation: StockholdersEquity to RetainedEarningsAccumulatedDeficit" order="2.0" weight="1.0" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="StockholdersEquity" xlink:title="calculation: LiabilitiesAndStockholdersEquity to StockholdersEquity" order="1.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesCurrent" xlink:label="LiabilitiesCurrent" xlink:title="LiabilitiesCurrent" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilityCurrent" xlink:label="RegulatoryLiabilityCurrent" xlink:title="RegulatoryLiabilityCurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesCurrent" xlink:to="RegulatoryLiabilityCurrent" xlink:title="calculation: LiabilitiesCurrent to RegulatoryLiabilityCurrent" order="8.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="AccruedLiabilitiesCurrent" xlink:title="AccruedLiabilitiesCurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesCurrent" xlink:to="AccruedLiabilitiesCurrent" xlink:title="calculation: LiabilitiesCurrent to AccruedLiabilitiesCurrent" order="10.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsPayableCurrent" xlink:label="AccountsPayableCurrent" xlink:title="AccountsPayableCurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesCurrent" xlink:to="AccountsPayableCurrent" xlink:title="calculation: LiabilitiesCurrent to AccountsPayableCurrent" order="4.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent" xlink:label="EmployeeRelatedLiabilitiesCurrent" xlink:title="EmployeeRelatedLiabilitiesCurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesCurrent" xlink:to="EmployeeRelatedLiabilitiesCurrent" xlink:title="calculation: LiabilitiesCurrent to EmployeeRelatedLiabilitiesCurrent" order="6.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DividendsPayableCurrent" xlink:label="DividendsPayableCurrent" xlink:title="DividendsPayableCurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesCurrent" xlink:to="DividendsPayableCurrent" xlink:title="calculation: LiabilitiesCurrent to DividendsPayableCurrent" order="5.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtCurrent" xlink:label="LongTermDebtCurrent" xlink:title="LongTermDebtCurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesCurrent" xlink:to="LongTermDebtCurrent" xlink:title="calculation: LiabilitiesCurrent to LongTermDebtCurrent" order="3.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestPayableCurrent" xlink:label="InterestPayableCurrent" xlink:title="InterestPayableCurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesCurrent" xlink:to="InterestPayableCurrent" xlink:title="calculation: LiabilitiesCurrent to InterestPayableCurrent" order="9.0" weight="1.0" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="LiabilitiesCurrent" xlink:title="calculation: LiabilitiesAndStockholdersEquity to LiabilitiesCurrent" order="5.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockValue" xlink:label="PreferredStockValue" xlink:title="PreferredStockValue" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="PreferredStockValue" xlink:title="calculation: LiabilitiesAndStockholdersEquity to PreferredStockValue" order="2.0" weight="1.0" />
  </link:calculationLink>
  <link:calculationLink xlink:type="extended" xlink:role="http://yorkwater.com/role/StatementsOfIncome">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss" xlink:label="NetIncomeLoss" xlink:title="NetIncomeLoss" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="IncomeTaxExpenseBenefit" xlink:title="IncomeTaxExpenseBenefit" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetIncomeLoss" xlink:to="IncomeTaxExpenseBenefit" xlink:title="calculation: NetIncomeLoss to IncomeTaxExpenseBenefit" order="2.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:title="IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss" xlink:label="OperatingIncomeLoss" xlink:title="OperatingIncomeLoss" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Revenues" xlink:label="Revenues" xlink:title="Revenues" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OperatingIncomeLoss" xlink:to="Revenues" xlink:title="calculation: OperatingIncomeLoss to Revenues" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UtilitiesOperatingExpense" xlink:label="UtilitiesOperatingExpense" xlink:title="UtilitiesOperatingExpense" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UtilitiesOperatingExpenseDepreciationAndAmortization" xlink:label="UtilitiesOperatingExpenseDepreciationAndAmortization" xlink:title="UtilitiesOperatingExpenseDepreciationAndAmortization" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="UtilitiesOperatingExpense" xlink:to="UtilitiesOperatingExpenseDepreciationAndAmortization" xlink:title="calculation: UtilitiesOperatingExpense to UtilitiesOperatingExpenseDepreciationAndAmortization" order="3.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="GeneralAndAdministrativeExpense" xlink:title="GeneralAndAdministrativeExpense" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="UtilitiesOperatingExpense" xlink:to="GeneralAndAdministrativeExpense" xlink:title="calculation: UtilitiesOperatingExpense to GeneralAndAdministrativeExpense" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UtilitiesOperatingExpenseTaxes" xlink:label="UtilitiesOperatingExpenseTaxes" xlink:title="UtilitiesOperatingExpenseTaxes" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="UtilitiesOperatingExpense" xlink:to="UtilitiesOperatingExpenseTaxes" xlink:title="calculation: UtilitiesOperatingExpense to UtilitiesOperatingExpenseTaxes" order="4.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UtilitiesOperatingExpenseMaintenanceAndOperations" xlink:label="UtilitiesOperatingExpenseMaintenanceAndOperations" xlink:title="UtilitiesOperatingExpenseMaintenanceAndOperations" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="UtilitiesOperatingExpense" xlink:to="UtilitiesOperatingExpenseMaintenanceAndOperations" xlink:title="calculation: UtilitiesOperatingExpense to UtilitiesOperatingExpenseMaintenanceAndOperations" order="1.0" weight="1.0" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OperatingIncomeLoss" xlink:to="UtilitiesOperatingExpense" xlink:title="calculation: OperatingIncomeLoss to UtilitiesOperatingExpense" order="1.0" weight="-1.0" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="OperatingIncomeLoss" xlink:title="calculation: IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest to OperatingIncomeLoss" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NonoperatingIncomeExpense" xlink:label="NonoperatingIncomeExpense" xlink:title="NonoperatingIncomeExpense" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesAllowanceForFundsUsedDuringConstructionAdditions" xlink:label="PublicUtilitiesAllowanceForFundsUsedDuringConstructionAdditions" xlink:title="PublicUtilitiesAllowanceForFundsUsedDuringConstructionAdditions" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NonoperatingIncomeExpense" xlink:to="PublicUtilitiesAllowanceForFundsUsedDuringConstructionAdditions" xlink:title="calculation: NonoperatingIncomeExpense to PublicUtilitiesAllowanceForFundsUsedDuringConstructionAdditions" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpense" xlink:label="InterestExpense" xlink:title="InterestExpense" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NonoperatingIncomeExpense" xlink:to="InterestExpense" xlink:title="calculation: NonoperatingIncomeExpense to InterestExpense" order="1.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="OtherNonoperatingIncomeExpense" xlink:title="OtherNonoperatingIncomeExpense" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NonoperatingIncomeExpense" xlink:to="OtherNonoperatingIncomeExpense" xlink:title="calculation: NonoperatingIncomeExpense to OtherNonoperatingIncomeExpense" order="6.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent" xlink:label="NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent" xlink:title="NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NonoperatingIncomeExpense" xlink:to="NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent" xlink:title="calculation: NonoperatingIncomeExpense to NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent" order="3.0" weight="-1.0" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="NonoperatingIncomeExpense" xlink:title="calculation: IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest to NonoperatingIncomeExpense" order="1.0" weight="1.0" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetIncomeLoss" xlink:to="IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:title="calculation: NetIncomeLoss to IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" order="1.0" weight="1.0" />
  </link:calculationLink>
  <link:calculationLink xlink:type="extended" xlink:role="http://yorkwater.com/role/StatementsOfCashFlows">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:label="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:title="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="NetCashProvidedByUsedInInvestingActivities" xlink:title="NetCashProvidedByUsedInInvestingActivities" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireWaterAndWasteWaterSystems" xlink:label="PaymentsToAcquireWaterAndWasteWaterSystems" xlink:title="PaymentsToAcquireWaterAndWasteWaterSystems" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInInvestingActivities" xlink:to="PaymentsToAcquireWaterAndWasteWaterSystems" xlink:title="calculation: NetCashProvidedByUsedInInvestingActivities to PaymentsToAcquireWaterAndWasteWaterSystems" order="2.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireOtherPropertyPlantAndEquipment" xlink:label="PaymentsToAcquireOtherPropertyPlantAndEquipment" xlink:title="PaymentsToAcquireOtherPropertyPlantAndEquipment" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInInvestingActivities" xlink:to="PaymentsToAcquireOtherPropertyPlantAndEquipment" xlink:title="calculation: NetCashProvidedByUsedInInvestingActivities to PaymentsToAcquireOtherPropertyPlantAndEquipment" order="1.0" weight="-1.0" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:to="NetCashProvidedByUsedInInvestingActivities" xlink:title="calculation: CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect to NetCashProvidedByUsedInInvestingActivities" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="NetCashProvidedByUsedInFinancingActivities" xlink:title="NetCashProvidedByUsedInFinancingActivities" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:label="ProceedsFromIssuanceOfCommonStock" xlink:title="ProceedsFromIssuanceOfCommonStock" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInFinancingActivities" xlink:to="ProceedsFromIssuanceOfCommonStock" xlink:title="calculation: NetCashProvidedByUsedInFinancingActivities to ProceedsFromIssuanceOfCommonStock" order="3.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromAdvancesForConstruction" xlink:label="ProceedsFromAdvancesForConstruction" xlink:title="ProceedsFromAdvancesForConstruction" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInFinancingActivities" xlink:to="ProceedsFromAdvancesForConstruction" xlink:title="calculation: NetCashProvidedByUsedInFinancingActivities to ProceedsFromAdvancesForConstruction" order="13.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfAdvancesForConstruction" xlink:label="RepaymentsOfAdvancesForConstruction" xlink:title="RepaymentsOfAdvancesForConstruction" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInFinancingActivities" xlink:to="RepaymentsOfAdvancesForConstruction" xlink:title="calculation: NetCashProvidedByUsedInFinancingActivities to RepaymentsOfAdvancesForConstruction" order="12.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt" xlink:label="ProceedsFromIssuanceOfLongTermDebt" xlink:title="ProceedsFromIssuanceOfLongTermDebt" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInFinancingActivities" xlink:to="ProceedsFromIssuanceOfLongTermDebt" xlink:title="calculation: NetCashProvidedByUsedInFinancingActivities to ProceedsFromIssuanceOfLongTermDebt" order="10.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfLongTermDebt" xlink:label="RepaymentsOfLongTermDebt" xlink:title="RepaymentsOfLongTermDebt" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInFinancingActivities" xlink:to="RepaymentsOfLongTermDebt" xlink:title="calculation: NetCashProvidedByUsedInFinancingActivities to RepaymentsOfLongTermDebt" order="5.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDividendsCommonStock" xlink:label="PaymentsOfDividendsCommonStock" xlink:title="PaymentsOfDividendsCommonStock" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInFinancingActivities" xlink:to="PaymentsOfDividendsCommonStock" xlink:title="calculation: NetCashProvidedByUsedInFinancingActivities to PaymentsOfDividendsCommonStock" order="1.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromRepaymentsOfBankOverdrafts" xlink:label="ProceedsFromRepaymentsOfBankOverdrafts" xlink:title="ProceedsFromRepaymentsOfBankOverdrafts" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInFinancingActivities" xlink:to="ProceedsFromRepaymentsOfBankOverdrafts" xlink:title="calculation: NetCashProvidedByUsedInFinancingActivities to ProceedsFromRepaymentsOfBankOverdrafts" order="9.0" weight="1.0" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:to="NetCashProvidedByUsedInFinancingActivities" xlink:title="calculation: CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect to NetCashProvidedByUsedInFinancingActivities" order="1.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="NetCashProvidedByUsedInOperatingActivities" xlink:title="NetCashProvidedByUsedInOperatingActivities" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsAndOtherReceivables" xlink:label="IncreaseDecreaseInAccountsAndOtherReceivables" xlink:title="IncreaseDecreaseInAccountsAndOtherReceivables" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInOperatingActivities" xlink:to="IncreaseDecreaseInAccountsAndOtherReceivables" xlink:title="calculation: NetCashProvidedByUsedInOperatingActivities to IncreaseDecreaseInAccountsAndOtherReceivables" order="7.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_IncreaseDecreaseInAccruedInterest" xlink:label="IncreaseDecreaseInAccruedInterest" xlink:title="IncreaseDecreaseInAccruedInterest" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInOperatingActivities" xlink:to="IncreaseDecreaseInAccruedInterest" xlink:title="calculation: NetCashProvidedByUsedInOperatingActivities to IncreaseDecreaseInAccruedInterest" order="11.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="DepreciationDepletionAndAmortization" xlink:title="DepreciationDepletionAndAmortization" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInOperatingActivities" xlink:to="DepreciationDepletionAndAmortization" xlink:title="calculation: NetCashProvidedByUsedInOperatingActivities to DepreciationDepletionAndAmortization" order="3.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_IncreaseDecreaseInMaterialsAndSuppliesPrepaidExpensesRegulatoryAndOtherAssets" xlink:label="IncreaseDecreaseInMaterialsAndSuppliesPrepaidExpensesRegulatoryAndOtherAssets" xlink:title="IncreaseDecreaseInMaterialsAndSuppliesPrepaidExpensesRegulatoryAndOtherAssets" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInOperatingActivities" xlink:to="IncreaseDecreaseInMaterialsAndSuppliesPrepaidExpensesRegulatoryAndOtherAssets" xlink:title="calculation: NetCashProvidedByUsedInOperatingActivities to IncreaseDecreaseInMaterialsAndSuppliesPrepaidExpensesRegulatoryAndOtherAssets" order="9.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities" xlink:label="IncreaseDecreaseInAccountsPayableAndAccruedLiabilities" xlink:title="IncreaseDecreaseInAccountsPayableAndAccruedLiabilities" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInOperatingActivities" xlink:to="IncreaseDecreaseInAccountsPayableAndAccruedLiabilities" xlink:title="calculation: NetCashProvidedByUsedInOperatingActivities to IncreaseDecreaseInAccountsPayableAndAccruedLiabilities" order="10.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedStockExpense" xlink:label="RestrictedStockExpense" xlink:title="RestrictedStockExpense" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInOperatingActivities" xlink:to="RestrictedStockExpense" xlink:title="calculation: NetCashProvidedByUsedInOperatingActivities to RestrictedStockExpense" order="4.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNoncashIncomeExpense" xlink:label="OtherNoncashIncomeExpense" xlink:title="OtherNoncashIncomeExpense" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInOperatingActivities" xlink:to="OtherNoncashIncomeExpense" xlink:title="calculation: NetCashProvidedByUsedInOperatingActivities to OtherNoncashIncomeExpense" order="6.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="DeferredIncomeTaxExpenseBenefit" xlink:title="DeferredIncomeTaxExpenseBenefit" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInOperatingActivities" xlink:to="DeferredIncomeTaxExpenseBenefit" xlink:title="calculation: NetCashProvidedByUsedInOperatingActivities to DeferredIncomeTaxExpenseBenefit" order="5.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss" xlink:label="NetIncomeLoss" xlink:title="NetIncomeLoss" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInOperatingActivities" xlink:to="NetIncomeLoss" xlink:title="calculation: NetCashProvidedByUsedInOperatingActivities to NetIncomeLoss" order="0.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesReceivable" xlink:label="IncreaseDecreaseInIncomeTaxesReceivable" xlink:title="IncreaseDecreaseInIncomeTaxesReceivable" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetCashProvidedByUsedInOperatingActivities" xlink:to="IncreaseDecreaseInIncomeTaxesReceivable" xlink:title="calculation: NetCashProvidedByUsedInOperatingActivities to IncreaseDecreaseInIncomeTaxesReceivable" order="8.0" weight="-1.0" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:to="NetCashProvidedByUsedInOperatingActivities" xlink:title="calculation: CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect to NetCashProvidedByUsedInOperatingActivities" order="3.0" weight="1.0" />
  </link:calculationLink>
  <link:calculationLink xlink:type="extended" xlink:role="http://yorkwater.com/role/AccountsReceivableAndContractAssetsDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReceivablesNetCurrent" xlink:label="ReceivablesNetCurrent" xlink:title="ReceivablesNetCurrent" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_ReceivablesGrossCurrent" xlink:label="ReceivablesGrossCurrent" xlink:title="ReceivablesGrossCurrent" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherReceivablesGrossCurrent" xlink:label="OtherReceivablesGrossCurrent" xlink:title="OtherReceivablesGrossCurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ReceivablesGrossCurrent" xlink:to="OtherReceivablesGrossCurrent" xlink:title="calculation: ReceivablesGrossCurrent to OtherReceivablesGrossCurrent" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsReceivableGrossCurrent" xlink:label="AccountsReceivableGrossCurrent" xlink:title="AccountsReceivableGrossCurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ReceivablesGrossCurrent" xlink:to="AccountsReceivableGrossCurrent" xlink:title="calculation: ReceivablesGrossCurrent to AccountsReceivableGrossCurrent" order="1.0" weight="1.0" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ReceivablesNetCurrent" xlink:to="ReceivablesGrossCurrent" xlink:title="calculation: ReceivablesNetCurrent to ReceivablesGrossCurrent" order="1.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent" xlink:label="AllowanceForDoubtfulAccountsReceivableCurrent" xlink:title="AllowanceForDoubtfulAccountsReceivableCurrent" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ReceivablesNetCurrent" xlink:to="AllowanceForDoubtfulAccountsReceivableCurrent" xlink:title="calculation: ReceivablesNetCurrent to AllowanceForDoubtfulAccountsReceivableCurrent" order="2.0" weight="-1.0" />
  </link:calculationLink>
  <link:calculationLink xlink:type="extended" xlink:role="http://yorkwater.com/role/CommonStockAndEarningsPerShareDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="WeightedAverageNumberOfDilutedSharesOutstanding" xlink:title="WeightedAverageNumberOfDilutedSharesOutstanding" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="WeightedAverageNumberOfSharesOutstandingBasic" xlink:title="WeightedAverageNumberOfSharesOutstandingBasic" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="WeightedAverageNumberOfDilutedSharesOutstanding" xlink:to="WeightedAverageNumberOfSharesOutstandingBasic" xlink:title="calculation: WeightedAverageNumberOfDilutedSharesOutstanding to WeightedAverageNumberOfSharesOutstandingBasic" order="0.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:title="IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="WeightedAverageNumberOfDilutedSharesOutstanding" xlink:to="IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:title="calculation: WeightedAverageNumberOfDilutedSharesOutstanding to IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" order="1.0" weight="1.0" />
  </link:calculationLink>
  <link:calculationLink xlink:type="extended" xlink:role="http://yorkwater.com/role/RevenueDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Revenues" xlink:label="Revenues" xlink:title="Revenues" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLeaseIncome" xlink:label="OperatingLeaseLeaseIncome" xlink:title="OperatingLeaseLeaseIncome" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Revenues" xlink:to="OperatingLeaseLeaseIncome" xlink:title="calculation: Revenues to OperatingLeaseLeaseIncome" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="RevenueFromContractWithCustomerExcludingAssessedTax" xlink:title="RevenueFromContractWithCustomerExcludingAssessedTax" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Revenues" xlink:to="RevenueFromContractWithCustomerExcludingAssessedTax" xlink:title="calculation: Revenues to RevenueFromContractWithCustomerExcludingAssessedTax" order="1.0" weight="1.0" />
  </link:calculationLink>
  <link:calculationLink xlink:type="extended" xlink:role="http://yorkwater.com/role/EmployeeBenefitPlansChangesInBenefitObligationAndPlanAssetsDetails">
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_IncreaseDecreaseInRegulatoryAsset" xlink:label="IncreaseDecreaseInRegulatoryAsset" xlink:title="IncreaseDecreaseInRegulatoryAsset" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanNetGainLossRecognizedAsRegulatoryAsset" xlink:label="DefinedBenefitPlanNetGainLossRecognizedAsRegulatoryAsset" xlink:title="DefinedBenefitPlanNetGainLossRecognizedAsRegulatoryAsset" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncreaseDecreaseInRegulatoryAsset" xlink:to="DefinedBenefitPlanNetGainLossRecognizedAsRegulatoryAsset" xlink:title="calculation: IncreaseDecreaseInRegulatoryAsset to DefinedBenefitPlanNetGainLossRecognizedAsRegulatoryAsset" order="1.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanPriorServiceCostCreditRecognizedAsRegulatoryAsset" xlink:label="DefinedBenefitPlanPriorServiceCostCreditRecognizedAsRegulatoryAsset" xlink:title="DefinedBenefitPlanPriorServiceCostCreditRecognizedAsRegulatoryAsset" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncreaseDecreaseInRegulatoryAsset" xlink:to="DefinedBenefitPlanPriorServiceCostCreditRecognizedAsRegulatoryAsset" xlink:title="calculation: IncreaseDecreaseInRegulatoryAsset to DefinedBenefitPlanPriorServiceCostCreditRecognizedAsRegulatoryAsset" order="4.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanActuarialGainLossRecognizedAsRegulatoryAsset" xlink:label="DefinedBenefitPlanActuarialGainLossRecognizedAsRegulatoryAsset" xlink:title="DefinedBenefitPlanActuarialGainLossRecognizedAsRegulatoryAsset" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncreaseDecreaseInRegulatoryAsset" xlink:to="DefinedBenefitPlanActuarialGainLossRecognizedAsRegulatoryAsset" xlink:title="calculation: IncreaseDecreaseInRegulatoryAsset to DefinedBenefitPlanActuarialGainLossRecognizedAsRegulatoryAsset" order="3.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanRegulatoryAsset" xlink:label="DefinedBenefitPlanRegulatoryAsset" xlink:title="DefinedBenefitPlanRegulatoryAsset" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanNetGainLossRecognizedInRegulatoryAssets" xlink:label="DefinedBenefitPlanNetGainLossRecognizedInRegulatoryAssets" xlink:title="DefinedBenefitPlanNetGainLossRecognizedInRegulatoryAssets" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DefinedBenefitPlanRegulatoryAsset" xlink:to="DefinedBenefitPlanNetGainLossRecognizedInRegulatoryAssets" xlink:title="calculation: DefinedBenefitPlanRegulatoryAsset to DefinedBenefitPlanNetGainLossRecognizedInRegulatoryAssets" order="1.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanPriorServiceCostCreditRecognizedInRegulatoryAssets" xlink:label="DefinedBenefitPlanPriorServiceCostCreditRecognizedInRegulatoryAssets" xlink:title="DefinedBenefitPlanPriorServiceCostCreditRecognizedInRegulatoryAssets" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DefinedBenefitPlanRegulatoryAsset" xlink:to="DefinedBenefitPlanPriorServiceCostCreditRecognizedInRegulatoryAssets" xlink:title="calculation: DefinedBenefitPlanRegulatoryAsset to DefinedBenefitPlanPriorServiceCostCreditRecognizedInRegulatoryAssets" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan" xlink:label="DefinedBenefitPlanFundedStatusOfPlan" xlink:title="DefinedBenefitPlanFundedStatusOfPlan" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanBenefitObligation" xlink:label="DefinedBenefitPlanBenefitObligation" xlink:title="DefinedBenefitPlanBenefitObligation" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DefinedBenefitPlanFundedStatusOfPlan" xlink:to="DefinedBenefitPlanBenefitObligation" xlink:title="calculation: DefinedBenefitPlanFundedStatusOfPlan to DefinedBenefitPlanBenefitObligation" order="0.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets" xlink:label="DefinedBenefitPlanFairValueOfPlanAssets" xlink:title="DefinedBenefitPlanFairValueOfPlanAssets" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DefinedBenefitPlanFundedStatusOfPlan" xlink:to="DefinedBenefitPlanFairValueOfPlanAssets" xlink:title="calculation: DefinedBenefitPlanFundedStatusOfPlan to DefinedBenefitPlanFairValueOfPlanAssets" order="1.0" weight="1.0" />
  </link:calculationLink>
  <link:calculationLink xlink:type="extended" xlink:role="http://yorkwater.com/role/EmployeeBenefitPlansComponentsOfNetPeriodicBenefitCostDetails">
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:label="AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:title="AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_EstimatedNetLossToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:label="EstimatedNetLossToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:title="EstimatedNetLossToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:to="EstimatedNetLossToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:title="calculation: AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months to EstimatedNetLossToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" order="0.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_NetPriorServiceCreditToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:label="NetPriorServiceCreditToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:title="NetPriorServiceCreditToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:to="NetPriorServiceCreditToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:title="calculation: AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months to NetPriorServiceCreditToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" order="1.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost" xlink:label="DefinedBenefitPlanNetPeriodicBenefitCost" xlink:title="DefinedBenefitPlanNetPeriodicBenefitCost" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets" xlink:label="DefinedBenefitPlanExpectedReturnOnPlanAssets" xlink:title="DefinedBenefitPlanExpectedReturnOnPlanAssets" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DefinedBenefitPlanNetPeriodicBenefitCost" xlink:to="DefinedBenefitPlanExpectedReturnOnPlanAssets" xlink:title="calculation: DefinedBenefitPlanNetPeriodicBenefitCost to DefinedBenefitPlanExpectedReturnOnPlanAssets" order="3.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit" xlink:label="DefinedBenefitPlanAmortizationOfPriorServiceCostCredit" xlink:title="DefinedBenefitPlanAmortizationOfPriorServiceCostCredit" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DefinedBenefitPlanNetPeriodicBenefitCost" xlink:to="DefinedBenefitPlanAmortizationOfPriorServiceCostCredit" xlink:title="calculation: DefinedBenefitPlanNetPeriodicBenefitCost to DefinedBenefitPlanAmortizationOfPriorServiceCostCredit" order="7.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanInterestCost" xlink:label="DefinedBenefitPlanInterestCost" xlink:title="DefinedBenefitPlanInterestCost" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DefinedBenefitPlanNetPeriodicBenefitCost" xlink:to="DefinedBenefitPlanInterestCost" xlink:title="calculation: DefinedBenefitPlanNetPeriodicBenefitCost to DefinedBenefitPlanInterestCost" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanChangeInRegulatoryAsset" xlink:label="DefinedBenefitPlanChangeInRegulatoryAsset" xlink:title="DefinedBenefitPlanChangeInRegulatoryAsset" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DefinedBenefitPlanNetPeriodicBenefitCost" xlink:to="DefinedBenefitPlanChangeInRegulatoryAsset" xlink:title="calculation: DefinedBenefitPlanNetPeriodicBenefitCost to DefinedBenefitPlanChangeInRegulatoryAsset" order="8.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses" xlink:label="DefinedBenefitPlanAmortizationOfGainsLosses" xlink:title="DefinedBenefitPlanAmortizationOfGainsLosses" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DefinedBenefitPlanNetPeriodicBenefitCost" xlink:to="DefinedBenefitPlanAmortizationOfGainsLosses" xlink:title="calculation: DefinedBenefitPlanNetPeriodicBenefitCost to DefinedBenefitPlanAmortizationOfGainsLosses" order="6.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanServiceCost" xlink:label="DefinedBenefitPlanServiceCost" xlink:title="DefinedBenefitPlanServiceCost" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DefinedBenefitPlanNetPeriodicBenefitCost" xlink:to="DefinedBenefitPlanServiceCost" xlink:title="calculation: DefinedBenefitPlanNetPeriodicBenefitCost to DefinedBenefitPlanServiceCost" order="1.0" weight="1.0" />
  </link:calculationLink>
  <link:calculationLink xlink:type="extended" xlink:role="http://yorkwater.com/role/TaxesOtherThanIncomeTaxesDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UtilitiesOperatingExpenseTaxes" xlink:label="UtilitiesOperatingExpenseTaxes" xlink:title="UtilitiesOperatingExpenseTaxes" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RealEstateTaxExpense" xlink:label="RealEstateTaxExpense" xlink:title="RealEstateTaxExpense" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="UtilitiesOperatingExpenseTaxes" xlink:to="RealEstateTaxExpense" xlink:title="calculation: UtilitiesOperatingExpenseTaxes to RealEstateTaxExpense" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_RegulatoryAssessmentTaxes" xlink:label="RegulatoryAssessmentTaxes" xlink:title="RegulatoryAssessmentTaxes" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="UtilitiesOperatingExpenseTaxes" xlink:to="RegulatoryAssessmentTaxes" xlink:title="calculation: UtilitiesOperatingExpenseTaxes to RegulatoryAssessmentTaxes" order="1.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TaxesOther" xlink:label="TaxesOther" xlink:title="TaxesOther" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="UtilitiesOperatingExpenseTaxes" xlink:to="TaxesOther" xlink:title="calculation: UtilitiesOperatingExpenseTaxes to TaxesOther" order="5.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLaborRelatedExpenses" xlink:label="OtherLaborRelatedExpenses" xlink:title="OtherLaborRelatedExpenses" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="UtilitiesOperatingExpenseTaxes" xlink:to="OtherLaborRelatedExpenses" xlink:title="calculation: UtilitiesOperatingExpenseTaxes to OtherLaborRelatedExpenses" order="3.0" weight="1.0" />
  </link:calculationLink>
  <link:calculationLink xlink:type="extended" xlink:role="http://yorkwater.com/role/IncomeTaxesDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="IncomeTaxExpenseBenefit" xlink:title="IncomeTaxExpenseBenefit" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit" xlink:label="DeferredFederalIncomeTaxExpenseBenefit" xlink:title="DeferredFederalIncomeTaxExpenseBenefit" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="DeferredFederalIncomeTaxExpenseBenefit" xlink:title="calculation: IncomeTaxExpenseBenefit to DeferredFederalIncomeTaxExpenseBenefit" order="3.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit" xlink:label="CurrentStateAndLocalTaxExpenseBenefit" xlink:title="CurrentStateAndLocalTaxExpenseBenefit" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="CurrentStateAndLocalTaxExpenseBenefit" xlink:title="calculation: IncomeTaxExpenseBenefit to CurrentStateAndLocalTaxExpenseBenefit" order="1.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit" xlink:label="DeferredStateAndLocalIncomeTaxExpenseBenefit" xlink:title="DeferredStateAndLocalIncomeTaxExpenseBenefit" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="DeferredStateAndLocalIncomeTaxExpenseBenefit" xlink:title="calculation: IncomeTaxExpenseBenefit to DeferredStateAndLocalIncomeTaxExpenseBenefit" order="4.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CurrentFederalTaxExpenseBenefit" xlink:label="CurrentFederalTaxExpenseBenefit" xlink:title="CurrentFederalTaxExpenseBenefit" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="CurrentFederalTaxExpenseBenefit" xlink:title="calculation: IncomeTaxExpenseBenefit to CurrentFederalTaxExpenseBenefit" order="0.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxReconciliationTaxCreditsInvestment" xlink:label="IncomeTaxReconciliationTaxCreditsInvestment" xlink:title="IncomeTaxReconciliationTaxCreditsInvestment" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="IncomeTaxReconciliationTaxCreditsInvestment" xlink:title="calculation: IncomeTaxExpenseBenefit to IncomeTaxReconciliationTaxCreditsInvestment" order="5.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxLiabilities" xlink:label="DeferredTaxLiabilities" xlink:title="DeferredTaxLiabilities" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsGross" xlink:label="DeferredTaxAssetsGross" xlink:title="DeferredTaxAssetsGross" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsCharitableContributionCarryforwards" xlink:label="DeferredTaxAssetsCharitableContributionCarryforwards" xlink:title="DeferredTaxAssetsCharitableContributionCarryforwards" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredTaxAssetsGross" xlink:to="DeferredTaxAssetsCharitableContributionCarryforwards" xlink:title="calculation: DeferredTaxAssetsGross to DeferredTaxAssetsCharitableContributionCarryforwards" order="6.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DeferredTaxAssetsGrossUpOfRevenuesNecessaryToReturnInRatesEffectOfTemporaryDifferences" xlink:label="DeferredTaxAssetsGrossUpOfRevenuesNecessaryToReturnInRatesEffectOfTemporaryDifferences" xlink:title="DeferredTaxAssetsGrossUpOfRevenuesNecessaryToReturnInRatesEffectOfTemporaryDifferences" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredTaxAssetsGross" xlink:to="DeferredTaxAssetsGrossUpOfRevenuesNecessaryToReturnInRatesEffectOfTemporaryDifferences" xlink:title="calculation: DeferredTaxAssetsGross to DeferredTaxAssetsGrossUpOfRevenuesNecessaryToReturnInRatesEffectOfTemporaryDifferences" order="8.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts" xlink:label="DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts" xlink:title="DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredTaxAssetsGross" xlink:to="DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts" xlink:title="calculation: DeferredTaxAssetsGross to DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts" order="1.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation" xlink:label="DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation" xlink:title="DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredTaxAssetsGross" xlink:to="DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation" xlink:title="calculation: DeferredTaxAssetsGross to DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation" order="3.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DeferredTaxAssetsCustomersAdvancesForConstructionAndContributionsInAidOfConstruction" xlink:label="DeferredTaxAssetsCustomersAdvancesForConstructionAndContributionsInAidOfConstruction" xlink:title="DeferredTaxAssetsCustomersAdvancesForConstructionAndContributionsInAidOfConstruction" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredTaxAssetsGross" xlink:to="DeferredTaxAssetsCustomersAdvancesForConstructionAndContributionsInAidOfConstruction" xlink:title="calculation: DeferredTaxAssetsGross to DeferredTaxAssetsCustomersAdvancesForConstructionAndContributionsInAidOfConstruction" order="10.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsOther" xlink:label="DeferredTaxAssetsOther" xlink:title="DeferredTaxAssetsOther" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredTaxAssetsGross" xlink:to="DeferredTaxAssetsOther" xlink:title="calculation: DeferredTaxAssetsGross to DeferredTaxAssetsOther" order="15.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsCompensatedAbsences" xlink:label="DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsCompensatedAbsences" xlink:title="DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsCompensatedAbsences" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredTaxAssetsGross" xlink:to="DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsCompensatedAbsences" xlink:title="calculation: DeferredTaxAssetsGross to DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsCompensatedAbsences" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DeferredTaxAssetsExcessAccumulatedDeferredIncomeTaxesOnAcceleratedDepreciation" xlink:label="DeferredTaxAssetsExcessAccumulatedDeferredIncomeTaxesOnAcceleratedDepreciation" xlink:title="DeferredTaxAssetsExcessAccumulatedDeferredIncomeTaxesOnAcceleratedDepreciation" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredTaxAssetsGross" xlink:to="DeferredTaxAssetsExcessAccumulatedDeferredIncomeTaxesOnAcceleratedDepreciation" xlink:title="calculation: DeferredTaxAssetsGross to DeferredTaxAssetsExcessAccumulatedDeferredIncomeTaxesOnAcceleratedDepreciation" order="7.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards" xlink:label="DeferredTaxAssetsOperatingLossCarryforwards" xlink:title="DeferredTaxAssetsOperatingLossCarryforwards" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredTaxAssetsGross" xlink:to="DeferredTaxAssetsOperatingLossCarryforwards" xlink:title="calculation: DeferredTaxAssetsGross to DeferredTaxAssetsOperatingLossCarryforwards" order="5.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions" xlink:label="DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions" xlink:title="DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredTaxAssetsGross" xlink:to="DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions" xlink:title="calculation: DeferredTaxAssetsGross to DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions" order="11.0" weight="1.0" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredTaxLiabilities" xlink:to="DeferredTaxAssetsGross" xlink:title="calculation: DeferredTaxLiabilities to DeferredTaxAssetsGross" order="1.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxLiabilities" xlink:label="DeferredIncomeTaxLiabilities" xlink:title="DeferredIncomeTaxLiabilities" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxLiabilitiesOther" xlink:label="DeferredTaxLiabilitiesOther" xlink:title="DeferredTaxLiabilitiesOther" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredIncomeTaxLiabilities" xlink:to="DeferredTaxLiabilitiesOther" xlink:title="calculation: DeferredIncomeTaxLiabilities to DeferredTaxLiabilitiesOther" order="8.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DeferredTaxLiabilitiesCompensationAndBenefitsPensions" xlink:label="DeferredTaxLiabilitiesCompensationAndBenefitsPensions" xlink:title="DeferredTaxLiabilitiesCompensationAndBenefitsPensions" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredIncomeTaxLiabilities" xlink:to="DeferredTaxLiabilitiesCompensationAndBenefitsPensions" xlink:title="calculation: DeferredIncomeTaxLiabilities to DeferredTaxLiabilitiesCompensationAndBenefitsPensions" order="5.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment" xlink:label="DeferredTaxLiabilitiesPropertyPlantAndEquipment" xlink:title="DeferredTaxLiabilitiesPropertyPlantAndEquipment" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredIncomeTaxLiabilities" xlink:to="DeferredTaxLiabilitiesPropertyPlantAndEquipment" xlink:title="calculation: DeferredIncomeTaxLiabilities to DeferredTaxLiabilitiesPropertyPlantAndEquipment" order="1.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxLiabilitiesDeferredExpenseDeferredFinancingCosts" xlink:label="DeferredTaxLiabilitiesDeferredExpenseDeferredFinancingCosts" xlink:title="DeferredTaxLiabilitiesDeferredExpenseDeferredFinancingCosts" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredIncomeTaxLiabilities" xlink:to="DeferredTaxLiabilitiesDeferredExpenseDeferredFinancingCosts" xlink:title="calculation: DeferredIncomeTaxLiabilities to DeferredTaxLiabilitiesDeferredExpenseDeferredFinancingCosts" order="7.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DeferredTaxLiabilitiesBasisDifferencesFromIrsTpr" xlink:label="DeferredTaxLiabilitiesBasisDifferencesFromIrsTpr" xlink:title="DeferredTaxLiabilitiesBasisDifferencesFromIrsTpr" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredIncomeTaxLiabilities" xlink:to="DeferredTaxLiabilitiesBasisDifferencesFromIrsTpr" xlink:title="calculation: DeferredIncomeTaxLiabilities to DeferredTaxLiabilitiesBasisDifferencesFromIrsTpr" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DeferredTaxLiabilitiesRevenueGrossUpToRecoverTemporaryDifferenceInRates" xlink:label="DeferredTaxLiabilitiesRevenueGrossUpToRecoverTemporaryDifferenceInRates" xlink:title="DeferredTaxLiabilitiesRevenueGrossUpToRecoverTemporaryDifferenceInRates" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredIncomeTaxLiabilities" xlink:to="DeferredTaxLiabilitiesRevenueGrossUpToRecoverTemporaryDifferenceInRates" xlink:title="calculation: DeferredIncomeTaxLiabilities to DeferredTaxLiabilitiesRevenueGrossUpToRecoverTemporaryDifferenceInRates" order="4.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DeferredTaxLiabilitiesInvestmentTaxCredit" xlink:label="DeferredTaxLiabilitiesInvestmentTaxCredit" xlink:title="DeferredTaxLiabilitiesInvestmentTaxCredit" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredIncomeTaxLiabilities" xlink:to="DeferredTaxLiabilitiesInvestmentTaxCredit" xlink:title="calculation: DeferredIncomeTaxLiabilities to DeferredTaxLiabilitiesInvestmentTaxCredit" order="3.0" weight="1.0" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredTaxLiabilities" xlink:to="DeferredIncomeTaxLiabilities" xlink:title="calculation: DeferredTaxLiabilities to DeferredIncomeTaxLiabilities" order="2.0" weight="1.0" />
  </link:calculationLink>
  <link:calculationLink xlink:type="extended" xlink:role="http://yorkwater.com/role/IncomeTaxesDetailsCalc2">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="IncomeTaxExpenseBenefit" xlink:title="IncomeTaxExpenseBenefit" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_TangiblePropertyRegulationsDeduction" xlink:label="TangiblePropertyRegulationsDeduction" xlink:title="TangiblePropertyRegulationsDeduction" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="TangiblePropertyRegulationsDeduction" xlink:title="calculation: IncomeTaxExpenseBenefit to TangiblePropertyRegulationsDeduction" order="2.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_EffectiveIncomeTaxRateReconciliationCashValueOfLifeInsuranceAmount" xlink:label="EffectiveIncomeTaxRateReconciliationCashValueOfLifeInsuranceAmount" xlink:title="EffectiveIncomeTaxRateReconciliationCashValueOfLifeInsuranceAmount" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="EffectiveIncomeTaxRateReconciliationCashValueOfLifeInsuranceAmount" xlink:title="calculation: IncomeTaxExpenseBenefit to EffectiveIncomeTaxRateReconciliationCashValueOfLifeInsuranceAmount" order="8.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_AmortizationOfExcessAccumulatedDeferredIncomeTaxes" xlink:label="AmortizationOfExcessAccumulatedDeferredIncomeTaxes" xlink:title="AmortizationOfExcessAccumulatedDeferredIncomeTaxes" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="AmortizationOfExcessAccumulatedDeferredIncomeTaxes" xlink:title="calculation: IncomeTaxExpenseBenefit to AmortizationOfExcessAccumulatedDeferredIncomeTaxes" order="6.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate" xlink:label="IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate" xlink:title="IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate" xlink:title="calculation: IncomeTaxExpenseBenefit to IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate" order="0.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxReconciliationOtherReconcilingItems" xlink:label="IncomeTaxReconciliationOtherReconcilingItems" xlink:title="IncomeTaxReconciliationOtherReconcilingItems" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="IncomeTaxReconciliationOtherReconcilingItems" xlink:title="calculation: IncomeTaxExpenseBenefit to IncomeTaxReconciliationOtherReconcilingItems" order="10.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxReconciliationTaxExemptIncome" xlink:label="IncomeTaxReconciliationTaxExemptIncome" xlink:title="IncomeTaxReconciliationTaxExemptIncome" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="IncomeTaxReconciliationTaxExemptIncome" xlink:title="calculation: IncomeTaxExpenseBenefit to IncomeTaxReconciliationTaxExemptIncome" order="3.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxReconciliationTaxCreditsInvestment" xlink:label="IncomeTaxReconciliationTaxCreditsInvestment" xlink:title="IncomeTaxReconciliationTaxCreditsInvestment" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="IncomeTaxReconciliationTaxCreditsInvestment" xlink:title="calculation: IncomeTaxExpenseBenefit to IncomeTaxReconciliationTaxCreditsInvestment" order="5.0" weight="-1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes" xlink:label="IncomeTaxReconciliationStateAndLocalIncomeTaxes" xlink:title="IncomeTaxReconciliationStateAndLocalIncomeTaxes" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="IncomeTaxReconciliationStateAndLocalIncomeTaxes" xlink:title="calculation: IncomeTaxExpenseBenefit to IncomeTaxReconciliationStateAndLocalIncomeTaxes" order="1.0" weight="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxReconciliationChangeInEnactedTaxRate" xlink:label="IncomeTaxReconciliationChangeInEnactedTaxRate" xlink:title="IncomeTaxReconciliationChangeInEnactedTaxRate" />
    <link:calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="IncomeTaxReconciliationChangeInEnactedTaxRate" xlink:title="calculation: IncomeTaxExpenseBenefit to IncomeTaxReconciliationChangeInEnactedTaxRate" order="7.0" weight="1.0" />
  </link:calculationLink>
</link:linkbase>
