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

Performance

OKTA vs. MDB - Performance Comparison

The chart below illustrates the hypothetical performance of a $10,000 investment in Okta, Inc. (OKTA) and MongoDB, Inc. (MDB). 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 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*
*Multi-year figures are annualized to reflect compound growth (CAGR)

OKTA vs. MDB - Yearly Performance Comparison


2026 (YTD)202520242023202220212020201920182017
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

Market Cap

OKTA:

$22.15B

MDB:

$30.05B

EPS

OKTA:

$0.96

MDB:

-$0.35

PS Ratio

OKTA:

10.03

MDB:

11.69

PB Ratio

OKTA:

3.21K

MDB:

10.24

Total Revenue (TTM)

OKTA:

$2.23B

MDB:

$2.60B

Gross Profit (TTM)

OKTA:

$1.73B

MDB:

$1.87B

EBITDA (TTM)

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

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

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

MDB
MDB Risk / Return Rank: 7575
Overall Rank
MDB Sharpe Ratio Rank: 7676
Sharpe Ratio Rank
MDB Sortino Ratio Rank: 7777
Sortino Ratio Rank
MDB Omega Ratio Rank: 7878
Omega Ratio Rank
MDB Calmar Ratio Rank: 7272
Calmar Ratio Rank
MDB Martin Ratio Rank: 7272
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. 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.


OKTAMDBDifference
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

OKTA vs. MDB - Sharpe Ratio Comparison

The current OKTA Sharpe Ratio is 0.38, which is lower than the MDB Sharpe Ratio of 1.23. The chart below compares the historical Sharpe Ratios of OKTA and MDB, 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...

Sharpe Ratios by Period


OKTAMDBDifference

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


OKTAMDBDifference

Max Drawdown

Largest 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 Drawdown

Current decline from peak

-57.28%

-37.04%

-20.24%

Average Drawdown

Average peak-to-trough decline

-38.22%

-30.73%

-7.49%

Ulcer Index

Depth 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


OKTAMDBDifference

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.


Tickers have no history of dividend payments

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.


Quarterly
Annual

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


0.00200.00M400.00M600.00M800.00M20222023202420252026
765.00K
687.62M
(OKTA) Total Revenue
(MDB) Total Revenue
Values in USD except per share items

OKTA vs. MDB - Profitability Comparison

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

Gross Margin
Operating Margin
Net Margin
Quarterly
Annual

68.0%70.0%72.0%74.0%76.0%78.0%20222023202420252026
77.8%
72.2%
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%.

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.

Portfolio Optimizer

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