Skip to content
KStart free
AI InfrastructureDefenseQuantumAll studies →

HSY US Equity

Hershey CoConsumer Staples · Sugar & Confectionery Products · CIK 47111 · FY ends Dec 31
$186.46
-1.85 (-0.98%)
USD · as of 2026-08-21 · marketstack

HSY · 10-K · period ended 2023-12-31

← all HSY documents
filed 2024-02-20 · EDGAR original ↗

Our rendering of the filing — original pagination and typography are not reproduced, and tables are reduced to their short label cells (the figures live on FA). Nothing is summarized: every line below is the filing's own text.

blocks 331930 of 1,540312k characters rendered

Item 7. MANAGEMENT’S DISCUSSION AND ANALYSIS OF FINANCIAL CONDITION AND RESULTS OF OPERATIONS

This Management’s Discussion and Analysis (“MD&A”) is intended to provide an understanding of Hershey’s financial condition, results of operations and cash flows by focusing on changes in certain key measures from year to year. The MD&A should be read in conjunction with our Consolidated Financial Statements and accompanying Notes included in Item 8 of this Annual Report on Form 10-K. This discussion contains forward-looking statements that involve risks and uncertainties. Our actual results could differ materially from those anticipated in these forward-looking statements as a result of various factors, including those discussed elsewhere in this Annual Report on Form 10-K, particularly in Item 1A. “Risk Factors.”

The MD&A is organized in the following sections:

•Business Model and Growth Strategy

•Overview

•Trends Affecting Our Business

•Consolidated Results of Operations

•Segment Results

•Liquidity and Capital Resources

•Critical Accounting Policies and Estimates

BUSINESS MODEL AND GROWTH STRATEGY

We are the largest producer of quality chocolate in North America, a leading snack maker in the United States and a global leader in chocolate and non-chocolate confectionery. We report our operations through three segments: (i) North America Confectionery, (ii) North America Salty Snacks and (iii) International, as discussed in Note 13 to the Consolidated Financial Statements.

Our vision is to be a leading snacking powerhouse. We aspire to be a leader in meeting consumers’ evolving snacking needs while strengthening the capabilities that drive our growth. We are focused on four strategic imperatives to ensure the Company’s success now and in the future:

•Drive Core Confection Business and Broaden Participation in Snacking. We continue to be the undisputed leader in U.S. confection by taking actions to deepen our consumer connections and utilize our beloved brands to deliver meaningful innovation, while also diversifying our portfolio to capture profitable and incremental growth across the broader snacking continuum.

◦Our products frequently play an important role in special moments among family and friends. Seasons are an important part of our business model and for consumers, as they are highly anticipated, cherished times, centered around traditions. For us, it’s an opportunity for our brands to be part of many connections during the year when family and friends gather.

◦Innovation is an important lever in this variety-seeking category and we are leveraging work from our proprietary demand landscape analytical tool to shape our future innovation and make it more impactful. We are becoming more disciplined in our focus on platform innovation, which should enable sustainable growth over time and significant extensions to our core.

◦To expand our breadth in snacking and become a leading snacking powerhouse, we are focused on continuing to expand the boundaries of our core confection brands to capture new snacking occasions and increasing our exposure into new snack categories through acquisitions. Our expansion into snacking was fueled by the acquisitions of Dot’s and Pretzels in December 2021 and the acquisition of Weaver in 2023, which are included in our North America Salty Snacks segment.

•Deliver Profitable International Growth. We are focused on ensuring that we efficiently allocate our resources to the areas with the highest potential for profitable growth. We have reset our international investment strategy, while holding fast to our belief that our targeted emerging market strategy will deliver long-term, profitable growth. The uncertain macroeconomic environment in many of these markets is expected to continue and we aim to ensure our investments in these international markets are appropriate relative to the size of the opportunity.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 22

•Expand Competitive Advantage through Differentiated Capabilities. In order to generate actionable insights, we must acquire, integrate, access and utilize vast sources of the right data in an effective manner. We are working to leverage our advanced data and analytical techniques to gain a deep understanding of our consumers, our customers, our shoppers, our end-to-end supply chain, our retail environment and key economic drivers at both a macro and precision level, including digital transformation and new media models. In addition, we are in the process of transforming our supply chain capabilities and enterprise resource planning system, which will enable employees to work more efficiently and effectively.

•Responsibly Manage Our Operations to Ensure the Long-Term Sustainability of Our Business, Our Planet and Our People. We are a purpose-driven company and for more than a century, our iconic brands have been built on a foundation of community investment and connections between people around the world. We could not have achieved this without our remarkable employees who make our purpose a reality. We believe our long-standing values make our Company a special place to work.

◦We believe our employees are among our most important resources and are critical to our continued success. We utilize continuous listening surveys that are distributed throughout the year to all employees globally to hear their thoughts on the Company’s direction and their place in it. These continuous touchpoints allow for real-time feedback and action from the Company. These surveys are further supplemented with quarterly and informative enterprise and team town halls, which, in conjunction with the continuous listening surveys, generate stronger employee engagement with the Company’s strategy, initiatives and leadership.

◦Our diverse and inclusive culture makes the difference across all areas of the business. Our gender representation includes women occupying many of the top positions in the Company, including Chief Executive Officer and Chairman of the Board, Chief Accounting Officer and President, Salty Snacks, and approximately 50% representation across the Company. In 2023, we maintained fair and equitable pay achievements, including 1:1 aggregate people of color pay equity (2021) and 1:1 aggregate gender pay (2020) for salaried employees in the United States.

◦We continue to make progress on our ESG priorities and continue to elevate these ESG initiatives for a greater global impact. Through our focus on sustainability and social impact across our value chain, we continue to improve and focus on the lives of cocoa farmers and cocoa communities, the environmental priorities of climate change and the role of packaging in our business, responsibly and sustainably sourcing the inputs to our products and increasing investments in human rights and diversity initiatives and growing diverse representation across the organization.

OVERVIEW

Hershey is a global confectionery leader known for making more moments of goodness through chocolate, sweets, mints and other great tasting snacks. We are the largest producer of quality chocolate in North America, a leading snack maker in the United States and a global leader in chocolate and non-chocolate confectionery. We market, sell and distribute our products under more than 90 brand names in approximately 80 countries worldwide.

Our principal product offerings include chocolate and non-chocolate confectionery products; gum and mint refreshment products and protein bars; pantry items, such as baking ingredients, toppings and beverages; and snack items such as spreads, bars, and snack bites and mixes, popcorn and pretzels.

Business Acquisitions and Divestitures

On May 31, 2023, we completed the acquisition of certain assets that provide additional manufacturing capacity from Weaver Popcorn Manufacturing, Inc. (“Weaver”), a leader in the production and co-packing of microwave popcorn and ready-to-eat popcorn, and former co-manufacturer of the Company’s SkinnyPop brand.

In December 2021, we completed the acquisition of Pretzels Inc. (“Pretzels”), previously a privately held company that manufactures and sells pretzels and other salty snacks for other branded products and private labels in the United States. Pretzels is an industry leader in the pretzel category with a product portfolio that includes filled, gluten free and seasoned pretzels, as well as extruded snacks that complements Hershey’s snacks portfolio. Based in Bluffton, Indiana, Pretzels operates three manufacturing locations in Indiana and Kansas. Pretzels provides Hershey with deep pretzel category and product expertise and the manufacturing capabilities to support brand growth and future pretzel

Table of Contents The Hershey Company | 2023 Form 10-K | Page 23

innovation. Additionally, we completed the acquisition of Dot’s Pretzels, LLC (“Dot’s”), previously a privately held company that produces and sells pretzels and other snack food products to retailers and distributors in the United States, with Dot’s Homestyle Pretzels snacks as its primary product, which complements Hershey’s snacks portfolio.

In June 2021, we completed the acquisition of Lily’s Sweets, LLC (“Lily’s”), previously a privately held company that sells a line of sugar-free and low-sugar confectionery foods to retailers and distributors in the United States and Canada. Lily’s products include dark and milk chocolate style bars, baking chips, peanut butter cups and other confection products that complement Hershey’s confectionery and confectionery-based portfolio.

In January 2021, we completed the divestiture of Lotte Shanghai Foods Co., Ltd. (“LSFC”), which was previously included within the International segment results in our consolidated financial statements. Total proceeds from the divestiture and the impact on our consolidated financial statements were immaterial.

TRENDS AFFECTING OUR BUSINESS

Throughout 2023, the rate of inflation has slowed; however, negative macroeconomic conditions and future outlook, including fears of a pending recession, have negatively impacted consumer behaviors. Net sales and net income increased during the year ended December 31, 2023; however, this was primarily driven by price increases on certain products across our portfolio. Additionally, we continued to experience corresponding incremental costs and gross margin pressures during the year ended December 31, 2023 (see Consolidated Results of Operations included in this MD&A). Despite specific actions taken to mitigate these gross margin pressures, higher prices for direct materials used to manufacture our products were, and continue to be, the primary incremental cost to our business. We utilize many exchange traded commodities for our business that are subject to price volatility, specifically cocoa products, which experienced an average increase in market prices of approximately 32% during 2023. We continue to monitor and use our risk management strategy where possible to hedge commodity prices in order to mitigate corresponding increases in our raw materials and energy costs.

Furthermore, certain geopolitical events, specifically the conflict between Russia and Ukraine, have increased global economic and political uncertainty. For the year ended December 31, 2023, this conflict did not have a material impact on our commodity prices or supply availability. However, we are continuing to monitor for any significant escalation or expansion of economic or supply chain disruptions or broader inflationary costs, which may result in material adverse effects on our results of operations.

As of December 31, 2023, we believe we have sufficient liquidity to satisfy our key strategic initiatives and other material cash requirements in both the short-term and in the long-term; however, we continue to evaluate and take action, as necessary, to preserve adequate liquidity and ensure that our business can operate effectively during the current economic environment. We continue to monitor our discretionary spending across the organization (see Liquidity and Capital Resources included in this MD&A).

Based on the length and severity of fluctuating levels of inflation, including price volatility for our commodities, the likelihood of a potential recession, changes in consumer shopping and consumption behavior, and changes in geopolitical events, including the ongoing conflict between Russia and Ukraine, we may experience increasing supply chain costs, higher inflation and other impacts to our business. We will continue to evaluate the nature and extent of these potential and evolving impacts on our business, consolidated results of operations, segment results, liquidity and capital resources.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 24

CONSOLIDATED RESULTS OF OPERATIONS

Percent Change

In millions of dollars except per share amounts

SM&A expense as a percent of net sales 21.8 % 21.5% 22.3%

Effective income tax rate 14.3 % 14.2 % 17.5 %

Less: Net gain (loss) attributable to noncontrolling interest — — 5.3 NM NM

NM = not meaningful

Net Sales

2023 compared with 2022

Net sales were $11,165.0 million in 2023 compared to $10,419.3 million in 2022, an increase of $745.7 million, or 7.2%. The net sales increase reflects a favorable price realization of 8.3% due to higher list prices across all segments and by a favorable impact from foreign currency exchange rates of 0.2%. These increases were slightly offset by a volume decrease of 1.3% due to a decrease in consumer demand primarily in everyday core U.S. confection brands.

2022 compared with 2021

Net sales were $10,419.3 million in 2022 compared to $8,971.3 million in 2021, an increase of $1,448.0 million, or 16.1%. The net sales increase reflects a volume increase of 8.0% due to higher prices on certain products, a 4.3% benefit from net acquisitions and divestitures driven by the 2021 acquisitions of Lily’s, Dot’s and Pretzels and a volume increase of 4.0% due to an increase in consumer demand primarily in everyday core U.S. confection brands and salty snack brands. These increases were slightly offset by an unfavorable impact from foreign currency exchange rates of 0.2%.

Key U.S. Marketplace Metrics

For the full year 2023, our total U.S. retail takeaway increased 6.0% in the expanded multi-outlet combined plus convenience store channels (IRI MULO + C-Stores), which includes candy, mint, gum, salty snacks and grocery items. Our U.S. candy, mint and gum (“CMG”) consumer takeaway increased 6.0% and experienced a CMG market share decline of 83 basis points. Our Salty consumer takeaway increased 5.6% and experienced a Salty market share decline of 9 basis points.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 25

The CMG consumer takeaway and market share information reflect measured channels of distribution accounting for approximately 90% of our U.S. confectionery retail business. These channels of distribution primarily include food, drug, mass merchandisers and convenience store channels, plus Wal-Mart Stores, Inc., partial dollar, club and military channels. These metrics are based on measured market scanned purchases as reported by Circana, the Company’s market insights and analytics provider, and provide a means to assess our retail takeaway and market position relative to the overall category.

Cost of Sales and Gross Margin

2023 compared with 2022

Cost of sales were $6,167.2 million in 2023 compared to $5,920.5 million in 2022, an increase of $246.7 million, or 4.2%. The increase included $356.2 million of unfavorable costs driven by higher supply chain costs, including higher labor costs partially offset by lower logistics costs, and unfavorable mix. The increase was further driven by an incremental $97.7 million of unfavorable mark-to-market activity on our commodity derivative instruments intended to economically hedge future years’ commodity purchases (See Item 7A - Quantitative and Qualitative Disclosures About Market Risk for more information). These increases were partially offset by $207.2 million of favorable supply chain productivity and price realization.

Gross margin was 44.8% in 2023 compared with 43.2% in 2022, an increase of 160 basis points. The increase was driven by favorable price realization and increased supply chain productivity. The increase was partially offset by unfavorable activity on our mark-to-market impact from commodity derivative instruments, higher supply chain costs, including higher labor costs and increased waste. The increase was further driven by unfavorable mix and foreign exchange rates.

2022 compared with 2021

Cost of sales were $5,920.5 million in 2022 compared with $4,922.7 million in 2021, an increase of $997.8 million, or 20.3%. The increase included $767.7 million of unfavorable costs driven by higher sales volume and higher supply chain inflation costs, including higher logistics and labor costs. The increase was further driven by an incremental $40.8 million of unfavorable mark-to-market activity on our commodity derivative instruments intended to economically hedge future years’ commodity purchases. Additionally, we incurred incremental costs of $263.3 million associated with our 2021 acquisitions of Dot’s and Pretzels. These increases were offset by $74.0 million of favorable price realization and supply chain productivity.

