Compare Stocks

2 / 10
Try these comparisons:

Stock Comparison

TREX vs UFPI

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

Live fundamentals10-year financials5-year price chart
TREX
Trex Company, Inc.

Construction

IndustrialsNYSE • US
Market Cap$4.12B
5Y Perf.-34.8%
UFPI
UFP Industries, Inc.

Paper, Lumber & Forest Products

Basic MaterialsNASDAQ • US
Market Cap$4.76B
5Y Perf.+83.4%

TREX vs UFPI — Key Financials

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

Company Snapshot
TREX logoTREX
UFPI logoUFPI
IndustryConstructionPaper, Lumber & Forest Products
Market Cap$4.12B$4.76B
Revenue (TTM)$1.18B$6.19B
Net Income (TTM)$191M$264M
Gross Margin39.2%16.6%
Operating Margin22.1%5.4%
Forward P/E24.0x15.9x
Total Debt$229M$230M
Cash & Equiv.$4M$925M

TREX vs UFPILong-Term Stock Performance

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

TREX
UFPI
StockMay 20May 26Return
Trex Company, Inc. (TREX)10065.2-34.8%
UFP Industries, Inc. (UFPI)100183.4+83.4%

Price return only. Dividends and distributions are not included.

Quick Verdict: TREX vs UFPI

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

Bottom line: UFPI leads in 4 of 7 categories, making it the strongest pick for valuation and capital efficiency and capital preservation and lower volatility. Trex Company, Inc. is the stronger pick specifically for growth and revenue expansion and profitability and margin quality. This set spans 2 sectors — these stocks serve different portfolio roles, not just different price points.
TREX
Trex Company, Inc.
The Growth Play

TREX is the clearest fit if your priority is growth exposure and long-term compounding.

  • Rev growth 2.0%, EPS growth -14.8%, 3Y rev CAGR 2.0%
  • 239.9% 10Y total return vs UFPI's 230.6%
  • 2.0% revenue growth vs UFPI's -5.0%
Best for: growth exposure and long-term compounding
UFPI
UFP Industries, Inc.
The Income Pick

UFPI carries the broadest edge in this set and is the clearest fit for income & stability and sleep-well-at-night.

  • Dividend streak 13 yrs, beta 0.92, yield 1.7%
  • Lower volatility, beta 0.92, Low D/E 7.4%, current ratio 4.59x
  • PEG 3.49 vs TREX's 7.16
Best for: income & stability and sleep-well-at-night
See the full category breakdown
CategoryWinnerWhy
GrowthTREX logoTREX2.0% revenue growth vs UFPI's -5.0%
ValueUFPI logoUFPILower P/E (15.9x vs 24.0x), PEG 3.49 vs 7.16
Quality / MarginsTREX logoTREX16.3% margin vs UFPI's 4.3%
Stability / SafetyUFPI logoUFPIBeta 0.92 vs TREX's 1.47, lower leverage
DividendsUFPI logoUFPI1.7% yield; 13-year raise streak; the other pay no meaningful dividend
Momentum (1Y)UFPI logoUFPI-12.0% vs TREX's -30.8%
Efficiency (ROA)TREX logoTREX12.3% ROA vs UFPI's 6.5%, ROIC 16.4% vs 11.4%

TREX vs UFPI — Revenue Breakdown by Segment

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

TREXTrex Company, Inc.

Segment breakdown not available.

UFPIUFP Industries, Inc.
FY 2025
Retail
40.3%$2.4B
Site Built
33.2%$2.0B
Industrial
26.5%$1.6B

TREX vs UFPI — Financial Metrics

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

BEST OVERALLUFPILAGGINGTREX

Income & Cash Flow (Last 12 Months)

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

UFPI is the larger business by revenue, generating $6.2B annually — 5.3x TREX's $1.2B. TREX is the more profitable business, keeping 16.3% of every revenue dollar as net income compared to UFPI's 4.3%. On growth, TREX holds the edge at +1.0% YoY revenue growth, suggesting stronger near-term business momentum.

MetricTREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…
RevenueTrailing 12 months$1.2B$6.2B
EBITDAEarnings before interest/tax$309M$498M
Net IncomeAfter-tax profit$191M$264M
Free Cash FlowCash after capex$263M$298M
Gross MarginGross profit ÷ Revenue+39.2%+16.6%
Operating MarginEBIT ÷ Revenue+22.1%+5.4%
Net MarginNet income ÷ Revenue+16.3%+4.3%
FCF MarginFCF ÷ Revenue+22.3%+4.8%
Rev. Growth (YoY)Latest quarter vs prior year+1.0%-8.4%
EPS Growth (YoY)Latest quarter vs prior year+3.6%-31.5%
TREX leads this category, winning 6 of 6 comparable metrics.

Valuation Metrics

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

At 16.8x trailing earnings, UFPI trades at a 24% valuation discount to TREX's 22.0x P/E. Adjusting for growth (PEG ratio), UFPI offers better value at 3.67x vs TREX's 6.58x — a lower PEG means you pay less per unit of expected earnings growth.

MetricTREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…
Market CapShares × price$4.1B$4.8B
Enterprise ValueMkt cap + debt − cash$4.3B$4.1B
Trailing P/EPrice ÷ TTM EPS22.00x16.77x
Forward P/EPrice ÷ next-FY EPS est.23.95x15.92x
PEG RatioP/E ÷ EPS growth rate6.58x3.67x
EV / EBITDAEnterprise value multiple13.53x7.70x
Price / SalesMarket cap ÷ Revenue3.51x0.75x
Price / BookPrice ÷ Book value/share4.05x1.60x
Price / FCFMarket cap ÷ FCF30.60x17.24x
UFPI leads this category, winning 7 of 7 comparable metrics.

Profitability & Efficiency

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

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

MetricTREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…
ROE (TTM)Return on equity+18.8%+8.4%
ROA (TTM)Return on assets+12.3%+6.5%
ROICReturn on invested capital+16.4%+11.4%
ROCEReturn on capital employed+23.2%+10.2%
Piotroski ScoreFundamental quality 0–964
Debt / EquityFinancial leverage0.22x0.07x
Net DebtTotal debt minus cash$225M-$695M
Cash & Equiv.Liquid assets$4M$925M
Total DebtShort + long-term debt$229M$230M
Interest CoverageEBIT ÷ Interest expense43.92x
TREX leads this category, winning 6 of 8 comparable metrics.

Total Returns (Dividends Reinvested)

UFPI leads this category, winning 4 of 6 comparable metrics.

A $10,000 investment in UFPI five years ago would be worth $10,149 today (with dividends reinvested), compared to $3,599 for TREX. Over the past 12 months, UFPI leads with a -12.0% total return vs TREX's -30.8%. The 3-year compound annual growth rate (CAGR) favors UFPI at 2.1% vs TREX's -11.4% — a key indicator of consistent wealth creation.

MetricTREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…
YTD ReturnYear-to-date+9.3%-8.6%
1-Year ReturnPast 12 months-30.8%-12.0%
3-Year ReturnCumulative with dividends-30.4%+6.3%
5-Year ReturnCumulative with dividends-64.0%+1.5%
10-Year ReturnCumulative with dividends+239.9%+230.6%
CAGR (3Y)Annualised 3-year return-11.4%+2.1%
UFPI leads this category, winning 4 of 6 comparable metrics.

Risk & Volatility

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

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

MetricTREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…
Beta (5Y)Sensitivity to S&P 5001.47x0.92x
52-Week HighHighest price in past year$68.78$118.00
52-Week LowLowest price in past year$29.77$80.06
% of 52W HighCurrent price vs 52-week peak+56.9%+71.1%
RSI (14)Momentum oscillator 0–10051.335.6
Avg Volume (50D)Average daily shares traded1.7M379K
UFPI leads this category, winning 2 of 2 comparable metrics.

Analyst Outlook

UFPI leads this category, winning 1 of 1 comparable metric.

Wall Street rates TREX as "Hold" and UFPI as "Buy". Consensus price targets imply 22.8% upside for UFPI (target: $103) vs 13.6% for TREX (target: $45). UFPI is the only dividend payer here at 1.67% yield — a key consideration for income-focused portfolios.

MetricTREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…
Analyst RatingConsensus buy/hold/sellHoldBuy
Price TargetConsensus 12-month target$44.50$103.00
# AnalystsCovering analysts318
Dividend YieldAnnual dividend ÷ price+1.7%
Dividend StreakConsecutive years of raises213
Dividend / ShareAnnual DPS$1.40
Buyback YieldShare repurchases ÷ mkt cap+1.3%+9.1%
UFPI leads this category, winning 1 of 1 comparable metric.
Key Takeaway

