Compare Stocks

4 / 10
Try these comparisons:

Stock Comparison

HAYW vs SHW vs TREX vs MAS

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

Live fundamentals10-year financials5-year price chart
HAYW
Hayward Holdings, Inc.

Electrical Equipment & Parts

IndustrialsNYSE • US
Market Cap$3.20B
5Y Perf.-12.5%
SHW
The Sherwin-Williams Company

Chemicals - Specialty

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

Construction

IndustrialsNYSE • US
Market Cap$4.12B
5Y Perf.-57.2%
MAS
Masco Corporation

Construction

IndustrialsNYSE • US
Market Cap$14.51B
5Y Perf.+20.1%

HAYW vs SHW vs TREX vs MAS — Key Financials

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

Company Snapshot
HAYW logoHAYW
SHW logoSHW
TREX logoTREX
MAS logoMAS
IndustryElectrical Equipment & PartsChemicals - SpecialtyConstructionConstruction
Market Cap$3.20B$78.98B$4.12B$14.51B
Revenue (TTM)$1.15B$23.94B$1.18B$7.68B
Net Income (TTM)$161M$2.60B$191M$837M
Gross Margin45.0%49.1%39.2%35.4%
Operating Margin21.3%16.1%22.1%16.8%
Forward P/E17.2x27.3x24.0x16.9x
Total Debt$13M$14.53B$229M$3.44B
Cash & Equiv.$330M$207M$4M$647M

HAYW vs SHW vs TREX vs MASLong-Term Stock Performance

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

HAYW
SHW
TREX
MAS
StockMar 21May 26Return
Hayward Holdings, I… (HAYW)10087.5-12.5%
The Sherwin-William… (SHW)100130.2+30.2%
Trex Company, Inc. (TREX)10042.8-57.2%
Masco Corporation (MAS)100120.1+20.1%

Price return only. Dividends and distributions are not included.

Quick Verdict: HAYW vs SHW vs TREX vs MAS

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, making it the strongest pick for dividend income and shareholder returns and recent price momentum and sentiment. Hayward Holdings, Inc. is the stronger pick specifically for growth and revenue expansion and valuation and capital efficiency. SHW and TREX also each lead in at least one category. This set spans 2 sectors — these stocks serve different portfolio roles, not just different price points.
HAYW
Hayward Holdings, Inc.
The Growth Play

HAYW is the #2 pick in this set and the best alternative if growth exposure and sleep-well-at-night is your priority.

  • Rev growth 6.7%, EPS growth 25.9%, 3Y rev CAGR -5.1%
  • Lower volatility, beta 1.14, Low D/E 0.8%, current ratio 2.94x
  • PEG 0.12 vs TREX's 7.16
  • 6.7% revenue growth vs MAS's -3.4%
Best for: growth exposure and sleep-well-at-night
SHW
The Sherwin-Williams Company
The Income Pick

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

  • Dividend streak 37 yrs, beta 0.79, yield 1.0%
  • 250.0% 10Y total return vs MAS's 152.1%
  • Beta 0.79 vs TREX's 1.47
Best for: income & stability and long-term compounding
TREX
Trex Company, Inc.
The Quality Compounder

TREX is the clearest fit if your priority is quality.

  • 16.3% margin vs SHW's 10.9%
Best for: quality
MAS
Masco Corporation
The Defensive Pick

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

  • Beta 1.28, yield 1.7%, current ratio 1.81x
  • 1.7% yield, 12-year raise streak, vs SHW's 1.0%, (2 stocks pay no dividend)
  • +21.1% vs TREX's -30.8%
  • 15.9% ROA vs HAYW's 5.2%, ROIC 35.4% vs 10.2%