Gross margin was 43.2% in 2022 compared with 45.1% 2021, a decrease of 190 basis points. The decrease was driven by unfavorable year-over-year mark-to-market impact from commodity derivative instruments, higher supply chain inflation costs, including higher logistics and labor costs, and unfavorable product mix. These declines were offset by favorable price realization and volume increases.

Selling, Marketing and Administrative

2023 compared with 2022

Selling, marketing and administrative (“SM&A”) expenses were $2,436.5 million in 2023 compared to $2,236.0 million in 2022, an increase of $200.5 million, or 9.0%. The increase was driven by increased corporate expenses. Total advertising and related consumer marketing expenses increased 12.2% driven by North America Confectionery and North America Salty Snacks. SM&A expenses, excluding advertising and related consumer marketing, increased approximately 7.5% in 2023 driven by higher compensation costs and investments in capabilities and technology across segments.

2022 compared with 2021

SM&A expenses were $2,236.0 million in 2022 compared to $2,001.4 million in 2021, an increase of $234.6 million, or 11.7%, driven by increased corporate expenses. Total advertising and related consumer marketing expenses increased 2.7% driven by advertising increases in our confectionery brands and increased investment in our salty snacks portfolio, which were partially offset by cost efficiencies related to new media partners. SM&A expenses, excluding advertising and related consumer marketing, increased approximately 16.3% in 2022 driven by an increase in acquisition and integration related costs, as well as higher compensation costs, investments in capabilities and technology and broad-based marketplace inflation.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 26

Business Realignment Activities

We periodically undertake business realignment activities designed to increase our efficiency and focus our business in support of our key growth strategies. In 2023, 2022 and 2021, we recorded business realignment costs of $0.4 million, $2.0 million and $3.5 million, respectively. The 2023, 2022, and 2021 costs related primarily to the International Optimization Program, a program focused on optimizing our China operating model to improve our operational efficiency and provide for a strong, sustainable and simplified base going forward. Additionally, in February 2024, the Board of Directors approved the Advancing Agility & Automation Initiative, which is a multi-year productivity program to improve supply chain and manufacturing-related spend, optimize selling, general and administrative expenses, leverage new technology and business models to further simplify and automate processes, and generate long-term savings. Costs associated with business realignment activities are classified in our Consolidated Statements of Income as described in Note 9 to the Consolidated Financial Statements.

Operating Profit and Operating Profit Margin

2023 compared with 2022

Operating profit was $2,560.9 million in 2023 compared to $2,260.8 million in 2022, an increase of $300.1 million, or 13.3%. The increase was predominantly due to higher gross profit, partially offset by higher SM&A expenses, as noted above. Operating profit margin increased to 22.9% in 2023 from 21.7% in 2022 by the same factors noted above in gross margin.

2022 compared with 2021

Operating profit was $2,260.8 million in 2022 compared to $2,043.7 million in 2021, an increase of $217.1 million, or 10.6%. The increase was predominantly due to higher gross profit, partially offset by higher SM&A expenses, as noted above. Operating profit margin decreased to 21.7% in 2022 from 22.8% in 2021 driven by these same factors.

Interest Expense, Net

2023 compared with 2022

Net interest expense was $151.8 million in 2023 compared to $137.6 million in 2022, an increase of $14.2 million, or 10.3%. The increase was primarily due to higher rates on short-term debt balances in 2023 versus 2022, specifically related to outstanding commercial paper borrowings, and higher rates on long-term debt balances, specifically related to the $350 million 4.25% Notes and $400 million 4.50% Notes issued in May 2023. The increase in the expense was partially offset by an increase in interest income.

2022 compared with 2021

Net interest expense was $137.6 million in 2022 compared to $127.4 million in 2021, an increase of $10.2 million, or 8.0%. The increase was primarily due to higher rates on short-term debt balances in 2022 versus 2021, specifically related to outstanding commercial paper borrowings. The increase was partially offset due to lower average long-term debt balances, specifically resulting from the repayment of $84.7 million of 8.800% Debentures upon their maturity in February 2021 and $350 million of 3.100% Notes upon their maturity in May 2021.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 27

Other (Income) Expense, Net

2023 compared with 2022

Other (income) expense, net totaled an expense of $237.2 million in 2023 versus an expense of $206.1 million in 2022, an increase of $31.1 million, or 15.1%. The increase in the net expense was primarily driven by an increase of $22.2 million of higher write-downs on equity investments qualifying for tax credits in 2023 versus 2022 and an increase of $9.5 million of higher non-service cost components of net periodic benefit cost relating to pension and other post-retirement benefit plans.

2022 compared with 2021

Other (income) expense, net totaled an expense of $206.1 million in 2022 versus an expense of $119.1 million in 2021, an increase of $87.0 million, or 73.1%. The increase in the net expense was primarily driven by an increase of $75.4 million of higher write-downs on equity investments qualifying for tax credits in 2022 versus 2021 and an increase of $13.3 million of non-service cost components of net periodic benefit cost relating to pension and other post-retirement benefit plans.

Income Taxes and Effective Tax Rate

2023 compared with 2022

Our effective income tax rate was 14.3% for 2023 compared with 14.2% for 2022. Relative to the 21% statutory rate, the 2023 effective tax rate benefited from investment tax credits, partially offset by state taxes. The 2022 effective rate, relative to the 21% statutory rate, benefited from investment tax credits, partially offset by state taxes.

2022 compared with 2021

Our effective income tax rate was 14.2% for 2022 compared with 17.5% for 2021. Relative to the 21% statutory rate, the 2022 effective tax rate benefited from investment tax credits, partially offset by state taxes. The 2021 effective rate, relative to the 21% statutory rate, benefited from investment tax credits, partially offset by incremental tax reserves incurred as a result of an adverse ruling in connection with a non-U.S. tax litigation matter, as well as state taxes.

Net Income Attributable to The Hershey Company and Earnings Per Share-diluted

2023 compared with 2022

Net income was $1,861.8 million in 2023 compared to $1,644.8 million in 2022, an increase of $217.0 million, or 13.2%. EPS-diluted was $9.06 in 2023 compared to $7.96 in 2022, an increase of $1.1, or 13.8%. The increase in both net income and EPS-diluted was driven primarily by higher gross profit, partially offset by higher SM&A expenses, higher income taxes, and higher other income and expenses. Our 2023 EPS-diluted also benefited from lower weighted-average shares outstanding as a result of share repurchases pursuant to our Board-approved repurchase programs..

2022 compared with 2021

Net income was $1,644.8 million in 2022 compared to $1,477.5 million in 2021, an increase of $167.3 million, or 11.3%. EPS-diluted was $7.96 in 2022 compared to $7.11 in 2021, an increase of $0.85, or 12.0%. The increase in both net income and EPS-diluted was driven primarily by higher gross profit and lower income taxes, partially offset by higher SM&A expenses and higher other income and expenses. Our 2022 EPS-diluted also benefited from lower weighted-average shares outstanding as a result of share repurchases pursuant to our Board-approved repurchase programs.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 28

SEGMENT RESULTS

The summary that follows provides a discussion of the results of operations of our three segments: North America Confectionery, North America Salty Snacks and International. For segment reporting purposes, we use “segment income” to evaluate segment performance and allocate resources. Segment income excludes unallocated general corporate administrative expenses, unallocated mark-to-market gains and losses on commodity derivatives, business realignment and impairment charges, acquisition-related costs and other unusual gains or losses that are not part of our measurement of segment performance. These items of our operating income are largely managed centrally at the corporate level and are excluded from the measure of segment income reviewed by the Chief Operating Decision Maker and used for resource allocation and internal management reporting and performance evaluation. Segment income and segment income margin, which are presented in the segment discussion that follows, are non-GAAP measures and do not purport to be alternatives to operating income as a measure of operating performance. We believe that these measures are useful to investors and other users of our financial information in evaluating ongoing operating profitability as well as in evaluating operating performance in relation to our competitors, as they exclude the activities that are not directly attributable to our ongoing segment operations.

Our segment results, including a reconciliation to our consolidated results, were as follows:

In millions of dollars

Net Sales:

Segment Income:

Costs associated with business realignment activities 3.4 4.4 16.6

(1)Includes centrally-managed (a) corporate functional costs relating to legal, treasury, finance and human resources, (b) expenses associated with the oversight and administration of our global operations, including warehousing, distribution and manufacturing, information systems and global shared services, (c) non-cash stock-based compensation expense, (d) acquisition-related costs and (e) other gains or losses that are not integral to segment performance.

(2)Net losses (gains) on mark-to-market valuation of commodity derivative positions recognized in unallocated derivative losses (gains). See Note 13 to the Consolidated Financial Statements.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 29

North America Confectionery

The North America Confectionery segment is responsible for our chocolate and non-chocolate confectionery market position in the United States and Canada. This includes developing and growing our business in chocolate and non-chocolate confectionery, gum and refreshment products, protein bars, spreads, snack bites and mixes, as well as pantry and food service lines. While a less significant component, this segment also includes our retail operations, including Hershey’s Chocolate World stores in Hershey, Pennsylvania; New York, New York; Las Vegas, Nevada; Niagara Falls (Ontario) and Singapore, as well as operations associated with licensing the use of certain trademarks and products to third parties around the world. North America Confectionery accounted for 81.7%, 81.9% and 85.6% of our net sales in 2023, 2022 and 2021, respectively. North America Confectionery results for the years ended December 31, 2023, 2022 and 2021 were as follows:

Percent Change

In millions of dollars

2023 compared with 2022

Net sales of our North America Confectionery segment were $9,123.1 million in 2023 compared to $8,536.5 million in 2022, a increase of $586.6 million, or 6.9%. The increase reflected a favorable price realization of 9.0% due to price increases on certain products across our portfolio. The increases were partially offset by a volume decrease of 1.9% driven by a decrease in everyday core U.S. confection brands, and an unfavorable impact from foreign currency exchange rates of 0.2%.

Our North America Confectionery segment also includes licensing and owned retail. This includes our Hershey’s Chocolate World stores in the United States (3 locations), Niagara Falls (Ontario) and Singapore. Our net sales for licensing and owned retail increased approximately 12.1% during 2023 compared to 2022.

Our North America Confectionery segment income was $3,117.0 million in 2023 compared to $2,811.1 million in 2022, a increase of $305.9 million, or 10.9%. The increase was primarily due to favorable price realization and supply chain productivity, partially offset by higher supply chain costs, including higher labor costs, as well as unfavorable product mix.

2022 compared with 2021

Net sales of our North America Confectionery segment were $8,536.5 million in 2022 compared to $7,682.4 million 2021, an increase of $854.1 million, or 11.1%. The increase reflected a favorable price realization of 8.1% due to higher prices on certain products, a volume increase of 2.8% due to an increase in everyday core U.S. confection brands, and a 0.4% benefit from the 2021 acquisition of Lily’s. These increases were partially offset by an unfavorable impact from foreign currency exchange rates of 0.2%.

Our North America Confectionery segment also includes licensing and owned retail. This includes our Hershey’s Chocolate World stores in the United States (3 locations), Niagara Falls (Ontario) and Singapore. Our net sales for licensing and owned retail increased approximately 12.7% during 2022 compared to 2021.

Our North America Confectionery segment income was $2,811.1 million in 2022 compared to $2,475.9 million in 2021, an increase of $335.2 million, or 13.5%. The increase was primarily due to favorable price realization and volume increases, partially offset by higher supply chain inflation costs, including higher logistics and labor costs, as well as, unfavorable product mix.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 30

North America Salty Snacks

The North America Salty Snacks segment is responsible for our grocery and snacks market positions, including our salty snacking products. North America Salty Snacks accounted for 9.8%, 9.9% and 6.2% of our net sales in 2023, 2022 and 2021, respectively. North America Salty Snacks results for the years ended December 31, 2023, 2022 and 2021 were as follows:

Percent Change

In millions of dollars

2023 compared with 2022

Net sales for our North America Salty Snacks segment were $1,092.7 million in 2023 compared to $1,029.4 million in 2022, an increase of $63.3 million, or 6.1%. The increase reflected a favorable price realization of 5.4% due to price increases on products across our portfolio, primarily SkinnyPop and Dot’s Homestyle Pretzels snacks, and a volume increase of 0.7%, primarily related to Dot’s Homestyle Pretzels snacks.

Our North America Salty Snacks segment income was $158.3 million in 2023 compared to $159.9 million in 2022 a decrease of $1.6 million, or 1.0%. The decrease is primarily due to increased advertising and related consumer marketing costs and costs related to the voluntary removal of certain Paqui branded items in 2023. The decrease was partially offset by favorable price realization and favorable product mix.

2022 compared with 2021

Net sales for our North America Salty Snacks segment was $1,029.4 million in 2022 compared to $555.4 million in 2021, an increase of $474.0 million, or 85.3%. The increase reflected a 64.0% benefit from the 2021 acquisitions of Dot’s and Pretzels, a favorable price realization of 12.0% due to higher prices on certain products and a volume increase of 9.3% primarily related to SkinnyPop and Pirates Booty snacks.

Our North America Salty Snacks segment income was $159.9 million in 2022 compared to $100.7 million in 2021, an increase of $59.2 million, or 58.8%. The increase is primarily due to favorable price realization and volume increases, partially offset by higher supply chain inflation costs, including higher logistics and labor costs, as well as, unfavorable product mix.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 31

International

The International segment includes all other countries where we currently manufacture, import, market, sell or distribute chocolate and non-chocolate confectionery and other products. We currently, have operations and manufacture product in Mexico, Brazil, India and Malaysia, primarily for consumers in these regions, and also distribute and sell confectionery products in export markets of Latin America, as well as Europe, Asia, the Middle East and Africa (“AMEA”) and other regions. International results, which accounted for 8.5%, 8.2% and 8.2% of our net sales in 2023, 2022 and 2021, respectively. International results for the years ended December 31, 2023, 2022 and 2021 were as follows:

Percent Change

In millions of dollars

2023 compared with 2022

Net sales of our International segment were $949.2 million in 2023 compared to $853.4 million in 2022, an increase of $95.8 million, or 11.2%. The increase reflected a favorable price realization of 4.7%, driven by price increases across the segment, a favorable impact from foreign currency exchange rates of 3.4%, primarily driven by Mexico, and a volume increase of 3.1%. The net sales increase was primarily attributable to World Travel Retail, Mexico and Brazil & Latin America, where net sales increased 15.6%, 14.3% and 13.0%, respectively.