UFPI leads in 4 of 6 categories (Valuation Metrics, Total Returns). TREX leads in 2 (Income & Cash Flow, Profitability & Efficiency).

Best OverallUFP Industries, Inc. (UFPI)Leads 4 of 6 categories
Loading custom metrics...

TREX vs UFPI: Frequently Asked Questions

10 questions · data-driven answers · updated daily

01

Is TREX or UFPI 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 -5. 0% for UFP Industries, Inc. (UFPI). UFP Industries, Inc. (UFPI) offers the better valuation at 16. 8x trailing P/E (15. 9x forward), making it the more compelling value choice. Analysts rate UFP Industries, Inc. (UFPI) a "Buy" — based on 8 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 — TREX or UFPI?

On trailing P/E, UFP Industries, Inc.

(UFPI) is the cheapest at 16. 8x versus Trex Company, Inc. at 22. 0x. On forward P/E, UFP Industries, Inc. is actually cheaper at 15. 9x. The PEG ratio (P/E divided by earnings growth rate) is the most growth-adjusted single valuation metric: UFP Industries, Inc. wins at 3. 49x versus Trex Company, Inc. 's 7. 16x.

03

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

Over the past 5 years, UFP Industries, Inc.

(UFPI) delivered a total return of +1. 5%, compared to -64. 0% for Trex Company, Inc. (TREX). Over 10 years, the gap is even starker: TREX returned +239. 9% versus UFPI's +230. 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 — TREX or UFPI?

By beta (market sensitivity over 5 years), UFP Industries, Inc.

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

05

Which is growing faster — TREX or UFPI?

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

(TREX) is pulling ahead at 2. 0% versus -5. 0% for UFP Industries, Inc. (UFPI). On earnings-per-share growth, the picture is similar: Trex Company, Inc. grew EPS -14. 8% year-over-year, compared to -26. 1% for UFP Industries, 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 — TREX or UFPI?

Trex Company, Inc.

(TREX) is the more profitable company, earning 16. 2% net margin versus 4. 7% for UFP Industries, 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. 8% for UFPI. 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 TREX or UFPI 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, UFP Industries, Inc. (UFPI) is the more undervalued stock at a PEG of 3. 49x versus Trex Company, Inc. 's 7. 16x. Both stocks trade at elevated growth-adjusted valuations, so expected growth needs to materialise. On forward earnings alone, UFP Industries, Inc. (UFPI) trades at 15. 9x forward P/E versus 24. 0x for Trex Company, Inc. — 8. 0x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for UFPI: 22. 8% to $103. 00.

08

Which pays a better dividend — TREX or UFPI?

In this comparison, UFPI (1.

7% yield) pays a dividend. TREX does not pay a meaningful dividend and should not be held primarily for income.

09

Is TREX or UFPI better for a retirement portfolio?

For long-horizon retirement investors, UFP Industries, Inc.

(UFPI) is the stronger choice — it scores higher on the combination of lower volatility, dividend reliability, and long-term compounding (low volatility (β 0. 92), 1. 7% yield, +230. 6% 10Y return). Both have compounded well over 10 years (UFPI: +230. 6%, 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 TREX and UFPI?

These companies operate in different sectors (TREX (Industrials) and UFPI (Basic Materials)), which means they face different economic cycles, regulatory environments, and macro sensitivities — making direct comparison nuanced.

In terms of investment character: TREX is a small-cap quality compounder stock; UFPI is a small-cap deep-value stock. UFPI pays a dividend while TREX does 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 both.

Stocks Like

TREX

Quality Business

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

UFPI

Income & Dividend Stock

  • Sector: Basic Materials
  • Market Cap > $100B
  • Dividend Yield > 0.6%
Run This Screen
Custom Screen

Beat Both

Find stocks that outperform TREX and UFPI on the metrics below

Revenue Growth>
%
(TREX: 1.0% · UFPI: -8.4%)
Net Margin>
%
(TREX: 16.3% · UFPI: 4.3%)
P/E Ratio<
x
(TREX: 22.0x · UFPI: 16.8x)

You Might Also Compare

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