Best for: defensive
See the full category breakdown
CategoryWinnerWhy
GrowthHAYW logoHAYW6.7% revenue growth vs MAS's -3.4%
ValueHAYW logoHAYWLower P/E (17.2x vs 24.0x), PEG 0.12 vs 7.16
Quality / MarginsTREX logoTREX16.3% margin vs SHW's 10.9%
Stability / SafetySHW logoSHWBeta 0.79 vs TREX's 1.47
DividendsMAS logoMAS1.7% yield, 12-year raise streak, vs SHW's 1.0%, (2 stocks pay no dividend)
Momentum (1Y)MAS logoMAS+21.1% vs TREX's -30.8%
Efficiency (ROA)MAS logoMAS15.9% ROA vs HAYW's 5.2%, ROIC 35.4% vs 10.2%

HAYW vs SHW vs TREX vs MAS — Revenue Breakdown by Segment

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

HAYWHayward Holdings, Inc.
FY 2025
Residential Pool
90.0%$1.0B
Commercial Pool
5.8%$65M
Flow Control
4.2%$47M
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.

MASMasco Corporation
FY 2025
Plumbing Products
66.0%$5.0B
Decorative Architectural Products
34.0%$2.6B

HAYW vs SHW vs TREX vs MAS — Financial Metrics

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

BEST OVERALLHAYWLAGGINGMAS

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 — 20.8x HAYW's $1.1B. TREX is the more profitable business, keeping 16.3% of every revenue dollar as net income compared to SHW's 10.9%. On growth, HAYW holds the edge at +11.5% YoY revenue growth, suggesting stronger near-term business momentum.

MetricHAYW logoHAYWHayward Holdings,…SHW logoSHWThe Sherwin-Willi…TREX logoTREXTrex Company, Inc.MAS logoMASMasco Corporation
RevenueTrailing 12 months$1.1B$23.9B$1.2B$7.7B
EBITDAEarnings before interest/tax$301M$4.5B$309M$1.4B
Net IncomeAfter-tax profit$161M$2.6B$191M$837M
Free Cash FlowCash after capex$80M$2.9B$263M$943M
Gross MarginGross profit ÷ Revenue+45.0%+49.1%+39.2%+35.4%
Operating MarginEBIT ÷ Revenue+21.3%+16.1%+22.1%+16.8%
Net MarginNet income ÷ Revenue+14.0%+10.9%+16.3%+10.9%
FCF MarginFCF ÷ Revenue+7.0%+12.1%+22.3%+12.3%
Rev. Growth (YoY)Latest quarter vs prior year+11.5%+6.8%+1.0%+6.5%
EPS Growth (YoY)Latest quarter vs prior year+70.3%+7.5%+3.6%+20.7%
TREX leads this category, winning 3 of 6 comparable metrics.

Valuation Metrics

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

At 18.6x trailing earnings, MAS trades at a 40% valuation discount to SHW's 31.2x P/E. Adjusting for growth (PEG ratio), HAYW offers better value at 0.16x vs TREX's 6.58x — a lower PEG means you pay less per unit of expected earnings growth.

MetricHAYW logoHAYWHayward Holdings,…SHW logoSHWThe Sherwin-Willi…TREX logoTREXTrex Company, Inc.MAS logoMASMasco Corporation
Market CapShares × price$3.2B$79.0B$4.1B$14.5B
Enterprise ValueMkt cap + debt − cash$2.9B$93.3B$4.3B$17.3B
Trailing P/EPrice ÷ TTM EPS21.71x31.18x22.00x18.63x
Forward P/EPrice ÷ next-FY EPS est.17.19x27.27x23.95x16.85x
PEG RatioP/E ÷ EPS growth rate0.16x4.51x6.58x3.76x
EV / EBITDAEnterprise value multiple9.81x21.24x13.53x12.18x
Price / SalesMarket cap ÷ Revenue2.85x3.35x3.51x1.92x
Price / BookPrice ÷ Book value/share2.06x17.33x4.05x201.40x
Price / FCFMarket cap ÷ FCF14.19x29.76x30.60x16.76x
HAYW leads this category, winning 4 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 $10 for HAYW. HAYW carries lower financial leverage with a 0.01x debt-to-equity ratio, signaling a more conservative balance sheet compared to MAS's 45.81x. On the Piotroski fundamental quality scale (0–9), HAYW scores 7/9 vs MAS's 6/9, reflecting strong financial health.

