Compare Stocks

4 / 10
Try these comparisons:

Stock Comparison

SGBX vs BLDR vs TREX vs IBP

Revenue, margins, valuation, and 5-year total return — side by side.

Live fundamentals10-year financials5-year price chart
SGBX
Safe & Green Holdings Corp.

Manufacturing - Metal Fabrication

IndustrialsNASDAQ • US
Market Cap$33K
5Y Perf.-99.9%
BLDR
Builders FirstSource, Inc.

Construction

IndustrialsNYSE • US
Market Cap$8.79B
5Y Perf.+401.2%
TREX
Trex Company, Inc.

Construction

IndustrialsNYSE • US
Market Cap$4.12B
5Y Perf.-31.0%
IBP
Installed Building Products, Inc.

Residential Construction

Consumer CyclicalNYSE • US
Market Cap$5.84B
5Y Perf.+409.9%

SGBX vs BLDR vs TREX vs IBP — Key Financials

Market cap, revenue, margins, and valuation side-by-side.

Company Snapshot
SGBX logoSGBX
BLDR logoBLDR
TREX logoTREX
IBP logoIBP
IndustryManufacturing - Metal FabricationConstructionConstructionResidential Construction
Market Cap$33K$8.79B$4.12B$5.84B
Revenue (TTM)$3M$14.82B$1.18B$2.95B
Net Income (TTM)$-19M$292M$191M$255M
Gross Margin-87.3%29.9%39.2%33.9%
Operating Margin-375.8%4.2%22.1%12.7%
Forward P/E14.1x24.0x19.5x
Total Debt$7M$5.65B$229M$1.05B
Cash & Equiv.$376K$182M$4M$322M

SGBX vs BLDR vs TREX vs IBPLong-Term Stock Performance

Price return indexed to 100 at period start. Dividends excluded.

SGBX
BLDR
TREX
IBP
StockMay 20Mar 26Return
Safe & Green Holdin… (SGBX)1000.1-99.9%
Builders FirstSourc… (BLDR)100501.2+401.2%
Trex Company, Inc. (TREX)10069.0-31.0%
Installed Building … (IBP)100509.9+409.9%

Price return only. Dividends and distributions are not included.

Quick Verdict: SGBX vs BLDR vs TREX vs IBP

Each card shows where this stock fits in a portfolio — not just who wins on paper.

Bottom line: TREX leads in 3 of 7 categories, making it the strongest pick for growth and revenue expansion and profitability and margin quality. Safe & Green Holdings Corp. is the stronger pick specifically for capital preservation and lower volatility and dividend income and shareholder returns. BLDR and IBP also each lead in at least one category. This set spans 2 sectors — these stocks serve different portfolio roles, not just different price points.
SGBX
Safe & Green Holdings Corp.
The Income Pick

SGBX is the #2 pick in this set and the best alternative if income & stability and defensive is your priority.

  • Dividend streak 1 yrs, beta 0.45, yield 100.0%
  • Beta 0.45, yield 100.0%, current ratio 0.08x
  • Beta 0.45 vs BLDR's 1.65
  • 100.0% yield, 1-year raise streak, vs IBP's 1.5%, (2 stocks pay no dividend)
Best for: income & stability and defensive
BLDR
Builders FirstSource, Inc.
The Value Play

BLDR is the clearest fit if your priority is value.

  • Lower P/E (14.1x vs 24.0x), PEG 1.78 vs 7.16
Best for: value
TREX
Trex Company, Inc.
The Growth Play

TREX carries the broadest edge in this set and is the clearest fit for growth exposure.

  • Rev growth 2.0%, EPS growth -14.8%, 3Y rev CAGR 2.0%
  • 2.0% revenue growth vs SGBX's -69.9%
  • 16.3% margin vs SGBX's -5.7%
  • 12.3% ROA vs SGBX's -35.6%, ROIC 16.4% vs -625.7%
Best for: growth exposure
IBP
Installed Building Products, Inc.
The Long-Run Compounder

IBP is the clearest fit if your priority is long-term compounding and sleep-well-at-night.

  • 6.5% 10Y total return vs BLDR's 6.1%
  • Lower volatility, beta 1.19, current ratio 3.03x
  • PEG 0.80 vs TREX's 7.16
  • +34.0% vs SGBX's -96.3%
