MongoDB (MDB) Gross Margin (2016 - 2026)
MongoDB's Gross Margin came in at 73.83% for fiscal Q2 2027 (quarter ended Jul 31, 2026), up 2.81 percentage points from 71.01% a year earlier and up 1.67 percentage points from the prior quarter.
MongoDB (MDB) Gross Margin (2016 - 2026) Analysis & Trends
Over the trailing twelve months to Jul 31, 2026, MongoDB reported Gross Margin of 72.69%, up 0.36 percentage points year-over-year; for FY2026 (ended Jan 31, 2026), it came in at 71.75%, down 1.57 percentage points from FY2025.
- Gross Margin carries a five-year change of +1.74 percentage points (FY2021 to FY2026).
- Going back by fiscal year, Gross Margin was 73.32% in FY2025 (-1.46 pp), 74.78% in FY2024 (+1.98 pp), 72.80% in FY2023 (+2.49 pp) and 70.30% in FY2022 (+0.30 pp).
- The fiscal Q2 2027 figure represents the highest quarterly Gross Margin since fiscal Q3 2025.
- Year-over-year, Gross Margin has increased for three consecutive quarters, with an average year-over-year change of -0.71 percentage points over the last eight quarters.
- The fastest year-over-year change in Gross Margin over five years came in fiscal Q2 2024 (a gain of 4.22 percentage points), and the weakest in fiscal Q3 2026 (a drop of 2.95 percentage points).
- Business Quant data shows MDB's Gross Margin at 72.16% (Q1 2027), 73.04% (Q4 2026) and 71.48% (Q3 2026) in the three fiscal quarters before Q2 2027.
Peer Comparison
| # | Company | Market Cap | Enterprise Value | Gross Profit (Qtr) | Gross Margin (Qtr) |
|---|---|---|---|---|---|
| 1 | Palo Alto Networks | 319.55 Bn | 304.63 Bn | 2.30 Bn | 67.57% |
| 2 | CrowdStrike Holdings | 265.46 Bn | 245.90 Bn | 1.10 Bn | 74.57% |
| 3 | Fortinet | 129.36 Bn | 115.29 Bn | 1.64 Bn | 80.24% |
| 4 | Snowflake | 115.65 Bn | 102.97 Bn | 1.04 Bn | 67.02% |
| 5 | Datadog | 96.45 Bn | 78.09 Bn | 881.34 Mn | 78.59% |
| 6 | Axon Enterprise | 34.50 Bn | 29.03 Bn | 546.45 Mn | 60.42% |
| 7 | Okta | 33.79 Bn | 23.89 Bn | 641.00 Mn | 79.63% |
| 8 | Zscaler | 32.51 Bn | 18.63 Bn | - | - |
| 9 | Baidu | 29.59 Bn | -44.04 Bn | 1.47 Mn | 0.03% |
| 10 | MongoDB | 26.96 Bn | 17.43 Bn | 569.77 Mn | 73.83% |
Historic Data
| Date | Value |
|---|---|
| Jul 31, 2026 | 73.83% |
| Apr 30, 2026 | 72.16% |
| Jan 31, 2026 | 73.04% |
| Oct 31, 2025 | 71.48% |
| Jul 31, 2025 | 71.01% |
| Apr 30, 2025 | 71.21% |
| Jan 31, 2025 | 72.83% |
| Oct 31, 2024 | 74.44% |
| Jul 31, 2024 | 73.17% |
| Apr 30, 2024 | 72.77% |
| Jan 31, 2024 | 74.97% |
| Oct 31, 2023 | 75.27% |
| Jul 31, 2023 | 75.14% |
| Apr 30, 2023 | 73.54% |
| Jan 31, 2023 | 75.32% |
| Oct 31, 2022 | 71.93% |
| Jul 31, 2022 | 70.93% |
| Apr 30, 2022 | 72.60% |
| Jan 31, 2022 | 71.56% |
| Oct 31, 2021 | 69.83% |
MongoDB Gross Margin API
Pull this series into your own models, spreadsheets and apps with the Business Quant
Historical Metrics API. The request below matches the chart above — change the
frequency, period or values and it follows. Swap YOUR_API_KEY for your own key.
https://data.businessquant.com/historic?slug=gross-margin&ticker=MDB&period=max&api_key=YOUR_API_KEY
import requests
url = "https://data.businessquant.com/historic"
params = {"slug": "gross-margin", "ticker": "MDB", "period": "max", "api_key": "YOUR_API_KEY"}
data = requests.get(url, params=params).json()
const res = await fetch("https://data.businessquant.com/historic?slug=gross-margin&ticker=MDB&period=max&api_key=YOUR_API_KEY");
const data = await res.json();