SEC Info  
    Home      Search      My Interests      Help      Sign In      Please Sign In

Hershey Co – ‘8-K’ for 5/25/18 – ‘EX-101.CAL’

On:  Friday, 5/25/18, at 4:24pm ET   ·   For:  5/25/18   ·   Accession #:  47111-18-29   ·   File #:  1-00183

Previous ‘8-K’:  ‘8-K’ on / for 5/10/18   ·   Next:  ‘8-K’ on / for 7/26/18   ·   Latest:  ‘8-K’ on 2/8/24 for 2/2/24

Find Words in Filings emoji
 
  in    Show  and   Hints

  As Of               Filer                 Filing    For·On·As Docs:Size

 5/25/18  Hershey Co                        8-K:8,9     5/25/18  136:17M

Current Report   —   Form 8-K   —   Sect. 13 / 15(d) – SEA’34
Filing Table of Contents

Document/Exhibit                   Description                      Pages   Size 

 1: 8-K         Form 8-K Dated May 25, 2018                         HTML     75K 
 2: EX-23.1     Exhibit 23.1 - Consent of Ernst & Young LLP         HTML     43K 
 3: EX-23.2     Exhibit 23.2 - Consent of Kpmg LLP                  HTML     43K 
 4: EX-99.1     Exhibit 99.1 - Part Ii, Item 6 of the Hershey       HTML     85K 
                Company's 2017 Form 10-K                                         
 5: EX-99.2     Exhibit 99.2 - Part Ii, Item 7 of the Hershey       HTML    326K 
                Company's 2017 Form 10-K                                         
 6: EX-99.3     Exhibit 99.3 - Part Ii, Item 8 of the Hershey       HTML    849K 
                Company's 2017 Form 10-K                                         
13: R1          Document and Entity Information                     HTML     72K 
14: R2          Consolidated Statements of Income                   HTML    108K 
15: R3          Consolidated Statements of Comprehensive Income     HTML    115K 
16: R4          Consolidated Balance Sheets                         HTML    134K 
17: R5          Consolidated Balance Sheets (Parenthetical)         HTML     49K 
18: R6          Consolidated Statements of Cash Flows               HTML    145K 
19: R7          Consolidated Statements of Stockholders' Equity     HTML     97K 
20: R8          Consolidated Statements of Stockholders' Equity     HTML     47K 
                (Parenthetical)                                                  
21: R9          Summary of Significant Accounting Policies          HTML    105K 
22: R10         Business Acquisitions and Divestitures              HTML     64K 
23: R11         Goodwill and Intangible Assets                      HTML    112K 
24: R12         Short and Long-Term Debt                            HTML     97K 
25: R13         Derivative Instruments                              HTML    134K 
26: R14         Fair Value Measurements Fair Value Measurements     HTML    120K 
27: R15         Business Realignment Activities                     HTML    110K 
28: R16         Income Taxes                                        HTML    180K 
29: R17         Pension and Other Post-Retirement Benefit Plans     HTML    382K 
30: R18         Stock Compensation Plans                            HTML    139K 
31: R19         Segment Information                                 HTML    135K 
32: R20         Equity and Noncontrolling Interest                  HTML     78K 
33: R21         Commitments and Contingencies                       HTML     71K 
34: R22         Earnings Per Share                                  HTML    154K 
35: R23         Other (Income) Expense, Net Other (Income)          HTML     59K 
                Expense, Net                                                     
36: R24         Supplemental Balance Sheet Information              HTML    107K 
37: R25         Quarterly Data (Unaudited)                          HTML    124K 
38: R26         Subsequent Events Subsequent Events                 HTML     48K 
39: R27         Schedule Ii - Valuation and Qualifying Accounts     HTML    127K 
40: R28         Summary of Significant Accounting Policies          HTML    159K 
                (Policies)                                                       
41: R29         Summary of Significant Accounting Policies          HTML     58K 
                (Tables)                                                         
42: R30         Business Acquisitions and Divestitures (Tables)     HTML     57K 
43: R31         Goodwill and Intangible Assets (Tables)             HTML    107K 
44: R32         Short and Long-Term Debt (Tables)                   HTML     94K 
45: R33         Derivative Instruments (Tables)                     HTML    124K 
46: R34         Fair Value Measurements Fair Value Measurements     HTML    118K 
                (Tables)                                                         
47: R35         Business Realignment Activities (Tables)            HTML    101K 
48: R36         Income Taxes (Tables)                               HTML    176K 
49: R37         Pension and Other Post-Retirement Benefit Plans     HTML    384K 
                (Tables)                                                         
50: R38         Stock Compensation Plans (Tables)                   HTML    138K 
51: R39         Segment Information (Tables)                        HTML    138K 
52: R40         Equity and Noncontrolling Interest (Tables)         HTML     73K 
53: R41         Commitments and Contingencies (Tables)              HTML     84K 
54: R42         Earnings Per Share (Tables)                         HTML    153K 
55: R43         Other (Income) Expense, Net Other (Income)          HTML     59K 
                Expense, Net (Tables)                                            
56: R44         Supplemental Balance Sheet Information (Tables)     HTML    107K 
57: R45         Quarterly Data (Tables)                             HTML    124K 
58: R46         Summary of Significant Accounting Policies -        HTML     45K 
                Description of Business and Basis of Presentation                
                (Details)                                                        
59: R47         Summary of Significant Accounting Policies -        HTML     45K 
                Revenue Recognition (Details)                                    
60: R48         Summary of Significant Accounting Policies -        HTML     50K 
                Selling, Marketing and Administrative Expense                    
                (Details)                                                        
61: R49         Summary of Significant Accounting Policies -        HTML     52K 
                Accounts Receivable - Trade (Details)                            
62: R50         Summary of Significant Accounting Policies -        HTML     44K 
                Inventories (Details)                                            
63: R51         Summary of Significant Accounting Policies -        HTML     56K 
                Property, Plant and Equipment (Details)                          
64: R52         Summary of Significant Accounting Policies -        HTML     53K 
                Computer Software (Details)                                      
65: R53         Summary of Significant Accounting Policies -        HTML     47K 
                Goodwill and Other Intangible Assets (Details)                   
66: R54         Summary of Significant Accounting Policies -        HTML     65K 
                Recent Accounting Pronouncements (Details)                       
67: R55         Business Acquisitions and Divestitures - Ripple     HTML     64K 
                Brand Collective, Llc Assets Acquired and                        
                Liabilities Assumed Allocation (Details)                         
68: R56         Business Acquisitions and Divestitures - Ripple     HTML     49K 
                Brand Collective, Llc Narrative (Details)                        
69: R57         Business Acquisitions and Divestitures - Shanghai   HTML     54K 
                Golden Monkey Narrative (Details)                                
70: R58         Business Acquisitions and Divestitures - Krave      HTML     55K 
                Pure Foods Narrative (Details)                                   
71: R59         Business Acquisitions and Divestitures - Krave      HTML     66K 
                Pure Foods Assets Acquired and Liabilities Assumed               
                Allocation (Details)                                             
72: R60         Business Acquisitions and Divestitures - Mauna Loa  HTML     51K 
                Narrative (Details)                                              
73: R61         Goodwill and Intangible Assets - Schedule of        HTML     65K 
                Changes in Carrying Value of Goodwill by                         
                Reportable Segment (Details)                                     
74: R62         Goodwill and Intangible Assets - Goodwill and       HTML     74K 
                Intangible Assets Narrative (Details)                            
75: R63         Goodwill and Intangible Assets - Schedule of Gross  HTML     59K 
                Carrying Amount and Accumulated Amortization for                 
                Each Major Class of Intangible Asset (Details)                   
76: R64         Goodwill and Intangible Assets - Schedule of        HTML     52K 
                Amortization Expense, for the Next Five Years                    
                (Details)                                                        
77: R65         Short and Long-Term Debt - Short-Term Debt          HTML     66K 
                Narrative (Details)                                              
78: R66         Short and Long-Term Debt - Schedule of Long-Term    HTML     70K 
                Debt Instruments (Details)                                       
79: R67         Short and Long-Term Debt - Long Term Debt Interest  HTML     69K 
                Rates (Details)                                                  
80: R68         Short and Long-Term Debt - Long Term Debt           HTML     83K 
                Narrative (Details)                                              
81: R69         Short and Long-Term Debt - Schedule of Maturities   HTML     56K 
                of Long-Term Debt (Details)                                      
82: R70         Short and Long-Term Debt - Schedule of Net          HTML     54K 
                Interest Expense (Details)                                       
83: R71         Derivative Instruments - Derivative Instruments     HTML     80K 
                Narrative (Details)                                              
84: R72         Derivative Instruments - Schedule of the            HTML     70K 
                Classification of Derivative Assets and                          
                Liabilities Within the Consolidated Balance Sheets               
                (Details)                                                        
85: R73         Derivative Instruments - Schedule of the Effect of  HTML     66K 
                Derivative Instruments on the Consolidated                       
                Statements of Income (Details)                                   
86: R74         Fair Value Measurements - Schedule of Assets and    HTML     81K 
                Liabilities Measured at Fair Value (Details)                     
87: R75         Fair Value Measurements - Schedule of Fair Values   HTML     57K 
                and Carrying Values of Long-Term Debt (Details)                  
88: R76         Fair Value Measurements - Fair Value Measurements   HTML     52K 
                Narrative (Details)                                              
89: R77         Business Realignment Activities - Schedule of       HTML     79K 
                Business Realignment Activity (Details)                          
90: R78         Business Realignment Activities - Business          HTML    127K 
                Realignment Activities Narrative (Details)                       
91: R79         Business Realignment Activities - Schedule of       HTML     50K 
                Liability Activity for Costs Qualifying as Exit                  
                and Disposal Costs (Details)                                     
92: R80         Income Taxes - Schedule of Income (Loss) Before     HTML     48K 
                Taxes (Details)                                                  
93: R81         Income Taxes - Schedule of Components of Income     HTML     68K 
                Tax Expense (Benefit) (Details)                                  
94: R82         Income Taxes - Income Taxes Narrative (Details)     HTML     65K 
95: R83         Income Taxes - Schedule of Deferred Tax Asset and   HTML    104K 
                Liabilities (Details)                                            
96: R84         Income Taxes - Schedule of Effective Income Tax     HTML     68K 
                Rate Reconciliation (Details)                                    
97: R85         Income Taxes - Schedule of Unrecognized Tax         HTML     54K 
                Benefits Roll Forward (Details)                                  
98: R86         Pension and Other Post-Retirement Benefit Plans -   HTML     76K 
                Pension and Other Post-Retirement Benefit Plans                  
                Narrative (Details)                                              
99: R87         Pension and Other Post-Retirement Benefit Plans -   HTML    124K 
                Schedule of Defined Benefit Obligations, Plan                    
                Assets and Funded Status (Details)                               
100: R88         Pension and Other Post-Retirement Benefit Plans -   HTML     47K  
                Schedule of Accumulated Benefit Obligations in                   
                Excess of Plan Assets (Details)                                  
101: R89         Pension and Other Post-Retirement Benefit Plans -   HTML     82K  
                Schedule of Components of Net Periodic Benefit                   
                Cost (Details)                                                   
102: R90         Pension and Other Post-Retirement Benefit Plans -   HTML     49K  
                Schedule of Amounts Expected to Be Amortized From                
                Aoci Into Net Periodic Benefit (Details)                         
103: R91         Pension and Other Post-Retirement Benefit Plans -   HTML     49K  
                Schedule of Weighted Average Assumptions Used in                 
                Computing Benefit Obligations (Details)                          
104: R92         Pension and Other Post-Retirement Benefit Plans -   HTML     52K  
                Schedule of Weighted Average Assumptions Used in                 
                Computing Net Periodic Benefit Cost (Details)                    
105: R93         Pension and Other Post-Retirement Benefit Plans -   HTML     49K  
                Schedule of Effect of One Percent Change in                      
                Assumed Health Care Trend Rates (Details)                        
106: R94         Pension and Other Post-Retirement Benefit Plans -   HTML     51K  
                Schedule of Plan Assets Across Asset Classes                     
                (Details)                                                        
