Compare Stocks

5 / 10
Try these comparisons:

Stock Comparison

SWIM vs TREX vs UFPI vs BLDR vs WY

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

Live fundamentals10-year financials5-year price chart
SWIM
Latham Group, Inc.

Construction

IndustrialsNASDAQ • US
Market Cap$673M
5Y Perf.-78.8%
TREX
Trex Company, Inc.

Construction

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

Paper, Lumber & Forest Products

Basic MaterialsNASDAQ • US
Market Cap$4.76B
5Y Perf.+0.4%
BLDR
Builders FirstSource, Inc.

Construction

IndustrialsNYSE • US
Market Cap$8.79B
5Y Perf.+59.0%
WY
Weyerhaeuser Company

REIT - Specialty

Real EstateNYSE • US
Market Cap$17.09B
5Y Perf.-39.3%

SWIM vs TREX vs UFPI vs BLDR vs WY — Key Financials

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

Company Snapshot
SWIM logoSWIM
TREX logoTREX
UFPI logoUFPI
BLDR logoBLDR
WY logoWY
IndustryConstructionConstructionPaper, Lumber & Forest ProductsConstructionREIT - Specialty
Market Cap$673M$4.12B$4.76B$8.79B$17.09B
Revenue (TTM)$552M$1.18B$6.19B$14.82B$6.92B
Net Income (TTM)$9M$191M$264M$292M$397M
Gross Margin28.5%39.2%16.6%29.9%13.4%
Operating Margin5.5%22.1%5.4%4.2%7.7%
Forward P/E28.8x24.0x18.0x18.0x83.6x
Total Debt$35M$229M$230M$5.65B$5.57B
Cash & Equiv.$71M$4M$925M$182M$464M

SWIM vs TREX vs UFPI vs BLDR vs WYLong-Term Stock Performance

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

SWIM
TREX
UFPI
BLDR
WY
StockApr 21May 26Return
Latham Group, Inc. (SWIM)10021.2-78.8%
Trex Company, Inc. (TREX)10037.2-62.8%
UFP Industries, Inc. (UFPI)100100.4+0.4%
Builders FirstSourc… (BLDR)100159.0+59.0%
Weyerhaeuser Company (WY)10060.7-39.3%

Price return only. Dividends and distributions are not included.

Quick Verdict: SWIM vs TREX vs UFPI vs BLDR vs WY

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

Bottom line: SWIM and TREX are tied at the top with 2 categories each (5-stock set) — the right choice depends on your priorities. Trex Company, Inc. is the stronger pick specifically for profitability and margin quality and operational efficiency and capital deployment. UFPI, BLDR, and WY also each lead in at least one category. This set spans 3 sectors — these stocks serve different portfolio roles, not just different price points.
SWIM
Latham Group, Inc.
The Growth Play

SWIM has the current edge in this matchup, primarily because of its strength in growth exposure.

  • Rev growth 7.4%, EPS growth 161.9%, 3Y rev CAGR -7.8%
  • 7.4% revenue growth vs BLDR's -7.4%
  • -3.7% vs TREX's -30.8%
Best for: growth exposure
TREX
Trex Company, Inc.
The Quality Compounder

TREX is the #2 pick in this set and the best alternative if quality and efficiency is your priority.

  • 16.3% margin vs SWIM's 1.5%
  • 12.3% ROA vs SWIM's 1.0%, ROIC 16.4% vs 4.7%
Best for: quality and efficiency
UFPI
UFP Industries, Inc.
The Defensive Pick

UFPI ranks third and is worth considering specifically for sleep-well-at-night.

  • Lower volatility, beta 0.92, Low D/E 7.4%, current ratio 4.59x
  • 1.7% yield, 13-year raise streak, vs WY's 3.5%, (3 stocks pay no dividend)
Best for: sleep-well-at-night
BLDR
Builders FirstSource, Inc.
The Long-Run Compounder

BLDR is the clearest fit if your priority is long-term compounding and valuation efficiency.

  • 6.1% 10Y total return vs UFPI's 230.6%
  • PEG 2.28 vs TREX's 7.16
  • Lower P/E (18.0x vs 83.6x)
Best for: long-term compounding and valuation efficiency
WY
Weyerhaeuser Company
The Real Estate Income Play

