PortfoliosLab logoPortfoliosLab logo
OKTA vs. HSY
Performance
Return for Risk
Drawdowns
Volatility
Dividends
Financials

Performance

OKTA vs. HSY - Performance Comparison

The chart below illustrates the hypothetical performance of a $10,000 investment in Okta, Inc. (OKTA) and The Hershey Company (HSY). The values are adjusted to include any dividend payments, if applicable.

Loading charts...

Returns By Period

In the year-to-date period, OKTA achieves a 34.49% return, which is significantly higher than HSY's 1.25% return.


OKTA

1D
-1.03%
1M
48.71%
YTD
34.49%
6M
28.95%
1Y
16.08%
3Y*
15.20%
5Y*
-12.47%
10Y*

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%
*Multi-year figures are annualized to reflect compound growth (CAGR)

OKTA vs. HSY - Yearly Performance Comparison


2026 (YTD)202520242023202220212020201920182017
OKTA
Okta, Inc.
34.49%9.73%-12.96%32.49%-69.52%-11.83%120.39%80.83%149.12%7.83%
HSY
The Hershey Company
1.25%10.98%-6.51%-17.88%21.86%29.58%5.90%40.20%-2.92%6.10%

Correlation

The correlation between OKTA and HSY is -0.14, meaning they tend to move in opposite directions. This is especially valuable for risk management - when one declines, the other has historically tended to hold steady or rise.


Correlation
Correlation (1Y)
Calculated over the trailing 1-year period

-0.14

Correlation (3Y)
Calculated over the trailing 3-year period

-0.04

Correlation (5Y)
Calculated over the trailing 5-year period

-0.04

Correlation (All Time)
Calculated using the full available price history since Apr 7, 2017

0.04

The correlation between OKTA and HSY shifts across timeframes, from -0.14 (1 year) to 0.04 (all time), reflecting how their relationship changes across market environments.

Fundamentals

Market Cap

OKTA:

$20.66B

HSY:

$37.11B

EPS

OKTA:

$0.96

HSY:

$5.38

PE Ratio

OKTA:

120.69

HSY:

33.80

PS Ratio

OKTA:

9.36

HSY:

3.08

PB Ratio

OKTA:

3.00K

HSY:

7.84

Total Revenue (TTM)

OKTA:

$2.23B

HSY:

$11.99B

Gross Profit (TTM)

OKTA:

$1.73B

HSY:

$4.17B

EBITDA (TTM)

OKTA:

$235.06M

HSY:

$2.04B

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

OKTA vs. HSY — Risk / Return Rank

Compare risk-adjusted metric ranks to identify better-performing investments over the past 12 months.

OKTA
OKTA Risk / Return Rank: 5454
Overall Rank
OKTA Sharpe Ratio Rank: 5353
Sharpe Ratio Rank
OKTA Sortino Ratio Rank: 5454
Sortino Ratio Rank
OKTA Omega Ratio Rank: 5353
Omega Ratio Rank
OKTA Calmar Ratio Rank: 5353
Calmar Ratio Rank
OKTA Martin Ratio Rank: 5555
Martin Ratio Rank

HSY
HSY Risk / Return Rank: 5050
Overall Rank
HSY Sharpe Ratio Rank: 5454
Sharpe Ratio Rank
HSY Sortino Ratio Rank: 4848
Sortino Ratio Rank
HSY Omega Ratio Rank: 4646
Omega Ratio Rank
HSY Calmar Ratio Rank: 5151
Calmar Ratio Rank
HSY Martin Ratio Rank: 5252
Martin Ratio Rank
The rank (0–100) shows how this investment's returns compare to the risk taken. Higher = better. Based on the past 12 months of data, combining Sharpe, Sortino, and other metrics used by quantitative funds and institutional investors.

OKTA vs. HSY - Risk-Adjusted Trends Comparison

This table presents a comparison of risk-adjusted performance metrics for Okta, Inc. (OKTA) and The Hershey Company (HSY). 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.


OKTAHSYDifference
Sharpe ratioReturn per unit of total volatility

-0.02

Sortino ratioReturn per unit of downside risk

+0.24

Omega ratioGain probability vs. loss probability

1.11

1.08

+0.03

Calmar ratioReturn relative to maximum drawdown

0.43

0.35

+0.08

Martin ratioReturn relative to average drawdown

1.02

0.87

+0.15

OKTA vs. HSY - Sharpe Ratio Comparison

The current OKTA Sharpe Ratio is 0.30, which is comparable to the HSY Sharpe Ratio of 0.32. The chart below compares the historical Sharpe Ratios of OKTA and HSY, calculated using daily returns over the previous 12 months. A higher Sharpe Ratio indicates better risk-adjusted performance relative to the risk-free rate.


Loading charts...

Drawdowns

OKTA vs. HSY - Drawdown Comparison

