New: our quarterly report on the S&P 500, read from 500 companies’ own filings and calls.
Read the Q3 2026 report
Samsara Inc. (IOT) vs MongoDB, Inc. (MDB)
- Samsara Inc. IOT 39.43 +1.70%
- MongoDB, Inc. MDB 308.82 −1.24%
Samsara Inc. and MongoDB, Inc. are both Software Infrastructure companies. MongoDB, Inc. is the larger, with a market value of $25.2B against $22.7B — 1.1× the size. Samsara Inc. trades at the lower P/E: 241× against 417×. Samsara Inc. grew revenue faster over the last twelve months: 29.5% against 25.5%. Samsara Inc. has the higher net margin (4.90% vs 2.12%) and the higher return on invested capital (1.57% vs −1.60%). Across the 20 metrics below, Samsara Inc. leads on 12 and MongoDB, Inc. on 8.
Valuation
Profitability
| Metric | IOT | MDB | Software Infrastructure median |
|---|---|---|---|
| Gross margin | 76.38% | 72.69% | 60.51% |
| Operating margin | 1.05% | (0.52%) | 0.61% |
| Net margin | 4.90% | 2.12% | (0.01%) |
| Free cash flow margin | 13.83% | 23.68% | 7.57% |
| Return on equity | 6.43% | 1.99% | 2.04% |
| Return on assets | 3.64% | 1.61% | (0.78%) |
| Return on invested capital | 1.57% | (1.60%) | 0.00% |
Growth
Health
Dividend
Size
Any metric, up to five companies and an Excel export Powerpack