107: R95         Pension and Other Post-Retirement Benefit Plans -   HTML    116K  
                Schedule of Pension Plan Assets Within the Fair                  
                Value Hierarchy (Details)                                        
108: R96         Pension and Other Post-Retirement Benefit Plans -   HTML     58K  
                Schedule of Expected Benefit Payments to Be Paid                 
                (Details)                                                        
109: R97         Stock Compensation Plans - Stock Compensation       HTML     82K  
                Plans Narrative (Details)                                        
110: R98         Stock Compensation Plans - Schedule of              HTML     46K  
                Compensation Expense and Income Tax Benefits for                 
                Stock-Based Compensation Programs (Details)                      
111: R99         Stock Compensation Plans - Schedule of Stock        HTML     78K  
                Option Activity (Details)                                        
112: R100        Stock Compensation Plans - Schedule of Fair Value   HTML     50K  
                Weighted-Average Assumptions (Details)                           
113: R101        Stock Compensation Plans - Schedule of Stock        HTML     75K  
                Option Information by Exercise Price Range                       
                (Details)                                                        
114: R102        STOCK COMPENSATION PLANS - SCHEDULE OF PSUs AND     HTML     71K  
                RSUs ACTIVITY (Details)                                          
115: R103        STOCK COMPENSATION PLANS - SCHEDULE OF PSUs AND     HTML     55K  
                RSUS FAIR VALUE WEIGHTED-AVERAGE ASSUMPTIONS                     
                (Details)                                                        
116: R104        Segment Information Narrative (Details)             HTML     59K  
117: R105        Schedule of Net Sales and Earnings by Segment       HTML     86K  
                (Details)                                                        
118: R106        Segment Information - Schedule of Unallocated       HTML     53K  
                Mark-To-Market (Gains) Losses on Commodity                       
                Derivatives (Details)                                            
119: R107        Schedule of Depreciation and Amortization Expense   HTML     52K  
                Included Within Segment Income (Details)                         
120: R108        Schedule of Segment Information by Geography        HTML     56K  
                (Details)                                                        
121: R109        Equity and Noncontrolling Interest - Equity and     HTML     97K  
                Noncontrolling Interest Narrative (Details)                      
122: R110        Equity and Noncontrolling Interest - Schedule of    HTML     64K  
                the Changes in the Outstanding Shares of Commmon                 
                Stock (Details)                                                  
123: R111        Equity and Noncontrolling Interest - Schedule of    HTML     53K  
                Activity Relating to the Noncontrolling Interest                 
                (Details)                                                        
124: R112        Commitments and Contingencies - Schedule of         HTML     53K  
                Purchase Obligations Covered by Putchase                         
                Agreements With Various Suppliers Future Maturty                 
                Schedule (Details)                                               
125: R113        Commitments and Contingencies - Schedule of         HTML     74K  
                Operating and Capital Lease Obligations (Details)                
126: R114        Commitments and Contingencies - Commitments and     HTML     51K  
                Contingencies Narrative (Details)                                
127: R115        Schedule of Basic and Diluted Earnings Per Share    HTML    105K  
                (Details)                                                        
128: R116        Earnings Per Share - Earnings Per Share Narrative   HTML     45K  
                (Details)                                                        
129: R117        Other (Income) Expense, Net - Schedule of Other     HTML     61K  
                (Income) and Expense, Net (Details)                              
130: R118        Schedule of Supplemental Balance Sheet Information  HTML    129K  
                (Details)                                                        
131: R119        Schedule of Quarterly Financial Information         HTML     72K  
                (Details)                                                        
132: R120        Subsequent Events Subsequent Events (Details)       HTML     93K  
133: R121        Schedule Ii - Valuation and Qualifying Accounts     HTML     62K  
                (Details)                                                        
135: XML         IDEA XML File -- Filing Summary                      XML    262K  
134: EXCEL       IDEA Workbook of Financial Reports                  XLSX    173K  
 7: EX-101.INS  XBRL Instance -- hsy-20180525                        XML   5.93M 
 9: EX-101.CAL  XBRL Calculations -- hsy-20180525_cal                XML    399K 
10: EX-101.DEF  XBRL Definitions -- hsy-20180525_def                 XML   1.61M 
11: EX-101.LAB  XBRL Labels -- hsy-20180525_lab                      XML   2.77M 
12: EX-101.PRE  XBRL Presentations -- hsy-20180525_pre               XML   2.07M 
 8: EX-101.SCH  XBRL Schema -- hsy-20180525                          XSD    263K 
136: ZIP         XBRL Zipped Folder -- 0000047111-18-000029-xbrl      Zip    475K  


‘EX-101.CAL’   —   XBRL Calculations — hsy-20180525_cal