Our International segment income was $148.3 million in 2023 compared to $107.9 million in 2022, an increase of $40.4 million, or 37.4%, primarily resulting from favorable price realization, favorable foreign currency exchange rates, and minimal volume increases, partially offset by increased supply chain costs.

2022 compared with 2021

Net sales of our International segment were $853.4 million in 2022 compared to $733.5 million in 2021, an increase of $119.9 million, or 16.3% reflecting a volume increase of 11.9%, a favorable price realization of 4.1%, and a favorable impact from foreign currency exchange rates of 0.3%. The volume increase was primarily attributed to solid marketplace growth in Brazil, Mexico and India, where net sales increased by 21.6%, 20.6% and 13.7%, respectively. Our International segment also includes world travel retail, where net sales increased approximately 28.6%.

Our International segment income was $107.9 million in 2022 compared to $74.2 million in 2021, an increase of $33.7 million, or 45.4%, primarily resulting from volume increases, favorable price realization, and the execution of our International Optimization Program in China, as we streamline and optimize our China operating model.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 32

Unallocated Corporate Expense

Unallocated corporate expense includes centrally-managed (a) corporate functional costs relating to legal, treasury, finance and human resources, (b) expenses associated with the oversight and administration of our global operations, including warehousing, distribution and manufacturing, information systems and global shared services, (c) non-cash stock-based compensation expense and (d) other gains or losses that are not integral to segment performance.

Unallocated corporate expense totaled $800.4 million in 2023 as compared to $735.5 million in 2022, an increase of $64.9 or, or 8.8%. The increase was primarily driven by incremental investments in capabilities and technology, higher compensation costs, and an increase in acquisition and integration related costs.

Unallocated corporate expense totaled $735.5 million in 2022 as compared to $614.9 million in 2021, an increase of $120.6 million, or 19.6%. The increase was primarily driven by an increase in acquisition and integration related costs, as well as higher compensation costs, investments in capabilities and technology and broad-based marketplace inflation.

LIQUIDITY AND CAPITAL RESOURCES

We assess our liquidity in terms of our ability to generate cash to fund our operating, investing and financing activities. Significant factors affecting liquidity include cash flows generated from operating activities, capital expenditures, acquisitions, dividends, repurchases of outstanding shares, the adequacy of available commercial paper and bank lines of credit, and the ability to attract long-term capital with satisfactory terms. We generate substantial amounts of cash from operations and remain in a strong financial position, with sufficient liquidity available for capital reinvestment, strategic acquisitions and the payment of dividends.

Cash Flow Summary

The following table is derived from our Consolidated Statements of Cash Flows:

Net cash provided by (used in):

Effect of exchange rate changes on cash and cash equivalents (38.2) 9.9 (5.1)

Less: Cash classified as assets held for sale — — 11.4

(Decrease) increase in cash and cash equivalents $ (62.0) $ 134.6 $ (814.7)

Operating activities

Our principal source of liquidity is cash flow from operations. Our net income and, consequently, our cash provided by operations are impacted by sales volume, seasonal sales patterns, timing of new product introductions, profit margins and price changes. Sales are typically higher during the third and fourth quarters of the year due to seasonal and holiday-related sales patterns. Generally, working capital needs peak during the summer months. We meet these needs primarily with cash on hand, bank borrowings or the issuance of commercial paper.

We generated cash of $2.32 billion from operating activities in 2023, a decrease of $4.6 million compared to $2.33 billion in 2022. The decrease in net cash provided by operating activities was mainly driven by the following factors:

•In the aggregate, select net working capital items, specifically, trade accounts receivable, inventory, accounts payable and accrued liabilities, consumedcash of $209.0 million in 2023, compared to $8.6 million in 2022. This $200.4 million fluctuation was mainly driven by mainly driven by an increase in cash used by accounts receivable due to an increase in sales of U.S. seasonal products and the timing of vendor and supplier payments.

•Timing of income tax payments contributed to a decrease in operating cash of $32.5 million in 2023, compared to an increase of $5.0 million in 2022. This $37.5 million fluctuation was primarily due to the variance in actual tax

Table of Contents The Hershey Company | 2023 Form 10-K | Page 33

expense for 2023 relative to the timing of quarterly estimated tax payments. We paid cash of $303.9 million for income taxes during 2023 compared to $221.3 million in the same period of 2022.

•Other assets and liabilities consumed cash of $100.4 million in 2023, compared to $25.7 million in 2022. This $74.7 million fluctuation was primarily due to our purchase of an irrevocable group annuity contract to settle a portion of our post retirement benefit obligation.

•The decrease in cash provided by operating activities was partially offset by the following net cash inflows:

◦Net income adjusted for non-cash charges to operations (including depreciation, amortization, stock-based compensation, deferred income taxes, write-down of equity investments and other charges) resulted in $256.7 million of higher cash flow in 2023 relative to 2022.

We generated cash of $2.3 billion from operating activities in 2022, an increase of $244.9 million compared to $2.1 billion in 2021. This increase in net cash provided by operating activities was mainly driven by the following factors:

•In the aggregate, select net working capital items, specifically, trade accounts receivable, inventory, accounts payable and accrued liabilities, consumedcash of $9 million in 2022 and generated cash of $47 million in 2021. This $56 million fluctuation was mainly driven by a higher year-over-year build up of U.S. inventories to satisfy product requirements and maintain sufficient levels to accommodate customer requirements, partially offset by the timing of vendor and supplier payments.

•Net income adjusted for non-cash charges to operations (including depreciation, amortization, stock-based compensation, deferred income taxes, write-down of equity investments and other charges) resulted in $348 million of higher cash flow in 2022 relative to 2021.

Pension and Post-Retirement Activity. We recorded net periodic benefit costs of $43.2 million, $36.3 million and $28.4 million in 2023, 2022 and 2021, respectively, relating to our benefit plans (including our defined benefit and other post retirement plans). The main drivers of fluctuations in expense from year to year are assumptions in formulating our long-term estimates, including discount rates used to value the service and interest costs and the amortization of actuarial gains and losses.

The funded status of our qualified defined benefit pension plans is dependent upon many factors, including returns on invested assets, the level of market interest rates and the level of funding. We contribute cash to our plans at our discretion, subject to applicable regulations and minimum contribution requirements. Cash contributions to our pension and post retirement plans totaled $27.6 million, $78.5 million and $51.1 million in 2023, 2022 and 2021, respectively.

Investing activities

Our principal uses of cash for investment purposes relate to purchases of property, plant and equipment and capitalized software, as well as acquisitions of businesses, partially offset by proceeds from sales of property, plant and equipment. We used cash of $1.2 billion for investing activities in 2023 compared to $0.8 billion in 2022, with the increase in cash spend driven by an increase of investments in capabilities and technology as well as a higher level of acquisition activity. We used cash of $2.2 billion for investing activities in 2021, with the decrease in 2022 in cash spend driven by lower levels of acquisition activity, partially offset by higher capital spend and investment tax credits.

Primary investing activities include the following:

•Capital spending. Capital expenditures, including capitalized software, primarily to support our ERP system implementation, capacity expansion, innovation and cost savings, were $771.1 million in 2023, $519.5 million in 2022 and $495.9 million in 2021. For each of the years presented, our expenditures increased due to progress on capacity expansion projects and our ERP system implementation. We expect 2024 capital expenditures, including capitalized software, to approximate $600 million to $650 million. The decrease in our 2024 capital expenditures is largely driven by the wind down of our key strategic initiatives, including completion of the upgrade of a new ERP system across the enterprise in 2024. We intend to use our existing cash and internally generated funds to meet our 2024 capital requirements.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 34

•Investments in partnerships qualifying for tax credits. We make investments in partnership entities that in turn make equity investments in projects eligible to receive federal historic and energy tax credits. We invested approximately $256.8 million in 2023, $275.5 million in 2022 and $128.4 million in 2021 in projects qualifying for tax credits.

•Business acquisitions. In 2023, we spent $165.8 million to acquire Weaver (May 2023). In 2022, we had no acquisition activity. In 2021, we spent an aggregate $1.6 billion to acquire Lily's (June 2021), as well as Dot’s and Pretzels (December 2021). Further details regarding our business acquisition activity is provided in Note 2 to the Consolidated Financial Statements.

•Other investing activities. In 2023, 2022, and 2021, our other investing activities were minimal.

Financing activities

Our cash flow from financing activities generally relates to the use of cash for purchases of our Common Stock and payment of dividends, offset by net borrowing activity and proceeds from the exercise of stock options. Financing activities in 2023 used cash of $1.1 billion, compared to cash used of $1.4 billion in 2022. We used cash of $0.7 billion for financing activities in 2021.

The majority of our financing activity was attributed to the following:

•Short-term borrowings, net. In addition to utilizing cash on hand, we use short-term borrowings (commercial paper and bank borrowings) to fund seasonal working capital requirements and ongoing business needs. In 2023, our short-term borrowings increased $26.0 million predominately through the issuance of short-term commercial paper, as well as an increase in short-term foreign bank borrowings. In 2022, we used cash of $245.6 million to reduce a portion of our short-term commercial paper borrowings originally used to fund our 2021 acquisitions of Dot’s and Pretzels, partially offset by an increase in short-term foreign bank borrowings. In 2021, we generated cash flow of $869.0 million predominantly through the issuance of short-term commercial paper.

•Long-term debt borrowings and repayments. In May 2023, we repaid $250 million of 2.625% Notes and $500 million of 3.375% Notes due upon their maturities. In May 2023, we issued $350 million of 4.250% Notes due in May 2028 and $400 million of 4.500% Notes due in May 2033 (the “2023 Notes”). Proceeds from the issuance of the 2023 Notes, net of discounts and issuance costs, totaled $744.1 million. In 2022, long-term debt activity was minimal. In February 2021 and May 2021, we repaid $84.7 million of 8.800% Debentures and $350 million of 3.100% Notes due upon their maturities, respectively. In 2024, we expect our long-term debt repayments to approximate $300 million upon the maturity of $300 million of 2.050% Notes due in November 2024.

•Dividend payments. Total dividend payments to holders of our Common Stock and Class B Common Stock were $889.1 million in 2023, $775.0 million in 2022 and $686.0 million in 2021. Dividends per share of Common Stock increased 15.0% to $4.456 per share in 2023 compared to $3.874 per share in 2022, while dividends per share of Class B Common Stock increased 15.0% in 2023. Details regarding our 2023 cash dividends paid to stockholders are as follows:

Quarter Ended

Table of Contents The Hershey Company | 2023 Form 10-K | Page 35

•Share repurchases. We repurchase shares of Common Stock to offset the dilutive impact of treasury shares issued under our equity compensation plans. The value of these share repurchases in a given period varies based on the volume of stock options exercised and our market price. In addition, we periodically repurchase shares of Common Stock pursuant to Board-authorized programs intended to drive additional stockholder value. Details regarding our share repurchases are as follows:

Milton Hershey School Trust repurchase (1)(2) $ 239.9 $ 203.4 $ —

Total shares repurchased under pre-approved share repurchase programs 1.0 — 0.9

(1) In February 2023 and 2022, the Company entered into a Stock Purchase Agreement with Hershey Trust Company, as trustee for the School Trust, pursuant to which the Company purchased 1,000,000 shares in 2023 and 2022 of the Company’s Common Stock from the School Trust at a price equal to $239.91 per share, for a total purchase price of $239.9 million in 2023. In 2022 the Company purchased the common stock at a price equal to $203.35 per share, for a total purchase price of $203.4 million. As a result of the 2023 share repurchase, our July 2018 share repurchase authorization program was completed, and approximately $370.1 million remains available for repurchases under our May 2021 share repurchase authorization.

(2) In July 2018, our Board of Directors approved a $500 million share repurchase authorization. In May 2021, our Board of Directors approved an additional $500 million share repurchase authorization. As a result of the February 2023 Stock Purchase Agreement with Hershey Trust Company, as trustee for the School Trust, the July 2018 share repurchase authorization was completed and as of December 31, 2023, approximately $370.1 million remained available for repurchases under our May 2021 share repurchase authorization. In December 2023, our Board of Directors approved an additional $500 million share repurchase authorization. This program is to commence after the existing 2021 authorization is completed and is to be utilized at management’s discretion. These share repurchase programs do not have an expiration date. We expect 2024 share repurchases to be in line with our traditional buyback strategy.

•Proceeds from the exercise of stock options, including tax benefits. In 2023 we received $26.0 million from employee exercises of stock options and paid $35.0 million of employee taxes withheld from share-based awards. In 2022 we received $34.2 million from employee exercises of stock options and paid $35.5 million of employee taxes withheld from share-based awards. In 2021 we received $33.2 million from employee exercises of stock options, net of employee taxes withheld from share-based awards. Variances are driven primarily by the number of shares exercised and the share price at the date of grant.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 36

Financial Condition

At December 31, 2023, our cash and cash equivalents totaled $401.9 million. At December 31, 2022, our cash and cash equivalents totaled $463.9 million. Our cash and cash equivalents at the end of 2023 decreased $62.0 million compared to the 2022 year-end balance as a result of the net uses of cash outlined in the previous discussion.

Approximately 80% of the balance of our cash and cash equivalents at December 31, 2023 was held by subsidiaries domiciled outside of the United States. A majority of this balance is distributable to the United States without material tax implications, such as withholding tax. We intend to continue to reinvest the remainder of the earnings outside of the United States for which there would be a material tax implication to distributing for the foreseeable future and, therefore, have not recognized additional tax expense on these earnings. We believe that our existing sources of liquidity are adequate to meet anticipated funding needs at comparable risk-based interest rates for the foreseeable future. Acquisition spending and/or share repurchases could potentially increase our debt. Operating cash flow and access to capital markets are expected to satisfy our various short- and long-term cash flow requirements, including acquisitions and capital expenditures.

We maintain debt levels we consider prudent based on our cash flow, interest coverage ratio and percentage of debt to capital. We use debt financing to lower our overall cost of capital which increases our return on stockholders’ equity. Our total short- and long-term debt was $4.8 billion at December 31, 2023 and December 31, 2022. Our total debt remained consistent in 2023 primarily due to the repayment of $250 million of 2.625% Notes and $500 million of 3.375% Notes due upon their maturity in May 2023 offset by the issuance of $350 million of 4.250% Notes due in May 2028 and $400 million of 4.500% Notes due in May 2033.