MetricHAYW logoHAYWHayward Holdings,…SHW logoSHWThe Sherwin-Willi…TREX logoTREXTrex Company, Inc.MAS logoMASMasco Corporation
ROE (TTM)Return on equity+10.3%+58.2%+18.8%+8.0%
ROA (TTM)Return on assets+5.2%+10.0%+12.3%+15.9%
ROICReturn on invested capital+10.2%+16.5%+16.4%+35.4%
ROCEReturn on capital employed+8.6%+21.3%+23.2%+35.9%
Piotroski ScoreFundamental quality 0–97666
Debt / EquityFinancial leverage0.01x3.16x0.22x45.81x
Net DebtTotal debt minus cash-$316M$14.3B$225M$2.8B
Cash & Equiv.Liquid assets$330M$207M$4M$647M
Total DebtShort + long-term debt$13M$14.5B$229M$3.4B
Interest CoverageEBIT ÷ Interest expense4.07x7.83x12.60x
MAS leads this category, winning 5 of 9 comparable metrics.

Total Returns (Dividends Reinvested)

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

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

MetricHAYW logoHAYWHayward Holdings,…SHW logoSHWThe Sherwin-Willi…TREX logoTREXTrex Company, Inc.MAS logoMASMasco Corporation
YTD ReturnYear-to-date-6.4%-2.1%+9.3%+12.1%
1-Year ReturnPast 12 months+7.3%-8.0%-30.8%+21.1%
3-Year ReturnCumulative with dividends+27.3%+42.4%-30.4%+40.1%
5-Year ReturnCumulative with dividends-37.0%+16.1%-64.0%+16.1%
10-Year ReturnCumulative with dividends-13.1%+250.0%+239.9%+152.1%
CAGR (3Y)Annualised 3-year return+8.4%+12.5%-11.4%+11.9%
SHW leads this category, winning 4 of 6 comparable metrics.

Risk & Volatility

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

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

MetricHAYW logoHAYWHayward Holdings,…SHW logoSHWThe Sherwin-Willi…TREX logoTREXTrex Company, Inc.MAS logoMASMasco Corporation
Beta (5Y)Sensitivity to S&P 5001.14x0.79x1.47x1.28x
52-Week HighHighest price in past year$17.73$379.65$68.78$79.19
52-Week LowLowest price in past year$13.04$301.58$29.77$58.16
% of 52W HighCurrent price vs 52-week peak+83.3%+84.3%+56.9%+90.8%
RSI (14)Momentum oscillator 0–10051.547.651.359.6
Avg Volume (50D)Average daily shares traded2.2M1.6M1.7M2.7M
Evenly matched — SHW and MAS each lead in 1 of 2 comparable metrics.

Analyst Outlook

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

Analyst consensus: HAYW as "Hold", SHW as "Buy", TREX as "Hold", MAS as "Buy". Consensus price targets imply 21.6% upside for SHW (target: $389) vs 6.7% for HAYW (target: $16). For income investors, MAS offers the higher dividend yield at 1.73% vs SHW's 0.99%.

MetricHAYW logoHAYWHayward Holdings,…SHW logoSHWThe Sherwin-Willi…TREX logoTREXTrex Company, Inc.MAS logoMASMasco Corporation
Analyst RatingConsensus buy/hold/sellHoldBuyHoldBuy
Price TargetConsensus 12-month target$15.75$389.43$44.50$82.36
# AnalystsCovering analysts10383138
Dividend YieldAnnual dividend ÷ price+1.0%+1.7%
Dividend StreakConsecutive years of raises037212
Dividend / ShareAnnual DPS$3.17$1.24
Buyback YieldShare repurchases ÷ mkt cap+0.2%0.0%+1.3%+3.9%
Evenly matched — SHW and MAS each lead in 1 of 2 comparable metrics.
Key Takeaway

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

