MDB vs. NET
MDB (MongoDB, Inc.) and NET (Cloudflare, Inc.) are both stocks. Both operate in the Software - Infrastructure industry within the Technology sector. Over the past 5 years, MDB returned 1.31%/yr vs 22.42%/yr for NET. A 0.66 correlation means they provide meaningful diversification when combined.
Performance
MDB vs. NET - Performance Comparison
Loading charts...
Returns By Period
In the year-to-date period, MDB achieves a -16.00% return, which is significantly lower than NET's 25.69% return.
MDB
- 1D
- 0.52%
- 1M
- 17.73%
- YTD
- -16.00%
- 6M
- -15.80%
- 1Y
- 60.15%
- 3Y*
- -1.99%
- 5Y*
- 1.31%
- 10Y*
- —
NET
- 1D
- -0.93%
- 1M
- 26.34%
- YTD
- 25.69%
- 6M
- 20.37%
- 1Y
- 37.91%
- 3Y*
- 57.17%
- 5Y*
- 22.42%
- 10Y*
- —
MDB vs. NET - Yearly Performance Comparison
| 2026 (YTD) | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | |
|---|---|---|---|---|---|---|---|---|
MDB MongoDB, Inc. | -16.00% | 80.27% | -43.06% | 107.71% | -62.81% | 47.43% | 172.81% | 2.40% |
NET Cloudflare, Inc. | 25.69% | 83.09% | 29.33% | 84.16% | -65.62% | 73.05% | 345.43% | -5.22% |
Correlation
The correlation between MDB and NET 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.65 |
Correlation (5Y) Calculated over the trailing 5-year period | 0.72 |
Correlation (All Time) Calculated using the full available price history since Sep 13, 2019 | 0.66 |
The correlation between MDB and NET shifts across timeframes, from 0.60 (1 year) to 0.72 (5 years), reflecting how their relationship changes across market environments.
Fundamentals
MDB:
$28.76B
NET:
$87.38B
MDB:
-$0.35
NET:
-$0.25
MDB:
11.19
NET:
37.07
MDB:
9.80
NET:
57.23
MDB:
$2.60B
NET:
$2.33B
MDB:
$1.87B
NET:
$1.71B
MDB:
-$19.89M
NET:
$168.53M
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. NET — Risk / Return Rank
MDB
NET
MDB vs. NET - Risk-Adjusted Trends Comparison
This table presents a comparison of risk-adjusted performance metrics for MongoDB, Inc. (MDB) and Cloudflare, Inc. (NET). 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.
| MDB | NET | Difference | |
|---|---|---|---|
| Sharpe ratioReturn per unit of total volatility | +0.19 | ||
| Sortino ratioReturn per unit of downside risk | +0.57 | ||
| Omega ratioGain probability vs. loss probability | 1.23 | 1.17 | +0.07 |
| Calmar ratioReturn relative to maximum drawdown | 1.24 | 1.04 | +0.20 |
| Martin ratioReturn relative to average drawdown | 2.85 | 2.24 | +0.61 |
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
| MDB | NET | Difference | |
|---|---|---|---|
Sharpe Ratio (1Y)Calculated over the trailing 1-year period | 0.83 | 0.64 | +0.19 |
Sharpe Ratio (5Y)Calculated over the trailing 5-year period | 0.02 | 0.33 | -0.31 |
Sharpe Ratio (All Time)Calculated using the full available price history | 0.49 | 0.71 | -0.22 |
Drawdowns
MDB vs. NET - Drawdown Comparison
The maximum MDB drawdown since its inception was -76.52%, smaller than the maximum NET drawdown of -82.58%. Use the drawdown chart below to compare losses from any high point for MDB and NET.
Loading charts...
Drawdown Indicators
| MDB | NET | Difference | |
|---|---|---|---|
Max DrawdownLargest peak-to-trough decline | -76.52% | -82.58% | +6.06% |
Max Drawdown (1Y)Largest decline over 1 year | -48.72% | -36.76% | -11.96% |
Max Drawdown (3Y)Largest decline over 3 years | -70.88% | -45.00% | -25.88% |
Max Drawdown (5Y)Largest decline over 5 years | -76.52% | -82.58% | +6.06% |
Current DrawdownCurrent decline from peak | -39.74% | -9.12% | -30.62% |
Average DrawdownAverage peak-to-trough decline | -30.74% | -37.59% | +6.85% |
Ulcer IndexDepth and duration of drawdowns from previous peaks | 21.18% | 16.97% | +4.21% |
Volatility
MDB vs. NET - Volatility Comparison
The current volatility for MongoDB, Inc. (MDB) is 27.63%, while Cloudflare, Inc. (NET) has a volatility of 33.91%. This indicates that MDB experiences smaller price fluctuations and is considered to be less risky than NET based on this measure. The chart below showcases a comparison of their rolling one-month volatility.
Loading charts...
Volatility by Period
| MDB | NET | Difference | |
|---|---|---|---|
Volatility (1M)Calculated over the trailing 1-month period | 27.63% | 33.91% | -6.28% |
Volatility (6M)Calculated over the trailing 6-month period | 52.17% | 53.25% | -1.08% |
Volatility (1Y)Calculated over the trailing 1-year period | 72.93% | 59.59% | +13.34% |
Volatility (5Y)Calculated over the trailing 5-year period, annualized | 70.24% | 68.44% | +1.80% |
Volatility (10Y)Calculated over the trailing 10-year period, annualized | 66.01% | 67.78% | -1.77% |
Dividends
MDB vs. NET - Dividend Comparison
Neither MDB nor NET has paid dividends to shareholders.
Financials
MDB vs. NET - Financials Comparison
This section allows you to compare key financial metrics between MongoDB, Inc. and Cloudflare, 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. NET - 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%.
NET - Gross Margin
Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, Cloudflare, Inc. reported a gross profit of 455.60M and revenue of 639.76M. Therefore, the gross margin over that period was 71.2%.
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%.
NET - Operating Margin
Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, Cloudflare, Inc. reported an operating income of -61.99M and revenue of 639.76M, resulting in an operating 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%.
NET - Net Margin
Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, Cloudflare, Inc. reported a net income of -22.93M and revenue of 639.76M, resulting in a net margin of -3.6%.
Frequently Asked Questions
MDB and NET 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.
NET has higher volatility (33.91%) compared to MDB (27.63%). In terms of maximum drawdown, MDB dropped -76.52% vs NET's -82.58%.
MDB currently has the higher Sharpe Ratio (0.83 vs 0.64), 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 NET
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