As a source of short-term financing, we maintain a $1.35 billion unsecured revolving credit facility with the option to increase borrowings by an additional $500 million with the consent of the lenders. As of December 31, 2023, the termination date of this agreement is April 26, 2028, however, we may extend the termination date for up to two additional one-year periods upon notice to the administrative agent under the facility. We may use these funds for general corporate purposes, including commercial paper backstop and business acquisitions. As of December 31, 2023, we had $822 million of available capacity under the agreement. The unsecured revolving credit agreement contains certain financial and other covenants, customary representations, warranties and events of default. We were in compliance with all covenants as of December 31, 2023.

In addition to the revolving credit facility, we maintain lines of credit in various currencies with domestic and international commercial banks. As of December 31, 2023, we had available capacity of $219 million under these lines of credit.

Furthermore, we have a current shelf registration statement filed with the SEC that allows for the issuance of an indeterminate amount of debt securities. Proceeds from the debt issuances and any other offerings under the current registration statement may be used for general corporate requirements, including reducing existing borrowings, financing capital additions and funding contributions to our pension plans, future business acquisitions and working capital requirements.

Our ability to obtain debt financing at comparable risk-based interest rates is partly a function of our existing cash-flow-to-debt and debt-to-capitalization levels as well as our current credit rating.

We believe that our existing sources of liquidity are adequate to meet anticipated funding needs at comparable risk-based interest rates for the foreseeable future. Acquisition spending and/or share repurchases could potentially increase our debt. Operating cash flow and access to capital markets are expected to satisfy our various short- and long-term cash flow requirements, including acquisitions and capital expenditures.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 37

Equity Structure

We have two classes of stock outstanding – Common Stock and Class B Stock. Holders of the Common Stock and the Class B Stock generally vote together without regard to class on matters submitted to stockholders, including the election of directors. Holders of the Common Stock have 1 vote per share. Holders of the Class B Stock have 10 votes per share. Holders of the Common Stock, voting separately as a class, are entitled to elect one-sixth of our Board. With respect to dividend rights, holders of the Common Stock are entitled to cash dividends 10% higher than those declared and paid on the Class B Stock.

Hershey Trust Company, as trustee for the trust established by Milton S. and Catherine S. Hershey that has as its sole beneficiary Milton Hershey School, maintains voting control over The Hershey Company. In addition, three representatives of Hershey Trust Company currently serve as members of the Company's Board. In performing their responsibilities on the Company’s Board, these representatives may from time to time exercise influence with regard to the ongoing business decisions of our Board or management. Hershey Trust Company, as trustee for the Trust, in its role as controlling stockholder of the Company, has indicated it intends to retain its controlling interest in The Hershey Company. The Company’s Board, and not the Hershey Trust Company board, is solely responsible and accountable for the Company’s management and performance.

Pennsylvania law requires that the Office of Attorney General be provided advance notice of any transaction that would result in Hershey Trust Company, as trustee for the Trust, no longer having voting control of the Company. The law provides specific statutory authority for the Attorney General to intercede and petition the court having jurisdiction over Hershey Trust Company, as trustee for the Trust, to stop such a transaction if the Attorney General can prove that the transaction is unnecessary for the future economic viability of the Company and is inconsistent with investment and management considerations under fiduciary obligations. This legislation makes it more difficult for a third party to acquire a majority of our outstanding voting stock and thereby may delay or prevent a change in control of the Company.

Material Cash Requirements

The following table summarizes our future material cash requirements as of December 31, 2023:

Payments due by Period

Short-term debt (primarily U.S. commercial paper) $ 719.8 $ 719.8 $ — $ — $ —

(1) Includes the net interest payments on fixed rate debt associated with long-term notes.

(2) Includes the minimum rental commitments (including imputed interest) under non-cancelable operating leases primarily for offices, retail stores, warehouses and distribution facilities.

(3) Includes the minimum rental commitments (including imputed interest) under non-cancelable finance leases primarily for offices and warehouse facilities, as well as machinery and equipment and vehicles.

(4) Purchase obligations consist primarily of fixed commitments for the purchase of raw materials to be utilized in the normal course of business. Amounts presented include fixed price forward contracts and unpriced contracts that were valued using market prices as of December 31, 2023. The amounts presented in the table do not include items already recorded in accounts payable or accrued liabilities at year-end 2023, nor does the table reflect cash flows we are likely to incur based on our plans, but are not obligated to incur. Such amounts are part of normal operations and are reflected in historical operating cash flow trends. We do not believe such purchase obligations will adversely affect our liquidity position.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 38

In entering into contractual obligations, we have assumed the risk that might arise from the possible inability of counterparties to meet the terms of their contracts. We mitigate this risk by performing financial assessments prior to contract execution, conducting periodic evaluations of counterparty performance and maintaining a diverse portfolio of qualified counterparties. Our risk is limited to replacing the contracts at prevailing market rates. We do not expect any significant losses resulting from counterparty defaults.

These obligations impact our liquidity and capital resource needs. To meet those cash requirements, we intend to use our existing cash and internally generated funds. To the extent necessary, we may also borrow under our existing unsecured revolving credit facility or under other short-term borrowings, and depending on market conditions and upon the significance of the cost of a particular Note maturity or acquisition to our then-available sources of funds, to obtain additional short- and long-term financing. We believe that cash provided from these sources will be adequate to meet our future short- and long-term cash requirements.

Asset Retirement Obligations

We have a number of facilities that contain varying amounts of asbestos in certain locations within the facilities. Our asbestos management program is compliant with current applicable regulations, which require that we handle or dispose of asbestos in a specified manner if such facilities undergo major renovations or are demolished. We do not have sufficient information to estimate the fair value of any asset retirement obligations related to these facilities. We cannot specify the settlement date or range of potential settlement dates and, therefore, sufficient information is not available to apply an expected present value technique. We expect to maintain the facilities with repairs and maintenance activities that would not involve or require the removal of significant quantities of asbestos.

Income Tax Obligations

Liabilities for unrecognized income tax benefits are excluded from the table above as we are unable to reasonably predict the ultimate amount or timing of a settlement of these potential liabilities. See Note 10 to the Consolidated Financial Statements for more information.

Recent Accounting Pronouncements

Information on recently adopted and issued accounting standards is included in Note 1 to the Consolidated Financial Statements.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 39

CRITICAL ACCOUNTING POLICIES AND ESTIMATES

The preparation of financial statements requires management to use judgment and make estimates and assumptions. We believe that our most critical accounting policies and estimates relate to the following:

•Accrued Liabilities for Trade Promotion Activities

•Pension and Other Post-Retirement Benefits Plans

•Business Acquisitions, Valuation and Impairment of Goodwill and Other Intangible Assets

•Income Taxes

Management has discussed the development, selection and disclosure of critical accounting policies and estimates with the Audit Committee of our Board. While we base estimates and assumptions on our knowledge of current events and actions we may undertake in the future, actual results may ultimately differ from these estimates and assumptions. Other significant accounting policies are outlined in Note 1 to the Consolidated Financial Statements.

Accrued Liabilities for Trade Promotion Activities

We promote our products with advertising, trade promotions and consumer incentives. These programs include, but are not limited to, discounts, coupons, rebates, in-store display incentives and volume-based incentives. We expense advertising costs and other direct marketing expenses as incurred. We recognize the costs of trade promotion and consumer incentive activities as a reduction to net sales along with a corresponding accrued liability based on estimates at the time of revenue recognition. These estimates are based on our analysis of the programs offered, historical trends, expectations regarding customer and consumer participation, sales and payment trends and our experience with payment patterns associated with similar programs offered in the past. The estimated costs of these programs are reasonably likely to change in future periods due to changes in trends with regard to customer and consumer participation, particularly for new programs and for programs related to the introduction of new products. Differences between estimated expense and actual program performance are recognized as a change in estimate in a subsequent period and are normally not significant. During 2023, 2022, and 2021, actual annual promotional costs have not deviated from the estimated amount by more than 3%. Our trade promotion and consumer incentive accrued liabilities totaled $194.0 million and $215.7 million at December 31, 2023 and 2022, respectively.

Pension and Other Post-Retirement Benefits Plans

We sponsor various defined benefit pension plans. The primary plans were The Hershey Company Retirement Plan (“Retirement Plan”) and the Hershey Company Retirement Plan for Hourly Employees (“Hourly Plan”). These are cash balance plans that provide pension benefits for most U.S. employees hired prior to January 1, 2007. Effective December 31, 2023, the Hourly Plan merged into the Retirement Plan and the name was changed to The Hershey Retirement Plan for Salaried and Hourly Employees. We also sponsor two primary other post-employment benefit (“OPEB”) plans, consisting of a health care plan and life insurance plan for retirees. The health care plan is contributory, with participants’ contributions adjusted annually, and the life insurance plan is non-contributory.

For accounting purposes, the defined benefit pension and OPEB plans require assumptions to estimate the projected and accumulated benefit obligations, including the following variables: discount rate; expected salary increases; certain employee-related factors, such as turnover, retirement age and mortality; expected return on assets; and health care cost trend rates. These and other assumptions affect the annual expense and obligations recognized for the underlying plans. Our assumptions reflect our historical experiences and management’s best judgment regarding future expectations. Our related accounting policies, accounting balances and plan assumptions are discussed in Note 11 to the Consolidated Financial Statements.

Pension Plans

Changes in certain assumptions could significantly affect pension expense and benefit obligations, particularly the estimated long-term rate of return on plan assets and the discount rates used to calculate such obligations:

•Long-term rate of return on plan assets. The expected long-term rate of return is evaluated on an annual basis. We consider a number of factors when setting assumptions with respect to the long-term rate of return, including current and expected asset allocation and historical and expected returns on the plan asset categories. Actual asset

Table of Contents The Hershey Company | 2023 Form 10-K | Page 40

allocations are regularly reviewed and periodically rebalanced to the targeted allocations when considered appropriate. Investment gains or losses represent the difference between the expected return estimated using the long-term rate of return and the actual return realized. For 2023, we increased the expected return on plan assets assumption to 6.7% from the 6.3% assumption used during 2022. The historical average return (compounded annually) over the 20 years prior to December 31, 2023 was approximately 6.7%.

As of December 31, 2023, our plans had cumulative unrecognized investment and actuarial losses of approximately $181 million. We amortize the unrecognized net actuarial gains and losses in excess of the corridor amount, which is the greater of 10% of a respective plan’s projected benefit obligation or the fair market value of plan assets. These unrecognized net losses may increase future pension expense if not offset by (i) actual investment returns that exceed the expected long-term rate of investment returns, (ii) other factors, including reduced pension liabilities arising from higher discount rates used to calculate pension obligations or (iii) other actuarial gains when actual plan experience is favorable as compared to the assumed experience. A 100 basis point decrease or increase in the long-term rate of return on pension assets would correspondingly increase or decrease annual net periodic pension benefit expense by approximately $7 million.

•Discount rate. We utilize a full yield curve approach in the estimation of service and interest costs by applying the specific spot rates along the yield curve used in the determination of the benefit obligation to the relevant projected cash flows. This approach provides a more precise measurement of service and interest costs by improving the correlation between the projected cash flows to the corresponding spot rates along the yield curve. This approach does not affect the measurement of our pension and other post-retirement benefit liabilities but generally results in lower benefit expense in periods when the yield curve is upward sloping.

A 100 basis point decrease (increase) in the weighted-average pension discount rate would increase (decrease) annual net periodic pension benefit expense by approximately $5 million and the December 31, 2023 pension liability would increase by approximately $57 million or decrease by approximately $49 million, respectively.

Pension expense for defined benefit pension plans is expected to be approximately $13 million in 2024. Pension expense beyond 2024 will depend on future investment performance, our contributions to the pension trusts, changes in discount rates and various other factors related to the covered employees in the plans.

Other Post-Employment Benefit Plans

Changes in significant assumptions could affect consolidated expense and benefit obligations, particularly the discount rates used to calculate such obligations:

•Discount rate. The determination of the discount rate used to calculate the benefit obligations of the OPEB plans is discussed in the pension plans section above. A 100 basis point decrease (increase) in the discount rate assumption for these plans would not be material to the OPEB plans’ consolidated expense and the December 31, 2023 benefit liability would increase by approximately $9 million or decrease by approximately $8 million, respectively.

Business Acquisitions, Valuation and Impairment of Goodwill and Other Intangible Assets

We use the acquisition method of accounting for business acquisitions. Under the acquisition method, the results of operations of the acquired business have been included in the consolidated financial statements since the respective dates of the acquisitions. The assets acquired and liabilities assumed are recorded at their respective estimated fair values at the date of the acquisition. Any excess of the purchase price over the estimated fair values of the identifiable net assets acquired is recorded as goodwill. Significant judgment is often required in estimating the fair value of assets acquired, particularly intangible assets. As a result, we normally obtain the assistance of a third-party valuation specialist in estimating fair values of tangible and intangible assets. The fair value estimates are based on available historical information and on expectations and assumptions about the future, considering the perspective of marketplace participants. While management believes those expectations and assumptions are reasonable, they are inherently uncertain. Unanticipated market or macroeconomic events and circumstances may occur, which could affect the accuracy or validity of the estimates and assumptions.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 41

Goodwill and indefinite-lived intangible assets are not amortized, but instead, are evaluated for impairment annually or more often if indicators of a potential impairment are present. Our annual impairment tests are conducted at the beginning of the fourth quarter.

We test goodwill for impairment by performing either a qualitative or quantitative assessment. If we choose to perform a qualitative assessment, we evaluate economic, industry and company-specific factors in assessing the fair value of the related reporting unit. If we determine that it is more likely than not that the fair value of the reporting unit is less than its carrying value, a quantitative test is then performed. Otherwise, no further testing is required. For those reporting units tested using a quantitative approach, we compare the fair value of each reporting unit with the carrying amount of the reporting unit, including goodwill. If the estimated fair value of the reporting unit is less than the carrying amount of the reporting unit, impairment is indicated, requiring recognition of a goodwill impairment charge for the differential (up to the carrying value of goodwill). We test individual indefinite-lived intangible assets by comparing the estimated fair values with the book values of each asset.