WY is the clearest fit if your priority is income & stability and defensive.

  • Dividend streak 0 yrs, beta 0.51, yield 3.5%
  • Beta 0.51, yield 3.5%, current ratio 1.29x
  • Beta 0.51 vs SWIM's 2.11
Best for: income & stability and defensive
See the full category breakdown
CategoryWinnerWhy
GrowthSWIM logoSWIM7.4% revenue growth vs BLDR's -7.4%
ValueBLDR logoBLDRLower P/E (18.0x vs 83.6x)
Quality / MarginsTREX logoTREX16.3% margin vs SWIM's 1.5%
Stability / SafetyWY logoWYBeta 0.51 vs SWIM's 2.11
DividendsUFPI logoUFPI1.7% yield, 13-year raise streak, vs WY's 3.5%, (3 stocks pay no dividend)
Momentum (1Y)SWIM logoSWIM-3.7% vs TREX's -30.8%
Efficiency (ROA)TREX logoTREX12.3% ROA vs SWIM's 1.0%, ROIC 16.4% vs 4.7%

SWIM vs TREX vs UFPI vs BLDR vs WY — Revenue Breakdown by Segment

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

SWIMLatham Group, Inc.
FY 2025
In-Ground Swimming Pools
48.0%$262M
Covers
29.4%$161M
Liners
22.6%$123M
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
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
WYWeyerhaeuser Company
FY 2025
Wood Products
66.1%$5.0B
Timberlands
27.8%$2.1B
R E E N R
6.1%$454M

SWIM vs TREX vs UFPI vs BLDR vs WY — Financial Metrics

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

BEST OVERALLTREXLAGGINGUFPI

Income & Cash Flow (Last 12 Months)

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

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

MetricSWIM logoSWIMLatham Group, Inc.TREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…BLDR logoBLDRBuilders FirstSou…WY logoWYWeyerhaeuser Comp…
RevenueTrailing 12 months$552M$1.2B$6.2B$14.8B$6.9B
EBITDAEarnings before interest/tax$69M$309M$498M$1.2B$1.0B
Net IncomeAfter-tax profit$9M$191M$264M$292M$397M
Free Cash FlowCash after capex$18M$263M$298M$862M$516M
Gross MarginGross profit ÷ Revenue+28.5%+39.2%+16.6%+29.9%+13.4%
Operating MarginEBIT ÷ Revenue+5.5%+22.1%+5.4%+4.2%+7.7%
Net MarginNet income ÷ Revenue+1.5%+16.3%+4.3%+2.0%+5.7%
FCF MarginFCF ÷ Revenue+3.3%+22.3%+4.8%+5.8%+7.5%
Rev. Growth (YoY)Latest quarter vs prior year+5.3%+1.0%-8.4%-10.1%-2.0%
EPS Growth (YoY)Latest quarter vs prior year-40.0%+3.6%-31.5%-151.2%+100.0%
TREX leads this category, winning 4 of 6 comparable metrics.

Valuation Metrics

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

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

MetricSWIM logoSWIMLatham Group, Inc.TREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…BLDR logoBLDRBuilders FirstSou…WY logoWYWeyerhaeuser Comp…
Market CapShares × price$673M$4.1B$4.8B$8.8B$17.1B
Enterprise ValueMkt cap + debt − cash$636M$4.3B$4.1B$14.3B$22.2B
Trailing P/EPrice ÷ TTM EPS61.96x22.00x16.77x20.43x52.67x
Forward P/EPrice ÷ next-FY EPS est.28.84x23.95x18.05x18.03x83.63x
PEG RatioP/E ÷ EPS growth rate6.58x3.67x2.59x
EV / EBITDAEnterprise value multiple7.64x13.53x7.70x10.35x22.79x
Price / SalesMarket cap ÷ Revenue1.23x3.51x0.75x0.58x2.47x
Price / BookPrice ÷ Book value/share1.70x4.05x1.60x2.04x1.81x
Price / FCFMarket cap ÷ FCF25.82x30.60x17.24x10.30x194.19x
BLDR leads this category, winning 4 of 7 comparable metrics.

Profitability & Efficiency

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

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

