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

Compare

Total returnHPQ vs MDB

growth of $100 · dividends reinvested · last 9y
HPQ +52.3%MDB +832.8%MDB compounded faster
Log scale — wide-divergence pair
101001k10kStart $1002019202120232025$152$933
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 3

It depends on what you're optimizing for:

GrowthMDB(faster 5Y revenue CAGR)
QualityHPQ(higher ROIC)

Metrics side by side

Valuation

MetricHPQMDB
P/E ratio9.04
Forward P/E8.1062.12
P/S ratio0.399.38
P/B ratio8.32
PEG ratio1.55
EV / EBITDA7.14
FCF yield16.67%2.46%

Profitability

MetricHPQMDB
Gross margin20.21%71.97%
Operating margin5.51%-4.16%
Net margin4.45%-1.12%
ROE-730.92%-0.99%
ROIC24.97%-4.42%

Dividends

MetricHPQMDB
Dividend yield4.85%
Payout ratio44.55%

Growth (annualized)

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

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.