Compare Stocks

2 / 10
Try these comparisons:

Stock Comparison

BLDR vs TREX

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

Live fundamentals10-year financials5-year price chart
BLDR
Builders FirstSource, Inc.

Construction

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

Construction

IndustrialsNYSE • US
Market Cap$4.25B
5Y Perf.-33.5%

BLDR vs TREX — Key Financials

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

Company Snapshot
BLDR logoBLDR
TREX logoTREX
IndustryConstructionConstruction
Market Cap$8.85B$4.25B
Revenue (TTM)$14.82B$1.17B
Net Income (TTM)$292M$190M
Gross Margin29.9%39.2%
Operating Margin4.2%22.0%
Forward P/E14.2x24.4x
Total Debt$5.65B$229M
Cash & Equiv.$182M$4M

BLDR vs TREXLong-Term Stock Performance

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

BLDR
TREX
StockMay 20May 26Return
Builders FirstSourc… (BLDR)100384.6+284.6%
Trex Company, Inc. (TREX)10066.5-33.5%

Price return only. Dividends and distributions are not included.

Quick Verdict: BLDR vs TREX

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

Bottom line: TREX leads in 4 of 7 categories, making it the strongest pick for growth and revenue expansion and profitability and margin quality. Builders FirstSource, Inc. is the stronger pick specifically for valuation and capital efficiency and recent price momentum and sentiment. As sector peers, any of these can serve as alternatives in the same allocation.
BLDR
Builders FirstSource, Inc.
The Income Pick

BLDR is the clearest fit if your priority is income & stability and long-term compounding.

  • Dividend streak 2 yrs, beta 1.65
  • 6.4% 10Y total return vs TREX's 247.6%
  • PEG 1.79 vs TREX's 7.30
Best for: income & stability and long-term compounding
TREX
Trex Company, Inc.
The Growth Play

TREX carries the broadest edge in this set and is the clearest fit for growth exposure and sleep-well-at-night.

  • Rev growth 2.0%, EPS growth -14.8%, 3Y rev CAGR 2.0%
  • Lower volatility, beta 1.47, Low D/E 22.1%, current ratio 1.24x
  • Beta 1.47, current ratio 1.24x
Best for: growth exposure and sleep-well-at-night
See the full category breakdown
CategoryWinnerWhy
GrowthTREX logoTREX2.0% revenue growth vs BLDR's -7.4%
ValueBLDR logoBLDRLower P/E (14.2x vs 24.4x), PEG 1.79 vs 7.30
Quality / MarginsTREX logoTREX16.2% margin vs BLDR's 2.0%
Stability / SafetyTREX logoTREXBeta 1.47 vs BLDR's 1.65, lower leverage
DividendsTieNeither stock pays a meaningful dividend
Momentum (1Y)BLDR logoBLDR-25.3% vs TREX's -31.3%
Efficiency (ROA)TREX logoTREX12.4% ROA vs BLDR's 2.6%, ROIC 16.4% vs 6.4%

BLDR vs TREX — Revenue Breakdown by Segment

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

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.

BLDR vs TREX — Financial Metrics

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

BEST OVERALLTREXLAGGINGBLDR

Income & Cash Flow (Last 12 Months)

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

BLDR is the larger business by revenue, generating $14.8B annually — 12.6x TREX's $1.2B. TREX is the more profitable business, keeping 16.2% of every revenue dollar as net income compared to BLDR's 2.0%. On growth, TREX holds the edge at -3.9% YoY revenue growth, suggesting stronger near-term business momentum.

MetricBLDR logoBLDRBuilders FirstSou…TREX logoTREXTrex Company, Inc.
RevenueTrailing 12 months$14.8B$1.2B
EBITDAEarnings before interest/tax$1.2B$321M
Net IncomeAfter-tax profit$292M$190M
Free Cash FlowCash after capex$862M$147M
Gross MarginGross profit ÷ Revenue+29.9%+39.2%
Operating MarginEBIT ÷ Revenue+4.2%+22.0%
Net MarginNet income ÷ Revenue+2.0%+16.2%
FCF MarginFCF ÷ Revenue+5.8%+12.5%
Rev. Growth (YoY)Latest quarter vs prior year-10.1%-3.9%
EPS Growth (YoY)Latest quarter vs prior year-151.2%-77.8%
TREX leads this category, winning 6 of 6 comparable metrics.

