vs

Side-by-side financial comparison of Legence Corp. (LGN) and MongoDB, Inc. (MDB). Click either name above to swap in a different company.

Legence Corp. is the larger business by last-quarter revenue ($708.0M vs $628.3M, roughly 1.1× MongoDB, Inc.). Legence Corp. runs the higher net margin — -0.1% vs -0.3%, a 0.2% gap on every dollar of revenue. On growth, Legence Corp. posted the faster year-over-year revenue change (26.2% vs 18.7%). MongoDB, Inc. produced more free cash flow last quarter ($141.8M vs $137.4M).

Legence Corp is a leading sustainable building and decarbonization solution provider. It delivers energy efficiency optimization, building automation design, renewable energy integration, and low-carbon retrofit services for commercial, industrial, and institutional clients, with core operations across North America to help customers cut costs and reduce carbon footprints.

MongoDB, Inc. is an American software company that develops and provides commercial support for the source-available database engine MongoDB, a database for unstructured data. Over the years, the company has expanded the product from its NoSQL roots to have broader appeal to enterprise customers, such as adding ACID and transactions.

LGN vs MDB — Head-to-Head

Bigger by revenue
LGN
LGN
1.1× larger
LGN
$708.0M
$628.3M
MDB
Growing faster (revenue YoY)
LGN
LGN
+7.6% gap
LGN
26.2%
18.7%
MDB
Higher net margin
LGN
LGN
0.2% more per $
LGN
-0.1%
-0.3%
MDB
More free cash flow
MDB
MDB
$4.4M more FCF
MDB
$141.8M
$137.4M
LGN

Income Statement — Q3 FY2025 vs Q3 FY2026

Metric
LGN
LGN
MDB
MDB
Revenue
$708.0M
$628.3M
Net Profit
$-576.0K
$-2.0M
Gross Margin
20.9%
71.5%
Operating Margin
5.3%
-2.9%
Net Margin
-0.1%
-0.3%
Revenue YoY
26.2%
18.7%
Net Profit YoY
46.8%
79.5%
EPS (diluted)
$-0.02

Green = leading value per metric. Periods may differ when fiscal calendars don't align.

8-Quarter Revenue & Profit Trend

Side-by-side quarterly history. Quarters aligned by calendar period so offset fiscal years line up.

Revenue
LGN
LGN
MDB
MDB
Q4 25
$628.3M
Q3 25
$708.0M
$591.4M
Q2 25
$549.0M
Q1 25
$548.4M
Q4 24
$529.4M
Q3 24
$560.8M
$478.1M
Q2 24
$450.6M
Q1 24
$458.0M
Net Profit
LGN
LGN
MDB
MDB
Q4 25
$-2.0M
Q3 25
$-576.0K
$-47.0M
Q2 25
$-37.6M
Q1 25
$15.8M
Q4 24
$-9.8M
Q3 24
$-1.1M
$-54.5M
Q2 24
$-80.6M
Q1 24
$-55.5M
Gross Margin
LGN
LGN
MDB
MDB
Q4 25
71.5%
Q3 25
20.9%
71.0%
Q2 25
71.2%
Q1 25
72.8%
Q4 24
74.4%
Q3 24
21.1%
73.2%
Q2 24
72.8%
Q1 24
75.0%
Operating Margin
LGN
LGN
MDB
MDB
Q4 25
-2.9%
Q3 25
5.3%
-11.0%
Q2 25
-9.8%
Q1 25
-3.4%
Q4 24
-5.3%
Q3 24
4.8%
-14.9%
Q2 24
-21.8%
Q1 24
-15.5%
Net Margin
LGN
LGN
MDB
MDB
Q4 25
-0.3%
Q3 25
-0.1%
-8.0%
Q2 25
-6.9%
Q1 25
2.9%
Q4 24
-1.8%
Q3 24
-0.2%
-11.4%
Q2 24
-17.9%
Q1 24
-12.1%
EPS (diluted)
LGN
LGN
MDB
MDB
Q4 25
Q3 25
$-0.02
Q2 25
Q1 25
Q4 24
Q3 24
Q2 24
Q1 24

Balance Sheet & Financial Strength

Snapshot of each company's liquidity, leverage and book value from the latest quarter.

