Compare Stocks

5 / 10
Try these comparisons:

Stock Comparison

SWIM vs MAS vs SHW vs TREX vs BLDR

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$643M
5Y Perf.-78.8%
MAS
Masco Corporation

Construction

IndustrialsNYSE • US
Market Cap$14.47B
5Y Perf.+12.3%
SHW
The Sherwin-Williams Company

Chemicals - Specialty

Basic MaterialsNYSE • US
Market Cap$78.14B
5Y Perf.+15.7%
TREX
Trex Company, Inc.

Construction

IndustrialsNYSE • US
Market Cap$4.18B
5Y Perf.-62.8%
BLDR
Builders FirstSource, Inc.

Construction

IndustrialsNYSE • US
Market Cap$8.56B
5Y Perf.+59.0%

SWIM vs MAS vs SHW vs TREX vs BLDR — Key Financials

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

Company Snapshot
SWIM logoSWIM
MAS logoMAS
SHW logoSHW
TREX logoTREX
BLDR logoBLDR
IndustryConstructionConstructionChemicals - SpecialtyConstructionConstruction
Market Cap$643M$14.47B$78.14B$4.18B$8.56B
Revenue (TTM)$552M$7.68B$23.94B$1.18B$14.82B
Net Income (TTM)$9M$837M$2.60B$191M$292M
Gross Margin28.5%35.4%49.1%39.2%29.9%
Operating Margin5.5%16.8%16.1%22.1%4.2%
Forward P/E28.8x16.8x27.0x24.2x18.0x
Total Debt$35M$3.44B$14.53B$229M$5.65B
Cash & Equiv.$71M$647M$207M$4M$182M

SWIM vs MAS vs SHW vs TREX vs BLDRLong-Term Stock Performance

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

SWIM
MAS
SHW
TREX
BLDR
StockApr 21May 26Return
Latham Group, Inc. (SWIM)10021.2-78.8%
Masco Corporation (MAS)100112.3+12.3%
The Sherwin-William… (SHW)100115.7+15.7%
Trex Company, Inc. (TREX)10037.2-62.8%
Builders FirstSourc… (BLDR)100159.0+59.0%

Price return only. Dividends and distributions are not included.

Quick Verdict: SWIM vs MAS vs SHW vs TREX vs BLDR

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

Bottom line: MAS leads in 3 of 7 categories (5-stock set), making it the strongest pick for dividend income and shareholder returns and recent price momentum and sentiment. Latham Group, Inc. is the stronger pick specifically for growth and revenue expansion. SHW, TREX, and BLDR also each lead in at least one category. This set spans 2 sectors — these stocks serve different portfolio roles, not just different price points.
SWIM
Latham Group, Inc.
The Growth Play

SWIM is the #2 pick in this set and the best alternative if growth exposure is your priority.

  • Rev growth 7.4%, EPS growth 161.9%, 3Y rev CAGR -7.8%
  • 7.4% revenue growth vs BLDR's -7.4%
Best for: growth exposure
MAS
Masco Corporation
The Income Pick

MAS carries the broadest edge in this set and is the clearest fit for income & stability and defensive.

  • Dividend streak 12 yrs, beta 1.28, yield 1.7%
  • Beta 1.28, yield 1.7%, current ratio 1.81x
  • 1.7% yield, 12-year raise streak, vs SHW's 1.0%, (3 stocks pay no dividend)
  • +18.3% vs TREX's -31.0%
Best for: income & stability and defensive
SHW
The Sherwin-Williams Company
The Defensive Pick

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

  • Lower volatility, beta 0.80, current ratio 0.87x
  • Beta 0.80 vs SWIM's 2.06
Best for: sleep-well-at-night
TREX
Trex Company, Inc.
The Quality Compounder

TREX is the clearest fit if your priority is quality.

  • 16.3% margin vs SWIM's 1.5%
Best for: quality
BLDR
Builders FirstSource, Inc.
The Long-Run Compounder

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

  • 6.0% 10Y total return vs TREX's 248.9%
  • PEG 2.28 vs TREX's 7.25
  • Lower P/E (18.0x vs 24.2x), PEG 2.28 vs 7.25
