MetaCap

Trex (TREX) vs UFP Industries (UFPI)

Head-to-head comparison of performance, valuation, growth, profitability and dividends. Prices delayed 15 minutes; data as of Oct 9, 2026.

Summary

UFP Industries (UFPI) has outperformed Trex (TREX) over the past year, losing 16.3% versus a loss of 16.7%. Over five years, UFPI leads with a +1.7% price change compared with -53.1% for TREX. Trex is the larger company by market cap ($4.53 billion vs $4.22 billion), about 1.1 times the size.

On valuation, UFP Industries trades at a lower forward P/E (13.8x vs 22.0x for Trex). UFP Industries pays a dividend yielding 1.86%, while Trex does not currently pay one. Trex converts more of its revenue into profit, with a net margin of 16.2% versus 4.7%.

Summary generated from market data by MetaCap's automated system. Methodology

Relative performance

TREX-18.20%UFPI-16.32%
+30%-9%-47%
Oct 8, 20251 yearOct 7, 2026
TREX-58.00%UFPI+5.97%
+98%+10%-78%
Oct 4, 20215 yearsOct 5, 2026

Percent change in share price from the first common trading day shown; excludes dividends.

Head-to-head

TREX versus UFPI key metrics
MetricTREXUFPI
Share price$44.44$76.45
Market cap$4.53B$4.22B
1-day change+1.41%+0.01%
YTD return+24.91%-16.04%
1-year return-16.72%-16.31%
5-year return-53.07%+1.72%
P/E ratio (TTM)26.1417.45
Forward P/E21.9913.85
EPS (TTM)$1.70$4.38
Dividend yield0.00%1.86%
Annual dividend$0.00$1.42
Revenue (latest FY)$1.17B$6.32B
Revenue growth (YoY)+1.98%-4.99%
Net income (latest FY)$190.41M$294.79M
Gross margin39.17%16.77%
Operating margin21.97%5.76%
Net margin16.22%4.66%
52-week high$54.30$118.00
52-week low$29.77$74.55
Distance from 52-week high-18.16%-35.21%
Analyst consensusbuybuy
Avg. price target upside+23.87%+34.21%
Average volume1.84M440.18K
Shares outstanding101.87M55.16M
Employees1,83913,800
SectorBasic MaterialsBasic Materials
IndustryForest ProductsForest Products

Highlighted cells mark the higher value for growth, returns, margins and yield, and the lower value for P/E ratios. Highlighting is a mechanical comparison, not a recommendation.

Key differences

  • Trex trades at a higher earnings multiple (26.1x vs 17.5x trailing P/E).
  • UFP Industries offers a meaningfully higher dividend yield (1.86% vs 0.00%).
  • Trex is more profitable, keeping 16.2 cents of every revenue dollar as net income versus 4.7 cents for UFP Industries.
  • Trex grew revenue faster in its latest fiscal year (+1.98% vs -4.99%).

About Trex

TREX stock →

Trex Company, Inc. manufactures and sells composite decking and railing products in the United States.

Basic Materials · Forest Products · 1,839 employees

About UFP Industries

UFPI stock →

UFP Industries, Inc., together with its subsidiaries, designs, manufactures, and supplies wood and non-wood composites, and other materials in the United States and internationally. It operates through three segments: Retail, Construction, and Packaging.

Basic Materials · Forest Products · 13,800 employees

TREX vs UFPI FAQ

Which is bigger, Trex or UFP Industries?

Trex (TREX) is larger, with a market capitalization of $4.53B compared with $4.22B for UFP Industries (UFPI).

Which stock has performed better over the past year, TREX or UFPI?

UFPI returned -16.31% over the past 12 months, compared with -16.72% for TREX (price return, excluding dividends). Past performance does not predict future results.

Which has the lower P/E ratio, TREX or UFPI?

UFPI has the lower trailing P/E at 17.5, versus 26.1 for TREX. A lower P/E is not by itself a sign of a better investment; it can reflect slower expected growth or higher risk.

Which pays a higher dividend, Trex or UFP Industries?

UFP Industries pays a dividend yielding 1.86%, while Trex does not currently pay a regular dividend.

Are Trex and UFP Industries in the same industry?

Yes. Both are classified in the Forest Products industry within the Basic Materials sector.

More comparisons