This Exhibit is an XBRL XML File.


                                                                                                                                                                                
<?xml version="1.0" encoding="windows-1252"?>
<!-- XBRL Document Created with Wdesk from Workiva -->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestitures" xlink:href="hsy-20180525.xsd#BusinessAcquisitionsAndDivestitures" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresKravePureFoodsAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:href="hsy-20180525.xsd#BusinessAcquisitionsAndDivestituresKravePureFoodsAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresKravePureFoodsNarrativeDetails" xlink:href="hsy-20180525.xsd#BusinessAcquisitionsAndDivestituresKravePureFoodsNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresMaunaLoaNarrativeDetails" xlink:href="hsy-20180525.xsd#BusinessAcquisitionsAndDivestituresMaunaLoaNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresRippleBrandCollectiveLlcAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:href="hsy-20180525.xsd#BusinessAcquisitionsAndDivestituresRippleBrandCollectiveLlcAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresRippleBrandCollectiveLlcNarrativeDetails" xlink:href="hsy-20180525.xsd#BusinessAcquisitionsAndDivestituresRippleBrandCollectiveLlcNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresShanghaiGoldenMonkeyNarrativeDetails" xlink:href="hsy-20180525.xsd#BusinessAcquisitionsAndDivestituresShanghaiGoldenMonkeyNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresTables" xlink:href="hsy-20180525.xsd#BusinessAcquisitionsAndDivestituresTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/BusinessRealignmentActivities" xlink:href="hsy-20180525.xsd#BusinessRealignmentActivities" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/BusinessRealignmentActivitiesBusinessRealignmentActivitiesNarrativeDetails" xlink:href="hsy-20180525.xsd#BusinessRealignmentActivitiesBusinessRealignmentActivitiesNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/BusinessRealignmentActivitiesScheduleOfBusinessRealignmentActivityDetails" xlink:href="hsy-20180525.xsd#BusinessRealignmentActivitiesScheduleOfBusinessRealignmentActivityDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/BusinessRealignmentActivitiesScheduleOfLiabilityActivityForCostsQualifyingAsExitAndDisposalCostsDetails" xlink:href="hsy-20180525.xsd#BusinessRealignmentActivitiesScheduleOfLiabilityActivityForCostsQualifyingAsExitAndDisposalCostsDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/BusinessRealignmentActivitiesTables" xlink:href="hsy-20180525.xsd#BusinessRealignmentActivitiesTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/CommitmentsAndContingencies" xlink:href="hsy-20180525.xsd#CommitmentsAndContingencies" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/CommitmentsAndContingenciesCommitmentsAndContingenciesNarrativeDetails" xlink:href="hsy-20180525.xsd#CommitmentsAndContingenciesCommitmentsAndContingenciesNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/CommitmentsAndContingenciesScheduleOfOperatingAndCapitalLeaseObligationsDetails" xlink:href="hsy-20180525.xsd#CommitmentsAndContingenciesScheduleOfOperatingAndCapitalLeaseObligationsDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/CommitmentsAndContingenciesScheduleOfPurchaseObligationsCoveredByPutchaseAgreementsWithVariousSuppliersFutureMaturtyScheduleDetails" xlink:href="hsy-20180525.xsd#CommitmentsAndContingenciesScheduleOfPurchaseObligationsCoveredByPutchaseAgreementsWithVariousSuppliersFutureMaturtyScheduleDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/CommitmentsAndContingenciesTables" xlink:href="hsy-20180525.xsd#CommitmentsAndContingenciesTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedBalanceSheets" xlink:href="hsy-20180525.xsd#ConsolidatedBalanceSheets" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="hsy-20180525.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="hsy-20180525.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:href="hsy-20180525.xsd#ConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedStatementsOfComprehensiveIncomeCalc2" xlink:href="hsy-20180525.xsd#ConsolidatedStatementsOfComprehensiveIncomeCalc2" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedStatementsOfIncome" xlink:href="hsy-20180525.xsd#ConsolidatedStatementsOfIncome" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedStatementsOfStockholdersEquity" xlink:href="hsy-20180525.xsd#ConsolidatedStatementsOfStockholdersEquity" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedStatementsOfStockholdersEquityParenthetical" xlink:href="hsy-20180525.xsd#ConsolidatedStatementsOfStockholdersEquityParenthetical" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/DerivativeInstruments" xlink:href="hsy-20180525.xsd#DerivativeInstruments" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/DerivativeInstrumentsDerivativeInstrumentsNarrativeDetails" xlink:href="hsy-20180525.xsd#DerivativeInstrumentsDerivativeInstrumentsNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/DerivativeInstrumentsScheduleOfClassificationOfDerivativeAssetsAndLiabilitiesWithinConsolidatedBalanceSheetsDetails" xlink:href="hsy-20180525.xsd#DerivativeInstrumentsScheduleOfClassificationOfDerivativeAssetsAndLiabilitiesWithinConsolidatedBalanceSheetsDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/DerivativeInstrumentsScheduleOfEffectOfDerivativeInstrumentsOnConsolidatedStatementsOfIncomeDetails" xlink:href="hsy-20180525.xsd#DerivativeInstrumentsScheduleOfEffectOfDerivativeInstrumentsOnConsolidatedStatementsOfIncomeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/DerivativeInstrumentsTables" xlink:href="hsy-20180525.xsd#DerivativeInstrumentsTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/DocumentAndEntityInformation" xlink:href="hsy-20180525.xsd#DocumentAndEntityInformation" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/EarningsPerShare" xlink:href="hsy-20180525.xsd#EarningsPerShare" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/EarningsPerShareEarningsPerShareNarrativeDetails" xlink:href="hsy-20180525.xsd#EarningsPerShareEarningsPerShareNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/EarningsPerShareTables" xlink:href="hsy-20180525.xsd#EarningsPerShareTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/EquityAndNoncontrollingInterest" xlink:href="hsy-20180525.xsd#EquityAndNoncontrollingInterest" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/EquityAndNoncontrollingInterestEquityAndNoncontrollingInterestNarrativeDetails" xlink:href="hsy-20180525.xsd#EquityAndNoncontrollingInterestEquityAndNoncontrollingInterestNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/EquityAndNoncontrollingInterestScheduleOfActivityRelatingToNoncontrollingInterestDetails" xlink:href="hsy-20180525.xsd#EquityAndNoncontrollingInterestScheduleOfActivityRelatingToNoncontrollingInterestDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/EquityAndNoncontrollingInterestScheduleOfChangesInOutstandingSharesOfCommmonStockDetails" xlink:href="hsy-20180525.xsd#EquityAndNoncontrollingInterestScheduleOfChangesInOutstandingSharesOfCommmonStockDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/EquityAndNoncontrollingInterestTables" xlink:href="hsy-20180525.xsd#EquityAndNoncontrollingInterestTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/FairValueMeasurementsFairValueMeasurements" xlink:href="hsy-20180525.xsd#FairValueMeasurementsFairValueMeasurements" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/FairValueMeasurementsFairValueMeasurementsNarrativeDetails" xlink:href="hsy-20180525.xsd#FairValueMeasurementsFairValueMeasurementsNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/FairValueMeasurementsFairValueMeasurementsTables" xlink:href="hsy-20180525.xsd#FairValueMeasurementsFairValueMeasurementsTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/FairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueDetails" xlink:href="hsy-20180525.xsd#FairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/FairValueMeasurementsScheduleOfFairValuesAndCarryingValuesOfLongTermDebtDetails" xlink:href="hsy-20180525.xsd#FairValueMeasurementsScheduleOfFairValuesAndCarryingValuesOfLongTermDebtDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssets" xlink:href="hsy-20180525.xsd#GoodwillAndIntangibleAssets" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsGoodwillAndIntangibleAssetsNarrativeDetails" xlink:href="hsy-20180525.xsd#GoodwillAndIntangibleAssetsGoodwillAndIntangibleAssetsNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsScheduleOfAmortizationExpenseForNextFiveYearsDetails" xlink:href="hsy-20180525.xsd#GoodwillAndIntangibleAssetsScheduleOfAmortizationExpenseForNextFiveYearsDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsScheduleOfChangesInCarryingValueOfGoodwillByReportableSegmentDetails" xlink:href="hsy-20180525.xsd#GoodwillAndIntangibleAssetsScheduleOfChangesInCarryingValueOfGoodwillByReportableSegmentDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsScheduleOfGrossCarryingAmountAndAccumulatedAmortizationForEachMajorClassOfIntangibleAssetDetails" xlink:href="hsy-20180525.xsd#GoodwillAndIntangibleAssetsScheduleOfGrossCarryingAmountAndAccumulatedAmortizationForEachMajorClassOfIntangibleAssetDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsTables" xlink:href="hsy-20180525.xsd#GoodwillAndIntangibleAssetsTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxes" xlink:href="hsy-20180525.xsd#IncomeTaxes" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesIncomeTaxesNarrativeDetails" xlink:href="hsy-20180525.xsd#IncomeTaxesIncomeTaxesNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesScheduleOfComponentsOfIncomeTaxExpenseBenefitDetails" xlink:href="hsy-20180525.xsd#IncomeTaxesScheduleOfComponentsOfIncomeTaxExpenseBenefitDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesScheduleOfDeferredTaxAssetAndLiabilitiesDetails" xlink:href="hsy-20180525.xsd#IncomeTaxesScheduleOfDeferredTaxAssetAndLiabilitiesDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesScheduleOfDeferredTaxAssetAndLiabilitiesDetailsCalc2" xlink:href="hsy-20180525.xsd#IncomeTaxesScheduleOfDeferredTaxAssetAndLiabilitiesDetailsCalc2" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesScheduleOfEffectiveIncomeTaxRateReconciliationDetails" xlink:href="hsy-20180525.xsd#IncomeTaxesScheduleOfEffectiveIncomeTaxRateReconciliationDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesScheduleOfIncomeLossBeforeTaxesDetails" xlink:href="hsy-20180525.xsd#IncomeTaxesScheduleOfIncomeLossBeforeTaxesDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesScheduleOfUnrecognizedTaxBenefitsRollForwardDetails" xlink:href="hsy-20180525.xsd#IncomeTaxesScheduleOfUnrecognizedTaxBenefitsRollForwardDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesTables" xlink:href="hsy-20180525.xsd#IncomeTaxesTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/OtherIncomeExpenseNetOtherIncomeExpenseNet" xlink:href="hsy-20180525.xsd#OtherIncomeExpenseNetOtherIncomeExpenseNet" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/OtherIncomeExpenseNetOtherIncomeExpenseNetTables" xlink:href="hsy-20180525.xsd#OtherIncomeExpenseNetOtherIncomeExpenseNetTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/OtherIncomeExpenseNetScheduleOfOtherIncomeAndExpenseNetDetails" xlink:href="hsy-20180525.xsd#OtherIncomeExpenseNetScheduleOfOtherIncomeAndExpenseNetDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlans" xlink:href="hsy-20180525.xsd#PensionAndOtherPostRetirementBenefitPlans" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansPensionAndOtherPostRetirementBenefitPlansNarrativeDetails" xlink:href="hsy-20180525.xsd#PensionAndOtherPostRetirementBenefitPlansPensionAndOtherPostRetirementBenefitPlansNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfAccumulatedBenefitObligationsInExcessOfPlanAssetsDetails" xlink:href="hsy-20180525.xsd#PensionAndOtherPostRetirementBenefitPlansScheduleOfAccumulatedBenefitObligationsInExcessOfPlanAssetsDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfAmountsExpectedToBeAmortizedFromAociIntoNetPeriodicBenefitDetails" xlink:href="hsy-20180525.xsd#PensionAndOtherPostRetirementBenefitPlansScheduleOfAmountsExpectedToBeAmortizedFromAociIntoNetPeriodicBenefitDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfComponentsOfNetPeriodicBenefitCostDetails" xlink:href="hsy-20180525.xsd#PensionAndOtherPostRetirementBenefitPlansScheduleOfComponentsOfNetPeriodicBenefitCostDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfDefinedBenefitObligationsPlanAssetsAndFundedStatusDetails" xlink:href="hsy-20180525.xsd#PensionAndOtherPostRetirementBenefitPlansScheduleOfDefinedBenefitObligationsPlanAssetsAndFundedStatusDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfEffectOfOnePercentChangeInAssumedHealthCareTrendRatesDetails" xlink:href="hsy-20180525.xsd#PensionAndOtherPostRetirementBenefitPlansScheduleOfEffectOfOnePercentChangeInAssumedHealthCareTrendRatesDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfExpectedBenefitPaymentsToBePaidDetails" xlink:href="hsy-20180525.xsd#PensionAndOtherPostRetirementBenefitPlansScheduleOfExpectedBenefitPaymentsToBePaidDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfPensionPlanAssetsWithinFairValueHierarchyDetails" xlink:href="hsy-20180525.xsd#PensionAndOtherPostRetirementBenefitPlansScheduleOfPensionPlanAssetsWithinFairValueHierarchyDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfPlanAssetsAcrossAssetClassesDetails" xlink:href="hsy-20180525.xsd#PensionAndOtherPostRetirementBenefitPlansScheduleOfPlanAssetsAcrossAssetClassesDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfWeightedAverageAssumptionsUsedInComputingBenefitObligationsDetails" xlink:href="hsy-20180525.xsd#PensionAndOtherPostRetirementBenefitPlansScheduleOfWeightedAverageAssumptionsUsedInComputingBenefitObligationsDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfWeightedAverageAssumptionsUsedInComputingNetPeriodicBenefitCostDetails" xlink:href="hsy-20180525.xsd#PensionAndOtherPostRetirementBenefitPlansScheduleOfWeightedAverageAssumptionsUsedInComputingNetPeriodicBenefitCostDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansTables" xlink:href="hsy-20180525.xsd#PensionAndOtherPostRetirementBenefitPlansTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/QuarterlyDataTables" xlink:href="hsy-20180525.xsd#QuarterlyDataTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/QuarterlyDataUnaudited" xlink:href="hsy-20180525.xsd#QuarterlyDataUnaudited" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ScheduleIiValuationAndQualifyingAccounts" xlink:href="hsy-20180525.xsd#ScheduleIiValuationAndQualifyingAccounts" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ScheduleIiValuationAndQualifyingAccountsDetails" xlink:href="hsy-20180525.xsd#ScheduleIiValuationAndQualifyingAccountsDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ScheduleOfBasicAndDilutedEarningsPerShareDetails" xlink:href="hsy-20180525.xsd#ScheduleOfBasicAndDilutedEarningsPerShareDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ScheduleOfDepreciationAndAmortizationExpenseIncludedWithinSegmentIncomeDetails" xlink:href="hsy-20180525.xsd#ScheduleOfDepreciationAndAmortizationExpenseIncludedWithinSegmentIncomeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ScheduleOfNetSalesAndEarningsBySegmentDetails" xlink:href="hsy-20180525.xsd#ScheduleOfNetSalesAndEarningsBySegmentDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ScheduleOfQuarterlyFinancialInformationDetails" xlink:href="hsy-20180525.xsd#ScheduleOfQuarterlyFinancialInformationDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ScheduleOfSegmentInformationByGeographyDetails" xlink:href="hsy-20180525.xsd#ScheduleOfSegmentInformationByGeographyDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ScheduleOfSupplementalBalanceSheetInformationDetails" xlink:href="hsy-20180525.xsd#ScheduleOfSupplementalBalanceSheetInformationDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformation" xlink:href="hsy-20180525.xsd#SegmentInformation" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformationNarrativeDetails" xlink:href="hsy-20180525.xsd#SegmentInformationNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformationScheduleOfUnallocatedMarkToMarketGainsLossesOnCommodityDerivativesDetails" xlink:href="hsy-20180525.xsd#SegmentInformationScheduleOfUnallocatedMarkToMarketGainsLossesOnCommodityDerivativesDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformationTables" xlink:href="hsy-20180525.xsd#SegmentInformationTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebt" xlink:href="hsy-20180525.xsd#ShortAndLongTermDebt" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtLongTermDebtInterestRatesDetails" xlink:href="hsy-20180525.xsd#ShortAndLongTermDebtLongTermDebtInterestRatesDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtLongTermDebtNarrativeDetails" xlink:href="hsy-20180525.xsd#ShortAndLongTermDebtLongTermDebtNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtScheduleOfLongTermDebtInstrumentsDetails" xlink:href="hsy-20180525.xsd#ShortAndLongTermDebtScheduleOfLongTermDebtInstrumentsDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtScheduleOfMaturitiesOfLongTermDebtDetails" xlink:href="hsy-20180525.xsd#ShortAndLongTermDebtScheduleOfMaturitiesOfLongTermDebtDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtScheduleOfNetInterestExpenseDetails" xlink:href="hsy-20180525.xsd#ShortAndLongTermDebtScheduleOfNetInterestExpenseDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtShortTermDebtNarrativeDetails" xlink:href="hsy-20180525.xsd#ShortAndLongTermDebtShortTermDebtNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtTables" xlink:href="hsy-20180525.xsd#ShortAndLongTermDebtTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlans" xlink:href="hsy-20180525.xsd#StockCompensationPlans" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansScheduleOfCompensationExpenseAndIncomeTaxBenefitsForStockBasedCompensationProgramsDetails" xlink:href="hsy-20180525.xsd#StockCompensationPlansScheduleOfCompensationExpenseAndIncomeTaxBenefitsForStockBasedCompensationProgramsDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansScheduleOfFairValueWeightedAverageAssumptionsDetails" xlink:href="hsy-20180525.xsd#StockCompensationPlansScheduleOfFairValueWeightedAverageAssumptionsDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansScheduleOfPsusAndRsusActivityDetails" xlink:href="hsy-20180525.xsd#StockCompensationPlansScheduleOfPsusAndRsusActivityDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansScheduleOfPsusAndRsusFairValueWeightedAverageAssumptionsDetails" xlink:href="hsy-20180525.xsd#StockCompensationPlansScheduleOfPsusAndRsusFairValueWeightedAverageAssumptionsDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansScheduleOfStockOptionActivityDetails" xlink:href="hsy-20180525.xsd#StockCompensationPlansScheduleOfStockOptionActivityDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansScheduleOfStockOptionInformationByExercisePriceRangeDetails" xlink:href="hsy-20180525.xsd#StockCompensationPlansScheduleOfStockOptionInformationByExercisePriceRangeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansStockCompensationPlansNarrativeDetails" xlink:href="hsy-20180525.xsd#StockCompensationPlansStockCompensationPlansNarrativeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansTables" xlink:href="hsy-20180525.xsd#StockCompensationPlansTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SubsequentEventsSubsequentEvents" xlink:href="hsy-20180525.xsd#SubsequentEventsSubsequentEvents" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SubsequentEventsSubsequentEventsDetails" xlink:href="hsy-20180525.xsd#SubsequentEventsSubsequentEventsDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SubsequentEventsSubsequentEventsTables" xlink:href="hsy-20180525.xsd#SubsequentEventsSubsequentEventsTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="hsy-20180525.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesAccountsReceivableTradeDetails" xlink:href="hsy-20180525.xsd#SummaryOfSignificantAccountingPoliciesAccountsReceivableTradeDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesComputerSoftwareDetails" xlink:href="hsy-20180525.xsd#SummaryOfSignificantAccountingPoliciesComputerSoftwareDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesDescriptionOfBusinessAndBasisOfPresentationDetails" xlink:href="hsy-20180525.xsd#SummaryOfSignificantAccountingPoliciesDescriptionOfBusinessAndBasisOfPresentationDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesGoodwillAndOtherIntangibleAssetsDetails" xlink:href="hsy-20180525.xsd#SummaryOfSignificantAccountingPoliciesGoodwillAndOtherIntangibleAssetsDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesInventoriesDetails" xlink:href="hsy-20180525.xsd#SummaryOfSignificantAccountingPoliciesInventoriesDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="hsy-20180525.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentDetails" xlink:href="hsy-20180525.xsd#SummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesRecentAccountingPronouncementsDetails" xlink:href="hsy-20180525.xsd#SummaryOfSignificantAccountingPoliciesRecentAccountingPronouncementsDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetails" xlink:href="hsy-20180525.xsd#SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesSellingMarketingAndAdministrativeExpenseDetails" xlink:href="hsy-20180525.xsd#SummaryOfSignificantAccountingPoliciesSellingMarketingAndAdministrativeExpenseDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:href="hsy-20180525.xsd#SummaryOfSignificantAccountingPoliciesTables" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SupplementalBalanceSheetInformation" xlink:href="hsy-20180525.xsd#SupplementalBalanceSheetInformation" xlink:type="simple"/>
<link:roleRef roleURI="http://www.hersheys.com/role/SupplementalBalanceSheetInformationTables" xlink:href="hsy-20180525.xsd#SupplementalBalanceSheetInformationTables" xlink:type="simple"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestitures" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresKravePureFoodsAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresKravePureFoodsNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresMaunaLoaNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresRippleBrandCollectiveLlcAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresRippleBrandCollectiveLlcNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresShanghaiGoldenMonkeyNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/BusinessRealignmentActivities" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/BusinessRealignmentActivitiesBusinessRealignmentActivitiesNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/BusinessRealignmentActivitiesScheduleOfBusinessRealignmentActivityDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/BusinessRealignmentActivitiesScheduleOfLiabilityActivityForCostsQualifyingAsExitAndDisposalCostsDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/BusinessRealignmentActivitiesTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/CommitmentsAndContingencies" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/CommitmentsAndContingenciesCommitmentsAndContingenciesNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/CommitmentsAndContingenciesScheduleOfOperatingAndCapitalLeaseObligationsDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/CommitmentsAndContingenciesScheduleOfPurchaseObligationsCoveredByPutchaseAgreementsWithVariousSuppliersFutureMaturtyScheduleDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/CommitmentsAndContingenciesTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_159dcb00-b17e-17db-7098-be4159799459" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_159dcb00-b17e-17db-7098-be4159799459" xlink:to="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="loc_us-gaap_AccountsPayableCurrent_7a72b51a-735c-1ad4-bd3f-d9bcf2d6a26d" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:to="loc_us-gaap_AccountsPayableCurrent_7a72b51a-735c-1ad4-bd3f-d9bcf2d6a26d" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_3fe8f96b-142b-97b1-3b39-b8d22cd10e98" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_3fe8f96b-142b-97b1-3b39-b8d22cd10e98" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccruedIncomeTaxesCurrent" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_bd3a7ae4-0e62-b7df-2312-729d1644863d" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_bd3a7ae4-0e62-b7df-2312-729d1644863d" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_c4493b41-4418-ed41-2f06-05ff9c61369f" xlink:type="locator"/>
<link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:to="loc_us-gaap_ShortTermBorrowings_c4493b41-4418-ed41-2f06-05ff9c61369f" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_f61bf97e-c3a5-ba72-7591-eba8e7bb6a44" xlink:type="locator"/>
<link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:to="loc_us-gaap_LongTermDebtCurrent_f61bf97e-c3a5-ba72-7591-eba8e7bb6a44" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_f68a050d-d5b6-1395-99ff-ed06c9a31fb4" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_f68a050d-d5b6-1395-99ff-ed06c9a31fb4" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_f234998c-5e05-09d0-d53e-5c44423c97c0" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_f234998c-5e05-09d0-d53e-5c44423c97c0" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxLiabilitiesNoncurrent" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesNoncurrent_314eb579-3ee1-408c-39f2-e62f2f37befc" xlink:type="locator"/>
<link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesNoncurrent_314eb579-3ee1-408c-39f2-e62f2f37befc" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_00443492-92dd-7fc1-13b6-792f3e163e73" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_159dcb00-b17e-17db-7098-be4159799459" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_00443492-92dd-7fc1-13b6-792f3e163e73" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_00443492-92dd-7fc1-13b6-792f3e163e73" xlink:to="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MinorityInterest" xlink:label="loc_us-gaap_MinorityInterest_cb565c4d-35c2-d825-4672-f1619e51c133" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_00443492-92dd-7fc1-13b6-792f3e163e73" xlink:to="loc_us-gaap_MinorityInterest_cb565c4d-35c2-d825-4672-f1619e51c133" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_8a47066b-3628-88d1-49db-ed09aecc7fc7" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_AssetsCurrent_8a47066b-3628-88d1-49db-ed09aecc7fc7" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_07da1db4-2708-4446-4250-1fdd5956185e" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_8a47066b-3628-88d1-49db-ed09aecc7fc7" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_07da1db4-2708-4446-4250-1fdd5956185e" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_dd7775cd-f4ab-5607-9b31-1ee98f605818" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_8a47066b-3628-88d1-49db-ed09aecc7fc7" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_dd7775cd-f4ab-5607-9b31-1ee98f605818" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_7eab44cf-1ea1-ca2a-420f-21f7b5343fc3" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_8a47066b-3628-88d1-49db-ed09aecc7fc7" xlink:to="loc_us-gaap_InventoryNet_7eab44cf-1ea1-ca2a-420f-21f7b5343fc3" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_2294e6a2-7bab-43ed-d02c-bdf73b8fa561" xlink:type="locator"/>
<link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_8a47066b-3628-88d1-49db-ed09aecc7fc7" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_2294e6a2-7bab-43ed-d02c-bdf73b8fa561" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_1944a381-5c4e-ce3c-9111-13ccd1c639db" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_1944a381-5c4e-ce3c-9111-13ccd1c639db" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_93a64cae-271a-5e6b-8c83-5adf9f941142" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_Goodwill_93a64cae-271a-5e6b-8c83-5adf9f941142" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_1fe06082-076b-052d-6e2e-930afe9d6b2d" xlink:type="locator"/>
<link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_1fe06082-076b-052d-6e2e-930afe9d6b2d" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_9b27fab9-d497-627b-4cfb-6b585220b978" xlink:type="locator"/>
<link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_9b27fab9-d497-627b-4cfb-6b585220b978" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNetNoncurrent" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNetNoncurrent_79b86299-04f6-ff11-6b66-c6ef1f697685" xlink:type="locator"/>
<link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_DeferredTaxAssetsLiabilitiesNetNoncurrent_79b86299-04f6-ff11-6b66-c6ef1f697685" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_37b0c31d-5d8b-0577-dfd9-aa56a79334e3" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_37b0c31d-5d8b-0577-dfd9-aa56a79334e3" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_e3eecf87-b290-4567-8a59-5b0a8e27c85b" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_ShareBasedCompensation_e3eecf87-b290-4567-8a59-5b0a8e27c85b" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredIncomeTaxesAndTaxCredits" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_68e10ff8-b323-b033-86bb-bb6c9af3232f" xlink:type="locator"/>
<link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_68e10ff8-b323-b033-86bb-bb6c9af3232f" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestructuringCostsAndAssetImpairmentCharges" xlink:label="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_c99da944-0dff-a90d-07b5-5787dd33a82e" xlink:type="locator"/>
<link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_c99da944-0dff-a90d-07b5-5787dd33a82e" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_3db65903-3171-d63c-a688-532ba00b8108" xlink:type="locator"/>
<link:calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_3db65903-3171-d63c-a688-532ba00b8108" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet_909d1c97-42ef-4bdc-1dc2-0ff7cf6f6875" xlink:type="locator"/>
<link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet_909d1c97-42ef-4bdc-1dc2-0ff7cf6f6875" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount" xlink:label="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_d681e7b1-cc40-4557-22b2-152978425f95" xlink:type="locator"/>
<link:calculationArc order="8" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_d681e7b1-cc40-4557-22b2-152978425f95" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_e044e8e2-5c45-7b11-95e2-5c6b268cc854" xlink:type="locator"/>
<link:calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_e044e8e2-5c45-7b11-95e2-5c6b268cc854" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_dd4bfa5e-1979-c817-e8a9-371104c0d4f7" xlink:type="locator"/>
<link:calculationArc order="10" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_dd4bfa5e-1979-c817-e8a9-371104c0d4f7" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInInventories" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_bf3f9720-ba63-7ecd-52ae-e754a6f349db" xlink:type="locator"/>
<link:calculationArc order="11" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_bf3f9720-ba63-7ecd-52ae-e754a6f349db" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_c998cbd2-a633-c2ec-1932-e3bfedecbc9f" xlink:type="locator"/>
<link:calculationArc order="12" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_c998cbd2-a633-c2ec-1932-e3bfedecbc9f" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_73e959a8-32b6-697e-66b5-86ef5a29476e" xlink:type="locator"/>
<link:calculationArc order="13" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_73e959a8-32b6-697e-66b5-86ef5a29476e" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedTaxesPayable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedTaxesPayable_e1b56980-77f5-cd6e-5f3f-b4c4391067d0" xlink:type="locator"/>
<link:calculationArc order="14" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedTaxesPayable_e1b56980-77f5-cd6e-5f3f-b4c4391067d0" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PensionAndOtherPostretirementBenefitContributions" xlink:label="loc_us-gaap_PensionAndOtherPostretirementBenefitContributions_97281d9e-e18f-b4df-4a03-14d62471c428" xlink:type="locator"/>
<link:calculationArc order="15" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_PensionAndOtherPostretirementBenefitContributions_97281d9e-e18f-b4df-4a03-14d62471c428" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_962cfc51-230d-a221-126b-1d12af7a5921" xlink:type="locator"/>
<link:calculationArc order="16" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_962cfc51-230d-a221-126b-1d12af7a5921" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromRepaymentsOfShortTermDebt" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_27f3e695-baed-1adc-cc35-793c3b76e4f9" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_27f3e695-baed-1adc-cc35-793c3b76e4f9" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_e5f1c7a4-b42a-8461-2001-b1f20e51b257" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_e5f1c7a4-b42a-8461-2001-b1f20e51b257" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RepaymentsOfLongTermDebt" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_2b72fe5f-3c0e-d5e0-8e5c-ad01818e58e5" xlink:type="locator"/>
<link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_2b72fe5f-3c0e-d5e0-8e5c-ad01818e58e5" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_bc66fcc7-4638-7e93-2948-b833e774a337" xlink:type="locator"/>
<link:calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_bc66fcc7-4638-7e93-2948-b833e774a337" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsOfDividendsCommonStock" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_6f80ca9e-82d0-f056-a403-c4914c1ce379" xlink:type="locator"/>
<link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_6f80ca9e-82d0-f056-a403-c4914c1ce379" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_d04df344-47da-0222-79d0-99b7d739fd60" xlink:type="locator"/>
<link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_d04df344-47da-0222-79d0-99b7d739fd60" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromPaymentsForOtherFinancingActivities" xlink:label="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_9c4e2a5c-e841-39a2-fcf8-f80cfa44af11" xlink:type="locator"/>
<link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_9c4e2a5c-e841-39a2-fcf8-f80cfa44af11" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_8a1490c4-32d9-5132-1fe2-2675a45abdae" xlink:type="locator"/>
<link:calculationArc order="8" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_8a1490c4-32d9-5132-1fe2-2675a45abdae" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_fee12b15-6b42-6245-2e2f-ff030b98332c" xlink:type="locator"/>
<link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_fee12b15-6b42-6245-2e2f-ff030b98332c" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_f7ed6106-862d-edb5-3fd1-677e7651af64" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_f7ed6106-862d-edb5-3fd1-677e7651af64" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromDivestitureOfBusinesses" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_1b49b102-31cf-7322-08b6-a997061a74c1" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_1b49b102-31cf-7322-08b6-a997061a74c1" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_711fe6a7-239a-14d7-7b86-a4382503100b" xlink:type="locator"/>
<link:calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_711fe6a7-239a-14d7-7b86-a4382503100b" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_9d35c912-5b2d-89f7-eeb3-812a0511db5e" xlink:type="locator"/>
<link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_9d35c912-5b2d-89f7-eeb3-812a0511db5e" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsForProceedsFromShortTermInvestments" xlink:label="loc_us-gaap_PaymentsForProceedsFromShortTermInvestments_b1bbf188-6bb5-a3d9-0e3b-94b8cbfb59cd" xlink:type="locator"/>
<link:calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_us-gaap_PaymentsForProceedsFromShortTermInvestments_b1bbf188-6bb5-a3d9-0e3b-94b8cbfb59cd" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax_eea0c679-aff6-c974-47a0-ff7e9cae6086" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax_bb969882-fed8-578a-3817-8df19729cd79" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax_eea0c679-aff6-c974-47a0-ff7e9cae6086" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax_bb969882-fed8-578a-3817-8df19729cd79" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossTax_77604071-df5d-a7e7-ce4f-537a6c3c6fbd" xlink:type="locator"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax_eea0c679-aff6-c974-47a0-ff7e9cae6086" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossTax_77604071-df5d-a7e7-ce4f-537a6c3c6fbd" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_499015ce-2160-aed2-85a3-080e8c4c6cdf" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_dd69e307-3cf6-284a-5315-8fa7ac464283" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_499015ce-2160-aed2-85a3-080e8c4c6cdf" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_dd69e307-3cf6-284a-5315-8fa7ac464283" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_dd69e307-3cf6-284a-5315-8fa7ac464283" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_27a35677-5e4b-23be-d135-9b2a303ead30" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_27a35677-5e4b-23be-d135-9b2a303ead30" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_9cffdcf3-2206-8087-bfa6-e205fe38a792" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_27a35677-5e4b-23be-d135-9b2a303ead30" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_9cffdcf3-2206-8087-bfa6-e205fe38a792" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_086c0c4e-b462-2c01-0468-31b739642a85" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_27a35677-5e4b-23be-d135-9b2a303ead30" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_086c0c4e-b462-2c01-0468-31b739642a85" xlink:type="arc"/>
<link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_27a35677-5e4b-23be-d135-9b2a303ead30" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax_bb969882-fed8-578a-3817-8df19729cd79" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodBeforeTax_02278c77-83e2-e592-cc7e-098b64f44f6f" xlink:type="locator"/>
<link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_27a35677-5e4b-23be-d135-9b2a303ead30" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodBeforeTax_02278c77-83e2-e592-cc7e-098b64f44f6f" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesBeforeTax_87718395-99ac-d6a3-868b-78e339bbb8c9" xlink:type="locator"/>
<link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_27a35677-5e4b-23be-d135-9b2a303ead30" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesBeforeTax_87718395-99ac-d6a3-868b-78e339bbb8c9" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTax_fd5fd01d-ccd5-2fe2-e9ee-a9a84a842378" xlink:type="locator"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTax_fd5fd01d-ccd5-2fe2-e9ee-a9a84a842378" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax_cd0919d8-d8eb-cfe6-40c8-c0526b4fbf3d" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_fd5fd01d-ccd5-2fe2-e9ee-a9a84a842378" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax_cd0919d8-d8eb-cfe6-40c8-c0526b4fbf3d" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodTax_90cadbef-4c1f-dc53-0481-4d312c2e0e3a" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_fd5fd01d-ccd5-2fe2-e9ee-a9a84a842378" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodTax_90cadbef-4c1f-dc53-0481-4d312c2e0e3a" xlink:type="arc"/>
<link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_fd5fd01d-ccd5-2fe2-e9ee-a9a84a842378" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossTax_77604071-df5d-a7e7-ce4f-537a6c3c6fbd" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodTax_4f22ab7c-17d1-8713-b2ed-ce75602eceb9" xlink:type="locator"/>
<link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_fd5fd01d-ccd5-2fe2-e9ee-a9a84a842378" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodTax_4f22ab7c-17d1-8713-b2ed-ce75602eceb9" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesTax_e2465e14-ad8d-68a8-770d-97a2e3fa6e69" xlink:type="locator"/>
<link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_fd5fd01d-ccd5-2fe2-e9ee-a9a84a842378" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesTax_e2465e14-ad8d-68a8-770d-97a2e3fa6e69" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_dd69e307-3cf6-284a-5315-8fa7ac464283" xlink:to="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_7908f590-67cb-1122-d422-880e24cad7ce" xlink:type="locator"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_499015ce-2160-aed2-85a3-080e8c4c6cdf" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_7908f590-67cb-1122-d422-880e24cad7ce" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax_aa99f772-8337-cbc2-0b89-25fbb3108271" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax_aa99f772-8337-cbc2-0b89-25fbb3108271" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesBeforeTax_87718395-99ac-d6a3-868b-78e339bbb8c9" xlink:type="arc"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax_aa99f772-8337-cbc2-0b89-25fbb3108271" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesTax_e2465e14-ad8d-68a8-770d-97a2e3fa6e69" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_351eeed0-a987-88e4-c007-095f3644ffff" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_351eeed0-a987-88e4-c007-095f3644ffff" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_9cffdcf3-2206-8087-bfa6-e205fe38a792" xlink:type="arc"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_351eeed0-a987-88e4-c007-095f3644ffff" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax_cd0919d8-d8eb-cfe6-40c8-c0526b4fbf3d" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax_a7b5d22e-96eb-ace2-25a7-90129fb72d8e" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax_a7b5d22e-96eb-ace2-25a7-90129fb72d8e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_086c0c4e-b462-2c01-0468-31b739642a85" xlink:type="arc"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax_a7b5d22e-96eb-ace2-25a7-90129fb72d8e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodTax_90cadbef-4c1f-dc53-0481-4d312c2e0e3a" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax_6feed690-17e1-a928-d1c5-204f2faa570e" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax_6feed690-17e1-a928-d1c5-204f2faa570e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodBeforeTax_02278c77-83e2-e592-cc7e-098b64f44f6f" xlink:type="arc"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax_6feed690-17e1-a928-d1c5-204f2faa570e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodTax_4f22ab7c-17d1-8713-b2ed-ce75602eceb9" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ConsolidatedStatementsOfComprehensiveIncomeCalc2" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_DD1B11FEC5C4CC97BA3D08C41ACE6D98_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_DD1B11FEC5C4CC97BA3D08C41ACE6D98_351eeed0-a987-88e4-c007-095f3644ffff" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_DD1B11FEC5C4CC97BA3D08C41ACE6D98_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_DD1B11FEC5C4CC97BA3D08C41ACE6D98_351eeed0-a987-88e4-c007-095f3644ffff" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax_DD1B11FEC5C4CC97BA3D08C41ACE6D98_a7b5d22e-96eb-ace2-25a7-90129fb72d8e" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_DD1B11FEC5C4CC97BA3D08C41ACE6D98_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax_DD1B11FEC5C4CC97BA3D08C41ACE6D98_a7b5d22e-96eb-ace2-25a7-90129fb72d8e" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax_DD1B11FEC5C4CC97BA3D08C41ACE6D98_eea0c679-aff6-c974-47a0-ff7e9cae6086" xlink:type="locator"/>
<link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_DD1B11FEC5C4CC97BA3D08C41ACE6D98_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossNetOfTax_DD1B11FEC5C4CC97BA3D08C41ACE6D98_eea0c679-aff6-c974-47a0-ff7e9cae6086" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax_DD1B11FEC5C4CC97BA3D08C41ACE6D98_6feed690-17e1-a928-d1c5-204f2faa570e" xlink:type="locator"/>
<link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_DD1B11FEC5C4CC97BA3D08C41ACE6D98_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax_DD1B11FEC5C4CC97BA3D08C41ACE6D98_6feed690-17e1-a928-d1c5-204f2faa570e" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax_DD1B11FEC5C4CC97BA3D08C41ACE6D98_aa99f772-8337-cbc2-0b89-25fbb3108271" xlink:type="locator"/>
<link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_DD1B11FEC5C4CC97BA3D08C41ACE6D98_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax_DD1B11FEC5C4CC97BA3D08C41ACE6D98_aa99f772-8337-cbc2-0b89-25fbb3108271" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ConsolidatedStatementsOfIncome" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:to="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a53f52a4-7a54-3283-f734-95683c76ebff" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a53f52a4-7a54-3283-f734-95683c76ebff" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_9894e895-7695-402a-9f03-08d60b7373b8" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a53f52a4-7a54-3283-f734-95683c76ebff" xlink:to="loc_us-gaap_OperatingIncomeLoss_9894e895-7695-402a-9f03-08d60b7373b8" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaap_GrossProfit_aaae347c-fa91-e2c3-dd05-1b008b13fd0c" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_9894e895-7695-402a-9f03-08d60b7373b8" xlink:to="loc_us-gaap_GrossProfit_aaae347c-fa91-e2c3-dd05-1b008b13fd0c" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_29ad42f4-24c5-90ea-4492-fdb757d66249" xlink:type="locator"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_9894e895-7695-402a-9f03-08d60b7373b8" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_29ad42f4-24c5-90ea-4492-fdb757d66249" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AssetImpairmentCharges" xlink:label="loc_us-gaap_AssetImpairmentCharges_922befcd-b5b1-7112-2dca-80fbde69a2fe" xlink:type="locator"/>
<link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_9894e895-7695-402a-9f03-08d60b7373b8" xlink:to="loc_us-gaap_AssetImpairmentCharges_922befcd-b5b1-7112-2dca-80fbde69a2fe" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_fca284fd-6d29-9ad5-2fe0-048c9053b712" xlink:type="locator"/>
<link:calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_9894e895-7695-402a-9f03-08d60b7373b8" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_fca284fd-6d29-9ad5-2fe0-048c9053b712" xlink:type="arc"/>
<link:loc xlink:href="hsy-20180525.xsd#hsy_RestructuringChargesBusinessRealignment" xlink:label="loc_hsy_RestructuringChargesBusinessRealignment_31db366d-eb5b-4cd3-1e01-bb305a2d2f4a" xlink:type="locator"/>
<link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_9894e895-7695-402a-9f03-08d60b7373b8" xlink:to="loc_hsy_RestructuringChargesBusinessRealignment_31db366d-eb5b-4cd3-1e01-bb305a2d2f4a" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_b45ea963-e439-fc81-a491-c6c695e6ceb3" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a53f52a4-7a54-3283-f734-95683c76ebff" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_b45ea963-e439-fc81-a491-c6c695e6ceb3" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_250c3b2f-7db5-7088-68cc-1dd831a2c2d7" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a53f52a4-7a54-3283-f734-95683c76ebff" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_250c3b2f-7db5-7088-68cc-1dd831a2c2d7" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:type="locator"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_baabbf0a-644b-708a-c310-1211f9af2775" xlink:type="locator"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_baabbf0a-644b-708a-c310-1211f9af2775" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ConsolidatedStatementsOfStockholdersEquity" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ConsolidatedStatementsOfStockholdersEquityParenthetical" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/DerivativeInstruments" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/DerivativeInstrumentsDerivativeInstrumentsNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/DerivativeInstrumentsScheduleOfClassificationOfDerivativeAssetsAndLiabilitiesWithinConsolidatedBalanceSheetsDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/DerivativeInstrumentsScheduleOfEffectOfDerivativeInstrumentsOnConsolidatedStatementsOfIncomeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/DerivativeInstrumentsTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/DocumentAndEntityInformation" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/EarningsPerShare" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/EarningsPerShareEarningsPerShareNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/EarningsPerShareTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/EquityAndNoncontrollingInterest" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/EquityAndNoncontrollingInterestEquityAndNoncontrollingInterestNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/EquityAndNoncontrollingInterestScheduleOfActivityRelatingToNoncontrollingInterestDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/EquityAndNoncontrollingInterestScheduleOfChangesInOutstandingSharesOfCommmonStockDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/EquityAndNoncontrollingInterestTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/FairValueMeasurementsFairValueMeasurements" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/FairValueMeasurementsFairValueMeasurementsNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/FairValueMeasurementsFairValueMeasurementsTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/FairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/FairValueMeasurementsScheduleOfFairValuesAndCarryingValuesOfLongTermDebtDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/GoodwillAndIntangibleAssets" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsGoodwillAndIntangibleAssetsNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsScheduleOfAmortizationExpenseForNextFiveYearsDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsScheduleOfChangesInCarryingValueOfGoodwillByReportableSegmentDetails" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_93a64cae-271a-5e6b-8c83-5adf9f941142" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GoodwillGross" xlink:label="loc_us-gaap_GoodwillGross_f8468382-b91b-4f7a-57af-96a105896e89" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Goodwill_93a64cae-271a-5e6b-8c83-5adf9f941142" xlink:to="loc_us-gaap_GoodwillGross_f8468382-b91b-4f7a-57af-96a105896e89" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GoodwillImpairedAccumulatedImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_e0e68795-51b1-5a3b-8be1-d04779347384" xlink:type="locator"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Goodwill_93a64cae-271a-5e6b-8c83-5adf9f941142" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_e0e68795-51b1-5a3b-8be1-d04779347384" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsScheduleOfGrossCarryingAmountAndAccumulatedAmortizationForEachMajorClassOfIntangibleAssetDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/IncomeTaxes" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/IncomeTaxesIncomeTaxesNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/IncomeTaxesScheduleOfComponentsOfIncomeTaxExpenseBenefitDetails" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d2250640-c0ab-3b70-41b7-136d9a4aad78" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d2250640-c0ab-3b70-41b7-136d9a4aad78" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CurrentFederalTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_36ba223a-0466-98b6-2d31-f243492419f9" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d2250640-c0ab-3b70-41b7-136d9a4aad78" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_36ba223a-0466-98b6-2d31-f243492419f9" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_10028fc1-eee3-03f5-6f20-ff5d85e3c0b2" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d2250640-c0ab-3b70-41b7-136d9a4aad78" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_10028fc1-eee3-03f5-6f20-ff5d85e3c0b2" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CurrentForeignTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_7d48046d-7441-0899-53b0-aaa1e573540a" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d2250640-c0ab-3b70-41b7-136d9a4aad78" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_7d48046d-7441-0899-53b0-aaa1e573540a" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_f75d01b7-d271-b07d-c4a7-6ae60293303d" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_f75d01b7-d271-b07d-c4a7-6ae60293303d" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_15bb8413-7c16-05ff-0f24-330007bd87a4" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_f75d01b7-d271-b07d-c4a7-6ae60293303d" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_15bb8413-7c16-05ff-0f24-330007bd87a4" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_40691c72-4a6d-af64-c37e-f5abe38c6165" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_f75d01b7-d271-b07d-c4a7-6ae60293303d" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_40691c72-4a6d-af64-c37e-f5abe38c6165" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_67cd26b3-6ceb-499c-0dd8-da28cd1ddfc3" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_f75d01b7-d271-b07d-c4a7-6ae60293303d" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_67cd26b3-6ceb-499c-0dd8-da28cd1ddfc3" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/IncomeTaxesScheduleOfDeferredTaxAssetAndLiabilitiesDetails" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_b361a033-37cf-a2bc-6e1f-0297b90aa5a9" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNetNoncurrent" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNetNoncurrent_79b86299-04f6-ff11-6b66-c6ef1f697685" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_b361a033-37cf-a2bc-6e1f-0297b90aa5a9" xlink:to="loc_us-gaap_DeferredTaxAssetsLiabilitiesNetNoncurrent_79b86299-04f6-ff11-6b66-c6ef1f697685" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxLiabilitiesNoncurrent" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesNoncurrent_314eb579-3ee1-408c-39f2-e62f2f37befc" xlink:type="locator"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_b361a033-37cf-a2bc-6e1f-0297b90aa5a9" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesNoncurrent_314eb579-3ee1-408c-39f2-e62f2f37befc" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxLiabilities" xlink:label="loc_us-gaap_DeferredTaxLiabilities_644ceb1c-07ef-6a89-f014-9d7b5dfbc918" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsNet" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_d74724c2-178d-7f3f-8e86-5f5ba690672c" xlink:type="locator"/>
<link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_644ceb1c-07ef-6a89-f014-9d7b5dfbc918" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_d74724c2-178d-7f3f-8e86-5f5ba690672c" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsGross" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_d74724c2-178d-7f3f-8e86-5f5ba690672c" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPostretirementBenefits" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPostretirementBenefits_c1ab7dd9-2f1e-9ca4-0c67-23d8cf29dd32" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPostretirementBenefits_c1ab7dd9-2f1e-9ca4-0c67-23d8cf29dd32" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsOther" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsOther_15879a4f-8e9c-9b96-ebf4-a2ce569ab390" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsOther_15879a4f-8e9c-9b96-ebf4-a2ce569ab390" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_f7e9e6da-5d57-5f97-5d33-52f319506ef0" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_f7e9e6da-5d57-5f97-5d33-52f319506ef0" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsDerivativeInstruments" xlink:label="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_9eb5b688-03ee-a9e0-4a88-d0be171d4af0" xlink:type="locator"/>
<link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_9eb5b688-03ee-a9e0-4a88-d0be171d4af0" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions_0032e873-a1e0-4802-7721-5e2bde17b572" xlink:type="locator"/>
<link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions_0032e873-a1e0-4802-7721-5e2bde17b572" xlink:type="arc"/>
<link:loc xlink:href="hsy-20180525.xsd#hsy_DeferredTaxAssetLeasingArrangements" xlink:label="loc_hsy_DeferredTaxAssetLeasingArrangements_709d3be6-879f-834a-02d0-bb305c21f0cb" xlink:type="locator"/>
<link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_hsy_DeferredTaxAssetLeasingArrangements_709d3be6-879f-834a-02d0-bb305c21f0cb" xlink:type="arc"/>
<link:loc xlink:href="hsy-20180525.xsd#hsy_DeferredTaxAssetTaxDeferredExpenseAccruedTradePromotionReserves" xlink:label="loc_hsy_DeferredTaxAssetTaxDeferredExpenseAccruedTradePromotionReserves_ab93d2fd-8ee4-2746-0fc5-bb305bd365f1" xlink:type="locator"/>
<link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_hsy_DeferredTaxAssetTaxDeferredExpenseAccruedTradePromotionReserves_ab93d2fd-8ee4-2746-0fc5-bb305bd365f1" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_3541201a-a025-b00d-aec1-2cb167bdef44" xlink:type="locator"/>
<link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_3541201a-a025-b00d-aec1-2cb167bdef44" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsCapitalLossCarryforwards" xlink:label="loc_us-gaap_DeferredTaxAssetsCapitalLossCarryforwards_48b72f02-1eed-1aa7-2094-cedc154da1ea" xlink:type="locator"/>
<link:calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsCapitalLossCarryforwards_48b72f02-1eed-1aa7-2094-cedc154da1ea" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsOther" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_91623f44-5f42-408a-f7b7-7a4698afab83" xlink:type="locator"/>
<link:calculationArc order="10" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_91623f44-5f42-408a-f7b7-7a4698afab83" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_46929883-d93f-69b0-5ded-4c800feeb57f" xlink:type="locator"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_d74724c2-178d-7f3f-8e86-5f5ba690672c" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_46929883-d93f-69b0-5ded-4c800feeb57f" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_644ceb1c-07ef-6a89-f014-9d7b5dfbc918" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_dde5eeca-2b71-60e2-a05c-fb2f2f5703af" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_dde5eeca-2b71-60e2-a05c-fb2f2f5703af" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_d1de4f5a-e70f-c355-7179-89a9064c7b88" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_d1de4f5a-e70f-c355-7179-89a9064c7b88" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedInventoryCosts" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedInventoryCosts_1239f1c4-174d-6292-4f51-9b50c5882dd6" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedInventoryCosts_1239f1c4-174d-6292-4f51-9b50c5882dd6" xlink:type="arc"/>
<link:loc xlink:href="hsy-20180525.xsd#hsy_DeferredTaxLiabilitiesDeferredExpenseCompensationAndBenefitsPensions" xlink:label="loc_hsy_DeferredTaxLiabilitiesDeferredExpenseCompensationAndBenefitsPensions_8c632834-bf0c-0921-2636-bb305a5c99bc" xlink:type="locator"/>
<link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:to="loc_hsy_DeferredTaxLiabilitiesDeferredExpenseCompensationAndBenefitsPensions_8c632834-bf0c-0921-2636-bb305a5c99bc" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxLiabilitiesOther" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_40c7d4a7-f1a1-0c55-497e-f9a3bb09604c" xlink:type="locator"/>
<link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_40c7d4a7-f1a1-0c55-497e-f9a3bb09604c" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/IncomeTaxesScheduleOfDeferredTaxAssetAndLiabilitiesDetailsCalc2" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_39472F51CE20EA8DE64A08C417C3B437_b361a033-37cf-a2bc-6e1f-0297b90aa5a9" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_39472F51CE20EA8DE64A08C417C3B437_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:type="locator"/>
<link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_39472F51CE20EA8DE64A08C417C3B437_b361a033-37cf-a2bc-6e1f-0297b90aa5a9" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_39472F51CE20EA8DE64A08C417C3B437_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsNet" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_39472F51CE20EA8DE64A08C417C3B437_d74724c2-178d-7f3f-8e86-5f5ba690672c" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_39472F51CE20EA8DE64A08C417C3B437_b361a033-37cf-a2bc-6e1f-0297b90aa5a9" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_39472F51CE20EA8DE64A08C417C3B437_d74724c2-178d-7f3f-8e86-5f5ba690672c" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxLiabilities" xlink:label="loc_us-gaap_DeferredTaxLiabilities_39472F51CE20EA8DE64A08C417C3B437_644ceb1c-07ef-6a89-f014-9d7b5dfbc918" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNetNoncurrent" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNetNoncurrent_39472F51CE20EA8DE64A08C417C3B437_79b86299-04f6-ff11-6b66-c6ef1f697685" xlink:type="locator"/>
<link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_39472F51CE20EA8DE64A08C417C3B437_644ceb1c-07ef-6a89-f014-9d7b5dfbc918" xlink:to="loc_us-gaap_DeferredTaxAssetsLiabilitiesNetNoncurrent_39472F51CE20EA8DE64A08C417C3B437_79b86299-04f6-ff11-6b66-c6ef1f697685" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxLiabilitiesNoncurrent" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesNoncurrent_39472F51CE20EA8DE64A08C417C3B437_314eb579-3ee1-408c-39f2-e62f2f37befc" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_39472F51CE20EA8DE64A08C417C3B437_644ceb1c-07ef-6a89-f014-9d7b5dfbc918" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesNoncurrent_39472F51CE20EA8DE64A08C417C3B437_314eb579-3ee1-408c-39f2-e62f2f37befc" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/IncomeTaxesScheduleOfEffectiveIncomeTaxRateReconciliationDetails" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_29919d14-72a3-6197-982a-3a6269f21038" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_29919d14-72a3-6197-982a-3a6269f21038" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_c48cf597-7f94-3186-bb2a-448703ee500e" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_c48cf597-7f94-3186-bb2a-448703ee500e" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationDeductionsQualifiedProductionActivities" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationDeductionsQualifiedProductionActivities_d0e652ba-d838-e155-ce67-de32108bcc60" xlink:type="locator"/>
<link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationDeductionsQualifiedProductionActivities_d0e652ba-d838-e155-ce67-de32108bcc60" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseRestructuringCharges" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseRestructuringCharges_a4caa1ae-f0c6-afaa-9200-a4405b1c7563" xlink:type="locator"/>
<link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseRestructuringCharges_a4caa1ae-f0c6-afaa-9200-a4405b1c7563" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_744a85ef-de6a-dc1b-540c-cd37e4ee0e8e" xlink:type="locator"/>
<link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_744a85ef-de6a-dc1b-540c-cd37e4ee0e8e" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent_da65932b-cd40-eea6-a739-ea25b8caa8a5" xlink:type="locator"/>
<link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent_da65932b-cd40-eea6-a739-ea25b8caa8a5" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_bd3fb4a2-dba4-9f41-2b9f-30441850eb67" xlink:type="locator"/>
<link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_bd3fb4a2-dba4-9f41-2b9f-30441850eb67" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxSettlementsDomestic" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxSettlementsDomestic_1e1669c2-0af8-1774-1ea9-4909eec19921" xlink:type="locator"/>
<link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxSettlementsDomestic_1e1669c2-0af8-1774-1ea9-4909eec19921" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/IncomeTaxesScheduleOfIncomeLossBeforeTaxesDetails" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a53f52a4-7a54-3283-f734-95683c76ebff" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_684e73bc-c774-15b7-cfc4-307e06892c2e" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a53f52a4-7a54-3283-f734-95683c76ebff" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_684e73bc-c774-15b7-cfc4-307e06892c2e" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_77aad584-eda7-6ab9-9bf4-262b9a6dd394" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a53f52a4-7a54-3283-f734-95683c76ebff" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_77aad584-eda7-6ab9-9bf4-262b9a6dd394" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/IncomeTaxesScheduleOfUnrecognizedTaxBenefitsRollForwardDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/IncomeTaxesTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/OtherIncomeExpenseNetOtherIncomeExpenseNet" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/OtherIncomeExpenseNetOtherIncomeExpenseNetTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/OtherIncomeExpenseNetScheduleOfOtherIncomeAndExpenseNetDetails" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_250c3b2f-7db5-7088-68cc-1dd831a2c2d7" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment" xlink:label="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_b7f82402-b3a2-860f-d06c-d5785f788d6e" xlink:type="locator"/>
<link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingIncomeExpense_250c3b2f-7db5-7088-68cc-1dd831a2c2d7" xlink:to="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_b7f82402-b3a2-860f-d06c-d5785f788d6e" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GainLossOnDispositionOfIntangibleAssets" xlink:label="loc_us-gaap_GainLossOnDispositionOfIntangibleAssets_a1de4b98-8e53-a8ff-9c23-9f152320731c" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingIncomeExpense_250c3b2f-7db5-7088-68cc-1dd831a2c2d7" xlink:to="loc_us-gaap_GainLossOnDispositionOfIntangibleAssets_a1de4b98-8e53-a8ff-9c23-9f152320731c" xlink:type="arc"/>
<link:loc xlink:href="hsy-20180525.xsd#hsy_OtherNonoperatingGainLoss" xlink:label="loc_hsy_OtherNonoperatingGainLoss_63abd71a-f922-ced8-3a71-bb305c0a226f" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingIncomeExpense_250c3b2f-7db5-7088-68cc-1dd831a2c2d7" xlink:to="loc_hsy_OtherNonoperatingGainLoss_63abd71a-f922-ced8-3a71-bb305c0a226f" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlans" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansPensionAndOtherPostRetirementBenefitPlansNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfAccumulatedBenefitObligationsInExcessOfPlanAssetsDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfAmountsExpectedToBeAmortizedFromAociIntoNetPeriodicBenefitDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfComponentsOfNetPeriodicBenefitCostDetails" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AmountRecognizedInNetPeriodicBenefitCostAndOtherComprehensiveIncomeLossBeforeTax" xlink:label="loc_us-gaap_AmountRecognizedInNetPeriodicBenefitCostAndOtherComprehensiveIncomeLossBeforeTax_2a17632d-42c8-b50f-6293-0279e8dbd806" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_bae25320-9d69-b27b-4684-0b60368d617f" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AmountRecognizedInNetPeriodicBenefitCostAndOtherComprehensiveIncomeLossBeforeTax_2a17632d-42c8-b50f-6293-0279e8dbd806" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_bae25320-9d69-b27b-4684-0b60368d617f" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_89ad3af5-a7a9-a0b6-3ed0-1824210c7a90" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_bae25320-9d69-b27b-4684-0b60368d617f" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_89ad3af5-a7a9-a0b6-3ed0-1824210c7a90" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_50406d00-3746-2e05-3a50-4b2bf529ff14" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_bae25320-9d69-b27b-4684-0b60368d617f" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_50406d00-3746-2e05-3a50-4b2bf529ff14" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_053c4475-6836-cf00-1abe-b15f58110eab" xlink:type="locator"/>
<link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_bae25320-9d69-b27b-4684-0b60368d617f" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_053c4475-6836-cf00-1abe-b15f58110eab" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_ab621a8a-0d01-618c-dbe1-c25fa3bace61" xlink:type="locator"/>
<link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_bae25320-9d69-b27b-4684-0b60368d617f" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_ab621a8a-0d01-618c-dbe1-c25fa3bace61" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_b2e93b1c-a313-bd95-39dd-1f9d9938b2e9" xlink:type="locator"/>
<link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_bae25320-9d69-b27b-4684-0b60368d617f" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_b2e93b1c-a313-bd95-39dd-1f9d9938b2e9" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToCurtailments" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToCurtailments_a2b01ebf-3bb0-69b6-bb1a-f9cc09a597fb" xlink:type="locator"/>
<link:calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_bae25320-9d69-b27b-4684-0b60368d617f" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToCurtailments_a2b01ebf-3bb0-69b6-bb1a-f9cc09a597fb" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_747869e7-4e1c-6de6-fa9c-d8cc9c90ed9d" xlink:type="locator"/>
<link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_bae25320-9d69-b27b-4684-0b60368d617f" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_747869e7-4e1c-6de6-fa9c-d8cc9c90ed9d" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_96bbbb0b-0629-623e-a770-76026cde8c6f" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AmountRecognizedInNetPeriodicBenefitCostAndOtherComprehensiveIncomeLossBeforeTax_2a17632d-42c8-b50f-6293-0279e8dbd806" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_96bbbb0b-0629-623e-a770-76026cde8c6f" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax" xlink:label="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax_ce709758-44fa-3829-d9ec-d3fbd4cf49f2" xlink:type="locator"/>
<link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_96bbbb0b-0629-623e-a770-76026cde8c6f" xlink:to="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax_ce709758-44fa-3829-d9ec-d3fbd4cf49f2" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax" xlink:label="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax_1284142c-4c9d-c050-5cf9-a9e4bc79fd86" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_96bbbb0b-0629-623e-a770-76026cde8c6f" xlink:to="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax_1284142c-4c9d-c050-5cf9-a9e4bc79fd86" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfDefinedBenefitObligationsPlanAssetsAndFundedStatusDetails" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet" xlink:label="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet_2ac997ec-1500-de75-18d5-2d7e282edf5a" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent" xlink:label="loc_us-gaap_DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent_6856ee03-da61-f933-c0ca-753825e64ebf" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet_2ac997ec-1500-de75-18d5-2d7e282edf5a" xlink:to="loc_us-gaap_DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent_6856ee03-da61-f933-c0ca-753825e64ebf" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_d976d099-c821-e214-329b-89c6249f4dee" xlink:type="locator"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet_2ac997ec-1500-de75-18d5-2d7e282edf5a" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_d976d099-c821-e214-329b-89c6249f4dee" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_9a02138f-e52f-25fa-014e-0405ac9ddb27" xlink:type="locator"/>
<link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet_2ac997ec-1500-de75-18d5-2d7e282edf5a" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_9a02138f-e52f-25fa-014e-0405ac9ddb27" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan" xlink:label="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_74863991-8c55-6a17-996a-9c2a561db4af" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligation" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_71a21154-406e-18d7-9aeb-e2619e08dbf7" xlink:type="locator"/>
<link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_74863991-8c55-6a17-996a-9c2a561db4af" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_71a21154-406e-18d7-9aeb-e2619e08dbf7" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_c9d76ff9-149e-f423-016d-b55c9b74c1b3" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_74863991-8c55-6a17-996a-9c2a561db4af" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_c9d76ff9-149e-f423-016d-b55c9b74c1b3" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_ac65944e-d0a3-7081-a0ad-366dc25783e8" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax_416e790e-c835-9796-e8b3-e06c9ff5d530" xlink:type="locator"/>
<link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_ac65944e-d0a3-7081-a0ad-366dc25783e8" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax_416e790e-c835-9796-e8b3-e06c9ff5d530" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditAfterTax" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditAfterTax_578a7f9f-b1f2-0512-a679-4397bbeeb1cc" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_ac65944e-d0a3-7081-a0ad-366dc25783e8" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditAfterTax_578a7f9f-b1f2-0512-a679-4397bbeeb1cc" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfEffectOfOnePercentChangeInAssumedHealthCareTrendRatesDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfExpectedBenefitPaymentsToBePaidDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfPensionPlanAssetsWithinFairValueHierarchyDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfPlanAssetsAcrossAssetClassesDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfWeightedAverageAssumptionsUsedInComputingBenefitObligationsDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfWeightedAverageAssumptionsUsedInComputingNetPeriodicBenefitCostDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/QuarterlyDataTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/QuarterlyDataUnaudited" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ScheduleIiValuationAndQualifyingAccounts" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ScheduleIiValuationAndQualifyingAccountsDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ScheduleOfBasicAndDilutedEarningsPerShareDetails" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_3105ed98-742c-41be-f999-1f195bf0a924" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_4073231d-1fe4-ab7d-9536-6edb4ac27ec5" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_3105ed98-742c-41be-f999-1f195bf0a924" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_4073231d-1fe4-ab7d-9536-6edb4ac27ec5" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Dividends" xlink:label="loc_us-gaap_Dividends_fa04dbe2-9b3c-0cef-640c-862761bbbd7b" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_4073231d-1fe4-ab7d-9536-6edb4ac27ec5" xlink:to="loc_us-gaap_Dividends_fa04dbe2-9b3c-0cef-640c-862761bbbd7b" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_f2848904-ead3-76a0-9187-ba604c43301c" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_4073231d-1fe4-ab7d-9536-6edb4ac27ec5" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_f2848904-ead3-76a0-9187-ba604c43301c" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DistributedEarnings" xlink:label="loc_us-gaap_DistributedEarnings_c37e9e99-a760-1012-43fc-361c1da38c17" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_3105ed98-742c-41be-f999-1f195bf0a924" xlink:to="loc_us-gaap_DistributedEarnings_c37e9e99-a760-1012-43fc-361c1da38c17" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_d3f78da4-19db-929a-6aac-efc5b007a9e1" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_3105ed98-742c-41be-f999-1f195bf0a924" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_d3f78da4-19db-929a-6aac-efc5b007a9e1" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ScheduleOfDepreciationAndAmortizationExpenseIncludedWithinSegmentIncomeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ScheduleOfNetSalesAndEarningsBySegmentDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ScheduleOfQuarterlyFinancialInformationDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ScheduleOfSegmentInformationByGeographyDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ScheduleOfSupplementalBalanceSheetInformationDetails" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_f234998c-5e05-09d0-d53e-5c44423c97c0" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherPostretirementDefinedBenefitPlanLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherPostretirementDefinedBenefitPlanLiabilitiesNoncurrent_7befc5cf-839d-5f10-9adb-3081595dab8a" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_f234998c-5e05-09d0-d53e-5c44423c97c0" xlink:to="loc_us-gaap_OtherPostretirementDefinedBenefitPlanLiabilitiesNoncurrent_7befc5cf-839d-5f10-9adb-3081595dab8a" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPensionPlanLiabilitiesNoncurrent" xlink:label="loc_us-gaap_DefinedBenefitPensionPlanLiabilitiesNoncurrent_047fbbde-4aa8-869d-d78f-3a4cdb9536c5" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_f234998c-5e05-09d0-d53e-5c44423c97c0" xlink:to="loc_us-gaap_DefinedBenefitPensionPlanLiabilitiesNoncurrent_047fbbde-4aa8-869d-d78f-3a4cdb9536c5" xlink:type="arc"/>
<link:loc xlink:href="hsy-20180525.xsd#hsy_OtherMiscellaneousLiabilitiesNonCurrent" xlink:label="loc_hsy_OtherMiscellaneousLiabilitiesNonCurrent_52b16d1b-fabe-7106-272e-bb305af58c5d" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_f234998c-5e05-09d0-d53e-5c44423c97c0" xlink:to="loc_hsy_OtherMiscellaneousLiabilitiesNonCurrent_52b16d1b-fabe-7106-272e-bb305af58c5d" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_1944a381-5c4e-ce3c-9111-13ccd1c639db" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_fe5a8e8b-5934-3dc5-9dae-7d40983185cf" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_1944a381-5c4e-ce3c-9111-13ccd1c639db" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_fe5a8e8b-5934-3dc5-9dae-7d40983185cf" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Land" xlink:label="loc_us-gaap_Land_a51e8738-e58c-e4f4-3ef7-22747a152cee" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_fe5a8e8b-5934-3dc5-9dae-7d40983185cf" xlink:to="loc_us-gaap_Land_a51e8738-e58c-e4f4-3ef7-22747a152cee" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BuildingsAndImprovementsGross" xlink:label="loc_us-gaap_BuildingsAndImprovementsGross_bfe00325-30ef-aa76-d96c-ca247f562c4f" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_fe5a8e8b-5934-3dc5-9dae-7d40983185cf" xlink:to="loc_us-gaap_BuildingsAndImprovementsGross_bfe00325-30ef-aa76-d96c-ca247f562c4f" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MachineryAndEquipmentGross" xlink:label="loc_us-gaap_MachineryAndEquipmentGross_6b39d457-fc60-0fcb-fae5-ecc070d021fb" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_fe5a8e8b-5934-3dc5-9dae-7d40983185cf" xlink:to="loc_us-gaap_MachineryAndEquipmentGross_6b39d457-fc60-0fcb-fae5-ecc070d021fb" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConstructionInProgressGross" xlink:label="loc_us-gaap_ConstructionInProgressGross_594f8c62-c8c5-bd85-818c-71da6f0408d7" xlink:type="locator"/>
<link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_fe5a8e8b-5934-3dc5-9dae-7d40983185cf" xlink:to="loc_us-gaap_ConstructionInProgressGross_594f8c62-c8c5-bd85-818c-71da6f0408d7" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_5551841b-83e0-4644-fca8-d4027d932c0a" xlink:type="locator"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_1944a381-5c4e-ce3c-9111-13ccd1c639db" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_5551841b-83e0-4644-fca8-d4027d932c0a" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_7eab44cf-1ea1-ca2a-420f-21f7b5343fc3" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FIFOInventoryAmount" xlink:label="loc_us-gaap_FIFOInventoryAmount_98727723-a445-530d-a473-9073ca21f52f" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_7eab44cf-1ea1-ca2a-420f-21f7b5343fc3" xlink:to="loc_us-gaap_FIFOInventoryAmount_98727723-a445-530d-a473-9073ca21f52f" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryRawMaterialsNetOfReserves" xlink:label="loc_us-gaap_InventoryRawMaterialsNetOfReserves_d8866e11-7330-6a9a-9ba0-56d88707d8ec" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FIFOInventoryAmount_98727723-a445-530d-a473-9073ca21f52f" xlink:to="loc_us-gaap_InventoryRawMaterialsNetOfReserves_d8866e11-7330-6a9a-9ba0-56d88707d8ec" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryWorkInProcessNetOfReserves" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_a3451b87-a72a-9fff-128b-969b95aecb3a" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FIFOInventoryAmount_98727723-a445-530d-a473-9073ca21f52f" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_a3451b87-a72a-9fff-128b-969b95aecb3a" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryFinishedGoodsNetOfReserves" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_b077ba6e-d590-fd28-6cc4-ab52e924ed70" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FIFOInventoryAmount_98727723-a445-530d-a473-9073ca21f52f" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_b077ba6e-d590-fd28-6cc4-ab52e924ed70" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryLIFOReserve" xlink:label="loc_us-gaap_InventoryLIFOReserve_2e9ac4e1-8a9c-fb68-e4f8-98416e4caf61" xlink:type="locator"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_7eab44cf-1ea1-ca2a-420f-21f7b5343fc3" xlink:to="loc_us-gaap_InventoryLIFOReserve_2e9ac4e1-8a9c-fb68-e4f8-98416e4caf61" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_04f0961a-a0bc-88cf-6658-3f950da4a458" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax_c4b01a56-17cc-50a6-4d4b-5246d14da9dc" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_04f0961a-a0bc-88cf-6658-3f950da4a458" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax_c4b01a56-17cc-50a6-4d4b-5246d14da9dc" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_ac65944e-d0a3-7081-a0ad-366dc25783e8" xlink:type="locator"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_04f0961a-a0bc-88cf-6658-3f950da4a458" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_ac65944e-d0a3-7081-a0ad-366dc25783e8" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossCumulativeChangesInNetGainLossFromCashFlowHedgesEffectNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossCumulativeChangesInNetGainLossFromCashFlowHedgesEffectNetOfTax_e29c472a-465e-2c89-1ec3-faa641b16e0c" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_04f0961a-a0bc-88cf-6658-3f950da4a458" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossCumulativeChangesInNetGainLossFromCashFlowHedgesEffectNetOfTax_e29c472a-465e-2c89-1ec3-faa641b16e0c" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_9b27fab9-d497-627b-4cfb-6b585220b978" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CapitalizedComputerSoftwareNet" xlink:label="loc_us-gaap_CapitalizedComputerSoftwareNet_fa81d3f1-ddb2-7c66-86fe-1d99fa10e2cc" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_9b27fab9-d497-627b-4cfb-6b585220b978" xlink:to="loc_us-gaap_CapitalizedComputerSoftwareNet_fa81d3f1-ddb2-7c66-86fe-1d99fa10e2cc" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxesReceivableNoncurrent" xlink:label="loc_us-gaap_IncomeTaxesReceivableNoncurrent_9017de65-1623-bf8b-3170-26eef196d886" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_9b27fab9-d497-627b-4cfb-6b585220b978" xlink:to="loc_us-gaap_IncomeTaxesReceivableNoncurrent_9017de65-1623-bf8b-3170-26eef196d886" xlink:type="arc"/>
<link:loc xlink:href="hsy-20180525.xsd#hsy_OtherMiscellaneousAssetsNonCurrent" xlink:label="loc_hsy_OtherMiscellaneousAssetsNonCurrent_216b777d-3d8a-064e-4e28-bb305b2751c5" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_9b27fab9-d497-627b-4cfb-6b585220b978" xlink:to="loc_hsy_OtherMiscellaneousAssetsNonCurrent_216b777d-3d8a-064e-4e28-bb305b2751c5" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_3fe8f96b-142b-97b1-3b39-b8d22cd10e98" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_cf9ed09f-3dd1-4a4b-d3fc-3b0db18c1b40" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_3fe8f96b-142b-97b1-3b39-b8d22cd10e98" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_cf9ed09f-3dd1-4a4b-d3fc-3b0db18c1b40" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccruedMarketingCostsCurrent" xlink:label="loc_us-gaap_AccruedMarketingCostsCurrent_3fe99a94-b13e-ac05-b5f4-b5873556cdd5" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_3fe8f96b-142b-97b1-3b39-b8d22cd10e98" xlink:to="loc_us-gaap_AccruedMarketingCostsCurrent_3fe99a94-b13e-ac05-b5f4-b5873556cdd5" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherAccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_00b000cf-7f1d-4891-7244-daf9f6335db0" xlink:type="locator"/>
<link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_3fe8f96b-142b-97b1-3b39-b8d22cd10e98" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_00b000cf-7f1d-4891-7244-daf9f6335db0" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SegmentInformation" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SegmentInformationNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SegmentInformationScheduleOfUnallocatedMarkToMarketGainsLossesOnCommodityDerivativesDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SegmentInformationTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebt" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebtLongTermDebtInterestRatesDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebtLongTermDebtNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebtScheduleOfLongTermDebtInstrumentsDetails" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_f61bf97e-c3a5-ba72-7591-eba8e7bb6a44" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:to="loc_us-gaap_LongTermDebtCurrent_f61bf97e-c3a5-ba72-7591-eba8e7bb6a44" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_822b66ff-44a1-e66b-5e0c-09356970a23d" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_822b66ff-44a1-e66b-5e0c-09356970a23d" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebtScheduleOfMaturitiesOfLongTermDebtDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebtScheduleOfNetInterestExpenseDetails" xlink:type="extended">
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_b45ea963-e439-fc81-a491-c6c695e6ceb3" xlink:type="locator"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_7c9599ab-2a77-022c-c720-63fecff6a62c" xlink:type="locator"/>
<link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_b45ea963-e439-fc81-a491-c6c695e6ceb3" xlink:to="loc_us-gaap_InterestExpense_7c9599ab-2a77-022c-c720-63fecff6a62c" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestExpenseDebt" xlink:label="loc_us-gaap_InterestExpenseDebt_1ba9bb67-398f-5b40-d538-c6d5b7e79933" xlink:type="locator"/>
<link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_7c9599ab-2a77-022c-c720-63fecff6a62c" xlink:to="loc_us-gaap_InterestExpenseDebt_1ba9bb67-398f-5b40-d538-c6d5b7e79933" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestCostsCapitalizedAdjustment" xlink:label="loc_us-gaap_InterestCostsCapitalizedAdjustment_cd2cd128-0f86-75be-3787-7d9b2da4e0c2" xlink:type="locator"/>
<link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_7c9599ab-2a77-022c-c720-63fecff6a62c" xlink:to="loc_us-gaap_InterestCostsCapitalizedAdjustment_cd2cd128-0f86-75be-3787-7d9b2da4e0c2" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_3db65903-3171-d63c-a688-532ba00b8108" xlink:type="locator"/>
<link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_7c9599ab-2a77-022c-c720-63fecff6a62c" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_3db65903-3171-d63c-a688-532ba00b8108" xlink:type="arc"/>
<link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InvestmentIncomeInterest" xlink:label="loc_us-gaap_InvestmentIncomeInterest_27459a92-428a-e415-bdb1-176ed2662e11" xlink:type="locator"/>
<link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_b45ea963-e439-fc81-a491-c6c695e6ceb3" xlink:to="loc_us-gaap_InvestmentIncomeInterest_27459a92-428a-e415-bdb1-176ed2662e11" xlink:type="arc"/>
</link:calculationLink>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebtShortTermDebtNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebtTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/StockCompensationPlans" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansScheduleOfCompensationExpenseAndIncomeTaxBenefitsForStockBasedCompensationProgramsDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansScheduleOfFairValueWeightedAverageAssumptionsDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansScheduleOfPsusAndRsusActivityDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansScheduleOfPsusAndRsusFairValueWeightedAverageAssumptionsDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansScheduleOfStockOptionActivityDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansScheduleOfStockOptionInformationByExercisePriceRangeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansStockCompensationPlansNarrativeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SubsequentEventsSubsequentEvents" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SubsequentEventsSubsequentEventsDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SubsequentEventsSubsequentEventsTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPolicies" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesAccountsReceivableTradeDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesComputerSoftwareDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesDescriptionOfBusinessAndBasisOfPresentationDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesGoodwillAndOtherIntangibleAssetsDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesInventoriesDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesRecentAccountingPronouncementsDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesSellingMarketingAndAdministrativeExpenseDetails" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SupplementalBalanceSheetInformation" xlink:type="extended"/>
<link:calculationLink xlink:role="http://www.hersheys.com/role/SupplementalBalanceSheetInformationTables" xlink:type="extended"/>
</link:linkbase>

Top
Filing Submission 0000047111-18-000029   –   Alternative Formats (Word / Rich Text, HTML, Plain Text, et al.)

Copyright © 2024 Fran Finnegan & Company LLC – All Rights Reserved.
AboutPrivacyRedactionsHelp — Mon., Apr. 29, 9:19:14.1pm ET