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

Metric IOT MDB Software Infrastructure median
P/E 241.16 417.32 27.36
P/S 12.47 8.93 2.46
P/B 14.38 8.34 2.63
Price to free cash flow 90.15 37.72 17.42
EV/EBITDA 451.16 976.98 14.12
EV/Sales 12.02 8.07 2.78
Earnings yield 0.41% 0.24% (0.17%)
Free cash flow yield 1.11% 2.65% 1.28%

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

Metric IOT MDB Software Infrastructure median
Revenue growth (TTM) 29.50% 25.45% 14.98%
EPS growth (last fiscal year) 94.32% 49.13% 20.37%
Revenue growth, 5-year CAGR 45.30% 33.07% 15.88%
Net income growth, 5-year CAGR — — 11.87%

Health

Metric IOT MDB Software Infrastructure median
Debt to equity 0.00 0.00 0.03
Current ratio 1.62 4.87 1.53
Net debt to EBITDA 29.44 23.98 0.05

Dividend

Metric IOT MDB Software Infrastructure median
Dividend yield — — 1.17%
Payout ratio — — 0.29

Size

Metric IOT MDB Software Infrastructure median
Market cap 22.70b 25.19b 585.66m

Compare with another peer

Any metric, up to five companies and an Excel export Powerpack