Valuation Metrics

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

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

MetricBLDR logoBLDRBuilders FirstSou…TREX logoTREXTrex Company, Inc.
Market CapShares × price$8.9B$4.2B
Enterprise ValueMkt cap + debt − cash$14.3B$4.5B
Trailing P/EPrice ÷ TTM EPS20.57x22.42x
Forward P/EPrice ÷ next-FY EPS est.14.17x24.41x
PEG RatioP/E ÷ EPS growth rate2.60x6.70x
EV / EBITDAEnterprise value multiple10.39x13.94x
Price / SalesMarket cap ÷ Revenue0.58x3.62x
Price / BookPrice ÷ Book value/share2.06x4.13x
Price / FCFMarket cap ÷ FCF10.37x31.59x
BLDR leads this category, winning 7 of 7 comparable metrics.

Profitability & Efficiency

TREX leads this category, winning 9 of 9 comparable metrics.

TREX delivers a 19.2% return on equity — every $100 of shareholder capital generates $19 in annual profit, vs $7 for BLDR. TREX carries lower financial leverage with a 0.22x debt-to-equity ratio, signaling a more conservative balance sheet compared to BLDR's 1.30x. On the Piotroski fundamental quality scale (0–9), TREX scores 6/9 vs BLDR's 5/9, reflecting solid financial health.

MetricBLDR logoBLDRBuilders FirstSou…TREX logoTREXTrex Company, Inc.
ROE (TTM)Return on equity+6.9%+19.2%
ROA (TTM)Return on assets+2.6%+12.4%
ROICReturn on invested capital+6.4%+16.4%
ROCEReturn on capital employed+8.5%+23.2%
Piotroski ScoreFundamental quality 0–956
Debt / EquityFinancial leverage1.30x0.22x
Net DebtTotal debt minus cash$5.5B$225M
Cash & Equiv.Liquid assets$182M$4M
Total DebtShort + long-term debt$5.6B$229M
Interest CoverageEBIT ÷ Interest expense2.19x3394.21x
TREX leads this category, winning 9 of 9 comparable metrics.

Total Returns (Dividends Reinvested)

Evenly matched — BLDR and TREX each lead in 3 of 6 comparable metrics.

A $10,000 investment in BLDR five years ago would be worth $15,390 today (with dividends reinvested), compared to $3,755 for TREX. Over the past 12 months, BLDR leads with a -25.3% total return vs TREX's -31.3%. The 3-year compound annual growth rate (CAGR) favors TREX at -10.8% vs BLDR's -11.0% — a key indicator of consistent wealth creation.

MetricBLDR logoBLDRBuilders FirstSou…TREX logoTREXTrex Company, Inc.
YTD ReturnYear-to-date-23.5%+11.4%
1-Year ReturnPast 12 months-25.3%-31.3%
3-Year ReturnCumulative with dividends-29.6%-29.1%
5-Year ReturnCumulative with dividends+53.9%-62.4%
10-Year ReturnCumulative with dividends+636.9%+247.6%
CAGR (3Y)Annualised 3-year return-11.0%-10.8%
Evenly matched — BLDR and TREX each lead in 3 of 6 comparable metrics.

Risk & Volatility

TREX leads this category, winning 2 of 2 comparable metrics.

TREX is the less volatile stock with a 1.47 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. TREX currently trades 58.0% from its 52-week high vs BLDR's 53.0% drawdown — a narrower gap to the peak suggests stronger recent price momentum.

MetricBLDR logoBLDRBuilders FirstSou…TREX logoTREXTrex Company, Inc.
Beta (5Y)Sensitivity to S&P 5001.65x1.47x
52-Week HighHighest price in past year$151.03$68.78
52-Week LowLowest price in past year$73.40$29.77
% of 52W HighCurrent price vs 52-week peak+53.0%+58.0%
RSI (14)Momentum oscillator 0–10031.641.3
Avg Volume (50D)Average daily shares traded2.4M1.8M
TREX leads this category, winning 2 of 2 comparable metrics.

Analyst Outlook

Insufficient data to determine a leader in this category.

Wall Street rates BLDR as "Buy" and TREX as "Hold". Consensus price targets imply 37.3% upside for BLDR (target: $110) vs 11.5% for TREX (target: $45).