MetricSWIM logoSWIMLatham Group, Inc.TREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…BLDR logoBLDRBuilders FirstSou…WY logoWYWeyerhaeuser Comp…
ROE (TTM)Return on equity+2.1%+18.8%+8.4%+6.9%+4.2%
ROA (TTM)Return on assets+1.0%+12.3%+6.5%+2.6%+2.4%
ROICReturn on invested capital+4.7%+16.4%+11.4%+6.4%+2.4%
ROCEReturn on capital employed+4.3%+23.2%+10.2%+8.5%+3.0%
Piotroski ScoreFundamental quality 0–976454
Debt / EquityFinancial leverage0.09x0.22x0.07x1.30x0.59x
Net DebtTotal debt minus cash-$36M$225M-$695M$5.5B$5.1B
Cash & Equiv.Liquid assets$71M$4M$925M$182M$464M
Total DebtShort + long-term debt$35M$229M$230M$5.6B$5.6B
Interest CoverageEBIT ÷ Interest expense1.66x43.92x2.19x1.95x
TREX leads this category, winning 4 of 9 comparable metrics.

Total Returns (Dividends Reinvested)

SWIM leads this category, winning 3 of 6 comparable metrics.

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

MetricSWIM logoSWIMLatham Group, Inc.TREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…BLDR logoBLDRBuilders FirstSou…WY logoWYWeyerhaeuser Comp…
YTD ReturnYear-to-date-9.2%+9.3%-8.6%-24.0%+0.5%
1-Year ReturnPast 12 months-3.7%-30.8%-12.0%-25.0%-5.0%
3-Year ReturnCumulative with dividends+124.6%-30.4%+6.3%-30.1%-11.7%
5-Year ReturnCumulative with dividends-80.1%-64.0%+1.5%+51.8%-23.7%
10-Year ReturnCumulative with dividends-78.9%+239.9%+230.6%+614.8%+16.5%
CAGR (3Y)Annualised 3-year return+31.0%-11.4%+2.1%-11.2%-4.1%
SWIM leads this category, winning 3 of 6 comparable metrics.

Risk & Volatility

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

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

MetricSWIM logoSWIMLatham Group, Inc.TREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…BLDR logoBLDRBuilders FirstSou…WY logoWYWeyerhaeuser Comp…
Beta (5Y)Sensitivity to S&P 5002.06x1.52x0.94x1.66x0.51x
52-Week HighHighest price in past year$8.97$68.78$118.00$151.03$27.86
52-Week LowLowest price in past year$5.04$29.77$80.06$73.40$21.16
% of 52W HighCurrent price vs 52-week peak+64.1%+56.9%+71.1%+52.6%+85.1%
RSI (14)Momentum oscillator 0–10047.051.335.642.845.5
Avg Volume (50D)Average daily shares traded791K1.7M379K2.4M5.0M
WY leads this category, winning 2 of 2 comparable metrics.

Analyst Outlook

Evenly matched — UFPI and WY each lead in 1 of 2 comparable metrics.

Analyst consensus: SWIM as "Buy", TREX as "Hold", UFPI as "Buy", BLDR as "Buy", WY as "Buy". Consensus price targets imply 43.5% upside for SWIM (target: $8) vs 13.6% for TREX (target: $45). For income investors, WY offers the higher dividend yield at 3.54% vs UFPI's 1.67%.

MetricSWIM logoSWIMLatham Group, Inc.TREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…BLDR logoBLDRBuilders FirstSou…WY logoWYWeyerhaeuser Comp…
Analyst RatingConsensus buy/hold/sellBuyHoldBuyBuyBuy
Price TargetConsensus 12-month target$8.25$44.50$103.00$106.64$29.83
# AnalystsCovering analysts83184325
Dividend YieldAnnual dividend ÷ price+1.7%+3.5%
Dividend StreakConsecutive years of raises221320
Dividend / ShareAnnual DPS$1.40$0.84
Buyback YieldShare repurchases ÷ mkt cap0.0%+1.3%+9.1%+4.7%+0.9%
Evenly matched — UFPI and WY each lead in 1 of 2 comparable metrics.
Key Takeaway

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

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

SWIM vs TREX vs UFPI vs BLDR vs WY: Key Questions Answered

10 questions · data-driven answers · updated daily

01

Is SWIM or TREX or UFPI or BLDR or WY a better buy right now?

For growth investors, Latham Group, Inc.

