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

Performance

MDB vs. COST - Performance Comparison

The chart below illustrates the hypothetical performance of a $10,000 investment in MongoDB, Inc. (MDB) and Costco Wholesale Corporation (COST). The values are adjusted to include any dividend payments, if applicable.

Loading charts...

Returns By Period

In the year-to-date period, MDB achieves a -16.00% return, which is significantly lower than COST's 13.35% return.


MDB

1D
0.52%
1M
17.73%
YTD
-16.00%
6M
-15.80%
1Y
60.15%
3Y*
-1.99%
5Y*
1.31%
10Y*

COST

1D
0.30%
1M
-3.37%
YTD
13.35%
6M
10.14%
1Y
-3.42%
3Y*
25.18%
5Y*
22.05%
10Y*
22.25%
*Multi-year figures are annualized to reflect compound growth (CAGR)

MDB vs. COST - Yearly Performance Comparison


2026 (YTD)202520242023202220212020201920182017
MDB
MongoDB, Inc.
-16.00%80.27%-43.06%107.71%-62.81%47.43%172.81%57.17%182.14%-7.45%
COST
Costco Wholesale Corporation
13.35%-5.39%39.62%49.00%-19.05%51.82%32.67%45.70%10.60%17.80%

Correlation

The correlation between MDB and COST is -0.09, meaning there is essentially no relationship between their price movements. Each responds to its own set of market drivers, making them strong candidates for combining in a diversified portfolio.


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

-0.09

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

0.15

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

0.25

Correlation (All Time)
Calculated using the full available price history since Oct 20, 2017

0.24

The correlation between MDB and COST shifts across timeframes, from -0.09 (1 year) to 0.25 (5 years), reflecting how their relationship changes across market environments.

Fundamentals

EPS

MDB:

-$0.35

COST:

$26.51

PS Ratio

MDB:

11.19

COST:

1.11

Total Revenue (TTM)

MDB:

$2.60B

COST:

$293.59B

Gross Profit (TTM)

MDB:

$1.87B

COST:

$11.12B

EBITDA (TTM)

MDB:

-$19.89M

COST:

$12.48B

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. COST — Risk / Return Rank

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

MDB
MDB Risk / Return Rank: 6969
Overall Rank
MDB Sharpe Ratio Rank: 6868
Sharpe Ratio Rank
MDB Sortino Ratio Rank: 7171
Sortino Ratio Rank
MDB Omega Ratio Rank: 7272
Omega Ratio Rank
MDB Calmar Ratio Rank: 6767
Calmar Ratio Rank
MDB Martin Ratio Rank: 6767
Martin Ratio Rank

COST
COST Risk / Return Rank: 3232
Overall Rank
COST Sharpe Ratio Rank: 3434
Sharpe Ratio Rank
COST Sortino Ratio Rank: 2828
Sortino Ratio Rank
COST Omega Ratio Rank: 2828
Omega Ratio Rank
COST Calmar Ratio Rank: 3535
Calmar Ratio Rank
COST Martin Ratio Rank: 3333
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.

MDB vs. COST - Risk-Adjusted Trends Comparison

This table presents a comparison of risk-adjusted performance metrics for MongoDB, Inc. (MDB) and Costco Wholesale Corporation (COST). 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.


MDBCOSTDifference
Sharpe ratioReturn per unit of total volatility

+1.01

Sortino ratioReturn per unit of downside risk

+1.87

Omega ratioGain probability vs. loss probability

1.23

0.98

+0.25

Calmar ratioReturn relative to maximum drawdown

1.24

-0.22

+1.46

Martin ratioReturn relative to average drawdown

2.85

-0.51

+3.36

MDB vs. COST - Sharpe Ratio Comparison

The current MDB Sharpe Ratio is 0.83, which is higher than the COST Sharpe Ratio of -0.18. The chart below compares the historical Sharpe Ratios of MDB and COST, 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


MDBCOSTDifference

Sharpe Ratio (1Y)

Calculated over the trailing 1-year period

0.83

-0.18

+1.01

Sharpe Ratio (5Y)

Calculated over the trailing 5-year period