MetricBLDR logoBLDRBuilders FirstSou…TREX logoTREXTrex Company, Inc.
Analyst RatingConsensus buy/hold/sellBuyHold
Price TargetConsensus 12-month target$109.92$44.50
# AnalystsCovering analysts4331
Dividend YieldAnnual dividend ÷ price
Dividend StreakConsecutive years of raises22
Dividend / ShareAnnual DPS
Buyback YieldShare repurchases ÷ mkt cap+4.7%+1.3%
Insufficient data to determine a leader in this category.
Key Takeaway

TREX leads in 3 of 6 categories (Income & Cash Flow, Profitability & Efficiency). BLDR leads in 1 (Valuation Metrics). 1 tied.

Best OverallTrex Company, Inc. (TREX)Leads 3 of 6 categories
Loading custom metrics...

BLDR vs TREX: Frequently Asked Questions

10 questions · data-driven answers · updated daily

01

Is BLDR or TREX 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 -7. 4% for Builders FirstSource, Inc. (BLDR). Builders FirstSource, Inc. (BLDR) offers the better valuation at 20. 6x trailing P/E (14. 2x 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 — BLDR or TREX?

On trailing P/E, Builders FirstSource, Inc.

(BLDR) is the cheapest at 20. 6x versus Trex Company, Inc. at 22. 4x. On forward P/E, Builders FirstSource, Inc. is actually cheaper at 14. 2x. The PEG ratio (P/E divided by earnings growth rate) is the most growth-adjusted single valuation metric: Builders FirstSource, Inc. wins at 1. 79x versus Trex Company, Inc. 's 7. 30x — a reasonable growth-adjusted valuation.

03

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

Over the past 5 years, Builders FirstSource, Inc.

(BLDR) delivered a total return of +53. 9%, compared to -62. 4% for Trex Company, Inc. (TREX). Over 10 years, the gap is even starker: BLDR returned +636. 9% versus TREX's +247. 6%. 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 — BLDR or TREX?

By beta (market sensitivity over 5 years), Trex Company, Inc.

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

05

Which is growing faster — BLDR or TREX?

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

(TREX) is pulling ahead at 2. 0% versus -7. 4% for Builders FirstSource, Inc. (BLDR). On earnings-per-share growth, the picture is similar: Trex Company, Inc. grew EPS -14. 8% year-over-year, compared to -57. 1% for Builders FirstSource, Inc.. Over a 3-year CAGR, TREX leads at 2. 0% 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 — BLDR or TREX?

Trex Company, Inc.

(TREX) is the more profitable company, earning 16. 2% net margin versus 2. 9% for Builders FirstSource, Inc. — 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 5. 2% for BLDR. 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 BLDR or TREX 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, Builders FirstSource, Inc. (BLDR) is the more undervalued stock at a PEG of 1. 79x versus Trex Company, Inc. 's 7. 30x. Both stocks trade at elevated growth-adjusted valuations, so expected growth needs to materialise. On forward earnings alone, Builders FirstSource, Inc. (BLDR) trades at 14. 2x forward P/E versus 24. 4x for Trex Company, Inc. — 10. 2x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for BLDR: 37. 3% to $109. 92.

08

Which pays a better dividend — BLDR or TREX?

None of the stocks in this comparison currently pay a material dividend.

All are effectively zero-yield and should be held for capital appreciation rather than income.

09

Is BLDR or TREX better for a retirement portfolio?

For long-horizon retirement investors, Builders FirstSource, Inc.

(BLDR) is the stronger choice — it scores higher on the combination of lower volatility, dividend reliability, and long-term compounding (+636. 9% 10Y return). Both have compounded well over 10 years (BLDR: +636. 9%, TREX: +247. 6%), 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 BLDR and TREX?

Both stocks operate in the Industrials sector, making this a peer-level intra-sector comparison — the same macro tailwinds and headwinds will affect both.

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

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
Custom Screen

Beat Both

Find stocks that outperform BLDR and TREX on the metrics below

Revenue Growth>
%
(BLDR: -10.1% · TREX: -3.9%)
P/E Ratio<
x
(BLDR: 20.6x · TREX: 22.4x)

You Might Also Compare

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