HSY vs. XYL
HSY (The Hershey Company) and XYL (Xylem Inc.) are both stocks. HSY operates in Confectioners (Consumer Defensive), while XYL operates in Specialty Industrial Machinery (Industrials). Over the past 10 years, HSY returned 9.11%/yr vs 10.54%/yr for XYL. At a 0.22 correlation, their price movements are largely independent.
Performance
HSY vs. XYL - Performance Comparison
Loading charts...
Returns By Period
In the year-to-date period, HSY achieves a 1.25% return, which is significantly higher than XYL's -18.57% return. Over the past 10 years, HSY has underperformed XYL with an annualized return of 9.11%, while XYL has yielded a comparatively higher 10.54% annualized return.
HSY
- 1D
- 0.45%
- 1M
- -6.45%
- YTD
- 1.25%
- 6M
- 1.34%
- 1Y
- 8.70%
- 3Y*
- -8.39%
- 5Y*
- 3.29%
- 10Y*
- 9.11%
XYL
- 1D
- 0.94%
- 1M
- 1.38%
- YTD
- -18.57%
- 6M
- -19.12%
- 1Y
- -12.41%
- 3Y*
- 1.00%
- 5Y*
- -0.21%
- 10Y*
- 10.54%
HSY vs. XYL - Yearly Performance Comparison
| 2026 (YTD) | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | |
|---|---|---|---|---|---|---|---|---|---|---|
HSY The Hershey Company | 1.25% | 10.98% | -6.51% | -17.88% | 21.86% | 29.58% | 5.90% | 40.20% | -2.92% | 12.33% |
XYL Xylem Inc. | -18.57% | 18.78% | 2.57% | 4.77% | -6.60% | 18.94% | 30.90% | 19.59% | -1.01% | 39.50% |
Correlation
The correlation between HSY and XYL is 0.05, meaning there is essentially no relationship between their price movements. Each responds to its own set of market drivers, making them strong candidates for combining in a diversified portfolio.
| Correlation | |
|---|---|
Correlation (1Y) Calculated over the trailing 1-year period | 0.05 |
Correlation (3Y) Calculated over the trailing 3-year period | 0.14 |
Correlation (5Y) Calculated over the trailing 5-year period | 0.18 |
Correlation (10Y) Calculated over the trailing 10-year period | 0.19 |
Correlation (All Time) Calculated using the full available price history since Oct 13, 2011 | 0.22 |
The correlation between HSY and XYL shifts across timeframes, from 0.05 (1 year) to 0.22 (all time), reflecting how their relationship changes across market environments.
Fundamentals
HSY:
$37.11B
XYL:
$26.79B
HSY:
$5.38
XYL:
$4.02
HSY:
33.80
XYL:
27.36
HSY:
3.08
XYL:
3.85
HSY:
7.84
XYL:
2.44
HSY:
$11.99B
XYL:
$6.97B
HSY:
$4.17B
XYL:
$2.71B
HSY:
$2.04B
XYL:
$1.41B
Compare stocks, funds, or ETFs
Search for stocks, ETFs, and funds for a quick comparison or use the comparison tool for more options.
Return for Risk
HSY vs. XYL — Risk / Return Rank
HSY
XYL
HSY vs. XYL - Risk-Adjusted Trends Comparison
This table presents a comparison of risk-adjusted performance metrics for The Hershey Company (HSY) and Xylem Inc. (XYL). Risk-adjusted metrics are performance indicators that assess an investment's returns in relation to its risk, enabling a more accurate comparison of different investment options.
Values are calculated on a 1-year rolling basis and updated daily. Risk-adjusted metrics are more stable over longer periods — use the period switch above to explore them.
| HSY | XYL | Difference | |
|---|---|---|---|
| Sharpe ratioReturn per unit of total volatility | +0.83 | ||
| Sortino ratioReturn per unit of downside risk | +1.25 | ||
| Omega ratioGain probability vs. loss probability | 1.08 | 0.93 | +0.15 |
| Calmar ratioReturn relative to maximum drawdown | 0.35 | -0.41 | +0.76 |
| Martin ratioReturn relative to average drawdown | 0.87 | -0.92 | +1.79 |
Loading charts...
Drawdowns
HSY vs. XYL - Drawdown Comparison
The maximum HSY drawdown since its inception was -49.15%, which is greater than XYL's maximum drawdown of -46.69%. Use the drawdown chart below to compare losses from any high point for HSY and XYL.
Loading charts...
Drawdown Indicators
| HSY | XYL | Difference | |
|---|---|---|---|
Max DrawdownLargest peak-to-trough decline | -49.15% | -46.69% | -2.46% |
Max Drawdown (1Y)Largest decline over 1 year | -25.01% | -30.04% | +5.03% |
Max Drawdown (3Y)Largest decline over 3 years | -42.23% | -30.04% | -12.19% |
Max Drawdown (5Y)Largest decline over 5 years | -45.25% | -46.69% | +1.44% |
Max Drawdown (10Y)Largest decline over 10 years | -45.25% | -46.69% | +1.44% |
Current DrawdownCurrent decline from peak | -28.02% | -27.30% | -0.72% |
Average DrawdownAverage peak-to-trough decline | -13.10% | -10.40% | -2.70% |
Ulcer IndexDepth and duration of drawdowns from previous peaks | 10.00% | 13.54% | -3.54% |
Volatility
HSY vs. XYL - Volatility Comparison
The Hershey Company (HSY) has a higher volatility of 9.48% compared to Xylem Inc. (XYL) at 6.01%. This indicates that HSY's price experiences larger fluctuations and is considered to be riskier than XYL based on this measure. The chart below showcases a comparison of their rolling one-month volatility.
Loading charts...
Volatility by Period
| HSY | XYL | Difference | |
|---|---|---|---|
Volatility (1M)Calculated over the trailing 1-month period | 9.48% | 6.01% | +3.47% |
Volatility (6M)Calculated over the trailing 6-month period | 20.08% | 19.34% | +0.74% |
Volatility (1Y)Calculated over the trailing 1-year period | 27.49% | 24.52% | +2.97% |
Volatility (5Y)Calculated over the trailing 5-year period, annualized | 22.77% | 26.08% | -3.31% |
Volatility (10Y)Calculated over the trailing 10-year period, annualized | 23.44% | 27.30% | -3.86% |
Dividends
HSY vs. XYL - Dividend Comparison
HSY's dividend yield for the trailing twelve months is around 3.11%, more than XYL's 1.51% yield.
| Position | TTM | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | 2016 | 2015 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
HSY The Hershey Company | 3.11% | 3.01% | 3.24% | 2.39% | 1.67% | 1.76% | 2.07% | 2.03% | 2.57% | 2.24% | 2.32% | 2.50% |
XYL Xylem Inc. | 1.51% | 1.17% | 1.24% | 1.15% | 1.09% | 0.93% | 1.02% | 1.22% | 1.26% | 1.06% | 1.25% | 1.54% |
Financials
HSY vs. XYL - Financials Comparison
This section allows you to compare key financial metrics between The Hershey Company and Xylem Inc.. You can select fields from income statements, balance sheets, and cash flow statements to easily visualize and compare the financial health of both companies.
Total Revenue: Total amount of money received from sales and other business activities
Frequently Asked Questions
HSY and XYL have a correlation of 0.05, meaning they provide meaningful diversification benefit when combined. Depending on your allocation goals, holding both could reduce overall portfolio risk.
HSY has higher volatility (9.48%) compared to XYL (6.01%). In terms of maximum drawdown, HSY dropped -49.15% vs XYL's -46.69%.
HSY currently has the higher Sharpe Ratio (0.32 vs -0.51), meaning it's delivered slightly more return per unit of risk over the trailing 12 months. However, this ranking shifts over time - use the Risk/Return Score above for a more comprehensive view that combines Sharpe, Sortino, and other measures used by quantitative funds.
Find the right allocation for HSY and XYL
Add both to a portfolio and optimize allocations for your target — whether that's maximizing returns, minimizing drawdowns, or balancing risk across holdings.
Open Portfolio Optimizer