We determine the fair value of our reporting units and indefinite-lived intangible assets using an income approach. Under the income approach, we calculate the fair value of our reporting units and indefinite-lived intangible assets based on the present value of estimated future cash flows. Considerable management judgment is necessary to evaluate the impact of operating and macroeconomic changes and to estimate the future cash flows used to measure fair value. Our estimates of future cash flows consider past performance, current and anticipated market conditions and internal projections and operating plans which incorporate estimates for sales growth and profitability, and cash flows associated with taxes and capital spending. Additional assumptions include forecasted growth rates, estimated discount rates, which may be risk-adjusted for the operating market of the reporting unit, and estimated royalty rates that would be charged for comparable branded licenses. We believe such assumptions also reflect current and anticipated market conditions and are consistent with those that would be used by other marketplace participants for similar valuation purposes. Such assumptions are subject to change due to changing economic and competitive conditions.

We also have intangible assets, consisting primarily of certain trademarks, customer-related intangible assets and patents obtained through business acquisitions, that are expected to have determinable useful lives. The costs of finite-lived intangible assets are amortized to expense over their estimated lives. Our estimates of the useful lives of finite-lived intangible assets consider judgments regarding the future effects of obsolescence, demand, competition and other economic factors. We conduct impairment tests when events or changes in circumstances indicate that the carrying value of these finite-lived assets may not be recoverable. Undiscounted cash flow analyses are used to determine if an impairment exists. If an impairment is determined to exist, the loss is calculated based on the estimated fair value of the assets.

Results of Impairment Tests

At December 31, 2023, the net book value of our goodwill totaled $2.7 billion. As it relates to our 2023 annual testing performed at the beginning of the fourth quarter, we tested all of our reporting units using a quantitative assessment. Based on our testing, all of our reporting units had an excess fair value well over their respective carrying values. There were no other events or circumstances that would indicate that impairment may exist. We had no goodwill impairment charges in 2023, 2022 or 2021.

Income Taxes

We base our deferred income taxes, accrued income taxes and provision for income taxes upon income, statutory tax rates, the legal structure of our Company, interpretation of tax laws and tax planning opportunities available to us in the various jurisdictions in which we operate. We file income tax returns in the U.S. federal jurisdiction and various state and foreign jurisdictions. We are regularly audited by federal, state and foreign tax authorities; a number of years may elapse before an uncertain tax position, for which we have unrecognized tax benefits, is audited and finally resolved. From time to time, these audits result in assessments of additional tax. We maintain reserves for such assessments.

We apply a more-likely-than-not threshold to the recognition and derecognition of uncertain tax positions. Accordingly, we recognize the amount of tax benefit that has a greater than 50% likelihood of being ultimately

Table of Contents The Hershey Company | 2023 Form 10-K | Page 42

realized upon settlement. Future changes in judgments and estimates related to the expected ultimate resolution of uncertain tax positions will affect income in the quarter of such change. While it is often difficult to predict the final outcome or the timing of resolution of any particular uncertain tax position, we believe that our unrecognized tax benefits reflect the most likely outcome. Accrued interest and penalties related to unrecognized tax benefits are included in income tax expense. We adjust these unrecognized tax benefits, as well as the related interest, in light of changing facts and circumstances, such as receiving audit assessments or clearing of an item for which a reserve has been established. Settlement of any particular position could require the use of cash. Favorable resolution would be recognized as a reduction to our effective income tax rate in the period of resolution.

We believe it is more likely than not that the results of future operations will generate sufficient taxable income to realize the deferred tax assets, net of valuation allowances. Our valuation allowances are primarily related to U.S. capital loss carryforwards and various foreign jurisdictions’ net operating loss carryforwards and other deferred tax assets for which we do not expect to realize a benefit. Refer to Note 10 to the Consolidated Financial Statements for further discussion of our deferred tax assets and liabilities.

Item 7A. QUANTITATIVE AND QUALITATIVE DISCLOSURES ABOUT MARKET RISK

We use certain derivative instruments to manage our interest rate, foreign currency exchange rate and commodity price risks. We monitor and manage these exposures as part of our overall risk management program.

We enter into interest rate swap agreements and foreign currency forward exchange contracts for periods consistent with related underlying exposures. We enter into commodities futures and options contracts and other derivative instruments for varying periods. These commodity derivative instruments are intended to be, and are effective as, economic hedges of market price risks associated with anticipated raw material purchases, energy requirements and transportation costs. We do not hold or issue derivative instruments for trading purposes and are not a party to any instruments with leverage or prepayment features.

In entering into these contracts, we have assumed the risk that might arise from the possible inability of counterparties to meet the terms of their contracts. We mitigate this risk by entering into exchange-traded contracts with collateral posting requirements and/or by performing financial assessments prior to contract execution, conducting periodic evaluations of counterparty performance and maintaining a diverse portfolio of qualified counterparties. We do not expect any significant losses from counterparty defaults.

Refer to Note 1 and Note 5 to the Consolidated Financial Statements for further discussion of these derivative instruments and our hedging policies.

Interest Rate Risk

The total amount of short-term debt, net of cash, amounted to net debt of $318 million and net debt of $230 million, respectively, at December 31, 2023 and 2022. A hypothetical 100 basis point increase in interest rates applied to this variable-rate short-term debt as of December 31, 2023 would have changed interest expense by approximately $3.1 million for 2023 and $4.5 million for 2022.

We consider our current risk related to market fluctuations in interest rates on our remaining debt portfolio, excluding fixed-rate debt converted to variable rates with fixed-to-floating instruments, to be minimal since this debt is largely long-term and fixed-rate in nature. Generally, the fair market value of fixed-rate debt will increase as interest rates fall and decrease as interest rates rise. A 100 basis point increase in market interest rates would decrease the fair value of our fixed-rate long-term debt at December 31, 2023 and December 31, 2022 by approximately $203 million and $187 million, respectively. However, since we currently have no plans to repurchase our outstanding fixed-rate instruments before their maturities, the impact of market interest rate fluctuations on our long-term debt does not affect our results of operations or financial position.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 43

Foreign Currency Exchange Rate Risk

We are exposed to currency fluctuations related to manufacturing or selling products in currencies other than the U.S. dollar. We may enter into foreign currency forward exchange contracts to reduce fluctuations in our long or short currency positions relating primarily to purchase commitments or forecasted purchases for equipment, raw materials and finished goods denominated in foreign currencies. We also may hedge payment of forecasted intercompany transactions with our subsidiaries outside of the United States. We generally hedge foreign currency price risks for periods from 3 to 12 months.

A summary of foreign currency forward exchange contracts and the corresponding amounts at contracted forward rates is as follows:

ContractAmount PrimaryCurrencies ContractAmount PrimaryCurrencies

In millions of dollars

The fair value of foreign currency forward exchange contracts represents the difference between the contracted and current market foreign currency exchange rates at the end of the period. We estimate the fair value of foreign currency forward exchange contracts on a quarterly basis by obtaining market quotes of spot and forward rates for contracts with similar terms, adjusted where necessary for maturity differences. At December 31, 2023 and 2022, the net fair value of these instruments was an asset of $0.7 million and an asset of $3.9 million, respectively. In addition, assuming an unfavorable 10% change in year-end foreign currency exchange rates, the fair value of these instruments would have declined by $20.2 million and $18.4 million, respectively, generally offset by a reduction in foreign exchange associated with our transactional activities.

Commodities—Price Risk Management and Futures Contracts

Our most significant raw material requirements include cocoa products, sugar, corn products, dairy products, wheat, peanuts and almonds. The cost of cocoa products and prices for related futures contracts and costs for certain other raw materials historically have been subject to wide fluctuations attributable to a variety of factors. These factors include:

•Commodity market fluctuations;

•Currency exchange rates;

•Imbalances between supply and demand;

•Rising levels of inflation and interest rates related to domestic and global economic conditions or supply chain issues;

•The effects of climate change and extreme weather on crop yield and quality;

•Speculative influences;

•Trade agreements among producing and consuming nations;

•Supplier compliance with commitments;

•Import/export requirements for raw materials and finished goods;

•Political unrest in producing countries;

•Introduction of living income premiums or similar requirements;

•Changes in governmental agricultural programs and energy policies; and

•Other events beyond our control such as the impacts on the business or supply chain arising from the ongoing conflict between Russia and Ukraine.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 44

We use futures and options contracts and other commodity derivative instruments in combination with forward purchasing of cocoa products, sugar, corn products, certain dairy products, wheat products, natural gas and diesel fuel primarily to mitigate price volatility and provide visibility to future costs within our supply chain. Currently, active futures contracts are not available for use in pricing our other major raw material requirements, primarily peanuts and almonds. We attempt to minimize the effect of future raw material and energy price fluctuations by using derivatives and forward purchasing to cover future manufacturing requirements generally for 3 to 24 months. However, dairy futures liquidity is not as developed as many of the other commodity futures markets and, therefore, it can be difficult to hedge dairy costs for extended periods of time. We use diesel fuel futures to minimize price fluctuations associated with our transportation costs. Our commodity procurement practices are intended to mitigate price volatility and provide visibility to future costs, but also may potentially limit our ability to benefit from possible price decreases. Our costs for major raw materials will not necessarily reflect market price fluctuations because of our forward purchasing and hedging practices.

Cocoa Products

During 2023, average cocoa futures contract prices increased 31.9% compared with 2022 and traded higher every month from January to December from $1.19 and $1.90 per pound, based on the Intercontinental Exchange futures contract. The production forecast for the 2023 – 2024 season is down significantly in Ghana and Ivory Coast by over 20% combined, due to a combination of inclement weather, lower inputs and marginally increased farmer prices versus inflation. Despite higher cocoa prices to consumers, consumption remained consistent, leading to predictions of a large deficit, the third consecutive one by some accounts. The table below shows annual average cocoa futures prices and the highest and lowest monthly averages for each of the calendar years indicated. The prices reflect the monthly averages of the quotations at noon of the three active futures trading contracts closest to maturity on the Intercontinental Exchange.

Cocoa Futures Contract Prices(dollars per pound)

Source: International Cocoa Organization Quarterly Bulletin of Cocoa Statistics

Our costs for cocoa products will not necessarily reflect market price fluctuations because of our forward purchasing and hedging practices, premiums and discounts reflective of varying delivery times, and supply and demand for our specific varieties and grades of cocoa liquor, cocoa butter and cocoa powder. As a result, the average futures contract prices are not necessarily indicative of our average costs.

Sugar

The price of sugar is subject to price supports under U.S. farm legislation, which establishes import quotas and duties to support the price of sugar. As a result, sugar prices paid by users in the U.S. are currently higher than prices on the world sugar market. The U.S. delivered east coast refined sugar prices traded in a range from $0.62 to $0.68 per pound during 2023. Prices were historically high throughout 2023 due to lack of imports by the U.S. government resulting in an extremely tight domestic raw sugar market and continued strong demand which resulted in a scarcity market for much of the year.

Corn Products

We use corn futures to price our corn sweetener product requirements. A record crop from both Brazil and the U.S. in 2023 drove prices down throughout the year. Corn prices traded in the range from $4.74 to $6.83 per bushel during 2023. Corn sweetener prices remained elevated due to tight capacity utilization throughout the industry.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 45

Dairy Products

During 2023 prices for fluid dairy milk ranged from a low of $0.176 per pound to a high of $0.214 per pound, on a Class IV milk basis. Fluid dairy milk prices were lower than 2022, driven by increases in global milk production linked to improved farmer margins, and exacerbated by a decline in U.S. dairy ingredient exports.

Wheat Products

In 2023 we continued utilizing soft and hard wheat futures as a risk management tool for our flour purchasing. For the second year in a row, the conflict between Russia and Ukraine, in addition to poor U.S. weather, continued to result in volatility in the wheat market and impacted global availability of supplies. Despite annual volatility, U.S. wheat remains uncompetitive in the world market, anchoring prices to their historical 5-year averages. Hard wheat prices traded in the range of $6.20 to $8.94 per bushel during 2023, while soft wheat prices traded in the range of $5.78 to $7.86 per bushel during 2023.

Peanuts and Almonds

Peanut prices in the U.S. ranged from a low of $0.59 per pound to a high of $0.71 per pound during 2023. Prices increased in 2023 due to higher export demand in the latter half of the year and a smaller peanut crop. Almond prices traded in the range of $1.75 per pound to $2.15 per pound during 2023. Prices increased towards the end of 2023, driven by smaller than expected crop and lower availability of small sized almonds.

Changes in the Value of Futures Contracts

We make or receive cash transfers to or from commodity futures brokers on a daily basis reflecting changes in the value of futures contracts on the Intercontinental Exchange or various other exchanges. These changes in value represent unrealized gains and losses. The cash transfers offset higher or lower cash requirements for the payment of future invoice prices of raw materials, energy requirements and transportation costs.

Commodity Sensitivity Analysis

Our open commodity derivative contracts had a notional value of $94.9 million as of December 31, 2023 and $243.0 million as of December 31, 2022. At the end of 2023, the potential change in fair value of commodity derivative instruments, assuming a 10% decrease in the underlying commodity price, would have increased our net unrealized losses in 2023 by $5.4 million, generally offset by a reduction in the cost of the underlying commodity purchases.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 46

Item 8. FINANCIAL STATEMENTS AND SUPPLEMENTARY DATA

INDEX TO CONSOLIDATED FINANCIAL STATEMENTS

Report of Independent Registered Public Accounting Firm (PCAOB ID: 42) 48

Consolidated Balance Sheets as of December 31, 2023 and 2022 54

Notes to Consolidated Financial Statements 57

Note 1 - Summary of Significant Accounting Policies 57

Note 2 - Business Acquisitions and Divestitures 63

Note 3 - Goodwill and Intangible Assets 66

Note 4 - Short and Long-Term Debt 67

Note 5 - Derivative Instruments 69

Note 6 - Fair Value Measurements 71

Note 7 - Leases 73

Note 8 - Investments in Unconsolidated Affiliates 75

Note 9 - Business Realignment Activities 75

Note 10 - Income Taxes 77

Note 11 - Pension and Other Post-Retirement Benefit Plans 80

Note 12 - Stock Compensation Plans 86

Note 13 - Segment Information 89