0.02

0.98

-0.96

Sharpe Ratio (10Y)

Calculated over the trailing 10-year period

1.02

Sharpe Ratio (All Time)

Calculated using the full available price history

0.49

0.59

-0.10

Drawdowns

MDB vs. COST - Drawdown Comparison

The maximum MDB drawdown since its inception was -76.52%, which is greater than COST's maximum drawdown of -53.39%. Use the drawdown chart below to compare losses from any high point for MDB and COST.


Loading charts...

Drawdown Indicators


MDBCOSTDifference

Max Drawdown

Largest peak-to-trough decline

-76.52%

-53.39%

-23.13%

Max Drawdown (1Y)

Largest decline over 1 year

-48.72%

-15.38%

-33.34%

Max Drawdown (3Y)

Largest decline over 3 years

-70.88%

-20.74%

-50.14%

Max Drawdown (5Y)

Largest decline over 5 years

-76.52%

-31.40%

-45.12%

Max Drawdown (10Y)

Largest decline over 10 years

-31.40%

Current Drawdown

Current decline from peak

-39.74%

-10.93%

-28.81%

Average Drawdown

Average peak-to-trough decline

-30.74%

-13.36%

-17.38%

Ulcer Index

Depth and duration of drawdowns from previous peaks

21.18%

7.15%

+14.03%

Volatility

MDB vs. COST - Volatility Comparison

MongoDB, Inc. (MDB) has a higher volatility of 27.63% compared to Costco Wholesale Corporation (COST) at 7.71%. This indicates that MDB's price experiences larger fluctuations and is considered to be riskier than COST based on this measure. The chart below showcases a comparison of their rolling one-month volatility.


Loading charts...

Volatility by Period


MDBCOSTDifference

Volatility (1M)

Calculated over the trailing 1-month period

27.63%

7.71%

+19.92%

Volatility (6M)

Calculated over the trailing 6-month period

52.17%

14.53%

+37.64%

Volatility (1Y)

Calculated over the trailing 1-year period

72.93%

18.79%

+54.14%

Volatility (5Y)

Calculated over the trailing 5-year period, annualized

70.24%

22.71%

+47.53%

Volatility (10Y)

Calculated over the trailing 10-year period, annualized

66.01%

21.95%

+44.06%

Dividends

MDB vs. COST - Dividend Comparison

MDB has not paid dividends to shareholders, while COST's dividend yield for the trailing twelve months is around 0.55%.


PositionTTM20252024202320222021202020192018201720162015
COST
Costco Wholesale Corporation
0.55%0.59%0.49%2.87%0.76%0.54%3.38%0.86%1.08%4.81%1.09%4.06%
MDB
MongoDB, 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

MDB vs. COST - Financials Comparison

This section allows you to compare key financial metrics between MongoDB, Inc. and Costco Wholesale Corporation. 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.0020.00B40.00B60.00B80.00B20222023202420252026
687.62M
70.53B
(MDB) Total Revenue
(COST) Total Revenue
Values in USD except per share items

MDB vs. COST - Profitability Comparison

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

Gross Margin
Operating Margin
Net Margin
Quarterly
Annual

-20.0%0.0%20.0%40.0%60.0%80.0%20222023202420252026
72.2%
-25.1%
Portfolio components
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%.

COST - Gross Margin

Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, Costco Wholesale Corporation reported a gross profit of -17.68B and revenue of 70.53B. Therefore, the gross margin over that period was -25.1%.

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%.

COST - Operating Margin

Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, Costco Wholesale Corporation reported an operating income of 2.82B and revenue of 70.53B, resulting in an operating margin of 4.0%.

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%.

COST - Net Margin

Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, Costco Wholesale Corporation reported a net income of 2.19B and revenue of 70.53B, resulting in a net margin of 3.1%.


Frequently Asked Questions


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

MDB has higher volatility (27.63%) compared to COST (7.71%). In terms of maximum drawdown, MDB dropped -76.52% vs COST's -53.39%.

MDB currently has the higher Sharpe Ratio (0.83 vs -0.18), 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 MDB and COST

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