MongoDB (MDB) vs Block (XYZ)
Head-to-head comparison of performance, valuation, growth, profitability and dividends. Prices delayed 15 minutes; data as of Oct 8, 2026.
Summary
MongoDB (MDB) has outperformed Block (XYZ) over the past year, gaining 14.0% versus a loss of 3.7%. Over five years, MDB leads with a -26.2% price change compared with -69.8% for XYZ. Block is the larger company by market cap ($45.20 billion vs $29.87 billion), about 1.5 times the size, while MongoDB is growing revenue faster (+22.8% vs +0.3%).
On valuation, Block trades at a lower forward P/E (14.5x vs 47.3x for MongoDB). Block converts more of its revenue into profit, with a net margin of 5.4% versus -2.9%.
Summary generated from market data by MetaCap's automated system. Methodology
Relative performance
Percent change in share price from the first common trading day shown; excludes dividends.
Head-to-head
| Metric | MDB | XYZ |
|---|---|---|
| Share price | $371.35 | $75.23 |
| Market cap | $29.87B | $45.20B |
| 1-day change | +2.29% | -1.10% |
| YTD return | -13.50% | +16.90% |
| 1-year return | +14.00% | -3.71% |
| 5-year return | -26.18% | -69.79% |
| P/E ratio (TTM) | 515.76 | 134.34 |
| Forward P/E | 47.26 | 14.48 |
| EPS (TTM) | $0.72 | $0.56 |
| Dividend yield | 0.00% | 0.00% |
| Annual dividend | $0.00 | $0.00 |
| Revenue (latest FY) | $2.46B | $24.19B |
| Revenue growth (YoY) | +22.79% | +0.30% |
| Net income (latest FY) | $-71.15M | $1.31B |
| Gross margin | 71.75% | 42.82% |
| Operating margin | -5.56% | 7.06% |
| Net margin | -2.89% | 5.40% |
| 52-week high | $473.10 | $86.92 |
| 52-week low | $215.68 | $48.21 |
| Distance from 52-week high | -21.51% | -13.45% |
| Analyst consensus | buy | buy |
| Avg. price target upside | +20.24% | +30.79% |
| Average volume | 2.13M | 4.42M |
| Shares outstanding | 80.43M | 540.82M |
| Employees | 5,783 | 10,205 |
| Sector | Technology | Technology |
| Industry | Computer Software: Prepackaged Software | Computer Software: Prepackaged Software |
Highlighted cells mark the higher value for growth, returns, margins and yield, and the lower value for P/E ratios. Highlighting is a mechanical comparison, not a recommendation.
Key differences
- MDB has outperformed XYZ by 17.7 percentage points over the past year.
- MongoDB trades at a higher earnings multiple (515.8x vs 134.3x trailing P/E).
- Block is more profitable, keeping 5.4 cents of every revenue dollar as net income versus -2.9 cents for MongoDB.
- MongoDB grew revenue faster in its latest fiscal year (+22.79% vs +0.30%).
About MongoDB
MDB stock →MongoDB, Inc., together with its subsidiaries, provides general purpose database platform worldwide. The company offers MongoDB Atlas, a hosted multi-cloud database-as-a-service solution; MongoDB Enterprise Advanced, a commercial database server for enterprise customers to run in the cloud, on-premises, or in a hybrid environment; and Community Server, a free-to-download version of its database, which includes the functionality that developers need to get started with MongoDB.
Technology · Computer Software: Prepackaged Software · 5,783 employees
About Block
XYZ stock →Block, Inc., together with its subsidiaries, builds ecosystems focused on commerce and financial products and services in the United States and internationally. It operates through two segments: Square and Cash App.
Technology · Computer Software: Prepackaged Software · 10,205 employees
MDB vs XYZ FAQ
Which is bigger, MongoDB or Block?
Block (XYZ) is larger, with a market capitalization of $45.20B compared with $29.87B for MongoDB (MDB).
Which stock has performed better over the past year, MDB or XYZ?
MDB returned +14.00% over the past 12 months, compared with -3.71% for XYZ (price return, excluding dividends). Past performance does not predict future results.
Which has the lower P/E ratio, MDB or XYZ?
XYZ has the lower trailing P/E at 134.3, versus 515.8 for MDB. A lower P/E is not by itself a sign of a better investment; it can reflect slower expected growth or higher risk.
Are MongoDB and Block in the same industry?
Yes. Both are classified in the Computer Software: Prepackaged Software industry within the Technology sector.