Note 14 - Equity and Treasury Stock Activity 92

Note 15 - Commitments and Contingencies 94

Note 16 - Earnings Per Share 94

Note 17 - Other (Income) Expense, Net 96

Note 18 - Related Party Transactions 96

Note 19 - Supplemental Balance Sheet Information 97

Table of Contents The Hershey Company | 2023 Form 10-K | Page 47

REPORT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

To the Stockholders and the Board of Directors of The Hershey Company

Opinion on the Financial Statements

We have audited the accompanying consolidated balance sheets of The Hershey Company (the Company) as of December 31, 2023 and 2022, the related consolidated statements of income, comprehensive income, cash flows, and stockholders' equity for each of the three years in the period ended December 31, 2023, and the related notes and financial statement schedule listed in the Index at Item 15(a)(2) (collectively referred to as the “consolidated financial statements”). In our opinion, the consolidated financial statements present fairly, in all material respects, the financial position of the Company at December 31, 2023 and 2022, and the results of its operations and its cash flows for each of the three years in the period ended December 31, 2023, in conformity with U.S. generally accepted accounting principles.

We also have audited, in accordance with the standards of the Public Company Accounting Oversight Board (United States) (PCAOB), the Company's internal control over financial reporting as of December 31, 2023, based on criteria established in Internal Control–Integrated Framework issued by the Committee of Sponsoring Organizations of the Treadway Commission (2013 framework), and our report dated February 20, 2024 expressed an unqualified opinion thereon.

Basis for Opinion

These financial statements are the responsibility of the Company's management. Our responsibility is to express an opinion on the Company’s financial statements based on our audits. We are a public accounting firm registered with the PCAOB and are required to be independent with respect to the Company in accordance with the U.S. federal securities laws and the applicable rules and regulations of the Securities and Exchange Commission and the PCAOB.

We conducted our audits in accordance with the standards of the PCAOB. Those standards require that we plan and perform the audit to obtain reasonable assurance about whether the financial statements are free of material misstatement, whether due to error or fraud. Our audits included performing procedures to assess the risks of material misstatement of the financial statements, whether due to error or fraud, and performing procedures that respond to those risks. Such procedures included examining, on a test basis, evidence regarding the amounts and disclosures in the financial statements. Our audits also included evaluating the accounting principles used and significant estimates made by management, as well as evaluating the overall presentation of the financial statements. We believe that our audits provide a reasonable basis for our opinion.

Critical Audit Matter

The critical audit matter communicated below is a matter arising from the current period audit of the financial statements that was communicated or required to be communicated to the audit committee and that: (1) relates to accounts or disclosures that are material to the financial statements and (2) involved our especially challenging, subjective or complex judgments. The communication of the critical audit matter does not alter in any way our opinion on the consolidated financial statements, taken as a whole, and we are not, by communicating the critical audit matter below, providing a separate opinion on the critical audit matter or on the accounts or disclosures to which it relates.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 48

Valuation of Accrued Liabilities for Trade Promotion Activities

/s/ Ernst & Young LLP

We have served as the Company’s auditor since 2016.

Philadelphia, Pennsylvania

.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 49

REPORT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

To the Stockholders and the Board of Directors of The Hershey Company

Opinion on Internal Control Over Financial Reporting

We have audited The Hershey Company’s internal control over financial reporting as of December 31, 2023, based on criteria established in Internal Control–Integrated Framework issued by the Committee of Sponsoring Organizations of the Treadway Commission (2013 framework) (the COSO criteria). In our opinion, The Hershey Company (the Company) maintained, in all material respects, effective internal control over financial reporting as of December 31, 2023, based on the COSO criteria.

As indicated in the accompanying Management’s Annual Report on Internal Control over Financial Reporting, management’s assessment of and conclusion on the effectiveness of internal control over financial reporting did not include the internal controls of the acquisition of certain assets that provide additional manufacturing capacity from Weaver Popcorn Manufacturing, Inc. (“Weaver”) on May 31, 2023, which is included in the 2023 consolidated financial statements of the Company and constituted 1.4% of total assets as of December 31, 2023. Our audit of internal control over financial reporting of the Company also did not include an evaluation of the internal control over financial reporting of Weaver.

We also have audited, in accordance with the standards of the Public Company Accounting Oversight Board (United States) (PCAOB), the consolidated balance sheets of the Company as of December 31, 2023 and 2022, the related consolidated statements of income, comprehensive income, cash flows, and stockholders' equity for each of the three years in the period ended December 31, 2023, and the related notes and financial statement schedule listed in the Index at Item 15(a)(2) and our report dated February 20, 2024 expressed an unqualified opinion thereon.

Basis for Opinion

The Company’s management is responsible for maintaining effective internal control over financial reporting and for its assessment of the effectiveness of internal control over financial reporting included in the accompanying Management’s Annual Report on Internal Control over Financial Reporting. Our responsibility is to express an opinion on the Company’s internal control over financial reporting based on our audit. We are a public accounting firm registered with the PCAOB and are required to be independent with respect to the Company in accordance with the U.S. federal securities laws and the applicable rules and regulations of the Securities and Exchange Commission and the PCAOB.

We conducted our audit in accordance with the standards of the PCAOB. Those standards require that we plan and perform the audit to obtain reasonable assurance about whether effective internal control over financial reporting was maintained in all material respects.

Our audit included obtaining an understanding of internal control over financial reporting, assessing the risk that a material weakness exists, testing and evaluating the design and operating effectiveness of internal control based on the assessed risk, and performing such other procedures as we considered necessary in the circumstances. We believe that our audit provides a reasonable basis for our opinion.

Definition and Limitations of Internal Control Over Financial Reporting

A company’s internal control over financial reporting is a process designed to provide reasonable assurance regarding the reliability of financial reporting and the preparation of financial statements for external purposes in accordance with generally accepted accounting principles. A company’s internal control over financial reporting includes those policies and procedures that (1) pertain to the maintenance of records that, in reasonable detail, accurately and fairly reflect the transactions and dispositions of the assets of the company; (2) provide reasonable assurance that transactions are recorded as necessary to permit preparation of financial statements in accordance with generally accepted accounting principles, and that receipts and expenditures of the company are being made only in accordance with authorizations of management and directors of the company; and (3) provide reasonable assurance regarding prevention or timely detection of unauthorized acquisition, use, or disposition of the company’s assets that could have a material effect on the financial statements.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 50

Because of its inherent limitations, internal control over financial reporting may not prevent or detect misstatements. Also, projections of any evaluation of effectiveness to future periods are subject to the risk that controls may become inadequate because of changes in conditions, or that the degree of compliance with the policies or procedures may deteriorate.

/s/ Ernst & Young LLP

Philadelphia, Pennsylvania

Table of Contents The Hershey Company | 2023 Form 10-K | Page 51

THE HERSHEY COMPANY

CONSOLIDATED STATEMENTS OF INCOME

(in thousands, except per share amounts)

Less: Net gain attributable to noncontrolling interest — — 5,307

Net income per share—basic:

Net income per share—diluted:

Dividends paid per share:

See Notes to Consolidated Financial Statements.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 52

THE HERSHEY COMPANY

CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME

(in thousands)

For the years ended December 31,

Other comprehensive income (loss), net of tax:

Foreign currency translation adjustments:

Pension and post-retirement benefit plans:

Cash flow hedges:

Comprehensive gain attributable to noncontrolling interest — — 10,556

See Notes to Consolidated Financial Statements.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 53

THE HERSHEY COMPANY

CONSOLIDATED BALANCE SHEETS

(in thousands, except share data)

ASSETS

Current assets:

LIABILITIES AND STOCKHOLDERS’ EQUITY

Current liabilities:

Stockholders’ equity:

The Hershey Company stockholders’ equity

Preferred stock, shares issued: none in 2023 and 2022 — —

See Notes to Consolidated Financial Statements.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 54

THE HERSHEY COMPANY

CONSOLIDATED STATEMENTS OF CASH FLOWS

(in thousands)

Operating Activities

Investing Activities

Financing Activities

Long-term borrowings, net of debt issuance costs 744,092 — —

Supplemental Disclosure

See Notes to Consolidated Financial Statements.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 55

THE HERSHEY COMPANY

CONSOLIDATED STATEMENTS OF STOCKHOLDERS’ EQUITY

(in thousands)

Dividends (including dividend equivalents):

Exercise of stock options and incentive-based transactions 1,649 31,562 33,211

Divestiture of noncontrolling interest (1,436) (1,436)

Distributions to joint venture partner (8,750) (8,750)

Other comprehensive loss (3,118) — (3,118)

Dividends (including dividend equivalents):

Conversion of Class B Common Stock into Common Stock 2,500 (2,500) —

Dividends (including dividend equivalents):

Conversion of Class B Common Stock into Common Stock 3,500 (3,500) —

Repurchase of common stock (including excise tax) (267,331) (267,331)

See Notes to Consolidated Financial Statements.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 56

THE HERSHEY COMPANY

NOTES TO CONSOLIDATED FINANCIAL STATEMENTS

(amounts in thousands, except share data or if otherwise indicated)

1. SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES

Description of Business

The Hershey Company together with its wholly-owned subsidiaries and entities in which it has a controlling interest, (the “Company,” “Hershey,” “we” or “us”) is a global confectionery leader known for its branded portfolio of chocolate, sweets, mints and other great tasting snacks. The Company has more than 90 brands worldwide including such iconic brand names as Hershey’s, Reese’s, Kisses, Jolly Rancher and Ice Breakers, which are marketed, sold and distributed in approximately 80 countries worldwide. Hershey’s structure is designed to ensure continued focus on North America, coupled with an emphasis on profitable growth in our focus international markets. The Company currently operates through three segments that are aligned with its management structure and the key markets it serves: (i) North America Confectionery, (ii) North America Salty Snacks and (iii) International. For additional information on our segment presentation, see Note 13.

Basis of Presentation

Our consolidated financial statements include the accounts of The Hershey Company and its majority-owned or controlled subsidiaries. Intercompany transactions and balances have been eliminated. We have a controlling financial interest if we own a majority of the outstanding voting common stock and minority shareholders do not have substantive participating rights, we have significant control through contractual or economic interests in which we are the primary beneficiary or we have the power to direct the activities that most significantly impact the entity's economic performance. We use the equity method of accounting when we have a 20% to 50% interest in other companies and exercise significant influence. In addition, we use the equity method of accounting for our investments in partnership entities which make equity investments in projects eligible to receive federal historic and energy tax credits. See Note 10 for additional information on our equity investments in partnership entities qualifying for tax credits. Other investments that are not controlled, and over which we do not have the ability to exercise significant influence, are accounted for at cost, less impairments. Both equity method and cost, less impairment investments are included as Other non-current assets in the Consolidated Balance Sheets. For additional information on our investments in unconsolidated affiliates, see Note 8.

Use of Estimates

The preparation of financial statements in conformity with accounting principles generally accepted in the United States of America (“GAAP”) requires management to make estimates and assumptions that affect the amounts reported in the consolidated financial statements and accompanying disclosures. Our significant estimates and assumptions include, among others, pension and other post-retirement benefit plan assumptions, valuation assumptions of goodwill and other intangible assets, useful lives of long-lived assets, marketing and trade promotion accruals and income taxes. These estimates and assumptions are based on management’s best judgment. Management evaluates its estimates and assumptions on an ongoing basis using historical experience and other factors, including the current economic environment, and the effects of any revisions are reflected in the consolidated financial statements in the period that they are determined. As future events and their effects cannot be determined with precision, actual results could differ significantly from these estimates.

Revenue Recognition

The majority of our revenue contracts represent a single performance obligation related to the fulfillment of customer orders for the purchase of our products, including chocolate, sweets, mints and other grocery and snack offerings. Net sales reflect the transaction prices for these contracts based on our selling list price which is then reduced by estimated costs for trade promotional programs, consumer incentives, and allowances and discounts associated with aged or potentially unsaleable products. We recognize revenue at the point in time that control of the ordered product(s) is transferred to the customer, which is typically upon delivery to the customer or other customer-designated delivery point. Amounts billed and due from our customers are classified as accounts receivables on the balance sheet and require payment on a short-term basis.

Our trade promotional programs and consumer incentives are used to promote our products and include, but are not limited to, discounts, coupons, rebates, in-store display incentives, and volume-based incentives. The estimated costs

Table of Contents The Hershey Company | 2023 Form 10-K | Page 57

THE HERSHEY COMPANY

NOTES TO CONSOLIDATED FINANCIAL STATEMENTS—(Continued)

(amounts in thousands, except share data or if otherwise indicated)

associated with these programs and incentives are based upon our analysis of the programs offered, expectations regarding customer and consumer participation, historical sales and payment trends, and our experience with payment patterns associated with similar programs offered in the past. The estimated costs of these programs are reasonably likely to change in future periods due to changes in trends with regard to customer and consumer participation, particularly for new programs and for programs related to the introduction of new products. Differences between estimated expense and actual program performance are recognized as a change in estimate in a subsequent period and are normally not significant. During 2023, 2022 and 2021, actual promotional costs have not deviated from the estimated amount by more than 3%. The Company’s unsettled portion remaining in accrued liabilities at year-end for these activities was $194,032 and $215,688 at December 31, 2023 and 2022, respectively.

We also recognize a minor amount of royalty income (less than 1% of our consolidated net sales) from sales-based licensing arrangements, pursuant to which revenue is recognized as the third-party licensee sales occur. Shipping and handling costs incurred to deliver product to the customer are recorded within cost of sales. Sales, value add and other taxes we collect concurrent with revenue producing activities are excluded from revenue.

The majority of our products are confectionery or confectionery-based and, therefore, exhibit similar economic characteristics, as they are based on similar ingredients and are marketed and sold through the same channels to the same customers. In connection with our recent acquisitions, we have expanded our portfolio of salty snacking products, which also exhibit similar economic characteristics to our confectionery products and are sold through the same channels to the same customers. See Note 13 for revenues reported by geographic segment, which is consistent with how we organize and manage our operations, as well as product line net sales information.

In 2023, 2022 and 2021, approximately 28%, 28% and 30%, respectively, of our consolidated net sales were made to McLane Company, Inc., one of the largest wholesale distributors in the United States to convenience stores, drug stores, wholesale clubs and mass merchandisers and the primary distributor of our products to Wal-Mart Stores, Inc.

