MDB vs. OKTA
MDB (MongoDB, Inc.) and OKTA (Okta, Inc.) are both stocks. Both operate in the Software - Infrastructure industry within the Technology sector. Over the past 5 years, MDB returned -1.22%/yr vs -10.55%/yr for OKTA. Their 0.66 correlation means they have sometimes moved together and sometimes differently.
Performance
MDB vs. OKTA - Performance Comparison
Loading charts...
Returns By Period
In the year-to-date period, MDB achieves a -19.59% return, which is significantly lower than OKTA's 64.14% return.
MDB
- 1D
- 3.56%
- 1M
- -4.90%
- 6M
- -9.12%
- YTD
- -19.59%
- 1Y
- 52.73%
- 3Y*
- -7.37%
- 5Y*
- -1.22%
- 10Y*
- —
- ALL TIME*
- 30.32%
OKTA
- 1D
- 1.08%
- 1M
- 0.36%
- 6M
- 68.00%
- YTD
- 64.14%
- 1Y
- 49.20%
- 3Y*
- 23.04%
- 5Y*
- -10.55%
- 10Y*
- —
- ALL TIME*
- 21.16%
Liquidity Comparison
| Position | Avg. Volume Value (2W) | Avg. Volume Value (1M) | Avg. Volume Value (3M) |
|---|---|---|---|
| $370.98M | $435.14M | $660.52M | |
OKTA Okta, Inc. | $370.04M | $412.72M | $441.76M |
MDB vs. OKTA - Yearly Performance Comparison
| 2026 (YTD) | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | |
|---|---|---|---|---|---|---|---|---|---|---|
MDB MongoDB, Inc. | -19.59% | 80.27% | -43.06% | 107.71% | -62.81% | 47.43% | 172.81% | 57.17% | 182.14% | -10.06% |
OKTA Okta, Inc. | 64.14% | 9.73% | -12.96% | 32.49% | -69.52% | -11.83% | 120.39% | 80.83% | 149.12% | -7.68% |
Correlation
The correlation between MDB and OKTA is 0.60, which is moderate. They have sometimes moved together and sometimes differently, sharing some price drivers without tracking each other closely.
| Correlation | |
|---|---|
Correlation (1Y) Focuses on recent behavior, but can change the most. | 0.60 |
Correlation (3Y) Balances recent behavior with more history. | 0.59 |
Correlation (5Y) Shows whether the relationship held over a longer period. | 0.65 |
Correlation (All Time) Calculated using the full available price history since Oct 19, 2017 | 0.66 |
The correlation between MDB and OKTA has been stable across timeframes, ranging from 0.59 to 0.66 - a consistent structural relationship.
Fundamentals
MDB:
$27.14B
OKTA:
$23.58B
MDB:
-$0.35
OKTA:
$0.97
MDB:
10.78
OKTA:
11.40
MDB:
9.38
OKTA:
3.66K
MDB:
$2.60B
OKTA:
$2.23B
MDB:
$1.87B
OKTA:
$1.73B
MDB:
-$19.89M
OKTA:
$235.06M
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
MDB vs. OKTA — Risk / Return Rank
MDB
OKTA
MDB vs. OKTA - Risk-Adjusted Trends Comparison
This table presents a comparison of risk-adjusted performance metrics for MongoDB, Inc. (MDB) and Okta, Inc. (OKTA). 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.
| MDB | OKTA | Difference | |
|---|---|---|---|
| Sharpe ratioReturn per unit of total volatility | -0.23 | ||
| Sortino ratioReturn per unit of downside risk | -0.17 | ||
| Omega ratioGain probability vs. loss probability | 1.18 | 1.20 | -0.02 |
| Calmar ratioReturn relative to maximum drawdown | 0.86 | 1.27 | -0.41 |
| Martin ratioReturn relative to average drawdown | 1.82 | 3.22 | -1.41 |
Loading charts...
Drawdowns
MDB vs. OKTA - Drawdown Comparison
The maximum MDB drawdown since its inception was -76.52%, smaller than the maximum OKTA drawdown of -84.57%. Use the drawdown chart below to compare losses from any high point for MDB and OKTA.
Loading charts...
Drawdown Indicators
| MDB | OKTA | Difference | |
|---|---|---|---|
Max DrawdownLargest peak-to-trough decline | -76.52% | -84.57% | +8.05% |
Max Drawdown (1Y)Largest decline over 1 year | -48.72% | -35.62% | -13.10% |
Max Drawdown (3Y)Largest decline over 3 years | -70.88% | -50.57% | -20.31% |
Max Drawdown (5Y)Largest decline over 5 years | -76.52% | -83.43% | +6.91% |
Current DrawdownCurrent decline from peak | -42.31% | -51.36% | +9.05% |
Average DrawdownAverage peak-to-trough decline | -31.04% | -38.48% | +7.44% |
Ulcer IndexDepth and duration of drawdowns from previous peaks | 23.12% | 14.07% | +9.05% |
Volatility
MDB vs. OKTA - Volatility Comparison
The current volatility for MongoDB, Inc. (MDB) is 13.09%, while Okta, Inc. (OKTA) has a volatility of 15.99%. This indicates that MDB experiences smaller price fluctuations and is considered to be less risky than OKTA based on this measure. The chart below showcases a comparison of their rolling one-month volatility.
Loading charts...
Volatility by Period
| MDB | OKTA | Difference | |
|---|---|---|---|
Volatility (1M)Calculated over the trailing 1-month period | 13.09% | 15.99% | -2.90% |
Volatility (6M)Calculated over the trailing 6-month period | 52.75% | 50.01% | +2.74% |
Volatility (1Y)Calculated over the trailing 1-year period | 74.81% | 56.94% | +17.87% |
Volatility (5Y)Calculated over the trailing 5-year period, annualized | 70.63% | 57.96% | +12.67% |
Volatility (10Y)Calculated over the trailing 10-year period, annualized | 65.83% | 53.96% | +11.87% |
Dividends
MDB vs. OKTA - Dividend Comparison
Neither MDB nor OKTA has paid dividends to shareholders.
Financials
MDB vs. OKTA - Financials Comparison
This section allows you to compare key financial metrics between MongoDB, Inc. and Okta, 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
MDB vs. OKTA - Profitability Comparison
MDB - Gross Margin
Gross margin is calculated as gross profit divided by revenue. For the three months ending on Aug 2026, MongoDB, Inc. reported a gross profit of 496.18M and revenue of 687.62M. Therefore, the gross margin over that period was 72.2%.
OKTA - Gross Margin
Gross margin is calculated as gross profit divided by revenue. For the three months ending on Aug 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%.
MDB - Operating Margin
Operating margin is calculated as operating income divided by revenue. For the three months ending on Aug 2026, MongoDB, Inc. reported an operating income of -24.80M and revenue of 687.62M, resulting in an operating margin of -3.6%.
OKTA - Operating Margin
Operating margin is calculated as operating income divided by revenue. For the three months ending on Aug 2026, Okta, Inc. reported an operating income of 56.00K and revenue of 765.00K, resulting in an operating margin of 7.3%.
MDB - Net Margin
Net margin is calculated as net income divided by revenue. For the three months ending on Aug 2026, MongoDB, Inc. reported a net income of 4.43M and revenue of 687.62M, resulting in a net margin of 0.6%.
OKTA - Net Margin
Net margin is calculated as net income divided by revenue. For the three months ending on Aug 2026, Okta, Inc. reported a net income of 74.00K and revenue of 765.00K, resulting in a net margin of 9.7%.
Frequently Asked Questions
MDB and OKTA have a correlation of 0.60, meaning they provide meaningful diversification benefit when combined. Depending on your allocation goals, holding both could reduce overall portfolio risk.
OKTA has higher volatility (15.99%) compared to MDB (13.09%). In terms of maximum drawdown, MDB dropped -76.52% vs OKTA's -84.57%.
OKTA currently has the higher Sharpe Ratio (0.80 vs 0.56), 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 MDB and OKTA
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