Best for: long-term compounding and valuation efficiency
See the full category breakdown
CategoryWinnerWhy
GrowthSWIM logoSWIM7.4% revenue growth vs BLDR's -7.4%
ValueBLDR logoBLDRLower P/E (18.0x vs 24.2x), PEG 2.28 vs 7.25
Quality / MarginsTREX logoTREX16.3% margin vs SWIM's 1.5%
Stability / SafetySHW logoSHWBeta 0.80 vs SWIM's 2.06
DividendsMAS logoMAS1.7% yield, 12-year raise streak, vs SHW's 1.0%, (3 stocks pay no dividend)
Momentum (1Y)MAS logoMAS+18.3% vs TREX's -31.0%
Efficiency (ROA)MAS logoMAS15.9% ROA vs SWIM's 1.0%, ROIC 35.4% vs 4.7%

SWIM vs MAS vs SHW vs TREX vs BLDR — 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
MASMasco Corporation
FY 2025
Plumbing Products
66.0%$5.0B
Decorative Architectural Products
34.0%$2.6B
SHWThe Sherwin-Williams Company
FY 2025
Paint Stores Group
57.7%$13.6B
Consumer Group
36.3%$8.6B
Global Finishes Group
28.9%$6.8B
Corporate And Eliminations
-22.9%$-5,408,000,000
TREXTrex Company, Inc.

Segment breakdown not available.

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

SWIM vs MAS vs SHW vs TREX vs BLDR — Financial Metrics

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

BEST OVERALLMASLAGGINGSHW

Income & Cash Flow (Last 12 Months)

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

SHW is the larger business by revenue, generating $23.9B annually — 43.4x 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, SHW holds the edge at +6.8% YoY revenue growth, suggesting stronger near-term business momentum.

MetricSWIM logoSWIMLatham Group, Inc.MAS logoMASMasco CorporationSHW logoSHWThe Sherwin-Willi…TREX logoTREXTrex Company, Inc.BLDR logoBLDRBuilders FirstSou…
RevenueTrailing 12 months$552M$7.7B$23.9B$1.2B$14.8B
EBITDAEarnings before interest/tax$69M$1.4B$4.5B$309M$1.2B
Net IncomeAfter-tax profit$9M$837M$2.6B$191M$292M
Free Cash FlowCash after capex$18M$943M$2.9B$239M$862M
Gross MarginGross profit ÷ Revenue+28.5%+35.4%+49.1%+39.2%+29.9%
Operating MarginEBIT ÷ Revenue+5.5%+16.8%+16.1%+22.1%+4.2%
Net MarginNet income ÷ Revenue+1.5%+10.9%+10.9%+16.3%+2.0%
FCF MarginFCF ÷ Revenue+3.3%+12.3%+12.1%+20.3%+5.8%
Rev. Growth (YoY)Latest quarter vs prior year+5.3%+6.5%+6.8%+1.0%-10.1%
EPS Growth (YoY)Latest quarter vs prior year-40.0%+20.7%+7.5%+3.6%-151.2%
TREX leads this category, winning 3 of 6 comparable metrics.

Valuation Metrics

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

At 18.6x trailing earnings, MAS trades at a 69% valuation discount to SWIM's 59.3x P/E. Adjusting for growth (PEG ratio), BLDR offers better value at 2.52x vs TREX's 6.75x — a lower PEG means you pay less per unit of expected earnings growth.

MetricSWIM logoSWIMLatham Group, Inc.MAS logoMASMasco CorporationSHW logoSHWThe Sherwin-Willi…TREX logoTREXTrex Company, Inc.BLDR logoBLDRBuilders FirstSou…
Market CapShares × price$643M$14.5B$78.1B$4.2B$8.6B
Enterprise ValueMkt cap + debt − cash$607M$17.3B$92.5B$4.4B$14.0B
Trailing P/EPrice ÷ TTM EPS59.27x18.59x30.85x22.58x19.90x
Forward P/EPrice ÷ next-FY EPS est.28.84x16.79x26.99x24.24x18.03x
PEG RatioP/E ÷ EPS growth rate3.75x4.46x6.75x2.52x
EV / EBITDAEnterprise value multiple7.29x12.16x21.05x13.72x10.18x
Price / SalesMarket cap ÷ Revenue1.18x1.91x3.31x3.56x0.56x
Price / BookPrice ÷ Book value/share1.62x200.89x17.14x4.16x1.99x
Price / FCFMarket cap ÷ FCF24.70x16.71x29.44x31.05x10.03x
BLDR leads this category, winning 3 of 7 comparable metrics.