(SWIM) is the stronger pick with 7. 4% revenue growth year-over-year, versus -7. 4% for Builders FirstSource, Inc. (BLDR). UFP Industries, Inc. (UFPI) offers the better valuation at 16. 8x trailing P/E (18. 0x forward), making it the more compelling value choice. Analysts rate Latham Group, Inc. (SWIM) 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 — SWIM or TREX or UFPI or BLDR or WY?

On trailing P/E, UFP Industries, Inc.

(UFPI) is the cheapest at 16. 8x versus Latham Group, Inc. at 62. 0x. On forward P/E, Builders FirstSource, Inc. is actually cheaper at 18. 0x — notably different from the trailing picture, reflecting expected earnings growth. The PEG ratio (P/E divided by earnings growth rate) is the most growth-adjusted single valuation metric: Builders FirstSource, Inc. wins at 2. 28x versus Trex Company, Inc. 's 7. 16x.

03

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

Over the past 5 years, Builders FirstSource, Inc.

(BLDR) delivered a total return of +51. 8%, compared to -80. 1% for Latham Group, Inc. (SWIM). Over 10 years, the gap is even starker: BLDR returned +596. 0% versus SWIM's -79. 8%. 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 — SWIM or TREX or UFPI or BLDR or WY?

By beta (market sensitivity over 5 years), Weyerhaeuser Company (WY) is the lower-risk stock at 0.

51β versus Latham Group, Inc. 's 2. 06β — meaning SWIM is approximately 303% more volatile than WY relative to the S&P 500. On balance sheet safety, UFP Industries, Inc. (UFPI) carries a lower debt/equity ratio of 7% versus 130% for Builders FirstSource, Inc. — giving it more financial flexibility in a downturn.

05

Which is growing faster — SWIM or TREX or UFPI or BLDR or WY?

By revenue growth (latest reported year), Latham Group, Inc.

(SWIM) is pulling ahead at 7. 4% versus -7. 4% for Builders FirstSource, Inc. (BLDR). On earnings-per-share growth, the picture is similar: Latham Group, Inc. grew EPS 161. 9% 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 — SWIM or TREX or UFPI or BLDR or WY?

Trex Company, Inc.

(TREX) is the more profitable company, earning 16. 2% net margin versus 2. 0% for Latham Group, 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 SWIM or TREX or UFPI or BLDR or WY 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 2. 28x 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, Builders FirstSource, Inc. (BLDR) trades at 18. 0x forward P/E versus 83. 6x for Weyerhaeuser Company — 65. 6x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for SWIM: 43. 5% to $8. 25.

08

Which pays a better dividend — SWIM or TREX or UFPI or BLDR or WY?

In this comparison, WY (3.

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

09

Is SWIM or TREX or UFPI or BLDR or WY better for a retirement portfolio?

For long-horizon retirement investors, Weyerhaeuser Company (WY) is the stronger choice — it scores higher on the combination of lower volatility, dividend reliability, and long-term compounding (low volatility (β 0.

51), 3. 5% yield). Latham Group, Inc. (SWIM) carries a higher beta of 2. 06 — meaning larger drawdowns in market downturns, which matters significantly when you cannot wait years for a recovery. Both have compounded well over 10 years (WY: +16. 0%, SWIM: -79. 8%), 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 SWIM and TREX and UFPI and BLDR and WY?

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

In terms of investment character: SWIM is a small-cap quality compounder stock; TREX is a small-cap quality compounder stock; UFPI is a small-cap deep-value stock; BLDR is a small-cap quality compounder stock; WY is a mid-cap income-oriented stock. UFPI, WY pay a dividend while SWIM, TREX, BLDR 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

SWIM

Quality Business

  • Sector: Industrials
  • Market Cap > $100B
  • Revenue Growth > 5%
  • Gross Margin > 17%
Run This Screen
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
Stocks Like

BLDR

Quality Business

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

WY

Income & Dividend Stock

  • Sector: Real Estate
  • Market Cap > $100B
  • Net Margin > 5%
  • Dividend Yield > 1.4%
Run This Screen
Custom Screen

Beat Both

Find stocks that outperform SWIM and TREX and UFPI and BLDR and WY on the metrics below

Revenue Growth>
%
(SWIM: 5.3% · TREX: 1.0%)
P/E Ratio<
x
(SWIM: 62.0x · TREX: 22.0x)

You Might Also Compare

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