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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2020 Workiva-->
<!--r:4da2676a-8e17-4b06-960c-e0d161e0c771,g:96d2dad4-a5e6-4312-aa82-908cc51ef6fb-->
<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/DOCUMENTANDENTITYINFORMATION" xlink:type="simple" xlink:href="hsy-20200927.xsd#DOCUMENTANDENTITYINFORMATION"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/DOCUMENTANDENTITYINFORMATION" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFINCOME" xlink:type="simple" xlink:href="hsy-20200927.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_OperatingIncomeLoss_c2a97024-ded3-4c72-b48b-1e3fc628be7f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_f01402b1-cd9d-44aa-8278-5bc7dc1a615e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_c2a97024-ded3-4c72-b48b-1e3fc628be7f" xlink:to="loc_us-gaap_GrossProfit_f01402b1-cd9d-44aa-8278-5bc7dc1a615e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_f2edf15e-0e1a-4dfb-90a7-f30595ab6796" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_c2a97024-ded3-4c72-b48b-1e3fc628be7f" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_f2edf15e-0e1a-4dfb-90a7-f30595ab6796" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_dbd0e02e-cb4f-4f08-a451-1ba3792c76cf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_c2a97024-ded3-4c72-b48b-1e3fc628be7f" xlink:to="loc_us-gaap_AssetImpairmentCharges_dbd0e02e-cb4f-4f08-a451-1ba3792c76cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_RestructuringChargesBusinessRealignment_f1eb59dd-b539-4ec8-acb8-b10506975615" xlink:href="hsy-20200927.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_c2a97024-ded3-4c72-b48b-1e3fc628be7f" xlink:to="loc_hsy_RestructuringChargesBusinessRealignment_f1eb59dd-b539-4ec8-acb8-b10506975615" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_162921d3-7b27-4253-b682-fe221a0a6888" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_c0840373-d0f2-4503-b7a4-9031d5431ce4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_162921d3-7b27-4253-b682-fe221a0a6888" xlink:to="loc_us-gaap_ProfitLoss_c0840373-d0f2-4503-b7a4-9031d5431ce4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_63497966-5951-499b-80d3-13cd95902871" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_162921d3-7b27-4253-b682-fe221a0a6888" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_63497966-5951-499b-80d3-13cd95902871" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_f85c9ea6-9ca1-42e0-ac6c-023cd19f0ae3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_a816f587-4d99-4f92-89c5-44e9ef717beb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_f85c9ea6-9ca1-42e0-ac6c-023cd19f0ae3" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_a816f587-4d99-4f92-89c5-44e9ef717beb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_4a99b830-09bb-4c95-8c15-e8afa3480416" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_f85c9ea6-9ca1-42e0-ac6c-023cd19f0ae3" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_4a99b830-09bb-4c95-8c15-e8afa3480416" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_e32f9e65-ec7a-4c16-af14-c704ea5a86c1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_515fc2d1-78fa-446a-b5fd-11e19923f0ae" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_e32f9e65-ec7a-4c16-af14-c704ea5a86c1" xlink:to="loc_us-gaap_OperatingIncomeLoss_515fc2d1-78fa-446a-b5fd-11e19923f0ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_6c598e64-19e4-448d-9a7c-59ccf98d2cb4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_e32f9e65-ec7a-4c16-af14-c704ea5a86c1" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_6c598e64-19e4-448d-9a7c-59ccf98d2cb4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_32d565ea-2672-4df8-857c-a861ec514029" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_e32f9e65-ec7a-4c16-af14-c704ea5a86c1" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_32d565ea-2672-4df8-857c-a861ec514029" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_b7560bc4-dacc-4c60-841d-ef8e23ef9799" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c9aef8d6-0747-46eb-962c-eb9837884b1b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_b7560bc4-dacc-4c60-841d-ef8e23ef9799" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c9aef8d6-0747-46eb-962c-eb9837884b1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_00921580-593f-425e-9276-692f8809817e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_b7560bc4-dacc-4c60-841d-ef8e23ef9799" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_00921580-593f-425e-9276-692f8809817e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="simple" xlink:href="hsy-20200927.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_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_8970ed56-8dc7-4388-8289-2687d98d9a11" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_002396ed-c3e6-4029-b894-0a5dcea54cd6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8970ed56-8dc7-4388-8289-2687d98d9a11" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_002396ed-c3e6-4029-b894-0a5dcea54cd6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax_ed3858a1-44f5-4ac7-8272-b5e06c6cf4e8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8970ed56-8dc7-4388-8289-2687d98d9a11" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax_ed3858a1-44f5-4ac7-8272-b5e06c6cf4e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_5c5b4c3a-7bb7-4027-a836-32ad87153ed2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_097ea9e6-119b-4f81-9c28-07760ab101f5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_5c5b4c3a-7bb7-4027-a836-32ad87153ed2" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_097ea9e6-119b-4f81-9c28-07760ab101f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax_7d93b4ba-5a0a-4386-a111-129e70dde009" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_5c5b4c3a-7bb7-4027-a836-32ad87153ed2" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax_7d93b4ba-5a0a-4386-a111-129e70dde009" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_4087d454-251e-4039-ac7b-7b1261017bf8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_5b8513ef-5e24-45bc-ad76-3672c8d38ba5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4087d454-251e-4039-ac7b-7b1261017bf8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_5b8513ef-5e24-45bc-ad76-3672c8d38ba5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax_d47f775c-075b-4939-8520-15ebb320974d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4087d454-251e-4039-ac7b-7b1261017bf8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax_d47f775c-075b-4939-8520-15ebb320974d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_0f320714-8601-410b-9173-c5bc0bc54695" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4087d454-251e-4039-ac7b-7b1261017bf8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_0f320714-8601-410b-9173-c5bc0bc54695" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_a4df0459-9887-4f15-b2b8-154355835cf3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4087d454-251e-4039-ac7b-7b1261017bf8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_a4df0459-9887-4f15-b2b8-154355835cf3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax_320c0025-a5b0-499b-8985-a5fa34cf9bad" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4087d454-251e-4039-ac7b-7b1261017bf8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax_320c0025-a5b0-499b-8985-a5fa34cf9bad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_6ea43857-da9c-40d3-b4dd-f2b055e93c47" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_80ba964d-72d3-4ee4-ad84-ce3594782fec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_6ea43857-da9c-40d3-b4dd-f2b055e93c47" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_80ba964d-72d3-4ee4-ad84-ce3594782fec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_3cc3e556-e806-4a8c-8fa0-e0ad9338706b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_6ea43857-da9c-40d3-b4dd-f2b055e93c47" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_3cc3e556-e806-4a8c-8fa0-e0ad9338706b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTax_6ed9aed9-87e7-4f99-a3b2-0d75f8f1bbbd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossTax_477793fd-475a-4350-b7d0-6caeb764039b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_6ed9aed9-87e7-4f99-a3b2-0d75f8f1bbbd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossTax_477793fd-475a-4350-b7d0-6caeb764039b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax_dc189754-d6c0-411b-b355-abdafa2da031" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_6ed9aed9-87e7-4f99-a3b2-0d75f8f1bbbd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax_dc189754-d6c0-411b-b355-abdafa2da031" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax_f09ee332-cd3d-4c5b-ad19-0b1414f72e12" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_6ed9aed9-87e7-4f99-a3b2-0d75f8f1bbbd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax_f09ee332-cd3d-4c5b-ad19-0b1414f72e12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax_7f179961-62e9-436a-882b-090401fc02c7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_6ed9aed9-87e7-4f99-a3b2-0d75f8f1bbbd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax_7f179961-62e9-436a-882b-090401fc02c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodTax_dd9affbd-2e7b-4734-af6e-c56c38382340" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_6ed9aed9-87e7-4f99-a3b2-0d75f8f1bbbd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodTax_dd9affbd-2e7b-4734-af6e-c56c38382340" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_9ef823b4-dfc2-4025-9ee9-3a199790eda8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax_b7a72412-9641-4310-ab77-7a1490e4d510" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_9ef823b4-dfc2-4025-9ee9-3a199790eda8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax_b7a72412-9641-4310-ab77-7a1490e4d510" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_8048b7f4-b92e-4fbd-9b98-b76018bce3f1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_9ef823b4-dfc2-4025-9ee9-3a199790eda8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_8048b7f4-b92e-4fbd-9b98-b76018bce3f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_18234c81-3b97-4ab7-a38d-1c3bdd6ffdb9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_9ef823b4-dfc2-4025-9ee9-3a199790eda8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_18234c81-3b97-4ab7-a38d-1c3bdd6ffdb9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_f4c9f678-be36-424d-b9be-1a815ad0232e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_9ef823b4-dfc2-4025-9ee9-3a199790eda8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_f4c9f678-be36-424d-b9be-1a815ad0232e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_ff953f00-017e-413c-88cd-89ce547e0562" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_9ef823b4-dfc2-4025-9ee9-3a199790eda8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_ff953f00-017e-413c-88cd-89ce547e0562" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax_cff1fdcc-99cc-42a5-a8a2-0c672170f5c8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax_521d6b89-90a1-4f31-a6db-3bebca3dd5ac" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_cff1fdcc-99cc-42a5-a8a2-0c672170f5c8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax_521d6b89-90a1-4f31-a6db-3bebca3dd5ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossTax_07ae3073-8e70-4508-b33f-09da896c6046" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_cff1fdcc-99cc-42a5-a8a2-0c672170f5c8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossTax_07ae3073-8e70-4508-b33f-09da896c6046" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="hsy-20200927.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_Liabilities_0605ca9e-e843-4e2d-986e-60b66e0eaf02" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_8332b17f-cd3d-4b6f-9ae9-85c68431e39e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_0605ca9e-e843-4e2d-986e-60b66e0eaf02" xlink:to="loc_us-gaap_LiabilitiesCurrent_8332b17f-cd3d-4b6f-9ae9-85c68431e39e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_24c67e9f-77f9-425c-a90d-c510506315ff" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_0605ca9e-e843-4e2d-986e-60b66e0eaf02" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_24c67e9f-77f9-425c-a90d-c510506315ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_dca36bc8-f015-4582-932d-368307d65831" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_0605ca9e-e843-4e2d-986e-60b66e0eaf02" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_dca36bc8-f015-4582-932d-368307d65831" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_ad6d9a06-82ed-45b7-9456-6bada054f6d5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_0605ca9e-e843-4e2d-986e-60b66e0eaf02" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_ad6d9a06-82ed-45b7-9456-6bada054f6d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_4dd57b0d-cf7a-471d-a8b1-74db3748a046" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_2f42f1f2-d948-4428-a02f-cbfc32b510de" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4dd57b0d-cf7a-471d-a8b1-74db3748a046" xlink:to="loc_us-gaap_AccountsPayableCurrent_2f42f1f2-d948-4428-a02f-cbfc32b510de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_5931435c-be42-4680-877f-856541fb857e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4dd57b0d-cf7a-471d-a8b1-74db3748a046" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_5931435c-be42-4680-877f-856541fb857e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_1d7ec285-6b95-42ba-8c3e-9905f5ce978d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4dd57b0d-cf7a-471d-a8b1-74db3748a046" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_1d7ec285-6b95-42ba-8c3e-9905f5ce978d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_4901a539-80a3-4392-b864-b11c45cd9ecd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4dd57b0d-cf7a-471d-a8b1-74db3748a046" xlink:to="loc_us-gaap_ShortTermBorrowings_4901a539-80a3-4392-b864-b11c45cd9ecd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_00d19b11-b898-4798-bf97-fd2e55c4897c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4dd57b0d-cf7a-471d-a8b1-74db3748a046" xlink:to="loc_us-gaap_LongTermDebtCurrent_00d19b11-b898-4798-bf97-fd2e55c4897c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_c4b837b5-35e9-4845-94fa-d4230da45510" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_61cb4a65-f07a-4e18-bcd0-dcaa18806f3e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_c4b837b5-35e9-4845-94fa-d4230da45510" xlink:to="loc_us-gaap_Liabilities_61cb4a65-f07a-4e18-bcd0-dcaa18806f3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_0e2a59b5-c720-42e1-89f2-0814ec4c4b3e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_c4b837b5-35e9-4845-94fa-d4230da45510" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_0e2a59b5-c720-42e1-89f2-0814ec4c4b3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_a343438f-f464-497a-80cc-013914d3647b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_c3153f03-3342-4c16-bb44-54b8908de15a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_a343438f-f464-497a-80cc-013914d3647b" xlink:to="loc_us-gaap_AssetsCurrent_c3153f03-3342-4c16-bb44-54b8908de15a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_888b217f-9776-42ab-a109-c64782edc66c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_a343438f-f464-497a-80cc-013914d3647b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_888b217f-9776-42ab-a109-c64782edc66c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_4a502793-c764-4b1c-879a-c445fa1361fc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_a343438f-f464-497a-80cc-013914d3647b" xlink:to="loc_us-gaap_Goodwill_4a502793-c764-4b1c-879a-c445fa1361fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_f81de26d-abdd-4dc2-963d-1861fb8f63c7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_a343438f-f464-497a-80cc-013914d3647b" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_f81de26d-abdd-4dc2-963d-1861fb8f63c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_e11b9182-365d-438c-83ea-4a16742a2a8f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_a343438f-f464-497a-80cc-013914d3647b" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_e11b9182-365d-438c-83ea-4a16742a2a8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_402260f7-b6ba-4d65-98f8-96c570c2dc88" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_a343438f-f464-497a-80cc-013914d3647b" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_402260f7-b6ba-4d65-98f8-96c570c2dc88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_e90c0d3e-c1d3-483f-8cb1-9fff7a4d53d1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_c3dd0eac-778f-4830-8481-d5c55854768c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_e90c0d3e-c1d3-483f-8cb1-9fff7a4d53d1" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_c3dd0eac-778f-4830-8481-d5c55854768c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_12d04123-1e96-4bb5-9e9b-c7485e190d0c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_e90c0d3e-c1d3-483f-8cb1-9fff7a4d53d1" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_12d04123-1e96-4bb5-9e9b-c7485e190d0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_8e2bb8d2-be8a-4e81-bd0b-176237937ce1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_e90c0d3e-c1d3-483f-8cb1-9fff7a4d53d1" xlink:to="loc_us-gaap_InventoryNet_8e2bb8d2-be8a-4e81-bd0b-176237937ce1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_e6b3f50f-3cc2-4a12-957a-0d7671d70d59" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_e90c0d3e-c1d3-483f-8cb1-9fff7a4d53d1" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_e6b3f50f-3cc2-4a12-957a-0d7671d70d59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_dcd6540a-11b6-4c78-9827-439c075270ce" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_2aa00ded-bf44-4391-8763-ca9e9118cc23" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_dcd6540a-11b6-4c78-9827-439c075270ce" xlink:to="loc_us-gaap_StockholdersEquity_2aa00ded-bf44-4391-8763-ca9e9118cc23" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterest_801deabd-437d-45b2-af03-a6e89e67c05c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_dcd6540a-11b6-4c78-9827-439c075270ce" xlink:to="loc_us-gaap_MinorityInterest_801deabd-437d-45b2-af03-a6e89e67c05c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="hsy-20200927.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-20200927.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_NetCashProvidedByUsedInOperatingActivities_3ca486fe-e403-4d8b-9e7c-6671ceaaafdc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_bf494551-7e33-4e77-9a0d-15684c95339c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ca486fe-e403-4d8b-9e7c-6671ceaaafdc" xlink:to="loc_us-gaap_ProfitLoss_bf494551-7e33-4e77-9a0d-15684c95339c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_a729f7f5-1ea0-4ff7-a845-342c2ddeefa4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ca486fe-e403-4d8b-9e7c-6671ceaaafdc" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_a729f7f5-1ea0-4ff7-a845-342c2ddeefa4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_6c2f2ded-2586-43c4-9cb5-0dd75738e1ec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ca486fe-e403-4d8b-9e7c-6671ceaaafdc" xlink:to="loc_us-gaap_ShareBasedCompensation_6c2f2ded-2586-43c4-9cb5-0dd75738e1ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_9ab1bfe5-50f4-4fcb-8599-f10865b76e9a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ca486fe-e403-4d8b-9e7c-6671ceaaafdc" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_9ab1bfe5-50f4-4fcb-8599-f10865b76e9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_aeebe36e-aefe-46d9-8d04-8126cf6533b2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ca486fe-e403-4d8b-9e7c-6671ceaaafdc" xlink:to="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_aeebe36e-aefe-46d9-8d04-8126cf6533b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_dc9865f4-5d71-47a5-998b-3d6c8ce3440a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ca486fe-e403-4d8b-9e7c-6671ceaaafdc" xlink:to="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_dc9865f4-5d71-47a5-998b-3d6c8ce3440a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_d4fa6169-3e64-4542-a41e-d63311a87ddf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ca486fe-e403-4d8b-9e7c-6671ceaaafdc" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_d4fa6169-3e64-4542-a41e-d63311a87ddf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_9b5564bb-4cc6-4de2-9864-44c8d5bdf102" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ca486fe-e403-4d8b-9e7c-6671ceaaafdc" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_9b5564bb-4cc6-4de2-9864-44c8d5bdf102" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_685a759d-db04-4e3f-85d1-3780fe9aee55" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ca486fe-e403-4d8b-9e7c-6671ceaaafdc" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_685a759d-db04-4e3f-85d1-3780fe9aee55" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_268b03c5-538e-4472-9dc7-85d73fb9d759" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ca486fe-e403-4d8b-9e7c-6671ceaaafdc" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_268b03c5-538e-4472-9dc7-85d73fb9d759" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_f0a24638-77f0-4e04-8138-d872452e9a3d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ca486fe-e403-4d8b-9e7c-6671ceaaafdc" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_f0a24638-77f0-4e04-8138-d872452e9a3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedTaxesPayable_fa4f4874-92c4-44e4-af99-415951189fb1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ca486fe-e403-4d8b-9e7c-6671ceaaafdc" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedTaxesPayable_fa4f4874-92c4-44e4-af99-415951189fb1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementBenefitContributions_fc306e9e-9e27-43bd-8394-c39c46f8d057" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ca486fe-e403-4d8b-9e7c-6671ceaaafdc" xlink:to="loc_us-gaap_PensionAndOtherPostretirementBenefitContributions_fc306e9e-9e27-43bd-8394-c39c46f8d057" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_c6d1c907-7e1e-4d07-bc30-201b4a8cefd4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ca486fe-e403-4d8b-9e7c-6671ceaaafdc" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_c6d1c907-7e1e-4d07-bc30-201b4a8cefd4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_8e549eb1-4b5a-4870-b49f-1d767f43e075" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_3d5fd185-ba1b-48e9-a19d-8323f96acdea" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8e549eb1-4b5a-4870-b49f-1d767f43e075" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_3d5fd185-ba1b-48e9-a19d-8323f96acdea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_ebe4e0de-638d-4b57-bdbb-44c19b9e3733" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8e549eb1-4b5a-4870-b49f-1d767f43e075" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_ebe4e0de-638d-4b57-bdbb-44c19b9e3733" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_9d01ecf6-86f2-4cbb-9fc6-2e6115637ad0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8e549eb1-4b5a-4870-b49f-1d767f43e075" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_9d01ecf6-86f2-4cbb-9fc6-2e6115637ad0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_92f06085-f191-4bfc-80a7-999e151aef68" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8e549eb1-4b5a-4870-b49f-1d767f43e075" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_92f06085-f191-4bfc-80a7-999e151aef68" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_03fcf679-b527-4611-937a-8d71e280c87e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8e549eb1-4b5a-4870-b49f-1d767f43e075" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_03fcf679-b527-4611-937a-8d71e280c87e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_f9ea09df-83b7-4d9a-873a-492f0aaf3f7b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8e549eb1-4b5a-4870-b49f-1d767f43e075" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_f9ea09df-83b7-4d9a-873a-492f0aaf3f7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_8a4f3e58-c2e2-4cc9-9c74-cc0289e7b9a2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_CashCashEquivalentsRestrictedCashandRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffectandCashClassifiedasHeldforSale_708eea17-0a64-4fb4-acd9-32b595b8a999" xlink:href="hsy-20200927.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_8a4f3e58-c2e2-4cc9-9c74-cc0289e7b9a2" xlink:to="loc_hsy_CashCashEquivalentsRestrictedCashandRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffectandCashClassifiedasHeldforSale_708eea17-0a64-4fb4-acd9-32b595b8a999" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_CashandCashEquivalentsClassifiedasHeldforSaleIncreaseDecrease_c4893170-b892-4fc6-b5d9-cc77210319b8" xlink:href="hsy-20200927.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_8a4f3e58-c2e2-4cc9-9c74-cc0289e7b9a2" xlink:to="loc_hsy_CashandCashEquivalentsClassifiedasHeldforSaleIncreaseDecrease_c4893170-b892-4fc6-b5d9-cc77210319b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c5d81b91-aa1e-4458-baea-aabcad7ccb2c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_ac3dd36a-0f61-4d64-bf93-603eba08a420" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c5d81b91-aa1e-4458-baea-aabcad7ccb2c" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_ac3dd36a-0f61-4d64-bf93-603eba08a420" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_eaf767e5-d950-44f1-ac9d-d85f844c427d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c5d81b91-aa1e-4458-baea-aabcad7ccb2c" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_eaf767e5-d950-44f1-ac9d-d85f844c427d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_4373465a-48b7-4ee3-89b6-5856fc56ed39" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c5d81b91-aa1e-4458-baea-aabcad7ccb2c" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_4373465a-48b7-4ee3-89b6-5856fc56ed39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_1090f001-7ff5-4f0a-999c-25787cd1fb9d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c5d81b91-aa1e-4458-baea-aabcad7ccb2c" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_1090f001-7ff5-4f0a-999c-25787cd1fb9d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="hsy-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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_f071af0f-a89b-4246-9a23-d597e779272e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_963a3292-0f45-4ef1-a848-f1897d594695" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_f071af0f-a89b-4246-9a23-d597e779272e" xlink:to="loc_us-gaap_Goodwill_963a3292-0f45-4ef1-a848-f1897d594695" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_ab7dcdce-4f6a-4a10-8b68-518a1b6acd6c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_f071af0f-a89b-4246-9a23-d597e779272e" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_ab7dcdce-4f6a-4a10-8b68-518a1b6acd6c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_d6e629a3-509a-42a3-8b32-207e028d26c6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_f071af0f-a89b-4246-9a23-d597e779272e" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_d6e629a3-509a-42a3-8b32-207e028d26c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_b7f74ded-234f-4cfb-9221-9689d6e43ed3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_f071af0f-a89b-4246-9a23-d597e779272e" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_b7f74ded-234f-4cfb-9221-9689d6e43ed3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentNet_456d5f4b-8e33-49d9-82fe-d86adbeb7555" xlink:href="hsy-20200927.xsd#hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_ec0aa166-f4a7-490d-be9d-84c0da75481d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_456d5f4b-8e33-49d9-82fe-d86adbeb7555" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_ec0aa166-f4a7-490d-be9d-84c0da75481d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsPurchaseAccountingAdjustments_0dd0dc37-7017-41e5-94bf-b7b340b12972" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_456d5f4b-8e33-49d9-82fe-d86adbeb7555" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsPurchaseAccountingAdjustments_0dd0dc37-7017-41e5-94bf-b7b340b12972" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentAssetsOther_3defe97a-195d-406f-ae0e-357d7357f0c7" xlink:href="hsy-20200927.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_456d5f4b-8e33-49d9-82fe-d86adbeb7555" xlink:to="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentAssetsOther_3defe97a-195d-406f-ae0e-357d7357f0c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentLiabilitiesOther_af438bac-4afe-499f-87db-6f99274e3019" xlink:href="hsy-20200927.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_456d5f4b-8e33-49d9-82fe-d86adbeb7555" xlink:to="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentLiabilitiesOther_af438bac-4afe-499f-87db-6f99274e3019" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETS" xlink:type="simple" xlink:href="hsy-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.xsd#SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFLONGTERMDEBTINSTRUMENTSDetails" xlink:type="simple" xlink:href="hsy-20200927.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_f19b6284-82f4-4e67-833f-f4ad81224fc5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_fd020f26-f662-4e70-a7c1-e58b8163ea2d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_f19b6284-82f4-4e67-833f-f4ad81224fc5" xlink:to="loc_us-gaap_LongTermDebtCurrent_fd020f26-f662-4e70-a7c1-e58b8163ea2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_7dbe7ae2-0f93-4378-ad58-3ff0d60ee3ee" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_f19b6284-82f4-4e67-833f-f4ad81224fc5" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_7dbe7ae2-0f93-4378-ad58-3ff0d60ee3ee" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTLONGTERMDEBTINTERESTRATESDetails" xlink:type="simple" xlink:href="hsy-20200927.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-20200927.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_InterestExpense_0d3e826b-ccfc-40ae-8d45-5b82269d01c4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_60b0fab5-5b92-4416-933e-f1a05b109774" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_0d3e826b-ccfc-40ae-8d45-5b82269d01c4" xlink:to="loc_us-gaap_InterestExpenseDebt_60b0fab5-5b92-4416-933e-f1a05b109774" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestCostsCapitalizedAdjustment_b5bd5dc4-83d3-4e7f-a2c7-982744cd5ffb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_0d3e826b-ccfc-40ae-8d45-5b82269d01c4" xlink:to="loc_us-gaap_InterestCostsCapitalizedAdjustment_b5bd5dc4-83d3-4e7f-a2c7-982744cd5ffb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_63c3ceb4-7a35-4efe-b750-71479036fbde" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_f3568783-a9be-4e40-8869-340e48f5d113" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_63c3ceb4-7a35-4efe-b750-71479036fbde" xlink:to="loc_us-gaap_InterestExpense_f3568783-a9be-4e40-8869-340e48f5d113" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_3d92124c-94e4-411d-a997-a4b8c81166b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_63c3ceb4-7a35-4efe-b750-71479036fbde" xlink:to="loc_us-gaap_InvestmentIncomeInterest_3d92124c-94e4-411d-a997-a4b8c81166b5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTS" xlink:type="simple" xlink:href="hsy-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.xsd#DERIVATIVEINSTRUMENTSSCHEDULEOFCUMULATIVEBASISADJUSTMENTSFORINTERESTRATESWAPDERIVATIVESDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFCUMULATIVEBASISADJUSTMENTSFORINTERESTRATESWAPDERIVATIVESDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTS" xlink:type="simple" xlink:href="hsy-20200927.xsd#FAIRVALUEMEASUREMENTS"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTS" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#FAIRVALUEMEASUREMENTSTables"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#FAIRVALUEMEASUREMENTSNARRATIVEDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSNARRATIVEDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFASSETSANDLIABILITIESMEASUREDATFAIRVALUEDetails" xlink:type="simple" xlink:href="hsy-20200927.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-20200927.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-20200927.xsd#FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASES" xlink:type="simple" xlink:href="hsy-20200927.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-20200927.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-20200927.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_79877611-7bf4-4b3b-9284-7dd55c39934c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_4e4e8bcf-92f1-458d-bfcf-0aee25912f17" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_79877611-7bf4-4b3b-9284-7dd55c39934c" xlink:to="loc_us-gaap_OperatingLeaseCost_4e4e8bcf-92f1-458d-bfcf-0aee25912f17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_ce8d3bf2-094a-4c41-99a8-cc5b9edaaf94" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_79877611-7bf4-4b3b-9284-7dd55c39934c" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_ce8d3bf2-094a-4c41-99a8-cc5b9edaaf94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseInterestExpense_946d3825-1ed4-47d9-9660-53b58ca01d6d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_79877611-7bf4-4b3b-9284-7dd55c39934c" xlink:to="loc_us-gaap_FinanceLeaseInterestExpense_946d3825-1ed4-47d9-9660-53b58ca01d6d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFINFORMATIONREGARDINGOURLEASETERMSANDDISCOUNTRATESDetails" xlink:type="simple" xlink:href="hsy-20200927.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-20200927.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_a552c5c0-2a97-4332-a2ab-f0a0fb5a828b" xlink:href="hsy-20200927.xsd#hsy_LeaseRightofUseAsset"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_82006ae3-22ab-4da6-bfb2-ec7b66bc1a99" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_a552c5c0-2a97-4332-a2ab-f0a0fb5a828b" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_82006ae3-22ab-4da6-bfb2-ec7b66bc1a99" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAsset_584b44ba-c68c-4d8d-b627-c9e5890f5b2c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_a552c5c0-2a97-4332-a2ab-f0a0fb5a828b" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAsset_584b44ba-c68c-4d8d-b627-c9e5890f5b2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LeaseLiability_032695cf-802a-4670-9ef8-53ac0af96c8e" xlink:href="hsy-20200927.xsd#hsy_LeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_b8f74798-6d34-4ba4-90c8-1c372da165b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_032695cf-802a-4670-9ef8-53ac0af96c8e" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_b8f74798-6d34-4ba4-90c8-1c372da165b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_a97d581c-d415-47b7-b057-5df4f3f5b43c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_032695cf-802a-4670-9ef8-53ac0af96c8e" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_a97d581c-d415-47b7-b057-5df4f3f5b43c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_d024b5e8-8288-45a3-848c-9464a10156eb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_032695cf-802a-4670-9ef8-53ac0af96c8e" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_d024b5e8-8288-45a3-848c-9464a10156eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_dbecef14-2b0b-4066-8b33-48a11c78aa7e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_032695cf-802a-4670-9ef8-53ac0af96c8e" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_dbecef14-2b0b-4066-8b33-48a11c78aa7e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFMATURITIESOFLEASELIABILITIESDetails" xlink:type="simple" xlink:href="hsy-20200927.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_FinanceLeaseLiabilityPaymentsDue_74813057-be13-4854-886f-57d21cce5877" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_5c6a47ab-fab2-457d-9a2d-02d2c730d18e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_74813057-be13-4854-886f-57d21cce5877" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_5c6a47ab-fab2-457d-9a2d-02d2c730d18e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_430f8fab-0f39-410e-8b06-026511084d6a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_74813057-be13-4854-886f-57d21cce5877" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_430f8fab-0f39-410e-8b06-026511084d6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_041a6c1e-de52-441d-b979-9c60678b8f8a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_74813057-be13-4854-886f-57d21cce5877" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_041a6c1e-de52-441d-b979-9c60678b8f8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_c973fe72-355f-43bd-b7b2-48b971f00a94" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_74813057-be13-4854-886f-57d21cce5877" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_c973fe72-355f-43bd-b7b2-48b971f00a94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_6482c351-1c92-48d9-8224-a45450c6bbcf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_74813057-be13-4854-886f-57d21cce5877" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_6482c351-1c92-48d9-8224-a45450c6bbcf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_FinancingLeaseLiabilityToBePaidAfterYearFour_3d44ed90-ffc5-43c5-a43b-807a0767d2b8" xlink:href="hsy-20200927.xsd#hsy_FinancingLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_74813057-be13-4854-886f-57d21cce5877" xlink:to="loc_hsy_FinancingLeaseLiabilityToBePaidAfterYearFour_3d44ed90-ffc5-43c5-a43b-807a0767d2b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_c66961fd-abd3-49d4-ab7d-3f5334678501" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_d3d4d0e1-2693-46b1-9f51-028283d8abbd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_c66961fd-abd3-49d4-ab7d-3f5334678501" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_d3d4d0e1-2693-46b1-9f51-028283d8abbd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_e3e5ec4e-b7c1-4ea6-a04c-014b8ebf788e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_c66961fd-abd3-49d4-ab7d-3f5334678501" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_e3e5ec4e-b7c1-4ea6-a04c-014b8ebf788e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_874ecf52-df77-4461-9f9e-c74c4ee8c91e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_c66961fd-abd3-49d4-ab7d-3f5334678501" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_874ecf52-df77-4461-9f9e-c74c4ee8c91e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_09286778-591b-4ff7-9f90-d38c46ef9949" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_c66961fd-abd3-49d4-ab7d-3f5334678501" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_09286778-591b-4ff7-9f90-d38c46ef9949" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_b482ade7-9b4f-4425-ac02-61ec28d113d7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_c66961fd-abd3-49d4-ab7d-3f5334678501" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_b482ade7-9b4f-4425-ac02-61ec28d113d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_65b54756-8ee3-410c-bab4-5b1b83219a36" xlink:href="hsy-20200927.xsd#hsy_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_c66961fd-abd3-49d4-ab7d-3f5334678501" xlink:to="loc_hsy_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_65b54756-8ee3-410c-bab4-5b1b83219a36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDue_38186535-083d-403b-a093-d28518b3f505" xlink:href="hsy-20200927.xsd#hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidYearTwo_1f2d7ef6-9c02-431f-9a64-86ad074155e2" xlink:href="hsy-20200927.xsd#hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidYearTwo"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDue_38186535-083d-403b-a093-d28518b3f505" xlink:to="loc_hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidYearTwo_1f2d7ef6-9c02-431f-9a64-86ad074155e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidYearThree_a2be3a23-ad9a-46a0-8a15-1f39824765cc" xlink:href="hsy-20200927.xsd#hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDue_38186535-083d-403b-a093-d28518b3f505" xlink:to="loc_hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidYearThree_a2be3a23-ad9a-46a0-8a15-1f39824765cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidRemainderOfFiscalYear_bde94439-5451-4755-928f-9101dbf5377b" xlink:href="hsy-20200927.xsd#hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidRemainderOfFiscalYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDue_38186535-083d-403b-a093-d28518b3f505" xlink:to="loc_hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidRemainderOfFiscalYear_bde94439-5451-4755-928f-9101dbf5377b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidAfterYearFour_2448a345-7f0b-4ecb-b5f7-93ebea2e9d06" xlink:href="hsy-20200927.xsd#hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDue_38186535-083d-403b-a093-d28518b3f505" xlink:to="loc_hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidAfterYearFour_2448a345-7f0b-4ecb-b5f7-93ebea2e9d06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidYearFour_67184d90-6e19-4865-a183-a324c7dfac91" xlink:href="hsy-20200927.xsd#hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDue_38186535-083d-403b-a093-d28518b3f505" xlink:to="loc_hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidYearFour_67184d90-6e19-4865-a183-a324c7dfac91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidYearOne_c0b58281-8557-4e6c-ac12-c13ad4152b3d" xlink:href="hsy-20200927.xsd#hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidYearOne"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_hsy_LesseeOperatingandFinancingLeaseLiabilityPaymentsDue_38186535-083d-403b-a093-d28518b3f505" xlink:to="loc_hsy_LesseeOperatingAndFinancingLeaseLiabilityToBePaidYearOne_c0b58281-8557-4e6c-ac12-c13ad4152b3d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/ASSETSANDLIABILITIESHELDFORSALE" xlink:type="simple" xlink:href="hsy-20200927.xsd#ASSETSANDLIABILITIESHELDFORSALE"/>
  <link:calculationLink xlink:role="http://www.hersheys.com/role/ASSETSANDLIABILITIESHELDFORSALE" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIES" xlink:type="simple" xlink:href="hsy-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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_7394498d-2fbf-4b92-9119-5bd896c193a0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_ff86712e-615e-4ee0-95f4-6108374244b0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_7394498d-2fbf-4b92-9119-5bd896c193a0" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_ff86712e-615e-4ee0-95f4-6108374244b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_7c929487-547c-49b8-b7af-9a96eb9f8a66" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_7394498d-2fbf-4b92-9119-5bd896c193a0" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_7c929487-547c-49b8-b7af-9a96eb9f8a66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_be49968d-be45-48ae-8e82-f0514b83dae6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_7394498d-2fbf-4b92-9119-5bd896c193a0" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_be49968d-be45-48ae-8e82-f0514b83dae6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_b2101e65-262f-4e81-9a4e-d870f441e074" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_7394498d-2fbf-4b92-9119-5bd896c193a0" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_b2101e65-262f-4e81-9a4e-d870f441e074" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_fd2062bc-c236-499e-aceb-b354c1d27d14" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_7394498d-2fbf-4b92-9119-5bd896c193a0" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_fd2062bc-c236-499e-aceb-b354c1d27d14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_4c06d2b9-25ab-4adb-bac9-7467936857cc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_7394498d-2fbf-4b92-9119-5bd896c193a0" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_4c06d2b9-25ab-4adb-bac9-7467936857cc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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-20200927.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_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_c9a019d7-9fca-4503-af57-89d7da09141a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_c004a897-dac2-4809-91de-6235504b124b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_c9a019d7-9fca-4503-af57-89d7da09141a" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_c004a897-dac2-4809-91de-6235504b124b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributedEarnings_9356e715-33ef-41a4-a8da-76977007b21c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_c9a019d7-9fca-4503-af57-89d7da09141a" xlink:to="loc_us-gaap_DistributedEarnings_9356e715-33ef-41a4-a8da-76977007b21c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_c1a1f830-a696-4877-b2ca-38a4abd5fca9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_c9a019d7-9fca-4503-af57-89d7da09141a" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_c1a1f830-a696-4877-b2ca-38a4abd5fca9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_f475050e-fb25-4e99-af1d-80e32fb587f4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Dividends_0a4d2569-347c-4a56-89c7-8dd7e1613b2e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_f475050e-fb25-4e99-af1d-80e32fb587f4" xlink:to="loc_us-gaap_Dividends_0a4d2569-347c-4a56-89c7-8dd7e1613b2e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_a65387cf-c7bb-4394-acfe-3b3547f7a824" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_f475050e-fb25-4e99-af1d-80e32fb587f4" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_a65387cf-c7bb-4394-acfe-3b3547f7a824" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARENARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.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-20200927.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-20200927.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-20200927.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_54a7269c-d616-46cb-b149-82407c0fa942" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_7a8e464d-33e8-4bd4-9749-df29187cdcb6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_54a7269c-d616-46cb-b149-82407c0fa942" xlink:to="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_7a8e464d-33e8-4bd4-9749-df29187cdcb6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DefinedBenefitPlanNonServiceCost_9c56d254-6489-4691-9cd5-336cb30c6512" xlink:href="hsy-20200927.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_54a7269c-d616-46cb-b149-82407c0fa942" xlink:to="loc_hsy_DefinedBenefitPlanNonServiceCost_9c56d254-6489-4691-9cd5-336cb30c6512" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_OtherNonoperatingGainLoss_01e15002-8819-4c76-a1fc-7c36730d9a46" xlink:href="hsy-20200927.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_54a7269c-d616-46cb-b149-82407c0fa942" xlink:to="loc_hsy_OtherNonoperatingGainLoss_01e15002-8819-4c76-a1fc-7c36730d9a46" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATION" xlink:type="simple" xlink:href="hsy-20200927.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-20200927.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-20200927.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_ccf40d22-afd6-4ddc-af4c-4b9ccc9bb811" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax_2c3f5022-d66d-4a9e-a0b5-9bd5c1815215" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_ccf40d22-afd6-4ddc-af4c-4b9ccc9bb811" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax_2c3f5022-d66d-4a9e-a0b5-9bd5c1815215" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_eca204a0-656f-4b75-847c-78d6b664c87a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_ccf40d22-afd6-4ddc-af4c-4b9ccc9bb811" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_eca204a0-656f-4b75-847c-78d6b664c87a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax_a8f9d3be-27b5-4542-9466-29f75cc9a89f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_ccf40d22-afd6-4ddc-af4c-4b9ccc9bb811" xlink:to="loc_us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax_a8f9d3be-27b5-4542-9466-29f75cc9a89f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FIFOInventoryAmount_4ef75fc1-8a45-493e-8c64-e6c6a69fe34e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FIFOInventoryAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsNetOfReserves_1542b143-b3a9-43e1-a28a-94614a4bf627" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4ef75fc1-8a45-493e-8c64-e6c6a69fe34e" xlink:to="loc_us-gaap_InventoryRawMaterialsNetOfReserves_1542b143-b3a9-43e1-a28a-94614a4bf627" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_6fac0d3c-f6aa-4f48-b15d-3f826998e72f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4ef75fc1-8a45-493e-8c64-e6c6a69fe34e" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_6fac0d3c-f6aa-4f48-b15d-3f826998e72f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_728c8572-c104-4641-abfb-6767a6774b59" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4ef75fc1-8a45-493e-8c64-e6c6a69fe34e" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_728c8572-c104-4641-abfb-6767a6774b59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_38078077-29fe-42f4-91f7-ca8cdc315096" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Land_673f7f1b-8a66-466e-aa4c-49b223912375" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_38078077-29fe-42f4-91f7-ca8cdc315096" xlink:to="loc_us-gaap_Land_673f7f1b-8a66-466e-aa4c-49b223912375" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingsAndImprovementsGross_580e9949-c2a5-4207-b1f4-5c06b92d94aa" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_38078077-29fe-42f4-91f7-ca8cdc315096" xlink:to="loc_us-gaap_BuildingsAndImprovementsGross_580e9949-c2a5-4207-b1f4-5c06b92d94aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentGross_f609890a-fd94-46c6-ac66-f23068e908c4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_38078077-29fe-42f4-91f7-ca8cdc315096" xlink:to="loc_us-gaap_MachineryAndEquipmentGross_f609890a-fd94-46c6-ac66-f23068e908c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressGross_355b6f33-4387-41bd-aae0-ff9efd09a8a7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_38078077-29fe-42f4-91f7-ca8cdc315096" xlink:to="loc_us-gaap_ConstructionInProgressGross_355b6f33-4387-41bd-aae0-ff9efd09a8a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_92d74774-8f0d-42f1-8d74-b3b3affc6182" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_127cdd28-e85e-4f10-9588-c8c920e217be" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_92d74774-8f0d-42f1-8d74-b3b3affc6182" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_127cdd28-e85e-4f10-9588-c8c920e217be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedMarketingCostsCurrent_d4bdd534-5a92-43f9-a56f-04d79869a70c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_92d74774-8f0d-42f1-8d74-b3b3affc6182" xlink:to="loc_us-gaap_AccruedMarketingCostsCurrent_d4bdd534-5a92-43f9-a56f-04d79869a70c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_470fecdd-beba-400c-8b25-9778f6ebc60a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_92d74774-8f0d-42f1-8d74-b3b3affc6182" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_470fecdd-beba-400c-8b25-9778f6ebc60a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_39aa892c-ba85-4ce5-b248-daa3d6c751d9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_92d74774-8f0d-42f1-8d74-b3b3affc6182" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_39aa892c-ba85-4ce5-b248-daa3d6c751d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_664c277e-2da1-4b19-b6ca-9f5856ff95f1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FIFOInventoryAmount_f857f977-39f1-4b9a-9b04-38e51909ac27" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_664c277e-2da1-4b19-b6ca-9f5856ff95f1" xlink:to="loc_us-gaap_FIFOInventoryAmount_f857f977-39f1-4b9a-9b04-38e51909ac27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryLIFOReserve_d97207cf-9ae4-4512-9ac6-17d9ff05e6c7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_664c277e-2da1-4b19-b6ca-9f5856ff95f1" xlink:to="loc_us-gaap_InventoryLIFOReserve_d97207cf-9ae4-4512-9ac6-17d9ff05e6c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_ce3a8514-8241-44b7-8296-fade9e367ea9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_0c23aa1b-8c34-4946-9f6e-5856f169249b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_ce3a8514-8241-44b7-8296-fade9e367ea9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_0c23aa1b-8c34-4946-9f6e-5856f169249b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_c846c150-c6a6-4507-a0b6-4c901b89b4b1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_ce3a8514-8241-44b7-8296-fade9e367ea9" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_c846c150-c6a6-4507-a0b6-4c901b89b4b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_0d558169-a992-4911-a281-441589812528" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementDefinedBenefitPlanLiabilitiesNoncurrent_8ffc2f5e-cb2a-4404-97cd-3dafb5356620" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_0d558169-a992-4911-a281-441589812528" xlink:to="loc_us-gaap_OtherPostretirementDefinedBenefitPlanLiabilitiesNoncurrent_8ffc2f5e-cb2a-4404-97cd-3dafb5356620" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPensionPlanLiabilitiesNoncurrent_88281057-8a18-4f9a-bf20-a9c07310ff54" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_0d558169-a992-4911-a281-441589812528" xlink:to="loc_us-gaap_DefinedBenefitPensionPlanLiabilitiesNoncurrent_88281057-8a18-4f9a-bf20-a9c07310ff54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_36ebe674-09f4-42f0-ab68-b139b86ac64c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_0d558169-a992-4911-a281-441589812528" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_36ebe674-09f4-42f0-ab68-b139b86ac64c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_OtherMiscellaneousLiabilitiesNonCurrent_de00066f-ece9-4634-83d5-9dc3b70515c1" xlink:href="hsy-20200927.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_0d558169-a992-4911-a281-441589812528" xlink:to="loc_hsy_OtherMiscellaneousLiabilitiesNonCurrent_de00066f-ece9-4634-83d5-9dc3b70515c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PrepaidExpensesandOther_23e1e2ac-45a2-4448-b11a-2fa0f5e977d1" xlink:href="hsy-20200927.xsd#hsy_PrepaidExpensesandOther"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_747c64f0-786f-4442-9ec4-349c7cdf2814" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_23e1e2ac-45a2-4448-b11a-2fa0f5e977d1" xlink:to="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_747c64f0-786f-4442-9ec4-349c7cdf2814" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_a60764d7-db1e-4206-aa5e-b8d403c35839" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_23e1e2ac-45a2-4448-b11a-2fa0f5e977d1" xlink:to="loc_us-gaap_OtherAssetsCurrent_a60764d7-db1e-4206-aa5e-b8d403c35839" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_bb7c46c3-6f7c-47a5-9c2c-72f6cf5e2925" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedComputerSoftwareNet_52ec057e-74d6-48f7-bbca-1f91624b1e1c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_bb7c46c3-6f7c-47a5-9c2c-72f6cf5e2925" xlink:to="loc_us-gaap_CapitalizedComputerSoftwareNet_52ec057e-74d6-48f7-bbca-1f91624b1e1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_8c9baa09-df4a-47e0-822f-64ac8900a5b9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_bb7c46c3-6f7c-47a5-9c2c-72f6cf5e2925" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_8c9baa09-df4a-47e0-822f-64ac8900a5b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_OtherMiscellaneousAssetsNonCurrent_207ea4b9-3185-416e-850f-304d608f0f8e" xlink:href="hsy-20200927.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_bb7c46c3-6f7c-47a5-9c2c-72f6cf5e2925" xlink:to="loc_hsy_OtherMiscellaneousAssetsNonCurrent_207ea4b9-3185-416e-850f-304d608f0f8e" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