Cost of Sales

Cost of sales represents costs directly related to the manufacture and distribution of our products. Primary costs include raw materials, packaging, direct labor, overhead, shipping and handling, warehousing and the depreciation of manufacturing, warehousing and distribution facilities. Manufacturing overhead and related expenses include salaries, wages, employee benefits, utilities, maintenance and property taxes.

Selling, Marketing and Administrative Expense

Selling, marketing and administrative expense (“SM&A”) represents costs incurred in generating revenues and in managing our business. Such costs include advertising and other marketing expenses, selling expenses, research and development costs, administrative and other indirect overhead costs, amortization of capitalized software and intangible assets and depreciation of administrative facilities. Research and development costs, charged to expense as incurred, totaled $50,030 in 2023, $46,943 in 2022 and $40,107 in 2021. Advertising expense is also charged to expense as incurred and totaled $604,853 in 2023, $517,677 in 2022 and $511,798 in 2021. There was no prepaid advertising expense as of December 31, 2023. Prepaid advertising expense was $241 as of December 31, 2022.

Cash Equivalents

Cash equivalents consist of highly liquid debt instruments, time deposits and money market funds with original maturities of three months or less. The fair value of cash equivalents approximates the carrying amount.

Accounts Receivable—Trade

In the normal course of business, we extend credit to customers that satisfy pre-defined credit criteria, based upon the results of our recurring financial account reviews and our evaluation of current and projected economic conditions. Our primary concentration of credit risk is associated with McLane Company, Inc., one customer served principally by our North America Confectionery segment. As of December 31, 2023, McLane Company, Inc. accounted for approximately 24% of our total accounts receivable. No other customer accounted for more than 10% of our year-end accounts receivable. We believe that we have little concentration of credit risk associated with the remainder of our customer base. Accounts receivable-trade in the Consolidated Balance Sheets is presented net of allowances for bad debts and anticipated discounts of $31,663 and $26,001 at December 31, 2023 and 2022, respectively.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 58

THE HERSHEY COMPANY

NOTES TO CONSOLIDATED FINANCIAL STATEMENTS—(Continued)

(amounts in thousands, except share data or if otherwise indicated)

Inventories

Inventories are valued at the lower of cost or net realizable value, adjusted for the value of inventory that is estimated to be excess, obsolete or otherwise unsaleable. As of December 31, 2023, approximately 55% of our inventories, representing the majority of our United States (“U.S.”) inventories, were valued under the last-in, first-out (“LIFO”) method. For the remainder of our inventories in the U.S. and inventories for our international businesses, cost is determined by either first-in, first-out ("FIFO") or average cost. LIFO cost of inventories valued using the LIFO method was $741,040 as of December 31, 2023 and $621,614 as of December 31, 2022. The adjustment to LIFO, as shown in Note 19, approximates the excess of replacement cost over the stated LIFO inventory value. The net impact of LIFO acquisitions and liquidations was not material to 2023, 2022 or 2021.

Property, Plant and Equipment

Property, plant and equipment is stated at cost and depreciated on a straight-line basis over the estimated useful lives of the assets, as follows: 3 to 15 years for machinery and equipment; and 25 to 40 years for buildings and related improvements. At December 31, 2023 and December 31, 2022, property, plant and equipment included assets under finance lease arrangements with net book values totaling $69,863 and $72,160, respectively. Total depreciation expense for the years ended December 31, 2023, 2022 and 2021 was $265,604, $253,582 and $230,638, respectively, and included depreciation on assets recorded under finance lease arrangements. Maintenance and repairs are expensed as incurred. We capitalize applicable interest charges incurred during the construction of new facilities and production lines and amortize these costs over the assets’ estimated useful lives.

We review long-lived assets for impairment whenever events or changes in circumstances indicate that the carrying amount of such assets may not be recoverable. We measure the recoverability of assets to be held and used by a comparison of the carrying amount of long-lived assets to future undiscounted net cash flows expected to be generated. If these assets are considered to be impaired, we measure impairment as the amount by which the carrying amount of the assets exceeds the fair value of the assets. We report assets held for sale or disposal at the lower of the carrying amount or fair value less cost to sell.

We assess asset retirement obligations on a periodic basis and recognize the fair value of a liability for an asset retirement obligation in the period in which it is incurred if a reasonable estimate of fair value can be made. We capitalize associated asset retirement costs as part of the carrying amount of the long-lived asset.

Computer Software

We capitalize costs associated with software developed or obtained for internal use when both the preliminary project stage is completed and it is probable the software being developed will be completed and placed in service. Capitalized costs include only (i) external direct costs of materials and services consumed in developing or obtaining internal-use software, (ii) payroll and other related costs for employees who are directly associated with and who devote time to the internal-use software project and (iii) interest costs incurred, when material, while developing internal-use software. We cease capitalization of such costs no later than the point at which the project is substantially complete and ready for its intended purpose.

The unamortized amount of capitalized software totaled $360,205 and $320,034 at December 31, 2023 and 2022, respectively. We amortize software costs using the straight-line method over the expected life of the software, generally 3 to 7 years. Accumulated amortization of capitalized software was $395,410 and $350,620 as of 2023 and 2022, respectively. Such amounts are recorded within other assets in the Consolidated Balance Sheets.

We review the carrying value of software and development costs for impairment in accordance with our policy pertaining to the impairment of long-lived assets.

Goodwill and Other Intangible Assets

Goodwill and indefinite-lived intangible assets are not amortized, but are evaluated for impairment annually or more often if indicators of a potential impairment are present. Our annual impairment tests are conducted at the beginning of the fourth quarter. We test goodwill for impairment by performing either a qualitative or quantitative assessment. If we choose to perform a qualitative assessment, we evaluate economic, industry and company-specific factors in assessing the fair value of the related reporting unit. If we determine that it is more likely than not that the fair value of the reporting unit is less than its carrying value, a quantitative test is then performed. Otherwise, no further testing is

Table of Contents The Hershey Company | 2023 Form 10-K | Page 59

THE HERSHEY COMPANY

NOTES TO CONSOLIDATED FINANCIAL STATEMENTS—(Continued)

(amounts in thousands, except share data or if otherwise indicated)

required. For those reporting units tested using a quantitative approach, we compare the fair value of each reporting unit with the carrying amount of the reporting unit, including goodwill. If the estimated fair value of the reporting unit is less than the carrying amount of the reporting unit, impairment is indicated, requiring recognition of a goodwill impairment charge for the differential (up to the carrying value of goodwill). We test individual indefinite-lived intangible assets by comparing the estimated fair values with the book values of each asset.

We determine the fair value of our reporting units and indefinite-lived intangible assets using an income approach. Under the income approach, we calculate the fair value of our reporting units and indefinite-lived intangible assets based on the present value of estimated future cash flows. Considerable management judgment is necessary to evaluate the impact of operating and macroeconomic changes and to estimate the future cash flows used to measure fair value. Our estimates of future cash flows consider past performance, current and anticipated market conditions and internal projections and operating plans which incorporate estimates for sales growth and profitability, and cash flows associated with taxes and capital spending. Additional assumptions include forecasted growth rates, estimated discount rates, which may be risk-adjusted for the operating market of the reporting unit, and estimated royalty rates that would be charged for comparable branded licenses. We believe such assumptions also reflect current and anticipated market conditions and are consistent with those that would be used by other marketplace participants for similar valuation purposes. Such assumptions are subject to change due to changing economic and competitive conditions.

The cost of intangible assets with finite useful lives is amortized on a straight-line basis. Our finite-lived intangible assets consist primarily of certain trademarks, customer-related intangible assets and patents obtained through business acquisitions. The weighted-average amortization period for our finite-lived intangible assets is approximately 28 years, which is primarily driven by recently acquired trademarks. If certain events or changes in operating conditions indicate that the carrying value of these assets, or related asset groups, may not be recoverable, we perform an impairment assessment and may adjust the remaining useful lives. See Note 3 for additional information regarding the results of impairment tests.

Supplier Finance Program Obligations

During 2020, we entered into an agreement with two third-party financial institutions to facilitate a supplier finance program which allows qualifying suppliers to sell their receivables from the Company to the financial institution. These participating suppliers negotiate their outstanding receivable arrangements directly with the financial institution, and our rights and obligations to our suppliers are not impacted. We have no economic interest in a supplier’s decision to enter into these agreements. Once a qualifying supplier elects to participate in the supplier finance program and reaches an agreement with a financial institution, they elect which individual Company invoices they sell to the financial institution. However, all Company payments to participating suppliers are paid to the financial institution on the invoice due date, regardless of whether the individual invoice is sold by the supplier to the financial institution. The financial institution pays the supplier on the invoice due date for any invoices that were not previously sold under the supplier finance program. Our obligations to our suppliers, including amounts due and scheduled payment terms, are not impacted by our suppliers’ decisions to sell amounts under these arrangements. The payment of these obligations is included in cash provided by operating activities in the Consolidated Statements of Cash Flows.The rollforward of the Company’s outstanding obligations confirmed as valid under its supplier finance program, which are included in Accounts Payable in the Consolidated Balance Sheets, for year ended December 31, 2023 are as follows:

Invoice amounts added during the year 585,872

Invoice amounts paid during the year (541,904)

Supplier finance program obligations outstanding at end of the year $ 149,261

Table of Contents The Hershey Company | 2023 Form 10-K | Page 60

THE HERSHEY COMPANY

NOTES TO CONSOLIDATED FINANCIAL STATEMENTS—(Continued)

(amounts in thousands, except share data or if otherwise indicated)

Currency Translation

The financial statements of our foreign entities with functional currencies other than the U.S. dollar are translated into U.S. dollars, with the resulting translation adjustments recorded as a component of other comprehensive income (loss). Assets and liabilities are translated into U.S. dollars using the exchange rates in effect at the balance sheet date, while income and expense items are translated using the average exchange rates during the period.

Derivative Instruments

We use derivative instruments principally to offset exposure to market risks arising from changes in commodity prices, foreign currency exchange rates and interest rates. See Note 5 for additional information on our risk management strategy and the types of instruments we use.

Derivative instruments are recognized on the Consolidated Balance Sheets at their fair values. When we become party to a derivative instrument and intend to apply hedge accounting, we designate the instrument for financial reporting purposes as a cash flow or fair value hedge. The accounting for changes in fair value (gains or losses) of a derivative instrument depends on whether we have designated it and it qualified as part of a hedging relationship, as noted below:

•Changes in the fair value of a derivative that is designated as a cash flow hedge are recorded in accumulated other comprehensive income (“AOCI”) to the extent effective and reclassified into earnings in the same period or periods during which the transaction hedged by that derivative also affects earnings.

•Changes in the fair value of a derivative that is designated as a fair value hedge, along with the offsetting loss or gain on the hedged asset or liability that is attributable to the risk being hedged, are recorded in earnings, thereby reflecting in earnings the net extent to which the hedge is not effective in achieving offsetting changes in fair value.

•Changes in the fair value of a derivative not designated as a hedging instrument are recognized in earnings in cost of sales or SM&A, consistent with the related exposure.

For derivatives designated as hedges, we assess, both at the hedge’s inception and on an ongoing basis, whether they are highly effective in offsetting changes in fair values or cash flows of hedged items. The ineffective portion, if any, is recorded directly in earnings. In addition, if we determine that a derivative is not highly effective as a hedge or that it has ceased to be a highly effective hedge, we discontinue hedge accounting prospectively.

We do not hold or issue derivative instruments for trading or speculative purposes and are not a party to any instruments with leverage or prepayment features.

Cash flows related to the derivative instruments we use to manage interest, commodity or other currency exposures are classified as operating activities.

Recent Accounting Pronouncements

Recently Adopted Accounting Pronouncements

In March 2020, the Financial Accounting Standards Board (“FASB”) issued Accounting Standards Update (“ASU”) No. 2020-04, Reference Rate Reform (Topic 848): Facilitation of the Effects of Reference Rate Reform on Financial Reporting. The ASU is intended to provide temporary optional expedients and exceptions to the GAAP guidance on contract modifications and hedge accounting to ease the financial reporting burdens related to the expected market transition from the London Interbank Offered Rate (LIBOR) and other interbank offered rates to alternative reference rates. Entities may apply this ASU upon issuance through December 31, 2022 on a prospective basis. We early adopted the provisions of this ASU in the first quarter of 2022. Adoption of the new standard did not have a material impact on our consolidated financial statements.

In September 2022, the FASB issued ASU No. 2022-04, Liabilities—Supplier Finance Programs (Subtopic 405-50):

Disclosure of Supplier Finance Program Obligations. This ASU requires a buyer in a supplier finance program to disclose qualitative and quantitative information about the program including the program’s nature, activity during the period, changes from period to period and potential magnitude. ASU 2022-04 is effective for annual periods beginning after December 15, 2022 and interim periods within those annual periods. A rollforward of obligations during the annual period, including the amount of obligations confirmed and obligations subsequently paid, is effective for annual periods beginning after December 15, 2023 with early adoption permitted. This ASU should be applied

Table of Contents The Hershey Company | 2023 Form 10-K | Page 61

THE HERSHEY COMPANY

NOTES TO CONSOLIDATED FINANCIAL STATEMENTS—(Continued)

(amounts in thousands, except share data or if otherwise indicated)

retrospectively to each period in which a balance sheet is presented, except for the amendment on rollforward information, which should be applied prospectively. We early adopted provisions of this ASU in the fourth quarter of 2022, with the exception of the amendment on rollforward information, which we adopted in the fourth quarter of 2023. Adoption of the new standard did not have a material impact on our consolidated financial statements.

In October 2021, the FASB issued ASU No. 2021-08, Business Combinations (Topic 805): Accounting for Contract Assets and Contract Liabilities from Contracts with Customers. This ASU requires an acquirer to recognize and measure contract assets and contract liabilities acquired in a business combination in accordance with Revenue from Contracts with Customers (Topic 606) rather than adjust them to fair value at the acquisition date. ASU 2021-08 is effective for annual periods beginning after December 15, 2022 and interim periods within those annual periods. This ASU should be applied prospectively to business combinations occurring on or after the date of adoption. As a result, we adopted the provisions of this ASU in the first quarter of 2023. This new standard was not applicable to our May 2023 acquisition of Weaver Popcorn Manufacturing, Inc. (“Weaver”) due to no contract assets or liabilities (as discussed in Note 2); however, will be applied in relevant future acquisitions.

