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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2020 Workiva-->
<!--r:ff865cf8-7d3b-4031-9d3a-1dd0a34c4a59,g:03a433b4-fe63-432c-bbe3-7d79a10c91d0-->
<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.hersheys.com/role/DOCUMENTANDENTITYINFORMATIONDocument" xlink:type="simple" xlink:href="hsy-20200628.xsd#DOCUMENTANDENTITYINFORMATIONDocument"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/DOCUMENTANDENTITYINFORMATIONDocument" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFINCOME" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONSOLIDATEDSTATEMENTSOFINCOME"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFINCOME" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_171016be-085f-4fa4-8aba-0c931f0ae9f7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_36f6d269-8da8-4534-94ab-6a0f000e451f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_171016be-085f-4fa4-8aba-0c931f0ae9f7" xlink:to="loc_us-gaap_OperatingIncomeLoss_36f6d269-8da8-4534-94ab-6a0f000e451f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_81ef79c9-bacd-4f41-aea5-9d1f3e8b2910" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_171016be-085f-4fa4-8aba-0c931f0ae9f7" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_81ef79c9-bacd-4f41-aea5-9d1f3e8b2910" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_f8e28b88-46b0-4029-b3b1-8a23efee06a5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_171016be-085f-4fa4-8aba-0c931f0ae9f7" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_f8e28b88-46b0-4029-b3b1-8a23efee06a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_63ba37c3-3fd4-490c-99ba-47e135356ea4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_46ca4a8a-253e-4ca3-9f8d-6a59ef2be703" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_NetIncomeLoss_63ba37c3-3fd4-490c-99ba-47e135356ea4" xlink:to="loc_us-gaap_ProfitLoss_46ca4a8a-253e-4ca3-9f8d-6a59ef2be703" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_f9151242-dcb2-4229-ba43-b9ffe1b8911b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_63ba37c3-3fd4-490c-99ba-47e135356ea4" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_f9151242-dcb2-4229-ba43-b9ffe1b8911b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_8f823e10-b9bb-43ea-8bee-201dd63e2d08" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_6a8a3624-d14e-4a25-b5c9-2fb0f89108b3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_8f823e10-b9bb-43ea-8bee-201dd63e2d08" xlink:to="loc_us-gaap_GrossProfit_6a8a3624-d14e-4a25-b5c9-2fb0f89108b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_ee9073c9-3680-4c16-b920-1292d17a51a4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_8f823e10-b9bb-43ea-8bee-201dd63e2d08" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_ee9073c9-3680-4c16-b920-1292d17a51a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_6558ed14-d2a6-4943-b006-f45e1ff83569" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_8f823e10-b9bb-43ea-8bee-201dd63e2d08" xlink:to="loc_us-gaap_AssetImpairmentCharges_6558ed14-d2a6-4943-b006-f45e1ff83569" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_RestructuringChargesBusinessRealignment_9b1b31e5-eb0a-4ff2-8616-a370851d696c" xlink:href="hsy-20200628.xsd#hsy_RestructuringChargesBusinessRealignment"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_8f823e10-b9bb-43ea-8bee-201dd63e2d08" xlink:to="loc_hsy_RestructuringChargesBusinessRealignment_9b1b31e5-eb0a-4ff2-8616-a370851d696c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_7eaceaa2-d1ec-426e-b7b5-5956d43bd9b4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_ec9a73ce-54f3-4a9a-8784-1e3026b91cf0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_7eaceaa2-d1ec-426e-b7b5-5956d43bd9b4" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_ec9a73ce-54f3-4a9a-8784-1e3026b91cf0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_8bce42aa-b1a2-4aa8-9bcf-3099b4a4ec40" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_7eaceaa2-d1ec-426e-b7b5-5956d43bd9b4" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_8bce42aa-b1a2-4aa8-9bcf-3099b4a4ec40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_d4da1457-f960-4e55-b4ed-10e914c8ba7c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_1de16caa-743f-4047-b5a8-e450cb96f31f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_d4da1457-f960-4e55-b4ed-10e914c8ba7c" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_1de16caa-743f-4047-b5a8-e450cb96f31f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_1bfc4231-c33c-4fb1-9a0d-219d79330491" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_d4da1457-f960-4e55-b4ed-10e914c8ba7c" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_1bfc4231-c33c-4fb1-9a0d-219d79330491" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_51e3e2f8-01e6-4316-b8ca-94ed1f5476b4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_9770f4af-7161-4194-bf3e-162c03495190" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_51e3e2f8-01e6-4316-b8ca-94ed1f5476b4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_9770f4af-7161-4194-bf3e-162c03495190" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax_ef0af66b-40b0-4ce7-bc4e-6b6b0d736338" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_51e3e2f8-01e6-4316-b8ca-94ed1f5476b4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax_ef0af66b-40b0-4ce7-bc4e-6b6b0d736338" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTax_e9e6b70e-04b1-4171-9b1a-425ee87b86ec" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossTax_a43f22cf-d772-48a5-9e25-94334fa75f77" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_e9e6b70e-04b1-4171-9b1a-425ee87b86ec" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossTax_a43f22cf-d772-48a5-9e25-94334fa75f77" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax_351d1cc9-276a-4b33-8ee5-f5e725d40b3f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_e9e6b70e-04b1-4171-9b1a-425ee87b86ec" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax_351d1cc9-276a-4b33-8ee5-f5e725d40b3f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax_507e8dda-5aaa-4ca6-9c8d-4d3823ded65c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_e9e6b70e-04b1-4171-9b1a-425ee87b86ec" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax_507e8dda-5aaa-4ca6-9c8d-4d3823ded65c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax_53465431-ea67-454e-b4ee-f13fb0114ba1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_e9e6b70e-04b1-4171-9b1a-425ee87b86ec" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax_53465431-ea67-454e-b4ee-f13fb0114ba1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodTax_1d7baaa7-effa-44bf-998f-ca1eeab8ccdc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodTax"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_e9e6b70e-04b1-4171-9b1a-425ee87b86ec" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodTax_1d7baaa7-effa-44bf-998f-ca1eeab8ccdc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e56bdd24-ce3d-407d-9e2e-dd1001fba054" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_20a8beab-4eb1-481d-97b4-eb3d52172fba" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e56bdd24-ce3d-407d-9e2e-dd1001fba054" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_20a8beab-4eb1-481d-97b4-eb3d52172fba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax_8061854c-d7f1-4316-b702-3981516a1f3b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e56bdd24-ce3d-407d-9e2e-dd1001fba054" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax_8061854c-d7f1-4316-b702-3981516a1f3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_42254b1c-848f-4e74-a457-2aa83a5f9161" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e56bdd24-ce3d-407d-9e2e-dd1001fba054" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_42254b1c-848f-4e74-a457-2aa83a5f9161" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_04c5e1df-6666-47fe-b6aa-482f7ad2a45d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e56bdd24-ce3d-407d-9e2e-dd1001fba054" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_04c5e1df-6666-47fe-b6aa-482f7ad2a45d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax_a6edaf8d-eebb-46f8-843b-5bb9e6c1ae9e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e56bdd24-ce3d-407d-9e2e-dd1001fba054" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax_a6edaf8d-eebb-46f8-843b-5bb9e6c1ae9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax_ff6fc27d-eadc-4d2e-9b41-9184c608ba17" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax_e1d36e31-66a2-418d-9bec-da9f9128a4a8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax_ff6fc27d-eadc-4d2e-9b41-9184c608ba17" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax_e1d36e31-66a2-418d-9bec-da9f9128a4a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossTax_b58d492c-599b-4c7a-ac3b-e41b1a1f54bc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax_ff6fc27d-eadc-4d2e-9b41-9184c608ba17" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossTax_b58d492c-599b-4c7a-ac3b-e41b1a1f54bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_17e50656-2cc9-4231-9f63-3870f2e65767" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_0bc0b693-2d80-45f3-be40-1555d7ed47f6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_17e50656-2cc9-4231-9f63-3870f2e65767" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_0bc0b693-2d80-45f3-be40-1555d7ed47f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax_756a2899-38d2-4d64-9024-da96adcbb91e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_17e50656-2cc9-4231-9f63-3870f2e65767" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax_756a2899-38d2-4d64-9024-da96adcbb91e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_bce15ae4-7c82-4a9b-958a-574b1e983fce" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_2737f40e-d6de-42d1-9c77-32c11137a9bd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_bce15ae4-7c82-4a9b-958a-574b1e983fce" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_2737f40e-d6de-42d1-9c77-32c11137a9bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_7c08f742-27dc-4272-8cd1-a9ac8640415a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_bce15ae4-7c82-4a9b-958a-574b1e983fce" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_7c08f742-27dc-4272-8cd1-a9ac8640415a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_8e1a21e5-22d5-4791-83e8-3eed4bf496b3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax_92044fef-be60-4114-821c-465c0e9b70f9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_8e1a21e5-22d5-4791-83e8-3eed4bf496b3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax_92044fef-be60-4114-821c-465c0e9b70f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_b0ad46fb-0042-4ee8-b113-01126313dd6a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_8e1a21e5-22d5-4791-83e8-3eed4bf496b3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_b0ad46fb-0042-4ee8-b113-01126313dd6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_09c64877-dea0-46b0-99f0-5ab89e818cdf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_8e1a21e5-22d5-4791-83e8-3eed4bf496b3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_09c64877-dea0-46b0-99f0-5ab89e818cdf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_58ff708a-8743-4196-beec-66d03dd8ab1a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_8e1a21e5-22d5-4791-83e8-3eed4bf496b3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_58ff708a-8743-4196-beec-66d03dd8ab1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_acd6cee2-7ba6-43e6-b9a3-8875d4224b59" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_8e1a21e5-22d5-4791-83e8-3eed4bf496b3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_acd6cee2-7ba6-43e6-b9a3-8875d4224b59" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_bca5145d-6be3-4ac2-b5a4-31a36514291c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_896ea474-c866-49f8-a096-826b116682d9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_bca5145d-6be3-4ac2-b5a4-31a36514291c" xlink:to="loc_us-gaap_AccountsPayableCurrent_896ea474-c866-49f8-a096-826b116682d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_f0a159e9-9ea6-46c2-a5e4-4ce5b9f899d0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_bca5145d-6be3-4ac2-b5a4-31a36514291c" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_f0a159e9-9ea6-46c2-a5e4-4ce5b9f899d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_61dc3de9-d18b-4f6e-b15a-9bf97f1d3ca5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccruedIncomeTaxesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_bca5145d-6be3-4ac2-b5a4-31a36514291c" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_61dc3de9-d18b-4f6e-b15a-9bf97f1d3ca5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_97c42234-8067-49a0-b5ad-41936379396d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermBorrowings"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_bca5145d-6be3-4ac2-b5a4-31a36514291c" xlink:to="loc_us-gaap_ShortTermBorrowings_97c42234-8067-49a0-b5ad-41936379396d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_b9abda08-70e0-4460-90e2-7c0062cf83b3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_bca5145d-6be3-4ac2-b5a4-31a36514291c" xlink:to="loc_us-gaap_LongTermDebtCurrent_b9abda08-70e0-4460-90e2-7c0062cf83b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_b92e0056-dc15-44ae-be07-454ff49e8d17" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_44a34a13-3655-4440-89ea-f8169e5e6c85" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_b92e0056-dc15-44ae-be07-454ff49e8d17" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_44a34a13-3655-4440-89ea-f8169e5e6c85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_a9edc3fe-315b-4bbd-bc4d-f4b62f6bd4cf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_b92e0056-dc15-44ae-be07-454ff49e8d17" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_a9edc3fe-315b-4bbd-bc4d-f4b62f6bd4cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_41ed8f8a-78c1-4ddf-a856-512619243790" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_b92e0056-dc15-44ae-be07-454ff49e8d17" xlink:to="loc_us-gaap_InventoryNet_41ed8f8a-78c1-4ddf-a856-512619243790" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_c13f2718-9ba1-4c8a-b104-e0a87aa3cf04" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_b92e0056-dc15-44ae-be07-454ff49e8d17" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_c13f2718-9ba1-4c8a-b104-e0a87aa3cf04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_00614f74-3d0b-4396-aa76-4c8b9f97c661" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_c3d88b3f-9b3d-4a4c-bf1c-83c95cd82279" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_00614f74-3d0b-4396-aa76-4c8b9f97c661" xlink:to="loc_us-gaap_Liabilities_c3d88b3f-9b3d-4a4c-bf1c-83c95cd82279" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_aaecd7d6-7fa8-4022-89cb-7b40ed41110c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_00614f74-3d0b-4396-aa76-4c8b9f97c661" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_aaecd7d6-7fa8-4022-89cb-7b40ed41110c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_1229ba0c-0ea8-45cf-a404-0fa0fea0fc5f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_ceb5e718-2cd6-4601-94d8-fd06d904f2e6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_1229ba0c-0ea8-45cf-a404-0fa0fea0fc5f" xlink:to="loc_us-gaap_StockholdersEquity_ceb5e718-2cd6-4601-94d8-fd06d904f2e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterest_974c2cc5-e35e-46df-8609-41e2fb2ec02a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_1229ba0c-0ea8-45cf-a404-0fa0fea0fc5f" xlink:to="loc_us-gaap_MinorityInterest_974c2cc5-e35e-46df-8609-41e2fb2ec02a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_6a2c0fce-c393-45aa-bef5-04774f019fda" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_23bdcbcd-201c-4050-8f9c-0c7e4be6ba7b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_6a2c0fce-c393-45aa-bef5-04774f019fda" xlink:to="loc_us-gaap_AssetsCurrent_23bdcbcd-201c-4050-8f9c-0c7e4be6ba7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_5add39b9-d666-42d7-a6a6-48d62db7fea1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_6a2c0fce-c393-45aa-bef5-04774f019fda" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_5add39b9-d666-42d7-a6a6-48d62db7fea1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_489627ea-70ca-4615-b6cd-9637d206b8b6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_6a2c0fce-c393-45aa-bef5-04774f019fda" xlink:to="loc_us-gaap_Goodwill_489627ea-70ca-4615-b6cd-9637d206b8b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_eb5eb24d-cdb7-4f88-bb7b-8dead81b8cb4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_6a2c0fce-c393-45aa-bef5-04774f019fda" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_eb5eb24d-cdb7-4f88-bb7b-8dead81b8cb4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_1286baad-ef4c-4996-b5de-72ca1b80af7c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_6a2c0fce-c393-45aa-bef5-04774f019fda" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_1286baad-ef4c-4996-b5de-72ca1b80af7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_0a414ab2-4acf-4c80-9e60-3ab1c32f20e7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6a2c0fce-c393-45aa-bef5-04774f019fda" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_0a414ab2-4acf-4c80-9e60-3ab1c32f20e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_c2acaa8c-799e-4268-9a95-629c127e64a5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_0605482c-79df-4934-8440-b61ea557619f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_c2acaa8c-799e-4268-9a95-629c127e64a5" xlink:to="loc_us-gaap_LiabilitiesCurrent_0605482c-79df-4934-8440-b61ea557619f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_7cd448b3-6bec-4f99-97fb-e4a3e6ea13bf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_c2acaa8c-799e-4268-9a95-629c127e64a5" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_7cd448b3-6bec-4f99-97fb-e4a3e6ea13bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_c1d617d9-3334-4e52-8599-bae2a478986a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_c2acaa8c-799e-4268-9a95-629c127e64a5" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_c1d617d9-3334-4e52-8599-bae2a478986a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_9ef44670-64ba-4f29-89a8-56ed0b766f35" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_c2acaa8c-799e-4268-9a95-629c127e64a5" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_9ef44670-64ba-4f29-89a8-56ed0b766f35" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_39d18333-91af-4210-a129-81d036a14f71" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_23283927-3454-486a-a577-846a612bfc82" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromRepaymentsOfShortTermDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_39d18333-91af-4210-a129-81d036a14f71" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_23283927-3454-486a-a577-846a612bfc82" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_08a0a9b6-0412-470d-b039-5dbdd305f69c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_39d18333-91af-4210-a129-81d036a14f71" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_08a0a9b6-0412-470d-b039-5dbdd305f69c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_bf3a99ad-16de-4d76-974b-c1014c382f2a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_39d18333-91af-4210-a129-81d036a14f71" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_bf3a99ad-16de-4d76-974b-c1014c382f2a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_51414693-511c-48c9-a6d6-07ce28f0ef50" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_39d18333-91af-4210-a129-81d036a14f71" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_51414693-511c-48c9-a6d6-07ce28f0ef50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_8b7d45a0-bac2-4b46-a2a9-a87f993a98f1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_39d18333-91af-4210-a129-81d036a14f71" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_8b7d45a0-bac2-4b46-a2a9-a87f993a98f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_461ad0e2-733f-46d1-b8e0-0cfa31a4b6dd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_39d18333-91af-4210-a129-81d036a14f71" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_461ad0e2-733f-46d1-b8e0-0cfa31a4b6dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_95475938-463c-4a3a-91fb-affc756404dc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_d34efaf3-fac6-46fe-ada6-378c272313b8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_95475938-463c-4a3a-91fb-affc756404dc" xlink:to="loc_us-gaap_ProfitLoss_d34efaf3-fac6-46fe-ada6-378c272313b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_9c905911-dfb3-4d86-a295-96e551942f9c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_95475938-463c-4a3a-91fb-affc756404dc" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_9c905911-dfb3-4d86-a295-96e551942f9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_722f76c1-dc1a-4636-ac52-c246c9212cb6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_95475938-463c-4a3a-91fb-affc756404dc" xlink:to="loc_us-gaap_ShareBasedCompensation_722f76c1-dc1a-4636-ac52-c246c9212cb6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_5321cf45-28e2-4e14-9889-be98b43cd692" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxesAndTaxCredits"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_95475938-463c-4a3a-91fb-affc756404dc" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_5321cf45-28e2-4e14-9889-be98b43cd692" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_31a4d841-2a1f-41cc-975b-5d4f841afa1d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_95475938-463c-4a3a-91fb-affc756404dc" xlink:to="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_31a4d841-2a1f-41cc-975b-5d4f841afa1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_3fa8209b-ba5a-4b2b-89ef-90fae116e8d7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_95475938-463c-4a3a-91fb-affc756404dc" xlink:to="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_3fa8209b-ba5a-4b2b-89ef-90fae116e8d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_e921159c-dbfc-481a-9eb4-8fc8d550528b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_95475938-463c-4a3a-91fb-affc756404dc" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_e921159c-dbfc-481a-9eb4-8fc8d550528b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_16dba8bc-2824-4f14-b40a-b2388825efcd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_95475938-463c-4a3a-91fb-affc756404dc" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_16dba8bc-2824-4f14-b40a-b2388825efcd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_1c8b1a15-e866-4dab-acbd-e2574b8661c4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_95475938-463c-4a3a-91fb-affc756404dc" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_1c8b1a15-e866-4dab-acbd-e2574b8661c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_2d0afc2e-bd68-434d-bf6a-f97d6cbb90db" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_95475938-463c-4a3a-91fb-affc756404dc" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_2d0afc2e-bd68-434d-bf6a-f97d6cbb90db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_3d28b542-b207-4774-9571-11a7fe6e958d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_95475938-463c-4a3a-91fb-affc756404dc" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_3d28b542-b207-4774-9571-11a7fe6e958d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedTaxesPayable_91181a3e-a79e-4f17-b217-c5880cdb1a6c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedTaxesPayable"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_95475938-463c-4a3a-91fb-affc756404dc" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedTaxesPayable_91181a3e-a79e-4f17-b217-c5880cdb1a6c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementBenefitContributions_527064c6-ea7f-416e-87f1-63d83bd8bba6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PensionAndOtherPostretirementBenefitContributions"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_95475938-463c-4a3a-91fb-affc756404dc" xlink:to="loc_us-gaap_PensionAndOtherPostretirementBenefitContributions_527064c6-ea7f-416e-87f1-63d83bd8bba6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_454a0f20-2aef-4320-9ec0-89b0c0cb2d69" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_95475938-463c-4a3a-91fb-affc756404dc" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_454a0f20-2aef-4320-9ec0-89b0c0cb2d69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0b55ab5f-89ce-4782-bd27-3f3a56afc1ba" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_e5f66c85-1f32-49d9-bc7f-f340e122a13f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0b55ab5f-89ce-4782-bd27-3f3a56afc1ba" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_e5f66c85-1f32-49d9-bc7f-f340e122a13f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_dae45f6e-97f6-4351-8974-27431c2fbb89" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0b55ab5f-89ce-4782-bd27-3f3a56afc1ba" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_dae45f6e-97f6-4351-8974-27431c2fbb89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_7a96dd13-73f2-458a-a9d4-0f597d5dcc06" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0b55ab5f-89ce-4782-bd27-3f3a56afc1ba" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_7a96dd13-73f2-458a-a9d4-0f597d5dcc06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_c9a7b6d1-0ff9-45ed-a297-5b65585e1e7f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_CashCashEquivalentsRestrictedCashandRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffectandCashClassifiedasHeldforSale_76c14de4-dc09-4ac8-98d5-31b25140c93c" xlink:href="hsy-20200628.xsd#hsy_CashCashEquivalentsRestrictedCashandRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffectandCashClassifiedasHeldforSale"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_c9a7b6d1-0ff9-45ed-a297-5b65585e1e7f" xlink:to="loc_hsy_CashCashEquivalentsRestrictedCashandRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffectandCashClassifiedasHeldforSale_76c14de4-dc09-4ac8-98d5-31b25140c93c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_CashandCashEquivalentsClassifiedasHeldforSaleIncreaseDecrease_3bf93653-c6c7-4ecb-8830-8036b8409a8a" xlink:href="hsy-20200628.xsd#hsy_CashandCashEquivalentsClassifiedasHeldforSaleIncreaseDecrease"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_c9a7b6d1-0ff9-45ed-a297-5b65585e1e7f" xlink:to="loc_hsy_CashandCashEquivalentsClassifiedasHeldforSaleIncreaseDecrease_3bf93653-c6c7-4ecb-8830-8036b8409a8a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITYParenthetical" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITYParenthetical"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITYParenthetical" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES" xlink:type="simple" xlink:href="hsy-20200628.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies" xlink:type="simple" xlink:href="hsy-20200628.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESBASISOFPRESENTATIONDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESBASISOFPRESENTATIONDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESBASISOFPRESENTATIONDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESRECENTACCOUNTINGPRONOUNCEMENTSDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESRECENTACCOUNTINGPRONOUNCEMENTSDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESRECENTACCOUNTINGPRONOUNCEMENTSDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURES" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSACQUISITIONANDDIVESTITURES"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURES" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSACQUISITIONANDDIVESTITURESTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCNARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCNARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCASSETSACQUIREDANDLIABILITIESASSUMEDALLOCATIONDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCASSETSACQUIREDANDLIABILITIESASSUMEDALLOCATIONDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCASSETSACQUIREDANDLIABILITIESASSUMEDALLOCATIONDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_87817bf3-82ab-4a3d-a433-84b099c85939" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_ed0871f2-37fe-4db5-aeb5-05d5404f90b5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_87817bf3-82ab-4a3d-a433-84b099c85939" xlink:to="loc_us-gaap_Goodwill_ed0871f2-37fe-4db5-aeb5-05d5404f90b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_bd76efaa-bda9-4780-ba3d-eca10335cba4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_87817bf3-82ab-4a3d-a433-84b099c85939" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_bd76efaa-bda9-4780-ba3d-eca10335cba4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_294cdfd8-a483-4485-837d-a9817a2db3d5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_87817bf3-82ab-4a3d-a433-84b099c85939" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_294cdfd8-a483-4485-837d-a9817a2db3d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_d0b0eb6b-5ff4-44c1-9ce5-f7e5adc84f62" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_87817bf3-82ab-4a3d-a433-84b099c85939" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_d0b0eb6b-5ff4-44c1-9ce5-f7e5adc84f62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentNet_f3393d69-86ad-4777-94cc-aa6c208f4b5a" xlink:href="hsy-20200628.xsd#hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_44ae63ce-0224-4f8e-9065-cf34bad8f81b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentNet_f3393d69-86ad-4777-94cc-aa6c208f4b5a" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_44ae63ce-0224-4f8e-9065-cf34bad8f81b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsPurchaseAccountingAdjustments_ef93cd5f-8090-446f-8a1c-145990e6b5b7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsPurchaseAccountingAdjustments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentNet_f3393d69-86ad-4777-94cc-aa6c208f4b5a" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsPurchaseAccountingAdjustments_ef93cd5f-8090-446f-8a1c-145990e6b5b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentAssetsOther_f6b148ad-87dc-4ef8-87b5-4cc04eb0568b" xlink:href="hsy-20200628.xsd#hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentAssetsOther"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentNet_f3393d69-86ad-4777-94cc-aa6c208f4b5a" xlink:to="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentAssetsOther_f6b148ad-87dc-4ef8-87b5-4cc04eb0568b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentLiabilitiesOther_323aa3cb-910a-4467-b55b-3a60a2c83459" xlink:href="hsy-20200628.xsd#hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentLiabilitiesOther"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentNet_f3393d69-86ad-4777-94cc-aa6c208f4b5a" xlink:to="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentLiabilitiesOther_323aa3cb-910a-4467-b55b-3a60a2c83459" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETS" xlink:type="simple" xlink:href="hsy-20200628.xsd#GOODWILLANDINTANGIBLEASSETS"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETS" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#GOODWILLANDINTANGIBLEASSETSTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSSCHEDULEOFCHANGESINCARRYINGVALUEOFGOODWILLBYREPORTABLESEGMENTDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#GOODWILLANDINTANGIBLEASSETSSCHEDULEOFCHANGESINCARRYINGVALUEOFGOODWILLBYREPORTABLESEGMENTDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSSCHEDULEOFCHANGESINCARRYINGVALUEOFGOODWILLBYREPORTABLESEGMENTDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSSCHEDULEOFGROSSCARRYINGAMOUNTANDACCUMULATEDAMORTIZATIONFOREACHMAJORCLASSOFINTANGIBLEASSETDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#GOODWILLANDINTANGIBLEASSETSSCHEDULEOFGROSSCARRYINGAMOUNTANDACCUMULATEDAMORTIZATIONFOREACHMAJORCLASSOFINTANGIBLEASSETDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSSCHEDULEOFGROSSCARRYINGAMOUNTANDACCUMULATEDAMORTIZATIONFOREACHMAJORCLASSOFINTANGIBLEASSETDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#GOODWILLANDINTANGIBLEASSETSNARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSNARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBT" xlink:type="simple" xlink:href="hsy-20200628.xsd#SHORTANDLONGTERMDEBT"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBT" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#SHORTANDLONGTERMDEBTTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFSHORTTERMDEBTDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SHORTANDLONGTERMDEBTSCHEDULEOFSHORTTERMDEBTDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFSHORTTERMDEBTDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFLONGTERMDEBTINSTRUMENTSDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SHORTANDLONGTERMDEBTSCHEDULEOFLONGTERMDEBTINSTRUMENTSDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFLONGTERMDEBTINSTRUMENTSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_b5786ae3-b237-4b3a-ad68-17777ea2c9bd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_5d900c4e-d0b7-4a11-aef4-a10b47ec8eb1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_b5786ae3-b237-4b3a-ad68-17777ea2c9bd" xlink:to="loc_us-gaap_LongTermDebtCurrent_5d900c4e-d0b7-4a11-aef4-a10b47ec8eb1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_05ea3aa4-e005-440f-9469-0f7771e783d9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_LongTermDebt_b5786ae3-b237-4b3a-ad68-17777ea2c9bd" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_05ea3aa4-e005-440f-9469-0f7771e783d9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTLONGTERMDEBTINTERESTRATESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SHORTANDLONGTERMDEBTLONGTERMDEBTINTERESTRATESDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTLONGTERMDEBTINTERESTRATESDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFNETINTERESTEXPENSEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SHORTANDLONGTERMDEBTSCHEDULEOFNETINTERESTEXPENSEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFNETINTERESTEXPENSEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_8a3b4089-a7e3-4086-a606-3204d359f74f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_62fd3b8e-f711-425e-9e4d-ba6fd79aa2f5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_8a3b4089-a7e3-4086-a606-3204d359f74f" xlink:to="loc_us-gaap_InterestExpense_62fd3b8e-f711-425e-9e4d-ba6fd79aa2f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_eacf6d5f-9065-4427-a210-f805859db2b3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_8a3b4089-a7e3-4086-a606-3204d359f74f" xlink:to="loc_us-gaap_InvestmentIncomeInterest_eacf6d5f-9065-4427-a210-f805859db2b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_ff203529-b5c1-469e-aac9-944f414d5ef9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_3bf6155f-6f9e-4aba-abeb-af46501486e6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpenseDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_ff203529-b5c1-469e-aac9-944f414d5ef9" xlink:to="loc_us-gaap_InterestExpenseDebt_3bf6155f-6f9e-4aba-abeb-af46501486e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestCostsCapitalizedAdjustment_8d50ab6b-4071-4960-a88d-a698619b8c2e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestCostsCapitalizedAdjustment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_ff203529-b5c1-469e-aac9-944f414d5ef9" xlink:to="loc_us-gaap_InterestCostsCapitalizedAdjustment_8d50ab6b-4071-4960-a88d-a698619b8c2e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTS" xlink:type="simple" xlink:href="hsy-20200628.xsd#DERIVATIVEINSTRUMENTS"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTS" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#DERIVATIVEINSTRUMENTSTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#DERIVATIVEINSTRUMENTSNARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSNARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFTHECLASSIFICATIONOFDERIVATIVEASSETSANDLIABILITIESWITHINTHECONSOLIDATEDBALANCESHEETSDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#DERIVATIVEINSTRUMENTSSCHEDULEOFTHECLASSIFICATIONOFDERIVATIVEASSETSANDLIABILITIESWITHINTHECONSOLIDATEDBALANCESHEETSDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFTHECLASSIFICATIONOFDERIVATIVEASSETSANDLIABILITIESWITHINTHECONSOLIDATEDBALANCESHEETSDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFTHEEFFECTOFDERIVATIVEINSTRUMENTSONTHECONSOLIDATEDSTATEMENTSOFINCOMEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#DERIVATIVEINSTRUMENTSSCHEDULEOFTHEEFFECTOFDERIVATIVEINSTRUMENTSONTHECONSOLIDATEDSTATEMENTSOFINCOMEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFTHEEFFECTOFDERIVATIVEINSTRUMENTSONTHECONSOLIDATEDSTATEMENTSOFINCOMEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFCUMULATIVEBASISADJUSTMENTSFORINTERESTRATESWAPDERIVATIVESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#DERIVATIVEINSTRUMENTSSCHEDULEOFCUMULATIVEBASISADJUSTMENTSFORINTERESTRATESWAPDERIVATIVESDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFCUMULATIVEBASISADJUSTMENTSFORINTERESTRATESWAPDERIVATIVESDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSFAIRVALUEMEASUREMENTS" xlink:type="simple" xlink:href="hsy-20200628.xsd#FAIRVALUEMEASUREMENTSFAIRVALUEMEASUREMENTS"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSFAIRVALUEMEASUREMENTS" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSFAIRVALUEMEASUREMENTSTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#FAIRVALUEMEASUREMENTSFAIRVALUEMEASUREMENTSTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSFAIRVALUEMEASUREMENTSTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFASSETSANDLIABILITIESMEASUREDATFAIRVALUEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#FAIRVALUEMEASUREMENTSSCHEDULEOFASSETSANDLIABILITIESMEASUREDATFAIRVALUEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFASSETSANDLIABILITIESMEASUREDATFAIRVALUEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFFAIRVALUESANDCARRYINGVALUESOFLONGTERMDEBTDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#FAIRVALUEMEASUREMENTSSCHEDULEOFFAIRVALUESANDCARRYINGVALUESOFLONGTERMDEBTDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFFAIRVALUESANDCARRYINGVALUESOFLONGTERMDEBTDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#FAIRVALUEMEASUREMENTSNARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSNARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASES" xlink:type="simple" xlink:href="hsy-20200628.xsd#LEASES"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/LEASES" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#LEASESTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/LEASESTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFCOMPONENETSOFLEASEEXPENSEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#LEASESSCHEDULEOFCOMPONENETSOFLEASEEXPENSEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFCOMPONENETSOFLEASEEXPENSEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_ed157bd6-153c-438b-a616-c0214e04d720" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_68a908c6-583f-45cd-be62-5a81e964d459" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_ed157bd6-153c-438b-a616-c0214e04d720" xlink:to="loc_us-gaap_OperatingLeaseCost_68a908c6-583f-45cd-be62-5a81e964d459" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_3ab49837-01ff-453c-af7e-02f0561191a5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseRightOfUseAssetAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_ed157bd6-153c-438b-a616-c0214e04d720" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_3ab49837-01ff-453c-af7e-02f0561191a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseInterestExpense_f09cbe46-ba11-47bb-a0f3-f7126e9bf738" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseInterestExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_ed157bd6-153c-438b-a616-c0214e04d720" xlink:to="loc_us-gaap_FinanceLeaseInterestExpense_f09cbe46-ba11-47bb-a0f3-f7126e9bf738" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFINFORMATIONREGARDINGOURLEASETERMSANDDISCOUNTRATESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#LEASESSCHEDULEOFINFORMATIONREGARDINGOURLEASETERMSANDDISCOUNTRATESDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFINFORMATIONREGARDINGOURLEASETERMSANDDISCOUNTRATESDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSUPPLEMENTALBALANCESHEETINFORMATIONRELATEDTOLEASESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#LEASESSUPPLEMENTALBALANCESHEETINFORMATIONRELATEDTOLEASESDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/LEASESSUPPLEMENTALBALANCESHEETINFORMATIONRELATEDTOLEASESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LeaseRightofUseAsset_7fd76a74-2455-4f0d-a28c-4f2903e64447" xlink:href="hsy-20200628.xsd#hsy_LeaseRightofUseAsset"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_6540ee60-7edc-4d15-af97-30248110e6cf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LeaseRightofUseAsset_7fd76a74-2455-4f0d-a28c-4f2903e64447" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_6540ee60-7edc-4d15-af97-30248110e6cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAsset_663a125c-b799-4c1d-964f-a4b9767727bb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseRightOfUseAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LeaseRightofUseAsset_7fd76a74-2455-4f0d-a28c-4f2903e64447" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAsset_663a125c-b799-4c1d-964f-a4b9767727bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LeaseLiability_14358d91-a253-4122-bc98-1f47aa5673f9" xlink:href="hsy-20200628.xsd#hsy_LeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_159d2d9b-e4e7-4a7d-83d5-87d6744a91b7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LeaseLiability_14358d91-a253-4122-bc98-1f47aa5673f9" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_159d2d9b-e4e7-4a7d-83d5-87d6744a91b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_c78ac5a3-73e6-426f-b727-f4de413c252d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LeaseLiability_14358d91-a253-4122-bc98-1f47aa5673f9" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_c78ac5a3-73e6-426f-b727-f4de413c252d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_f0b62f66-4a8c-414b-a116-84f441b14ba8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LeaseLiability_14358d91-a253-4122-bc98-1f47aa5673f9" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_f0b62f66-4a8c-414b-a116-84f441b14ba8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_cc65ca4c-3533-4c1a-be76-dcf527bf32a4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LeaseLiability_14358d91-a253-4122-bc98-1f47aa5673f9" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_cc65ca4c-3533-4c1a-be76-dcf527bf32a4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFMATURITIESOFLEASELIABILITIESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#LEASESSCHEDULEOFMATURITIESOFLEASELIABILITIESDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFMATURITIESOFLEASELIABILITIESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_c8cfd226-7a23-4530-ab75-e05d9f5b5a65" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_b0e38c88-df2a-4547-a47c-233d6f4847e9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_c8cfd226-7a23-4530-ab75-e05d9f5b5a65" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_b0e38c88-df2a-4547-a47c-233d6f4847e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_56b31985-4f96-4862-9be6-0bc392412801" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_c8cfd226-7a23-4530-ab75-e05d9f5b5a65" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_56b31985-4f96-4862-9be6-0bc392412801" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_e234278c-16ba-4601-9704-337e69ef0029" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_c8cfd226-7a23-4530-ab75-e05d9f5b5a65" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_e234278c-16ba-4601-9704-337e69ef0029" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_ec07884f-7ea5-4ecc-b440-c640e4ac5835" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_c8cfd226-7a23-4530-ab75-e05d9f5b5a65" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_ec07884f-7ea5-4ecc-b440-c640e4ac5835" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_f8b88a5f-dab9-450b-a684-acf100382cb9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_c8cfd226-7a23-4530-ab75-e05d9f5b5a65" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_f8b88a5f-dab9-450b-a684-acf100382cb9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_fdac8941-8788-4c01-8a6f-6c9da4b18001" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_c8cfd226-7a23-4530-ab75-e05d9f5b5a65" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_fdac8941-8788-4c01-8a6f-6c9da4b18001" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDue_28dfb33d-8a57-4a77-a62d-ed3671824077" xlink:href="hsy-20200628.xsd#hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsWithinTheNextTwelveMonths_9b9f3c9c-fb27-48c6-9aae-3e8c6cbe2eb5" xlink:href="hsy-20200628.xsd#hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsWithinTheNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDue_28dfb33d-8a57-4a77-a62d-ed3671824077" xlink:to="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsWithinTheNextTwelveMonths_9b9f3c9c-fb27-48c6-9aae-3e8c6cbe2eb5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDueYearTwo_5e5c8cd2-15ae-4e39-9278-a6092a382e1b" xlink:href="hsy-20200628.xsd#hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDue_28dfb33d-8a57-4a77-a62d-ed3671824077" xlink:to="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDueYearTwo_5e5c8cd2-15ae-4e39-9278-a6092a382e1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDueYearThree_dcc57489-6c72-4cd3-a505-353083bb85a2" xlink:href="hsy-20200628.xsd#hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDue_28dfb33d-8a57-4a77-a62d-ed3671824077" xlink:to="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDueYearThree_dcc57489-6c72-4cd3-a505-353083bb85a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDueYearFour_82153a72-7b7f-4d77-bb38-cab6a4a72cdc" xlink:href="hsy-20200628.xsd#hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDue_28dfb33d-8a57-4a77-a62d-ed3671824077" xlink:to="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDueYearFour_82153a72-7b7f-4d77-bb38-cab6a4a72cdc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDueYearFive_09188262-ec8b-4683-b6af-4d8eaaa7ea94" xlink:href="hsy-20200628.xsd#hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDue_28dfb33d-8a57-4a77-a62d-ed3671824077" xlink:to="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDueYearFive_09188262-ec8b-4683-b6af-4d8eaaa7ea94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDueAfterYearFive_9849f0c5-98d2-47c2-850d-5dec894b9f3a" xlink:href="hsy-20200628.xsd#hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDue_28dfb33d-8a57-4a77-a62d-ed3671824077" xlink:to="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDueAfterYearFive_9849f0c5-98d2-47c2-850d-5dec894b9f3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_816b9f5e-d32d-4972-9ff4-71d77a25138b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_0d8c14b3-e624-4097-ac7f-9bdc686d4f95" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_816b9f5e-d32d-4972-9ff4-71d77a25138b" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_0d8c14b3-e624-4097-ac7f-9bdc686d4f95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_0c0e4c55-65a0-4d9b-978b-fa19eda0f056" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_816b9f5e-d32d-4972-9ff4-71d77a25138b" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_0c0e4c55-65a0-4d9b-978b-fa19eda0f056" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_064ab13d-f73b-4b29-b31b-daea4a6c739d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_816b9f5e-d32d-4972-9ff4-71d77a25138b" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_064ab13d-f73b-4b29-b31b-daea4a6c739d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_77b95b03-77d4-4242-b5ad-847907c24103" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_816b9f5e-d32d-4972-9ff4-71d77a25138b" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_77b95b03-77d4-4242-b5ad-847907c24103" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_8a0e1a92-db8b-4735-ae4f-8ec597cd8357" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_816b9f5e-d32d-4972-9ff4-71d77a25138b" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_8a0e1a92-db8b-4735-ae4f-8ec597cd8357" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_dcd1fa1f-82b4-44cd-8ce2-67d7a2e5cefd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_816b9f5e-d32d-4972-9ff4-71d77a25138b" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_dcd1fa1f-82b4-44cd-8ce2-67d7a2e5cefd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#LEASESNARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/LEASESNARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/ASSETSANDLIABILITIESHELDFORSALE" xlink:type="simple" xlink:href="hsy-20200628.xsd#ASSETSANDLIABILITIESHELDFORSALE"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/ASSETSANDLIABILITIESHELDFORSALE" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/ASSETSANDLIABILITIESHELDFORSALETables" xlink:type="simple" xlink:href="hsy-20200628.xsd#ASSETSANDLIABILITIESHELDFORSALETables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/ASSETSANDLIABILITIESHELDFORSALETables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/ASSETSHELDFORSALEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#ASSETSHELDFORSALEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/ASSETSHELDFORSALEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIES" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSREALIGNMENTACTIVITIES"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIES" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSREALIGNMENTACTIVITIESTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFBUSINESSREALIGNMENTACTIVITYDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFBUSINESSREALIGNMENTACTIVITYDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFBUSINESSREALIGNMENTACTIVITYDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFLIABILITYACTIVITYFORCOSTSQUALIFYINGASEXITANDDISPOSALCOSTSDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFLIABILITYACTIVITYFORCOSTSQUALIFYINGASEXITANDDISPOSALCOSTSDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFLIABILITYACTIVITYFORCOSTSQUALIFYINGASEXITANDDISPOSALCOSTSDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSREALIGNMENTACTIVITIESNARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESNARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/INCOMETAXES" xlink:type="simple" xlink:href="hsy-20200628.xsd#INCOMETAXES"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/INCOMETAXES" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/INCOMETAXESTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#INCOMETAXESTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/INCOMETAXESTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/INCOMETAXESNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#INCOMETAXESNARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/INCOMETAXESNARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANS" xlink:type="simple" xlink:href="hsy-20200628.xsd#PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANS"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANS" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSSCHEDULEOFCOMPONENTSOFNETPERIODICBENEFITCOSTDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSSCHEDULEOFCOMPONENTSOFNETPERIODICBENEFITCOSTDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSSCHEDULEOFCOMPONENTSOFNETPERIODICBENEFITCOSTDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_66e021cd-2737-4d5a-8dc4-21896fd008e1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_6de16dc0-ac59-441b-bb04-66993651ef6f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_66e021cd-2737-4d5a-8dc4-21896fd008e1" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_6de16dc0-ac59-441b-bb04-66993651ef6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_b7fcff06-67e3-4e3b-bb06-4e4ef0488fd0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_66e021cd-2737-4d5a-8dc4-21896fd008e1" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_b7fcff06-67e3-4e3b-bb06-4e4ef0488fd0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_f37d6354-4850-43a4-814f-500b0ca3a2cf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_66e021cd-2737-4d5a-8dc4-21896fd008e1" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_f37d6354-4850-43a4-814f-500b0ca3a2cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_b08db53f-5982-47b2-9c88-c9c7fbe03c0e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_66e021cd-2737-4d5a-8dc4-21896fd008e1" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_b08db53f-5982-47b2-9c88-c9c7fbe03c0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_26b0da61-38b4-44fb-81a7-e82c74ba0ff1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_66e021cd-2737-4d5a-8dc4-21896fd008e1" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_26b0da61-38b4-44fb-81a7-e82c74ba0ff1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_03acec73-1a82-4c63-a00c-792fc85bd510" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_66e021cd-2737-4d5a-8dc4-21896fd008e1" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_03acec73-1a82-4c63-a00c-792fc85bd510" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSNARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSNARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANS" xlink:type="simple" xlink:href="hsy-20200628.xsd#STOCKCOMPENSATIONPLANS"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANS" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#STOCKCOMPENSATIONPLANSTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFCOMPENSATIONEXPENSEANDINCOMETAXBENEFITSFORSTOCKBASEDCOMPENSATIONPROGRAMSDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFCOMPENSATIONEXPENSEANDINCOMETAXBENEFITSFORSTOCKBASEDCOMPENSATIONPROGRAMSDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFCOMPENSATIONEXPENSEANDINCOMETAXBENEFITSFORSTOCKBASEDCOMPENSATIONPROGRAMSDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#STOCKCOMPENSATIONPLANSNARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSNARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFSTOCKOPTIONACTIVITYDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFSTOCKOPTIONACTIVITYDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFSTOCKOPTIONACTIVITYDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUsACTIVITYDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUsACTIVITYDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUsACTIVITYDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUSFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUSFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUSFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATION" xlink:type="simple" xlink:href="hsy-20200628.xsd#SEGMENTINFORMATION"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATION" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#SEGMENTINFORMATIONTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SEGMENTINFORMATIONNARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONNARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFNETSALESANDEARNINGSBYSEGMENTDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SEGMENTINFORMATIONSCHEDULEOFNETSALESANDEARNINGSBYSEGMENTDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFNETSALESANDEARNINGSBYSEGMENTDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFUNALLOCATEDMARKTOMARKETGAINSLOSSESONCOMMODITYDERIVATIVESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SEGMENTINFORMATIONSCHEDULEOFUNALLOCATEDMARKTOMARKETGAINSLOSSESONCOMMODITYDERIVATIVESDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFUNALLOCATEDMARKTOMARKETGAINSLOSSESONCOMMODITYDERIVATIVESDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFDEPRECIATIONANDAMORTIZATIONEXPENSEINCLUDEDWITHINSEGMENTINCOMEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SEGMENTINFORMATIONSCHEDULEOFDEPRECIATIONANDAMORTIZATIONEXPENSEINCLUDEDWITHINSEGMENTINCOMEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFDEPRECIATIONANDAMORTIZATIONEXPENSEINCLUDEDWITHINSEGMENTINCOMEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFSEGMENTINFORMATIONBYGEOGRAPHYDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SEGMENTINFORMATIONSCHEDULEOFSEGMENTINFORMATIONBYGEOGRAPHYDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFSEGMENTINFORMATIONBYGEOGRAPHYDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFADDITIONALPRODUCTLINESALESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SEGMENTINFORMATIONSCHEDULEOFADDITIONALPRODUCTLINESALESDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFADDITIONALPRODUCTLINESALESDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYNotes" xlink:type="simple" xlink:href="hsy-20200628.xsd#TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYNotes"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYNotes" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#TREASURYSTOCKACTIVITYNARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYNARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYSCHEDULEOFTREASURYSTOCKACTIVITYDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#TREASURYSTOCKACTIVITYSCHEDULEOFTREASURYSTOCKACTIVITYDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYSCHEDULEOFTREASURYSTOCKACTIVITYDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/NONCONTROLLINGINTEREST" xlink:type="simple" xlink:href="hsy-20200628.xsd#NONCONTROLLINGINTEREST"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/NONCONTROLLINGINTEREST" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/NONCONTROLLINGINTERESTTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#NONCONTROLLINGINTERESTTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/NONCONTROLLINGINTERESTTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/NONCONTROLLINGINTERESTNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#NONCONTROLLINGINTERESTNARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/NONCONTROLLINGINTERESTNARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/NONCONTROLLINGINTERESTSCHEDULEOFACTIVITYRELATINGTOTHENONCONTROLLINGINTERESTDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#NONCONTROLLINGINTERESTSCHEDULEOFACTIVITYRELATINGTOTHENONCONTROLLINGINTERESTDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/NONCONTROLLINGINTERESTSCHEDULEOFACTIVITYRELATINGTOTHENONCONTROLLINGINTERESTDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONTINGENCIES" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONTINGENCIES"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/CONTINGENCIES" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONTINGENCIESTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONTINGENCIESTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/CONTINGENCIESTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONTINGENCIESNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONTINGENCIESNARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/CONTINGENCIESNARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARE" xlink:type="simple" xlink:href="hsy-20200628.xsd#EARNINGSPERSHARE"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/EARNINGSPERSHARE" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARETables" xlink:type="simple" xlink:href="hsy-20200628.xsd#EARNINGSPERSHARETables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/EARNINGSPERSHARETables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARESCHEDULEOFBASICANDDILUTEDEARNINGSPERSHAREDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#EARNINGSPERSHARESCHEDULEOFBASICANDDILUTEDEARNINGSPERSHAREDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/EARNINGSPERSHARESCHEDULEOFBASICANDDILUTEDEARNINGSPERSHAREDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_87edc596-bfb9-4388-aae4-05533b253e3b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Dividends_c76c5a55-577d-4c29-95c4-679956fc378d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Dividends"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_87edc596-bfb9-4388-aae4-05533b253e3b" xlink:to="loc_us-gaap_Dividends_c76c5a55-577d-4c29-95c4-679956fc378d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_27cde184-c553-4fb6-89a1-0be876aa42a1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_87edc596-bfb9-4388-aae4-05533b253e3b" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_27cde184-c553-4fb6-89a1-0be876aa42a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_89901a17-67b2-49eb-bd67-df0657f58be0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_d949968c-bdfe-45c9-ab72-a42d35afd232" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_89901a17-67b2-49eb-bd67-df0657f58be0" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_d949968c-bdfe-45c9-ab72-a42d35afd232" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributedEarnings_432e1892-43d2-49e6-8e95-38cdd16d1d9c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DistributedEarnings"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_89901a17-67b2-49eb-bd67-df0657f58be0" xlink:to="loc_us-gaap_DistributedEarnings_432e1892-43d2-49e6-8e95-38cdd16d1d9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_33dd1cf1-c023-41eb-9bb7-b66c077c841b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_89901a17-67b2-49eb-bd67-df0657f58be0" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_33dd1cf1-c023-41eb-9bb7-b66c077c841b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARENARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#EARNINGSPERSHARENARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/EARNINGSPERSHARENARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENET" xlink:type="simple" xlink:href="hsy-20200628.xsd#OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENET"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENET" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENETTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENETTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENETTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETSCHEDULEOFOTHERINCOMEANDEXPENSENETDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#OTHERINCOMEEXPENSENETSCHEDULEOFOTHERINCOMEANDEXPENSENETDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETSCHEDULEOFOTHERINCOMEANDEXPENSENETDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_5e0a4c8a-84ab-4e7d-991b-1ce32390c767" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_9cac5779-cf45-4813-af9b-2d5802ad48b5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingIncomeExpense_5e0a4c8a-84ab-4e7d-991b-1ce32390c767" xlink:to="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_9cac5779-cf45-4813-af9b-2d5802ad48b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DefinedBenefitPlanNonServiceCost_1dcc4a42-98a3-4c31-a9ea-11cb706d9ec1" xlink:href="hsy-20200628.xsd#hsy_DefinedBenefitPlanNonServiceCost"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingIncomeExpense_5e0a4c8a-84ab-4e7d-991b-1ce32390c767" xlink:to="loc_hsy_DefinedBenefitPlanNonServiceCost_1dcc4a42-98a3-4c31-a9ea-11cb706d9ec1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_OtherNonoperatingGainLoss_0391256f-d418-442b-b638-1cf8ee782fd3" xlink:href="hsy-20200628.xsd#hsy_OtherNonoperatingGainLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingIncomeExpense_5e0a4c8a-84ab-4e7d-991b-1ce32390c767" xlink:to="loc_hsy_OtherNonoperatingGainLoss_0391256f-d418-442b-b638-1cf8ee782fd3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATION" xlink:type="simple" xlink:href="hsy-20200628.xsd#SUPPLEMENTALBALANCESHEETINFORMATION"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATION" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATIONTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#SUPPLEMENTALBALANCESHEETINFORMATIONTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATIONTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATIONSCHEDULEOFSUPPLEMENTALBALANCESHEETINFORMATIONDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SUPPLEMENTALBALANCESHEETINFORMATIONSCHEDULEOFSUPPLEMENTALBALANCESHEETINFORMATIONDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATIONSCHEDULEOFSUPPLEMENTALBALANCESHEETINFORMATIONDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_8f0fcbed-4015-4ca7-98f7-7c18028f10b8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax_9cc676f1-f457-43e4-80c9-b27ef6c48375" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_8f0fcbed-4015-4ca7-98f7-7c18028f10b8" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax_9cc676f1-f457-43e4-80c9-b27ef6c48375" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_6e83a575-fcdf-4e63-8e0c-503f8d4b23db" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_8f0fcbed-4015-4ca7-98f7-7c18028f10b8" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_6e83a575-fcdf-4e63-8e0c-503f8d4b23db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax_56ae87d4-4935-4626-ac2f-eb5d7f7366f7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_8f0fcbed-4015-4ca7-98f7-7c18028f10b8" xlink:to="loc_us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax_56ae87d4-4935-4626-ac2f-eb5d7f7366f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_f37b6c86-a14c-4fc4-b974-37736b85127e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_660a0015-9f99-4baa-95ce-adc29687e830" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_f37b6c86-a14c-4fc4-b974-37736b85127e" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_660a0015-9f99-4baa-95ce-adc29687e830" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_4cbe0567-ca14-4796-b136-04fb25b6dafa" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_f37b6c86-a14c-4fc4-b974-37736b85127e" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_4cbe0567-ca14-4796-b136-04fb25b6dafa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_97350707-9217-48ea-8528-aee1cf917ea6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FIFOInventoryAmount_aa3fe1c3-8032-482f-a2fa-b0e8fb651726" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FIFOInventoryAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_97350707-9217-48ea-8528-aee1cf917ea6" xlink:to="loc_us-gaap_FIFOInventoryAmount_aa3fe1c3-8032-482f-a2fa-b0e8fb651726" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryLIFOReserve_5658456c-ef4b-4b6b-ac11-91184e25555f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InventoryLIFOReserve"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_97350707-9217-48ea-8528-aee1cf917ea6" xlink:to="loc_us-gaap_InventoryLIFOReserve_5658456c-ef4b-4b6b-ac11-91184e25555f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PrepaidExpensesandOther_ac714634-20f5-4411-8321-67dd23ca721c" xlink:href="hsy-20200628.xsd#hsy_PrepaidExpensesandOther"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_2dc98b76-10a4-4bd8-a258-0c44bef90fac" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PrepaidExpenseCurrentAndNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_PrepaidExpensesandOther_ac714634-20f5-4411-8321-67dd23ca721c" xlink:to="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_2dc98b76-10a4-4bd8-a258-0c44bef90fac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_8eecdf5a-fe76-49cc-a820-e71278110bce" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_PrepaidExpensesandOther_ac714634-20f5-4411-8321-67dd23ca721c" xlink:to="loc_us-gaap_OtherAssetsCurrent_8eecdf5a-fe76-49cc-a820-e71278110bce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_b45b2f23-a6cb-479f-bb5d-7f94ad2d2d82" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedComputerSoftwareNet_7b53ba0b-9096-473a-9d9e-27eb250e25ac" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CapitalizedComputerSoftwareNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_b45b2f23-a6cb-479f-bb5d-7f94ad2d2d82" xlink:to="loc_us-gaap_CapitalizedComputerSoftwareNet_7b53ba0b-9096-473a-9d9e-27eb250e25ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_746c58a8-bdfd-454a-a2ce-92761aa986b7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_b45b2f23-a6cb-479f-bb5d-7f94ad2d2d82" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_746c58a8-bdfd-454a-a2ce-92761aa986b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_OtherMiscellaneousAssetsNonCurrent_33d73857-cc91-4c07-b614-58aeacf669aa" xlink:href="hsy-20200628.xsd#hsy_OtherMiscellaneousAssetsNonCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_b45b2f23-a6cb-479f-bb5d-7f94ad2d2d82" xlink:to="loc_hsy_OtherMiscellaneousAssetsNonCurrent_33d73857-cc91-4c07-b614-58aeacf669aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FIFOInventoryAmount_4d44614d-5168-4014-9b59-8a01af95d925" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FIFOInventoryAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsNetOfReserves_7ebf91c8-95d5-4a00-82e8-ad66d015fa0e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InventoryRawMaterialsNetOfReserves"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FIFOInventoryAmount_4d44614d-5168-4014-9b59-8a01af95d925" xlink:to="loc_us-gaap_InventoryRawMaterialsNetOfReserves_7ebf91c8-95d5-4a00-82e8-ad66d015fa0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_ae2e8a1b-4cd4-468f-84ca-41bd5eb7392a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_FIFOInventoryAmount_4d44614d-5168-4014-9b59-8a01af95d925" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_ae2e8a1b-4cd4-468f-84ca-41bd5eb7392a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_a6865728-f149-41e3-aa2d-0ab1ab6e0138" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InventoryFinishedGoodsNetOfReserves"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FIFOInventoryAmount_4d44614d-5168-4014-9b59-8a01af95d925" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_a6865728-f149-41e3-aa2d-0ab1ab6e0138" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_ed7d74ba-7ace-43f5-9f71-2c1bae493f70" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Land_39dc4c88-592c-4e23-ae93-2a2d8ca70837" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Land"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_ed7d74ba-7ace-43f5-9f71-2c1bae493f70" xlink:to="loc_us-gaap_Land_39dc4c88-592c-4e23-ae93-2a2d8ca70837" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingsAndImprovementsGross_9879e4b3-35a6-4692-9b16-8994f406486d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BuildingsAndImprovementsGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_ed7d74ba-7ace-43f5-9f71-2c1bae493f70" xlink:to="loc_us-gaap_BuildingsAndImprovementsGross_9879e4b3-35a6-4692-9b16-8994f406486d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentGross_ab8bd888-1618-412c-b182-ce0975502dd4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MachineryAndEquipmentGross"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_ed7d74ba-7ace-43f5-9f71-2c1bae493f70" xlink:to="loc_us-gaap_MachineryAndEquipmentGross_ab8bd888-1618-412c-b182-ce0975502dd4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressGross_a7351393-9e71-4734-bd36-79bcaef537ea" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConstructionInProgressGross"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_ed7d74ba-7ace-43f5-9f71-2c1bae493f70" xlink:to="loc_us-gaap_ConstructionInProgressGross_a7351393-9e71-4734-bd36-79bcaef537ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_f042da9e-08e4-416a-b3e2-afdc3c85d9fb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_6c55e29d-9dcc-4346-8b23-2e58da66caf7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-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_f042da9e-08e4-416a-b3e2-afdc3c85d9fb" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_6c55e29d-9dcc-4346-8b23-2e58da66caf7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedMarketingCostsCurrent_406b5c68-80c4-4c06-9ecd-6198d0cdef27" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccruedMarketingCostsCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_f042da9e-08e4-416a-b3e2-afdc3c85d9fb" xlink:to="loc_us-gaap_AccruedMarketingCostsCurrent_406b5c68-80c4-4c06-9ecd-6198d0cdef27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_fac32866-b557-46fb-8335-08d6d2b5d0cc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_f042da9e-08e4-416a-b3e2-afdc3c85d9fb" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_fac32866-b557-46fb-8335-08d6d2b5d0cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_2fe436a6-35e4-4d99-9cfd-cec0f36614c8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_f042da9e-08e4-416a-b3e2-afdc3c85d9fb" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_2fe436a6-35e4-4d99-9cfd-cec0f36614c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_47b4cc7d-2c2f-4fa5-9809-47ff7b4df618" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementDefinedBenefitPlanLiabilitiesNoncurrent_f744e5df-c774-4891-8627-ac03b2ab5857" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPostretirementDefinedBenefitPlanLiabilitiesNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_47b4cc7d-2c2f-4fa5-9809-47ff7b4df618" xlink:to="loc_us-gaap_OtherPostretirementDefinedBenefitPlanLiabilitiesNoncurrent_f744e5df-c774-4891-8627-ac03b2ab5857" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPensionPlanLiabilitiesNoncurrent_164ab660-ffde-416a-9ad8-1618690d9a34" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPensionPlanLiabilitiesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_47b4cc7d-2c2f-4fa5-9809-47ff7b4df618" xlink:to="loc_us-gaap_DefinedBenefitPensionPlanLiabilitiesNoncurrent_164ab660-ffde-416a-9ad8-1618690d9a34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_4cf19cb9-1640-4347-85af-e0b74c488cad" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_47b4cc7d-2c2f-4fa5-9809-47ff7b4df618" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_4cf19cb9-1640-4347-85af-e0b74c488cad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_OtherMiscellaneousLiabilitiesNonCurrent_e0620331-a624-43f6-891e-2a78336e4f07" xlink:href="hsy-20200628.xsd#hsy_OtherMiscellaneousLiabilitiesNonCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_47b4cc7d-2c2f-4fa5-9809-47ff7b4df618" xlink:to="loc_hsy_OtherMiscellaneousLiabilitiesNonCurrent_e0620331-a624-43f6-891e-2a78336e4f07" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