Best for: long-term compounding and sleep-well-at-night
See the full category breakdown
CategoryWinnerWhy
GrowthTREX logoTREX2.0% revenue growth vs SGBX's -69.9%
ValueBLDR logoBLDRLower P/E (14.1x vs 24.0x), PEG 1.78 vs 7.16
Quality / MarginsTREX logoTREX16.3% margin vs SGBX's -5.7%
Stability / SafetySGBX logoSGBXBeta 0.45 vs BLDR's 1.65
DividendsSGBX logoSGBX100.0% yield, 1-year raise streak, vs IBP's 1.5%, (2 stocks pay no dividend)
Momentum (1Y)IBP logoIBP+34.0% vs SGBX's -96.3%
Efficiency (ROA)TREX logoTREX12.3% ROA vs SGBX's -35.6%, ROIC 16.4% vs -625.7%

SGBX vs BLDR vs TREX vs IBP — Revenue Breakdown by Segment

How each company's revenue is distributed across its business units

SGBXSafe & Green Holdings Corp.
FY 2024
Office
96.3%$5M
Hospitality
3.7%$181,719
BLDRBuilders FirstSource, Inc.
FY 2025
Specialty Building Products And Services
26.8%$4.1B
Lumber And Lumber Sheet Goods
25.5%$3.9B
Windows Doors And Millwork
25.3%$3.8B
Manufactured Products
22.5%$3.4B
TREXTrex Company, Inc.

Segment breakdown not available.

IBPInstalled Building Products, Inc.
FY 2025
Product Installation
50.0%$2.8B
Insulation
30.9%$1.7B
Shower Doors Shelving And Mirrors
4.0%$219M
Other Building Products
3.3%$184M
Garage Doors
3.1%$173M
Waterproofing
2.9%$161M
Rain Gutters
2.3%$125M
Other (2)
3.5%$193M

SGBX vs BLDR vs TREX vs IBP — Financial Metrics

Side-by-side numbers across 4 stocks — who leads on profitability, valuation, growth, and risk.

BEST OVERALLIBPLAGGINGSGBX

Income & Cash Flow (Last 12 Months)

TREX leads this category, winning 5 of 6 comparable metrics.

BLDR is the larger business by revenue, generating $14.8B annually — 4381.0x SGBX's $3M. TREX is the more profitable business, keeping 16.3% of every revenue dollar as net income compared to SGBX's -5.7%. On growth, TREX holds the edge at +1.0% YoY revenue growth, suggesting stronger near-term business momentum.

MetricSGBX logoSGBXSafe & Green Hold…BLDR logoBLDRBuilders FirstSou…TREX logoTREXTrex Company, Inc.IBP logoIBPInstalled Buildin…
RevenueTrailing 12 months$3M$14.8B$1.2B$2.9B
EBITDAEarnings before interest/tax-$12M$1.2B$309M$656M
Net IncomeAfter-tax profit-$19M$292M$191M$255M
Free Cash FlowCash after capex-$5M$862M$263M$63M
Gross MarginGross profit ÷ Revenue-87.3%+29.9%+39.2%+33.9%
Operating MarginEBIT ÷ Revenue-3.8%+4.2%+22.1%+12.7%
Net MarginNet income ÷ Revenue-5.7%+2.0%+16.3%+8.6%
FCF MarginFCF ÷ Revenue-155.0%+5.8%+22.3%+2.1%
Rev. Growth (YoY)Latest quarter vs prior year-40.0%-10.1%+1.0%-3.5%
EPS Growth (YoY)Latest quarter vs prior year+88.9%-151.2%+3.6%-21.3%
TREX leads this category, winning 5 of 6 comparable metrics.

Valuation Metrics

BLDR leads this category, winning 4 of 7 comparable metrics.

At 20.4x trailing earnings, BLDR trades at a 8% valuation discount to IBP's 22.3x P/E. Adjusting for growth (PEG ratio), IBP offers better value at 0.92x vs TREX's 6.58x — a lower PEG means you pay less per unit of expected earnings growth.