Recently Issued Accounting Pronouncements Not Yet Adopted

In March 2023, the FASB issued ASU No. 2023-02, Investments - Equity Method and Joint Ventures (Topic 323): Accounting for Investments in tax credit structures using the proportional amortization method. This ASU allows entities to elect the proportional amortization method for all tax equity investments, regardless of how the tax credits are received as long as certain criteria are met. This ASU may be applied in a modified retrospective or retrospective basis and an entity must evaluate the investments in which it still expects to receive tax credits or other income tax benefits as of the beginning of the earliest period presented. ASU 2023-02 is effective for annual periods beginning after December 15, 2023 and interim periods within those annual periods. We are currently evaluating the impact of the new standard on our consolidated financial statements and related disclosures.

In November 2023, the FASB issued ASU No. 2023-07, Segment Reporting (Topic 280): Improvements to Reportable Segment Disclosures. This ASU requires disclosure of significant segment expenses that are regularly provided to the chief operating decision maker (“CODM”), an amount for other segment items with a description of the composition, and disclosure of the title and position of the CODM. ASU 2023-07 is effective for annual periods beginning after December 15, 2023 and interim periods within fiscal years beginning after December 15, 2024. Early adoption is permitted and the update should be applied retrospectively to each period presented in the financial statements. We are currently evaluating the impact of the new standard on our consolidated financial statements and related disclosures. As a result, we intend to adopt the provisions of this ASU in the fourth quarter of 2024.

In December 2023, the FASB issued ASU No. 2023-09, Income Taxes (Topic 740): Improvements to Income Tax Disclosures. This ASU requires public business entities on an annual basis to disclose specific categories in a tabular rate reconciliation and provide additional information for reconciling items that meet a five percent quantitative threshold. Additionally, the ASU requires all entities to disclose the amount of income taxes paid disaggregated by federal, state, and foreign taxes, as well as individual jurisdictions where income taxes paid are equal to or greater than five percent of total income taxes paid. ASU 2023-09 is effective for annual periods beginning after December 15, 2024. Early adoption is permitted and the updated should be applied on a prospective basis, with a retrospective application permitted in the financial statements. We are currently evaluating the impact of the new standard on our consolidated financial statements and related disclosures. As a result, we intend to adopt the provisions of this ASU in the fourth quarter of 2025.

No other new accounting pronouncement issued or effective during the fiscal year had or is expected to have a material impact on our consolidated financial statements or disclosures.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 62

THE HERSHEY COMPANY

NOTES TO CONSOLIDATED FINANCIAL STATEMENTS—(Continued)

(amounts in thousands, except share data or if otherwise indicated)

2. BUSINESS ACQUISITIONS AND DIVESTITURES

Acquisitions of businesses are accounted for as business combinations and, accordingly, the results of operations of the businesses acquired have been included in the consolidated financial statements since the respective dates of the acquisitions. The purchase price for each acquisition is allocated to the assets acquired and liabilities assumed.

In conjunction with acquisitions noted below, we used various valuation techniques to determine fair value of the assets acquired, with the primary techniques being discounted cash flow analysis, relief-from-royalty, a form of the multi-period excess earnings and the with-and-without valuation approaches, which use significant unobservable inputs, or Level 3 inputs, as defined by the fair value hierarchy. Inputs to these valuation approaches require significant judgment including: (i) forecasted sales, growth rates and customer attrition rates, (ii) forecasted operating margins, (iii) royalty rates and discount rates used to present value future cash flows, (iv) the amount of synergies expected from the acquisition, (v) the economic useful life of assets and (vi) the evaluation of historical tax positions. In certain acquisitions, historical data is limited; therefore, we base our estimates and assumptions on budgets, business plans, economic projections, anticipated future cash flows and marketplace data.

2023 Activity

Manufacturing Capacity

On May 31, 2023, we completed the acquisition of certain assets that provide additional manufacturing capacity from Weaver, a leader in the production and co-packing of microwave popcorn and ready-to-eat popcorn, and former co-manufacturer of the Company’s SkinnyPop brand. The cash consideration paid for Weaver totaled $165,818 and consisted of cash on hand and short-term borrowings. Acquisition-related costs for the Weaver acquisition were immaterial.

The acquisition has been accounted for as a business combination and, accordingly, Weaver has been included within the North America Salty Snacks segment from the date of acquisition. The purchase consideration was allocated to assets acquired and liabilities assumed based on their respective fair values and consisted of $85,231 to goodwill, $79,136 to property, plant and equipment, net and $1,451 to other net assets acquired. The purchase price allocation has been finalized as of the fourth quarter of 2023 and did not include measurement period adjustments.

Goodwill was determined as the excess of the purchase price over the fair value of the net assets acquired. The goodwill derived from this acquisition is deductible for tax purposes and reflects the value of leveraging our supply chain capabilities to accelerate growth and access to our portfolio of salty snacks products.

2021 Activity

Pretzels Inc.

On December 14, 2021, we completed the acquisition of Pretzels Inc. (“Pretzels”), previously a privately held company that manufactures and sells pretzels and other salty snacks for other branded products and private labels in the United States. Pretzels is an industry leader in the pretzel category with a product portfolio that includes filled, gluten free and seasoned pretzels, as well as extruded snacks that complements Hershey’s snacks portfolio. Based in Bluffton, Indiana, Pretzels operates three manufacturing locations in Indiana and Kansas. Pretzels provides Hershey with deep pretzel category and product expertise and the manufacturing capabilities to support brand growth and future pretzel innovation. The cash consideration paid for Pretzels totaled $304,334 and consisted of cash on hand and short-term borrowings. Acquisition-related costs for the Pretzels acquisition were immaterial.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 63

THE HERSHEY COMPANY

NOTES TO CONSOLIDATED FINANCIAL STATEMENTS—(Continued)

(amounts in thousands, except share data or if otherwise indicated)

The acquisition has been accounted for as a business combination and, accordingly, Pretzels has been included within the North America Salty Snacks segment from the date of acquisition. The purchase consideration was allocated to assets acquired and liabilities assumed based on their respective fair values as follows:

Other intangible assets 26,100

Current assets acquired 30,835

Property, plant and equipment, net 100,716

Other non-current assets, primarily operating lease ROU assets 111,787

Deferred income taxes 773

Current liabilities acquired (22,713)

Other long-term liabilities, primarily operating lease liabilities (109,355)

The purchase price allocation presented above has been finalized as of the third quarter of 2022 and includes an immaterial amount of measurement period adjustments. The measurement period adjustments to the initial allocation were based on more detailed information obtained about the specific assets acquired and liabilities assumed, specifically, post-closing adjustments to the working capital acquired including certain holdbacks.

Goodwill was determined as the excess of the purchase price over the fair value of the net assets acquired (including the identifiable intangible assets). A portion of goodwill derived from this acquisition is deductible for tax purposes and reflects the value of leveraging our brand building expertise, supply chain capabilities and retail relationships to accelerate growth and access to the portfolio of Pretzels’ products.

Other intangible assets include trademarks valued at $5,700 and customer relationships valued at $20,400. Trademarks were assigned an estimated useful life of five years and customer relationships were assigned an estimated useful life of 19 years.

Dot's Pretzels, LLC

On December 13, 2021, we completed the acquisition of Dot’s Pretzels, LLC (“Dot’s”), previously a privately held company that produces and sells pretzels and other snack food products to retailers and distributors in the United States, with Dot’s Homestyle Pretzels snacks as its primary product, which complements Hershey’s snacks portfolio. The cash consideration paid for Dot’s totaled $891,169 and consisted of cash on hand and short-term borrowings. Acquisition-related costs for the Dot’s acquisition were immaterial.

The acquisition has been accounted for as a business combination and, accordingly, Dot’s has been included within the North America Salty Snacks segment from the date of acquisition. The purchase consideration was allocated to assets acquired and liabilities assumed based on their respective fair values as follows:

Other intangible assets 543,100

Current assets acquired 51,121

Property, plant and equipment, net 40,266

Other non-current assets 2,201

Other liabilities assumed, primarily current liabilities (29,946)

The purchase price allocation presented above has been finalized as of the third quarter of 2022 and includes an immaterial amount of measurement period adjustments. The measurement period adjustments to the initial allocation were based on more detailed information obtained about the specific assets acquired and liabilities assumed, specifically, the refinement of certain assumptions in the value of customer relationships based on an analysis of

Table of Contents The Hershey Company | 2023 Form 10-K | Page 64

THE HERSHEY COMPANY

NOTES TO CONSOLIDATED FINANCIAL STATEMENTS—(Continued)

(amounts in thousands, except share data or if otherwise indicated)

historical customer-specific data and post-closing adjustments to the working capital acquired including certain holdbacks.

Goodwill was determined as the excess of the purchase price over the fair value of the net assets acquired (including the identifiable intangible assets). The goodwill derived from this acquisition is deductible for tax purposes and reflects the value of leveraging our brand building expertise, supply chain capabilities and retail relationships to accelerate growth and access to the portfolio of Dot’s products.

Other intangible assets include trademarks valued at $336,600 and customer relationships valued at $206,500. Trademarks were assigned an estimated useful life of 33 years and customer relationships were assigned estimated useful life of 18 years.

Lily's Sweets, LLC

On June 25, 2021, we completed the acquisition of Lily’s Sweets, LLC (“Lily’s”), previously a privately held company that sells a line of sugar-free and low-sugar confectionery foods to retailers and distributors in the United States and Canada. Lily’s products include dark and milk chocolate style bars, baking chips, peanut butter cups and other confection products that complement Hershey’s confectionery and confectionery-based portfolio. The cash consideration paid for Lily’s totaled $422,210 and the Company may be required to pay additional cash consideration if certain defined targets related to net sales and gross margin are exceeded during the period from the closing date through December 31, 2021. As of the acquisition date, the estimated fair value of the contingent consideration obligation was classified as a liability of $5,000 and was determined using a scenario-based analysis on forecasted future results. Based on financial results through December 31, 2021, the fair value was reduced during the fourth quarter of 2021 to $1,250, with the adjustment to fair value recorded in the SM&A expense caption within the Consolidated Statements of Income. We paid this contingent consideration during the second quarter of 2022. Acquisition-related costs for the Lily’s acquisition were immaterial.

The acquisition has been accounted for as a business combination and, accordingly, Lily’s has been included within the North America Confectionery segment from the date of acquisition. The purchase consideration, inclusive of the acquisition date fair value of the contingent consideration, was allocated to assets acquired and liabilities assumed based on their respective fair values as follows:

Other intangible assets 235,800

Other assets acquired, primarily current assets 33,092

Other liabilities assumed, primarily current liabilities (9,620)

Deferred income taxes (7,888)

The purchase price allocation presented above has been finalized as of the fourth quarter of 2021 and includes an immaterial amount of measurement period adjustments. The measurement period adjustments to the initial allocation were based on more detailed information obtained about the specific assets acquired and liabilities assumed.

Goodwill was determined as the excess of the purchase price over the fair value of the net assets acquired (including the identifiable intangible assets). The majority of goodwill derived from this acquisition is expected to be deductible for tax purposes and reflects the value of leveraging our brand building expertise, supply chain capabilities and retail relationships to accelerate growth and access to the portfolio of Lily’s products.

Other intangible assets include trademarks valued at $151,600 and customer relationships valued at $84,200. Trademarks were assigned an estimated useful life of 33 years and customer relationships were assigned estimated useful lives ranging from 17 to 18 years.

Table of Contents The Hershey Company | 2023 Form 10-K | Page 65

THE HERSHEY COMPANY

NOTES TO CONSOLIDATED FINANCIAL STATEMENTS—(Continued)

(amounts in thousands, except share data or if otherwise indicated)

Lotte Shanghai Foods Co., Ltd.

In January 2021, we completed the divestiture of Lotte Shanghai Foods Co., Ltd. (“LSFC”), which was previously included within the International segment results in our consolidated financial statements. Total proceeds from the divestiture and the impact on our consolidated financial statements were immaterial and were recorded in the SM&A expense caption within the Consolidated Statements of Income.

3. GOODWILL AND INTANGIBLE ASSETS

The changes in the carrying value of goodwill by segment for the years ended December 31, 2023 and 2022 are as follows:

North America Confectionery North America Salty Snacks International Total

Measurement period adjustments — (18,028) — (18,028)

Acquired during the period (see Note 2) — 85,231 — 85,231

We had no goodwill impairment charges in 2023, 2022 or 2021.

The following table provides the gross carrying amount and accumulated amortization for each major class of intangible asset:

Intangible assets subject to amortization:

Intangible assets not subject to amortization:

Total amortization expense for the years ended December 31, 2023, 2022 and 2021 was $88,771, $79,690 and $52,124, respectively.

Amortization expense for the next five years, based on current intangible asset balances, is estimated to be as follows:

Table of Contents The Hershey Company | 2023 Form 10-K | Page 66

THE HERSHEY COMPANY

NOTES TO CONSOLIDATED FINANCIAL STATEMENTS—(Continued)

(amounts in thousands, except share data or if otherwise indicated)

4. SHORT AND LONG-TERM DEBT

Short-term Debt

Source: SEC EDGAR (public domain) · 10-K for the period ended 2023-12-31, filed 2024-02-20 · accession 0000047111-24-000009

Filing HTML rendered to line-structured narrative text by the shipped reducer (datafeeds.edgar_fulltext.visible_text, keep_table_headers=True): scripts and inline-XBRL headers are dropped, and table content is reduced to its short label cells — numeric table data is not rendered and is therefore not counted. The same rendering is used for every year, so a year-over-year comparison is like for like.

The text is our rendering of the filing, not a facsimile: original pagination, typography and tables are not reproduced, and the numbers live in the financial statements (FA).

The outline locates item HEADINGS in this document. Only Items 1A and 7 have certified boundaries elsewhere in the terminal (the redline and the narrative-overlap number); every span here runs from one heading found to the next heading found.

How the outline was chosen. It is the longest chain of item headings that runs forward through both the document and the standard item order: 23 headings are on that chain and 20 further heading-shaped lines are not — the table-of-contents echo of every item, cross-references and exhibit-list mentions. Each entry's length is measured from its heading to the next heading on the chain.