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 -3.79%/yr vs -13.72%/yr for OKTA. A 0.67 correlation means they provide meaningful diversification when combined.
Performance
MDB vs. OKTA - Performance Comparison
Loading charts...
Returns By Period
In the year-to-date period, MDB achieves a -23.95% return, which is significantly lower than OKTA's 34.08% return.
MDB
- 1D
- -4.08%
- 1M
- -2.14%
- YTD
- -23.95%
- 6M
- -27.41%
- 1Y
- 58.39%
- 3Y*
- -6.46%
- 5Y*
- -3.79%
- 10Y*
- —
OKTA
- 1D
- -1.59%
- 1M
- 25.69%
- YTD
- 34.08%
- 6M
- 27.49%
- 1Y
- 16.62%
- 3Y*
- 18.74%
- 5Y*
- -13.72%
- 10Y*
- —
MDB vs. OKTA - Yearly Performance Comparison
| 2026 (YTD) | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | |
|---|---|---|---|---|---|---|---|---|---|---|
MDB MongoDB, Inc. | -23.95% | 80.27% | -43.06% | 107.71% | -62.81% | 47.43% | 172.81% | 57.17% | 182.14% | -10.06% |
OKTA Okta, Inc. | 34.08% | 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 share some common price drivers but move independently often enough to provide real diversification benefit when combined.
| Correlation | |
|---|---|
Correlation (1Y) Calculated over the trailing 1-year period | 0.60 |
Correlation (3Y) Calculated over the trailing 3-year period | 0.59 |
Correlation (5Y) Calculated over the trailing 5-year period | 0.65 |
Correlation (All Time) Calculated using the full available price history since Oct 19, 2017 | 0.67 |
The correlation between MDB and OKTA has been stable across timeframes, ranging from 0.59 to 0.67 - a consistent structural relationship.
Fundamentals
MDB:
$26.04B
OKTA:
$20.60B
MDB:
-$0.35
OKTA:
$0.96
MDB:
10.13
OKTA:
9.33
MDB:
8.87
OKTA:
2.99K
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.50 | ||
| Sortino ratioReturn per unit of downside risk | +0.78 | ||
| Omega ratioGain probability vs. loss probability | 1.23 | 1.11 | +0.11 |
| Calmar ratioReturn relative to maximum drawdown | 1.20 | 0.44 | +0.76 |
| Martin ratioReturn relative to average drawdown | 2.72 | 1.04 | +1.68 |
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% | -37.75% | -10.97% |
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 | -45.45% | -60.26% | +14.81% |
Average DrawdownAverage peak-to-trough decline | -30.87% | -38.32% | +7.45% |
Ulcer IndexDepth and duration of drawdowns from previous peaks | 21.54% | 16.00% | +5.54% |
Volatility
MDB vs. OKTA - Volatility Comparison
The current volatility for MongoDB, Inc. (MDB) is 27.99%, while Okta, Inc. (OKTA) has a volatility of 33.15%. 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 | 27.99% | 33.15% | -5.16% |
Volatility (6M)Calculated over the trailing 6-month period | 52.55% | 48.26% | +4.29% |
Volatility (1Y)Calculated over the trailing 1-year period | 73.34% | 54.95% | +18.39% |
Volatility (5Y)Calculated over the trailing 5-year period, annualized | 70.29% | 57.52% | +12.77% |
Volatility (10Y)Calculated over the trailing 10-year period, annualized | 65.94% | 53.96% | +11.98% |
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 Jun 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 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%.
MDB - Operating Margin
Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 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 Jun 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 Jun 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 Jun 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 (33.15%) compared to MDB (27.99%). In terms of maximum drawdown, MDB dropped -76.52% vs OKTA's -84.57%.
MDB currently has the higher Sharpe Ratio (0.80 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.
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