MetricSGBX logoSGBXSafe & Green Hold…BLDR logoBLDRBuilders FirstSou…TREX logoTREXTrex Company, Inc.IBP logoIBPInstalled Buildin…
Market CapShares × price$32,963$8.8B$4.1B$5.8B
Enterprise ValueMkt cap + debt − cash$7M$14.3B$4.3B$6.6B
Trailing P/EPrice ÷ TTM EPS-0.00x20.43x22.00x22.33x
Forward P/EPrice ÷ next-FY EPS est.14.07x23.95x19.50x
PEG RatioP/E ÷ EPS growth rate2.59x6.58x0.92x
EV / EBITDAEnterprise value multiple10.35x13.53x13.41x
Price / SalesMarket cap ÷ Revenue0.01x0.58x3.51x1.97x
Price / BookPrice ÷ Book value/share2.04x4.05x8.26x
Price / FCFMarket cap ÷ FCF10.30x30.60x19.41x
BLDR leads this category, winning 4 of 7 comparable metrics.

Profitability & Efficiency

IBP leads this category, winning 4 of 9 comparable metrics.

IBP delivers a 37.5% return on equity — every $100 of shareholder capital generates $37 in annual profit, vs $-77 for SGBX. TREX carries lower financial leverage with a 0.22x debt-to-equity ratio, signaling a more conservative balance sheet compared to IBP's 1.48x. On the Piotroski fundamental quality scale (0–9), IBP scores 8/9 vs SGBX's 2/9, reflecting strong financial health.

MetricSGBX logoSGBXSafe & Green Hold…BLDR logoBLDRBuilders FirstSou…TREX logoTREXTrex Company, Inc.IBP logoIBPInstalled Buildin…
ROE (TTM)Return on equity-77.2%+6.9%+18.8%+37.5%
ROA (TTM)Return on assets-35.6%+2.6%+12.3%+12.2%
ROICReturn on invested capital-625.7%+6.4%+16.4%+20.7%
ROCEReturn on capital employed+8.5%+23.2%+22.6%
Piotroski ScoreFundamental quality 0–92568
Debt / EquityFinancial leverage1.30x0.22x1.48x
Net DebtTotal debt minus cash$7M$5.5B$225M$731M
Cash & Equiv.Liquid assets$375,873$182M$4M$322M
Total DebtShort + long-term debt$7M$5.6B$229M$1.1B
Interest CoverageEBIT ÷ Interest expense-13.81x2.19x9.47x
IBP leads this category, winning 4 of 9 comparable metrics.

Total Returns (Dividends Reinvested)

IBP leads this category, winning 5 of 6 comparable metrics.

A $10,000 investment in IBP five years ago would be worth $18,064 today (with dividends reinvested), compared to $5 for SGBX. Over the past 12 months, IBP leads with a +34.0% total return vs SGBX's -96.3%. The 3-year compound annual growth rate (CAGR) favors IBP at 25.6% vs SGBX's -87.5% — a key indicator of consistent wealth creation.

MetricSGBX logoSGBXSafe & Green Hold…BLDR logoBLDRBuilders FirstSou…TREX logoTREXTrex Company, Inc.IBP logoIBPInstalled Buildin…
YTD ReturnYear-to-date-52.9%-24.0%+9.3%-18.1%
1-Year ReturnPast 12 months-96.3%-25.0%-30.8%+34.0%
3-Year ReturnCumulative with dividends-99.8%-30.1%-30.4%+98.3%
5-Year ReturnCumulative with dividends-100.0%+51.8%-64.0%+80.6%
10-Year ReturnCumulative with dividends-100.0%+614.8%+239.9%+650.1%
CAGR (3Y)Annualised 3-year return-87.5%-11.2%-11.4%+25.6%
IBP leads this category, winning 5 of 6 comparable metrics.

Risk & Volatility

Evenly matched — SGBX and IBP each lead in 1 of 2 comparable metrics.

SGBX is the less volatile stock with a 0.45 beta — it tends to amplify market swings less than BLDR's 1.65 beta. A beta below 1.0 means the stock typically moves less than the S&P 500. IBP currently trades 62.1% from its 52-week high vs SGBX's 1.0% drawdown — a narrower gap to the peak suggests stronger recent price momentum.

MetricSGBX logoSGBXSafe & Green Hold…BLDR logoBLDRBuilders FirstSou…TREX logoTREXTrex Company, Inc.IBP logoIBPInstalled Buildin…
Beta (5Y)Sensitivity to S&P 5000.45x1.65x1.47x1.19x
52-Week HighHighest price in past year$96.00$151.03$68.78$349.00
52-Week LowLowest price in past year$0.79$73.40$29.77$150.83
% of 52W HighCurrent price vs 52-week peak+1.0%+52.6%+56.9%+62.1%
RSI (14)Momentum oscillator 0–10035.242.851.355.0
Avg Volume (50D)Average daily shares traded503K2.4M1.7M344K
Evenly matched — SGBX and IBP each lead in 1 of 2 comparable metrics.