Profitability & Efficiency

MAS leads this category, winning 5 of 9 comparable metrics.

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

MetricSWIM logoSWIMLatham Group, Inc.MAS logoMASMasco CorporationSHW logoSHWThe Sherwin-Willi…TREX logoTREXTrex Company, Inc.BLDR logoBLDRBuilders FirstSou…
ROE (TTM)Return on equity+2.1%+8.0%+58.2%+18.8%+6.9%
ROA (TTM)Return on assets+1.0%+15.9%+10.0%+12.3%+2.6%
ROICReturn on invested capital+4.7%+35.4%+16.5%+16.4%+6.4%
ROCEReturn on capital employed+4.3%+35.9%+21.3%+23.2%+8.5%
Piotroski ScoreFundamental quality 0–976665
Debt / EquityFinancial leverage0.09x45.81x3.16x0.22x1.30x
Net DebtTotal debt minus cash-$36M$2.8B$14.3B$225M$5.5B
Cash & Equiv.Liquid assets$71M$647M$207M$4M$182M
Total DebtShort + long-term debt$35M$3.4B$14.5B$229M$5.6B
Interest CoverageEBIT ÷ Interest expense1.66x12.60x7.83x2.19x
MAS leads this category, winning 5 of 9 comparable metrics.

Total Returns (Dividends Reinvested)

Evenly matched — SWIM and BLDR each lead in 2 of 6 comparable metrics.

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

MetricSWIM logoSWIMLatham Group, Inc.MAS logoMASMasco CorporationSHW logoSHWThe Sherwin-Willi…TREX logoTREXTrex Company, Inc.BLDR logoBLDRBuilders FirstSou…
YTD ReturnYear-to-date-13.1%+11.8%-3.1%+12.2%-26.0%
1-Year ReturnPast 12 months-5.2%+18.3%-9.5%-31.0%-30.3%
3-Year ReturnCumulative with dividends+114.8%+39.7%+40.9%-28.6%-31.9%
5-Year ReturnCumulative with dividends-81.4%+15.4%+14.4%-62.7%+48.0%
10-Year ReturnCumulative with dividends-79.8%+151.5%+246.5%+248.9%+596.0%
CAGR (3Y)Annualised 3-year return+29.0%+11.8%+12.1%-10.6%-12.0%
Evenly matched — SWIM and BLDR each lead in 2 of 6 comparable metrics.

Risk & Volatility

Evenly matched — MAS and SHW each lead in 1 of 2 comparable metrics.

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

MetricSWIM logoSWIMLatham Group, Inc.MAS logoMASMasco CorporationSHW logoSHWThe Sherwin-Willi…TREX logoTREXTrex Company, Inc.BLDR logoBLDRBuilders FirstSou…
Beta (5Y)Sensitivity to S&P 5002.06x1.28x0.80x1.52x1.66x
52-Week HighHighest price in past year$8.97$79.19$379.65$68.78$151.03
52-Week LowLowest price in past year$5.04$58.16$301.58$29.77$73.40
% of 52W HighCurrent price vs 52-week peak+61.3%+90.6%+83.5%+58.4%+51.2%
RSI (14)Momentum oscillator 0–10045.259.545.348.442.0
Avg Volume (50D)Average daily shares traded806K2.7M1.6M1.7M2.4M
Evenly matched — MAS and SHW each lead in 1 of 2 comparable metrics.

Analyst Outlook

Evenly matched — MAS and SHW each lead in 1 of 2 comparable metrics.