Best OverallHayward Holdings, Inc. (HAYW)Leads 1 of 6 categories
Loading custom metrics...

HAYW vs SHW vs TREX vs MAS: Key Questions Answered

10 questions · data-driven answers · updated daily

01

Is HAYW or SHW or TREX or MAS a better buy right now?

For growth investors, Hayward Holdings, Inc.

(HAYW) is the stronger pick with 6. 7% revenue growth year-over-year, versus -3. 4% for Masco Corporation (MAS). Masco Corporation (MAS) offers the better valuation at 18. 6x trailing P/E (16. 9x forward), making it the more compelling value choice. Analysts rate The Sherwin-Williams Company (SHW) a "Buy" — based on 38 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 — HAYW or SHW or TREX or MAS?

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

6x versus The Sherwin-Williams Company at 31. 2x. On forward P/E, Masco Corporation is actually cheaper at 16. 9x. The PEG ratio (P/E divided by earnings growth rate) is the most growth-adjusted single valuation metric: Hayward Holdings, Inc. wins at 0. 12x versus Trex Company, Inc. 's 7. 16x — a PEG below 1. 0 traditionally signals the market is underpricing earnings growth.

03

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

Over the past 5 years, The Sherwin-Williams Company (SHW) delivered a total return of +16.

1%, compared to -64. 0% for Trex Company, Inc. (TREX). Over 10 years, the gap is even starker: SHW returned +250. 0% versus HAYW's -13. 1%. 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 — HAYW or SHW or TREX or MAS?

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

79β versus Trex Company, Inc. 's 1. 47β — meaning TREX is approximately 85% more volatile than SHW relative to the S&P 500. On balance sheet safety, Hayward Holdings, Inc. (HAYW) carries a lower debt/equity ratio of 1% versus 46% for Masco Corporation — giving it more financial flexibility in a downturn.

05

Which is growing faster — HAYW or SHW or TREX or MAS?

By revenue growth (latest reported year), Hayward Holdings, Inc.

(HAYW) is pulling ahead at 6. 7% versus -3. 4% for Masco Corporation (MAS). On earnings-per-share growth, the picture is similar: Hayward Holdings, Inc. grew EPS 25. 9% year-over-year, compared to -14. 8% for Trex Company, 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 — HAYW or SHW or TREX or MAS?

Trex Company, Inc.

(TREX) is the more profitable company, earning 16. 2% net margin versus 10. 7% for Masco Corporation — 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 16. 1% for SHW. 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 HAYW or SHW or TREX or MAS 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, Hayward Holdings, Inc. (HAYW) is the more undervalued stock at a PEG of 0. 12x versus Trex Company, Inc. 's 7. 16x. A PEG below 1. 0 is traditionally considered the threshold for growth-adjusted undervaluation. On forward earnings alone, Masco Corporation (MAS) trades at 16. 9x forward P/E versus 27. 3x for The Sherwin-Williams Company — 10. 4x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for SHW: 21. 6% to $389. 43.

08

Which pays a better dividend — HAYW or SHW or TREX or MAS?

In this comparison, MAS (1.

7% yield), SHW (1. 0% yield) pay a dividend. HAYW, TREX do not pay a meaningful dividend and should not be held primarily for income.

09

Is HAYW or SHW or TREX or MAS 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.

79), 1. 0% yield, +250. 0% 10Y return). Both have compounded well over 10 years (SHW: +250. 0%, 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 HAYW and SHW and TREX and MAS?

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

SHW, MAS pay a dividend while HAYW, TREX 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

HAYW

Steady Growth Compounder

  • Sector: Industrials
  • Market Cap > $100B
  • Revenue Growth > 5%
  • Net Margin > 8%
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

MAS

Income & Dividend Stock

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

Beat Both

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

Revenue Growth>
%
(HAYW: 11.5% · SHW: 6.8%)
Net Margin>
%
(HAYW: 14.0% · SHW: 10.9%)
P/E Ratio<
x
(HAYW: 21.7x · SHW: 31.2x)

You Might Also Compare

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