Analyst Outlook

Evenly matched — SGBX and IBP each lead in 1 of 2 comparable metrics.

Analyst consensus: BLDR as "Buy", TREX as "Hold", IBP as "Hold". Consensus price targets imply 38.3% upside for BLDR (target: $110) vs 13.6% for TREX (target: $45). For income investors, SGBX offers the higher dividend yield at 100.00% vs IBP's 1.49%.

MetricSGBX logoSGBXSafe & Green Hold…BLDR logoBLDRBuilders FirstSou…TREX logoTREXTrex Company, Inc.IBP logoIBPInstalled Buildin…
Analyst RatingConsensus buy/hold/sellBuyHoldHold
Price TargetConsensus 12-month target$109.92$44.50$293.00
# AnalystsCovering analysts433127
Dividend YieldAnnual dividend ÷ price+100.0%+1.5%
Dividend StreakConsecutive years of raises1225
Dividend / ShareAnnual DPS$13.85$3.24
Buyback YieldShare repurchases ÷ mkt cap0.0%+4.7%+1.3%+3.0%
Evenly matched — SGBX and IBP each lead in 1 of 2 comparable metrics.
Key Takeaway

IBP leads in 2 of 6 categories (Profitability & Efficiency, Total Returns). TREX leads in 1 (Income & Cash Flow). 2 tied.

Best OverallInstalled Building Products… (IBP)Leads 2 of 6 categories
Loading custom metrics...

SGBX vs BLDR vs TREX vs IBP: Key Questions Answered

10 questions · data-driven answers · updated daily

01

Is SGBX or BLDR or TREX or IBP a better buy right now?

For growth investors, Trex Company, Inc.

(TREX) is the stronger pick with 2. 0% revenue growth year-over-year, versus -69. 9% for Safe & Green Holdings Corp. (SGBX). Builders FirstSource, Inc. (BLDR) offers the better valuation at 20. 4x trailing P/E (14. 1x forward), making it the more compelling value choice. Analysts rate Builders FirstSource, Inc. (BLDR) a "Buy" — based on 43 analyst ratings — the highest consensus in this comparison. The "better buy" depends entirely on your goals: growth investors should weight revenue trajectory, value investors should weight P/E and PEG, and income investors should weight dividend yield and streak.

02

Which has the better valuation — SGBX or BLDR or TREX or IBP?

On trailing P/E, Builders FirstSource, Inc.

(BLDR) is the cheapest at 20. 4x versus Installed Building Products, Inc. at 22. 3x. On forward P/E, Builders FirstSource, Inc. is actually cheaper at 14. 1x. The PEG ratio (P/E divided by earnings growth rate) is the most growth-adjusted single valuation metric: Installed Building Products, Inc. wins at 0. 80x versus Trex Company, Inc. 's 7. 16x — a PEG below 1. 0 traditionally signals the market is underpricing earnings growth.

03

Which is the better long-term investment — SGBX or BLDR or TREX or IBP?

Over the past 5 years, Installed Building Products, Inc.

(IBP) delivered a total return of +80. 6%, compared to -100. 0% for Safe & Green Holdings Corp. (SGBX). Over 10 years, the gap is even starker: IBP returned +650. 1% versus SGBX's -100. 0%. Past returns do not guarantee future results, and the stock with the higher historical return may already have its best growth priced in.

04

Which is safer — SGBX or BLDR or TREX or IBP?

By beta (market sensitivity over 5 years), Safe & Green Holdings Corp.

(SGBX) is the lower-risk stock at 0. 45β versus Builders FirstSource, Inc. 's 1. 65β — meaning BLDR is approximately 271% more volatile than SGBX relative to the S&P 500. On balance sheet safety, Trex Company, Inc. (TREX) carries a lower debt/equity ratio of 22% versus 148% for Installed Building Products, Inc. — giving it more financial flexibility in a downturn.

05

Which is growing faster — SGBX or BLDR or TREX or IBP?

By revenue growth (latest reported year), Trex Company, Inc.