The maximum OKTA drawdown since its inception was -84.57%, which is greater than HSY's maximum drawdown of -49.15%. Use the drawdown chart below to compare losses from any high point for OKTA and HSY.


Loading charts...

Drawdown Indicators


OKTAHSYDifference

Max Drawdown

Largest peak-to-trough decline

-84.57%

-49.15%

-35.42%

Max Drawdown (1Y)

Largest decline over 1 year

-37.75%

-25.01%

-12.74%

Max Drawdown (3Y)

Largest decline over 3 years

-50.57%

-42.23%

-8.34%

Max Drawdown (5Y)

Largest decline over 5 years

-83.43%

-45.25%

-38.18%

Max Drawdown (10Y)

Largest decline over 10 years

-45.25%

Current Drawdown

Current decline from peak

-60.14%

-28.02%

-32.12%

Average Drawdown

Average peak-to-trough decline

-38.27%

-13.10%

-25.17%

Ulcer Index

Depth and duration of drawdowns from previous peaks

15.82%

10.00%

+5.82%

Volatility

OKTA vs. HSY - Volatility Comparison

Okta, Inc. (OKTA) has a higher volatility of 32.92% compared to The Hershey Company (HSY) at 9.48%. This indicates that OKTA's price experiences larger fluctuations and is considered to be riskier than HSY based on this measure. The chart below showcases a comparison of their rolling one-month volatility.


Loading charts...

Volatility by Period


OKTAHSYDifference

Volatility (1M)

Calculated over the trailing 1-month period

32.92%

9.48%

+23.44%

Volatility (6M)

Calculated over the trailing 6-month period

48.12%

20.08%

+28.04%

Volatility (1Y)

Calculated over the trailing 1-year period

54.65%

27.49%

+27.16%

Volatility (5Y)

Calculated over the trailing 5-year period, annualized

57.50%

22.77%

+34.73%

Volatility (10Y)

Calculated over the trailing 10-year period, annualized

53.99%

23.44%

+30.55%

Dividends

OKTA vs. HSY - Dividend Comparison

OKTA has not paid dividends to shareholders, while HSY's dividend yield for the trailing twelve months is around 3.11%.


PositionTTM20252024202320222021202020192018201720162015
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%
OKTA
Okta, Inc.
0.00%0.00%0.00%0.00%0.00%0.00%0.00%0.00%0.00%0.00%0.00%0.00%

Financials

OKTA vs. HSY - Financials Comparison

This section allows you to compare key financial metrics between Okta, Inc. and The Hershey Company. You can select fields from income statements, balance sheets, and cash flow statements to easily visualize and compare the financial health of both companies.


Quarterly
Annual

Total Revenue: Total amount of money received from sales and other business activities


0.00500.00M1.00B1.50B2.00B2.50B3.00B3.50B20222023202420252026
765.00K
3.10B
(OKTA) Total Revenue
(HSY) Total Revenue
Values in USD except per share items

OKTA vs. HSY - Profitability Comparison

The chart below illustrates the profitability comparison between Okta, Inc. and The Hershey Company over time, highlighting three key metrics: Gross Profit Margin, Operating Margin, and Net Profit Margin.

Gross Margin
Operating Margin
Net Margin
Quarterly
Annual

30.0%40.0%50.0%60.0%70.0%80.0%20222023202420252026
77.8%
39.4%
Portfolio components
OKTA - Gross Margin

Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, Okta, Inc. reported a gross profit of 595.00K and revenue of 765.00K. Therefore, the gross margin over that period was 77.8%.

HSY - Gross Margin

Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, The Hershey Company reported a gross profit of 1.22B and revenue of 3.10B. Therefore, the gross margin over that period was 39.4%.

OKTA - Operating Margin

Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, Okta, Inc. reported an operating income of 56.00K and revenue of 765.00K, resulting in an operating margin of 7.3%.

HSY - Operating Margin

Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, The Hershey Company reported an operating income of 640.69M and revenue of 3.10B, resulting in an operating margin of 20.6%.

OKTA - Net Margin

Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, Okta, Inc. reported a net income of 74.00K and revenue of 765.00K, resulting in a net margin of 9.7%.

HSY - Net Margin

Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, The Hershey Company reported a net income of 435.11M and revenue of 3.10B, resulting in a net margin of 14.0%.


Frequently Asked Questions


OKTA and HSY have a correlation of -0.14, meaning they provide meaningful diversification benefit when combined. Depending on your allocation goals, holding both could reduce overall portfolio risk.

OKTA has higher volatility (32.92%) compared to HSY (9.48%). In terms of maximum drawdown, OKTA dropped -84.57% vs HSY's -49.15%.

HSY currently has the higher Sharpe Ratio (0.32 vs 0.30), 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.

Portfolio Optimizer

Find the right allocation for OKTA and HSY

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