HP Inc. (HPQ) vs MongoDB, Inc. (MDB)
HPQ leads on 7 of 10 compared metrics.
A side-by-side comparison of HP Inc. and MongoDB, Inc. across valuation, profitability, dividends, and growth — built entirely from reported fundamentals, as of July 24, 2026. The ● marks the stronger figure on each row (cheaper multiple, higher margin/return).
HPQ
HP Inc.
$25.75TechnologyDelayed quote: Jul 24, 2026, 4:00 PM EDT
MDB
MongoDB, Inc.
$298.22TechnologyDelayed quote: Jul 24, 2026, 4:00 PM EDT
Total return — HPQ vs MDB
growth of $100 · dividends reinvested · last 9yHPQ +52.3%MDB +832.8%MDB compounded faster
Log scale — wide-divergence pair
HPQ MDB
HPQ vs MDB: by the numbers
- •MDB is the larger company ($23.99B vs $23.55B market cap).
- •HPQ is profitable (4.45% net margin) while MDB runs a net loss (-1.12%).
- •MDB grew revenue faster over the past five years (32.32% vs -1.23% CAGR).
- •HPQ pays a dividend (4.85% yield) while MDB does not currently pay one.
Which is better, HPQ or MDB?
Metric tally: HPQ 7 · MDB 3It depends on what you're optimizing for:
GrowthMDB(faster 5Y revenue CAGR)
QualityHPQ(higher ROIC)
Metrics side by side
Valuation
| Metric | HPQ | MDB |
|---|---|---|
| P/E ratio | 9.04 | — |
| Forward P/E | 8.10● | 62.12 |
| P/S ratio | 0.39● | 9.38 |
| P/B ratio | — | 8.32 |
| PEG ratio | 1.55 | — |
| EV / EBITDA | 7.14 | — |
| FCF yield | 16.67%● | 2.46% |
Profitability
| Metric | HPQ | MDB |
|---|---|---|
| Gross margin | 20.21% | 71.97%● |
| Operating margin | 5.51%● | -4.16% |
| Net margin | 4.45%● | -1.12% |
| ROE | -730.92% | -0.99%● |
| ROIC | 24.97%● | -4.42% |
Dividends
| Metric | HPQ | MDB |
|---|---|---|
| Dividend yield | 4.85% | — |
| Payout ratio | 44.55% | — |
Growth (annualized)
| Metric | HPQ | MDB |
|---|---|---|
| Revenue CAGR (5Y) | -1.23% | 32.32%● |
| EPS CAGR (5Y) | 5.84% | — |
| FCF CAGR (5Y) | -7.31% | — |
| Total return CAGR (5Y) | 0.92%● | -3.72% |
Frequently asked
- Which is better, HPQ or MDB?
- It depends on your goal. growth: MDB (faster 5Y revenue CAGR); quality: HPQ (higher ROIC). Across all compared metrics, HPQ leads 7 to 3.
- Which has grown faster, HPQ or MDB?
- Over the past five years, MDB grew revenue faster — HPQ at a -1.23% CAGR versus MDB at 32.32%.
- Does HPQ or MDB pay a bigger dividend?
- HPQ pays a dividend (4.85% yield) while MDB does not currently pay one.
- Is HPQ or MDB more profitable?
- HPQ runs the higher net margin — HPQ at 4.45% versus MDB at -1.12%.
- Which has been the better investment, HPQ or MDB?
- Over the past 5-year, HPQ delivered the higher annualized total return — HPQ at 9.31% versus MDB at -3.72%. Past performance doesn't predict future results.
Go deeper
Dig into the metrics
HP P/E ratioMongoDB P/E ratioHP dividend yieldMongoDB dividend yieldHP ROEMongoDB ROEHP operating marginMongoDB operating marginHP revenue growthMongoDB revenue growthHP free cash flowMongoDB free cash flow
HP & MongoDB appear in these rankings
Figures are sourced from reported fundamentals and the latest end-of-day price. This comparison is informational only and is not investment advice. Past performance does not predict future results. See our methodology. Compiled by TGMCharts Research · data verified July 24, 2026.