(TREX) is pulling ahead at 2. 0% versus -69. 9% for Safe & Green Holdings Corp. (SGBX). On earnings-per-share growth, the picture is similar: Safe & Green Holdings Corp. grew EPS 69. 1% year-over-year, compared to -57. 1% for Builders FirstSource, Inc.. Over a 3-year CAGR, IBP leads at 3. 6% annualised revenue growth. Higher growth typically commands a higher valuation multiple — check whether the premium P/E or P/S is justified by the growth rate using the PEG ratio.

06

Which has better profit margins — SGBX or BLDR or TREX or IBP?

Trex Company, Inc.

(TREX) is the more profitable company, earning 16. 2% net margin versus -341. 2% for Safe & Green Holdings Corp. — meaning it keeps 16. 2% of every revenue dollar as bottom-line profit. Operating margin tells a similar story: TREX leads at 22. 0% versus -195. 0% for SGBX. At the gross margin level — before operating expenses — TREX leads at 39. 2%, reflecting greater pricing power or product mix advantage. Stronger margins indicate durable pricing power, lower cost of revenue, or higher mix of software/services. They are one of the clearest signs of business quality.

07

Is SGBX or BLDR or TREX or IBP more undervalued right now?

The PEG ratio (forward P/E divided by expected earnings growth rate) is the most precise measure of undervaluation relative to growth potential.

By this metric, Installed Building Products, Inc. (IBP) is the more undervalued stock at a PEG of 0. 80x versus Trex Company, Inc. 's 7. 16x. A PEG below 1. 0 is traditionally considered the threshold for growth-adjusted undervaluation. On forward earnings alone, Builders FirstSource, Inc. (BLDR) trades at 14. 1x forward P/E versus 24. 0x for Trex Company, Inc. — 9. 9x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for BLDR: 38. 3% to $109. 92.

08

Which pays a better dividend — SGBX or BLDR or TREX or IBP?

In this comparison, SGBX (100.

0% yield), IBP (1. 5% yield) pay a dividend. BLDR, TREX do not pay a meaningful dividend and should not be held primarily for income.

09

Is SGBX or BLDR or TREX or IBP better for a retirement portfolio?

For long-horizon retirement investors, Safe & Green Holdings Corp.

(SGBX) is the stronger choice — it scores higher on the combination of lower volatility, dividend reliability, and long-term compounding (low volatility (β 0. 45), 100. 0% yield). Both have compounded well over 10 years (SGBX: -100. 0%, TREX: +239. 9%), confirming both are viable long-term holds — but the lower-volatility option typically results in less emotional selling during corrections. Retirement portfolios generally favour predictability over maximum returns. Consult a financial advisor before making allocation decisions.

10

What are the main differences between SGBX and BLDR and TREX and IBP?

These companies operate in different sectors (SGBX (Industrials) and BLDR (Industrials) and TREX (Industrials) and IBP (Consumer Cyclical)), which means they face different economic cycles, regulatory environments, and macro sensitivities — making direct comparison nuanced.

In terms of investment character: SGBX is a small-cap income-oriented stock; BLDR is a small-cap quality compounder stock; TREX is a small-cap quality compounder stock; IBP is a small-cap quality compounder stock. SGBX, IBP pay a dividend while BLDR, TREX do not, making them suitable for different income and tax situations. These fundamental differences mean investors should not choose between them on a single metric — the "better stock" depends entirely on which of these characteristics aligns with your investment strategy.

Find Stocks Like These

Explore pre-built screens for each stock's profile, or build a custom screen to find stocks that outperform all of them.

Stocks Like

SGBX

Quality Business

  • Sector: Industrials
  • Market Cap > $2B
  • Dividend Yield > 40.0%
Run This Screen
Stocks Like

BLDR

Quality Business

  • Sector: Industrials
  • Market Cap > $100B
  • Gross Margin > 17%
Run This Screen
Stocks Like

TREX

Quality Business

  • Sector: Industrials
  • Market Cap > $100B
  • Net Margin > 9%
Run This Screen
Stocks Like

IBP

Stable Dividend Mega-Cap

  • Sector: Consumer Cyclical
  • Market Cap > $100B
  • Net Margin > 5%
  • Dividend Yield > 0.5%
Run This Screen
Custom Screen

Beat Both

Find stocks that outperform SGBX and BLDR and TREX and IBP on the metrics below

Revenue Growth>
%
(SGBX: -40.0% · BLDR: -10.1%)

You Might Also Compare

Based on how these companies actually compete and overlap — not just which sector they're filed under.