OKTA vs. MDB
OKTA (Okta, Inc.) and MDB (MongoDB, Inc.) are both stocks. Both operate in the Software - Infrastructure industry within the Technology sector. Over the past 5 years, OKTA returned -10.19%/yr vs 3.16%/yr for MDB. A 0.67 correlation means they provide meaningful diversification when combined.
Performance
OKTA vs. MDB - Performance Comparison
Loading charts...
Returns By Period
In the year-to-date period, OKTA achieves a 44.15% return, which is significantly higher than MDB's -12.24% return.
OKTA
- 1D
- -7.89%
- 1M
- 61.38%
- YTD
- 44.15%
- 6M
- 44.37%
- 1Y
- 20.34%
- 3Y*
- 19.07%
- 5Y*
- -10.19%
- 10Y*
- —
MDB
- 1D
- -7.56%
- 1M
- 39.15%
- YTD
- -12.24%
- 6M
- -9.27%
- 1Y
- 90.10%
- 3Y*
- -0.71%
- 5Y*
- 3.16%
- 10Y*
- —
OKTA vs. MDB - Yearly Performance Comparison
| 2026 (YTD) | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | |
|---|---|---|---|---|---|---|---|---|---|---|
OKTA Okta, Inc. | 44.15% | 9.73% | -12.96% | 32.49% | -69.52% | -11.83% | 120.39% | 80.83% | 149.12% | -8.60% |
MDB MongoDB, Inc. | -12.24% | 80.27% | -43.06% | 107.71% | -62.81% | 47.43% | 172.81% | 57.17% | 182.14% | -7.45% |
Correlation
The correlation between OKTA and MDB 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.66 |
Correlation (All Time) Calculated using the full available price history since Oct 20, 2017 | 0.67 |
The correlation between OKTA and MDB has been stable across timeframes, ranging from 0.59 to 0.67 - a consistent structural relationship.
Fundamentals
OKTA:
$22.15B
MDB:
$30.05B
OKTA:
$0.96
MDB:
-$0.35
OKTA:
10.03
MDB:
11.69
OKTA:
3.21K
MDB:
10.24
OKTA:
$2.23B
MDB:
$2.60B
OKTA:
$1.73B
MDB:
$1.87B
OKTA:
$235.06M
MDB:
-$19.89M
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. MDB — Risk / Return Rank
OKTA
MDB
OKTA vs. MDB - Risk-Adjusted Trends Comparison
This table presents a comparison of risk-adjusted performance metrics for Okta, Inc. (OKTA) and MongoDB, Inc. (MDB). 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.
| OKTA | MDB | Difference | |
|---|---|---|---|
| Sharpe ratioReturn per unit of total volatility | -0.86 | ||
| Sortino ratioReturn per unit of downside risk | -1.18 | ||
| Omega ratioGain probability vs. loss probability | 1.13 | 1.29 | -0.17 |
| Calmar ratioReturn relative to maximum drawdown | 0.51 | 1.86 | -1.35 |
| Martin ratioReturn relative to average drawdown | 1.09 | 4.27 | -3.18 |
Data is calculated on a 1-year rolling basis and updated daily. The trend shows the change in the indicator over the past month. | |||
Loading charts...
Sharpe Ratios by Period
| OKTA | MDB | Difference | |
|---|---|---|---|
Sharpe Ratio (1Y)Calculated over the trailing 1-year period | 0.38 | 1.23 | -0.86 |
Sharpe Ratio (5Y)Calculated over the trailing 5-year period | -0.18 | 0.05 | -0.22 |
Sharpe Ratio (All Time)Calculated using the full available price history | 0.37 | 0.50 | -0.13 |
Drawdowns
OKTA vs. MDB - Drawdown Comparison
The maximum OKTA drawdown since its inception was -84.57%, which is greater than MDB's maximum drawdown of -76.52%. Use the drawdown chart below to compare losses from any high point for OKTA and MDB.
Loading charts...
Drawdown Indicators
| OKTA | MDB | Difference | |
|---|---|---|---|
Max DrawdownLargest peak-to-trough decline | -84.57% | -76.52% | -8.05% |
Max Drawdown (1Y)Largest decline over 1 year | -40.41% | -48.72% | +8.31% |
Max Drawdown (3Y)Largest decline over 3 years | -50.57% | -70.88% | +20.31% |
Max Drawdown (5Y)Largest decline over 5 years | -83.43% | -76.52% | -6.91% |
Current DrawdownCurrent decline from peak | -57.28% | -37.04% | -20.24% |
Average DrawdownAverage peak-to-trough decline | -38.22% | -30.73% | -7.49% |
Ulcer IndexDepth and duration of drawdowns from previous peaks | 18.73% | 21.16% | -2.43% |
Volatility
OKTA vs. MDB - Volatility Comparison
Okta, Inc. (OKTA) has a higher volatility of 32.40% compared to MongoDB, Inc. (MDB) at 27.47%. This indicates that OKTA's price experiences larger fluctuations and is considered to be riskier than MDB based on this measure. The chart below showcases a comparison of their rolling one-month volatility.
Loading charts...
Volatility by Period
| OKTA | MDB | Difference | |
|---|---|---|---|
Volatility (1M)Calculated over the trailing 1-month period | 32.40% | 27.47% | +4.93% |
Volatility (6M)Calculated over the trailing 6-month period | 47.90% | 55.30% | -7.40% |
Volatility (1Y)Calculated over the trailing 1-year period | 54.39% | 73.46% | -19.07% |
Volatility (5Y)Calculated over the trailing 5-year period, annualized | 57.46% | 70.52% | -13.06% |
Volatility (10Y)Calculated over the trailing 10-year period, annualized | 54.03% | 65.99% | -11.96% |
Dividends
OKTA vs. MDB - Dividend Comparison
Neither OKTA nor MDB has paid dividends to shareholders.
Financials
OKTA vs. MDB - Financials Comparison
This section allows you to compare key financial metrics between Okta, Inc. and MongoDB, 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
OKTA vs. MDB - Profitability Comparison
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 - 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 - 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 - 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 - 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%.
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%.
Frequently Asked Questions
OKTA and MDB 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 (32.40%) compared to MDB (27.47%). In terms of maximum drawdown, OKTA dropped -84.57% vs MDB's -76.52%.
MDB currently has the higher Sharpe Ratio (1.23 vs 0.38), 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 OKTA and MDB
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