Metric
LGN
LGN
MDB
MDB
Cash + ST InvestmentsLiquidity on hand
$176.0M
$834.1M
Total DebtLower is stronger
$812.6M
Stockholders' EquityBook value
$387.9M
$2.9B
Total Assets
$2.6B
$3.6B
Debt / EquityLower = less leverage
2.10×

8-quarter trend — quarters aligned by calendar period.

Cash + ST Investments
LGN
LGN
MDB
MDB
Q4 25
$834.1M
Q3 25
$176.0M
$647.1M
Q2 25
$657.8M
Q1 25
$490.1M
Q4 24
$673.1M
Q3 24
$1.3B
Q2 24
$815.7M
Q1 24
$803.0M
Total Debt
LGN
LGN
MDB
MDB
Q4 25
Q3 25
$812.6M
Q2 25
Q1 25
Q4 24
Q3 24
Q2 24
Q1 24
Stockholders' Equity
LGN
LGN
MDB
MDB
Q4 25
$2.9B
Q3 25
$387.9M
$2.9B
Q2 25
$3.0B
Q1 25
$2.8B
Q4 24
$1.5B
Q3 24
$1.4B
Q2 24
$1.3B
Q1 24
$1.1B
Total Assets
LGN
LGN
MDB
MDB
Q4 25
$3.6B
Q3 25
$2.6B
$3.5B
Q2 25
$3.6B
Q1 25
$3.4B
Q4 24
$3.2B
Q3 24
$3.1B
Q2 24
$3.0B
Q1 24
$2.9B
Debt / Equity
LGN
LGN
MDB
MDB
Q4 25
Q3 25
2.10×
Q2 25
Q1 25
Q4 24
Q3 24
Q2 24
Q1 24

Cash Flow & Capital Efficiency

How much cash each business actually produces after reinvestment. Cash flow is harder to manipulate than net income.

Metric
LGN
LGN
MDB
MDB
Operating Cash FlowLast quarter
$162.1M
$143.5M
Free Cash FlowOCF − Capex
$137.4M
$141.8M
FCF MarginFCF / Revenue
19.4%
22.6%
Capex IntensityCapex / Revenue
3.5%
0.3%
Cash ConversionOCF / Net Profit
TTM Free Cash FlowTrailing 4 quarters
$346.3M

8-quarter trend — quarters aligned by calendar period.

Operating Cash Flow
LGN
LGN
MDB
MDB
Q4 25
$143.5M
Q3 25
$162.1M
$72.1M
Q2 25
$109.9M
Q1 25
$50.5M
Q4 24
$37.4M
Q3 24
$-1.4M
Q2 24
$63.6M
Q1 24
$54.6M
Free Cash Flow
LGN
LGN
MDB
MDB
Q4 25
$141.8M
Q3 25
$137.4M
$71.6M
Q2 25
$108.3M
Q1 25
$24.6M
Q4 24
$35.5M
Q3 24
$-2.4M
Q2 24
$63.1M
Q1 24
$51.9M
FCF Margin
LGN
LGN
MDB
MDB
Q4 25
22.6%
Q3 25
19.4%
12.1%
Q2 25
19.7%
Q1 25
4.5%
Q4 24
6.7%
Q3 24
-0.5%
Q2 24
14.0%
Q1 24
11.3%
Capex Intensity
LGN
LGN
MDB
MDB
Q4 25
0.3%
Q3 25
3.5%
0.1%
Q2 25
0.3%
Q1 25
4.7%
Q4 24
0.4%
Q3 24
0.2%
Q2 24
0.1%
Q1 24
0.6%
Cash Conversion
LGN
LGN
MDB
MDB
Q4 25
Q3 25
Q2 25
Q1 25
3.19×
Q4 24
Q3 24
Q2 24
Q1 24

Financial Flow Comparison

Revenue → gross profit → operating profit → net profit for each company.

Revenue Breakdown by Segment

LGN
LGN

Installation And Fabrication$408.7M58%
Engineering And Design$110.9M16%
Program And Project Management$101.2M14%
Maintenance And Service$87.1M12%

MDB
MDB

Mongo DB Atlas Related$470.4M75%
Other Subscription$138.7M22%
Services$19.2M3%

Related Comparisons