Analyst consensus: SWIM as "Buy", MAS as "Buy", SHW as "Buy", TREX as "Hold", BLDR as "Buy". Consensus price targets imply 50.0% upside for SWIM (target: $8) vs 15.1% for MAS (target: $83). For income investors, MAS offers the higher dividend yield at 1.73% vs SHW's 1.00%.

MetricSWIM logoSWIMLatham Group, Inc.MAS logoMASMasco CorporationSHW logoSHWThe Sherwin-Willi…TREX logoTREXTrex Company, Inc.BLDR logoBLDRBuilders FirstSou…
Analyst RatingConsensus buy/hold/sellBuyBuyBuyHoldBuy
Price TargetConsensus 12-month target$8.25$82.60$389.43$47.44$106.64
# AnalystsCovering analysts838383143
Dividend YieldAnnual dividend ÷ price+1.7%+1.0%
Dividend StreakConsecutive years of raises2123722
Dividend / ShareAnnual DPS$1.24$3.17
Buyback YieldShare repurchases ÷ mkt cap0.0%+3.9%0.0%+1.3%+4.8%
Evenly matched — MAS and SHW each lead in 1 of 2 comparable metrics.
Key Takeaway

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

Best OverallMasco Corporation (MAS)Leads 1 of 6 categories
Loading custom metrics...

SWIM vs MAS vs SHW vs TREX vs BLDR: Key Questions Answered

10 questions · data-driven answers · updated daily

01

Is SWIM or MAS or SHW or TREX or BLDR 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). Masco Corporation (MAS) offers the better valuation at 18. 6x trailing P/E (16. 8x 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 MAS or SHW or TREX or BLDR?

On trailing P/E, Masco Corporation (MAS) is the cheapest at 18.

6x versus Latham Group, Inc. at 59. 3x. On forward P/E, Masco Corporation is actually cheaper at 16. 8x. 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. 25x.

03

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

Over the past 5 years, Builders FirstSource, Inc.

(BLDR) delivered a total return of +48. 0%, compared to -81. 4% 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 MAS or SHW or TREX or BLDR?

By beta (market sensitivity over 5 years), The Sherwin-Williams Company (SHW) is the lower-risk stock at 0.

80β versus Latham Group, Inc. 's 2. 06β — meaning SWIM is approximately 155% more volatile than SHW relative to the S&P 500. On balance sheet safety, Latham Group, Inc. (SWIM) carries a lower debt/equity ratio of 9% versus 46% for Masco Corporation — giving it more financial flexibility in a downturn.

05

Which is growing faster — SWIM or MAS or SHW or TREX or BLDR?

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, SHW leads at 2. 1% 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 MAS or SHW or TREX or BLDR?

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 — SHW leads at 48. 9%, 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 MAS or SHW or TREX or BLDR 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. 25x. Both stocks trade at elevated growth-adjusted valuations, so expected growth needs to materialise. On forward earnings alone, Masco Corporation (MAS) trades at 16. 8x forward P/E versus 28. 8x for Latham Group, Inc. — 12. 1x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for SWIM: 50. 0% to $8. 25.

08

Which pays a better dividend — SWIM or MAS or SHW or TREX or BLDR?

In this comparison, MAS (1.

7% yield), SHW (1. 0% 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 MAS or SHW or TREX or BLDR better for a retirement portfolio?

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

80), 1. 0% yield, +246. 5% 10Y return). 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 (SHW: +246. 5%, 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 MAS and SHW and TREX and BLDR?

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

MAS, SHW 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

MAS

Income & Dividend Stock

  • Sector: Industrials
  • Market Cap > $100B
  • Revenue Growth > 5%
  • Net Margin > 6%
Run This Screen
Stocks Like

SHW

Stable Dividend Mega-Cap

  • Sector: Basic Materials
  • Market Cap > $100B
  • Revenue Growth > 5%
  • Net Margin > 6%
Run This Screen
Stocks Like

TREX

Quality Business

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

BLDR

Quality Business

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

Beat Both

Find stocks that outperform SWIM and MAS and SHW and TREX and BLDR on the metrics below

Revenue Growth>
%
(SWIM: 5.3% · MAS: 6.5%)
P/E Ratio<
x
(SWIM: 59.3x · MAS: 18.6x)

You Might Also Compare

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