Compare Stocks

2 / 10
Try these comparisons:

Stock Comparison

TREX vs HD

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.25B
5Y Perf.-33.5%
HD
The Home Depot, Inc.

Home Improvement

Consumer CyclicalNYSE • US
Market Cap$321.11B
5Y Perf.+30.0%

TREX vs HD — Key Financials

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

Company Snapshot
TREX logoTREX
HD logoHD
IndustryConstructionHome Improvement
Market Cap$4.25B$321.11B
Revenue (TTM)$1.17B$164.68B
Net Income (TTM)$190M$14.16B
Gross Margin39.2%33.3%
Operating Margin22.0%12.7%
Forward P/E24.4x21.5x
Total Debt$229M$19.01B
Cash & Equiv.$4M$1.39B

TREX vs HDLong-Term Stock Performance

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

TREX
HD
StockMay 20May 26Return
Trex Company, Inc. (TREX)10066.5-33.5%
The Home Depot, Inc. (HD)100130.0+30.0%

Price return only. Dividends and distributions are not included.

Quick Verdict: TREX vs HD

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

Bottom line: HD leads in 6 of 7 categories, making it the strongest pick for growth and revenue expansion and valuation and capital efficiency. Trex Company, Inc. is the stronger pick specifically for 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 Long-Run Compounder

TREX is the clearest fit if your priority is long-term compounding and sleep-well-at-night.

  • 247.6% 10Y total return vs HD's 185.4%
  • Lower volatility, beta 1.47, Low D/E 22.1%, current ratio 1.24x
  • 16.2% margin vs HD's 8.6%
Best for: long-term compounding and sleep-well-at-night
HD
The Home Depot, Inc.
The Income Pick

HD carries the broadest edge in this set and is the clearest fit for income & stability and growth exposure.

  • Dividend streak 16 yrs, beta 0.84, yield 2.8%
  • Rev growth 3.2%, EPS growth -4.6%, 3Y rev CAGR 1.5%
  • PEG 6.02 vs TREX's 7.30
Best for: income & stability and growth exposure
See the full category breakdown
CategoryWinnerWhy
GrowthHD logoHD3.2% revenue growth vs TREX's 2.0%
ValueHD logoHDLower P/E (21.5x vs 24.4x), PEG 6.02 vs 7.30
Quality / MarginsTREX logoTREX16.2% margin vs HD's 8.6%
Stability / SafetyHD logoHDBeta 0.84 vs TREX's 1.47
DividendsHD logoHD2.8% yield; 16-year raise streak; the other pay no meaningful dividend
Momentum (1Y)HD logoHD-7.5% vs TREX's -31.3%
Efficiency (ROA)HD logoHD13.5% ROA vs TREX's 12.4%, ROIC 32.1% vs 16.4%

TREX vs HD — Revenue Breakdown by Segment

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

TREXTrex Company, Inc.

Segment breakdown not available.

HDThe Home Depot, Inc.
FY 2024
Major Product Line - Building Materials
33.1%$52.8B
Major Product Line, Décor
32.5%$51.8B
Major Product Line - Hardlines
30.4%$48.6B
Other Segment
4.0%$6.4B

TREX vs HD — Financial Metrics

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

BEST OVERALLHDLAGGINGTREX

Income & Cash Flow (Last 12 Months)

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

HD is the larger business by revenue, generating $164.7B annually — 140.2x TREX's $1.2B. TREX is the more profitable business, keeping 16.2% of every revenue dollar as net income compared to HD's 8.6%.

MetricTREX logoTREXTrex Company, Inc.HD logoHDThe Home Depot, I…
RevenueTrailing 12 months$1.2B$164.7B
EBITDAEarnings before interest/tax$321M$24.2B
Net IncomeAfter-tax profit$190M$14.2B
Free Cash FlowCash after capex$147M$12.6B
Gross MarginGross profit ÷ Revenue+39.2%+33.3%
Operating MarginEBIT ÷ Revenue+22.0%+12.7%
Net MarginNet income ÷ Revenue+16.2%+8.6%
FCF MarginFCF ÷ Revenue+12.5%+7.7%
Rev. Growth (YoY)Latest quarter vs prior year-3.9%-3.8%
EPS Growth (YoY)Latest quarter vs prior year-77.8%-14.6%
TREX leads this category, winning 4 of 6 comparable metrics.

Valuation Metrics

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

At 22.4x trailing earnings, TREX trades at a 1% valuation discount to HD's 22.7x P/E. Adjusting for growth (PEG ratio), HD offers better value at 6.36x vs TREX's 6.70x — a lower PEG means you pay less per unit of expected earnings growth.

MetricTREX logoTREXTrex Company, Inc.HD logoHDThe Home Depot, I…
Market CapShares × price$4.2B$321.1B
Enterprise ValueMkt cap + debt − cash$4.5B$338.7B
Trailing P/EPrice ÷ TTM EPS22.42x22.70x
Forward P/EPrice ÷ next-FY EPS est.24.41x21.50x
PEG RatioP/E ÷ EPS growth rate6.70x6.36x
EV / EBITDAEnterprise value multiple13.94x14.02x
Price / SalesMarket cap ÷ Revenue3.62x1.95x
Price / BookPrice ÷ Book value/share4.13x25.14x
Price / FCFMarket cap ÷ FCF31.59x25.39x
HD leads this category, winning 4 of 7 comparable metrics.

Profitability & Efficiency

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

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

MetricTREX logoTREXTrex Company, Inc.HD logoHDThe Home Depot, I…
ROE (TTM)Return on equity+19.2%+110.5%
ROA (TTM)Return on assets+12.4%+13.5%
ROICReturn on invested capital+16.4%+32.1%
ROCEReturn on capital employed+23.2%+29.8%
Piotroski ScoreFundamental quality 0–964
Debt / EquityFinancial leverage0.22x1.48x
Net DebtTotal debt minus cash$225M$17.6B
Cash & Equiv.Liquid assets$4M$1.4B
Total DebtShort + long-term debt$229M$19.0B
Interest CoverageEBIT ÷ Interest expense3394.21x8.71x
TREX leads this category, winning 5 of 9 comparable metrics.

Total Returns (Dividends Reinvested)

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

A $10,000 investment in HD five years ago would be worth $10,797 today (with dividends reinvested), compared to $3,755 for TREX. Over the past 12 months, HD leads with a -7.5% total return vs TREX's -31.3%. The 3-year compound annual growth rate (CAGR) favors HD at 6.7% vs TREX's -10.8% — a key indicator of consistent wealth creation.

MetricTREX logoTREXTrex Company, Inc.HD logoHDThe Home Depot, I…
YTD ReturnYear-to-date+11.4%-5.9%
1-Year ReturnPast 12 months-31.3%-7.5%
3-Year ReturnCumulative with dividends-29.1%+21.5%
5-Year ReturnCumulative with dividends-62.4%+8.0%
10-Year ReturnCumulative with dividends+247.6%+185.4%
CAGR (3Y)Annualised 3-year return-10.8%+6.7%
HD leads this category, winning 4 of 6 comparable metrics.

Risk & Volatility

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

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

MetricTREX logoTREXTrex Company, Inc.HD logoHDThe Home Depot, I…
Beta (5Y)Sensitivity to S&P 5001.47x0.84x
52-Week HighHighest price in past year$68.78$426.75
52-Week LowLowest price in past year$29.77$310.42
% of 52W HighCurrent price vs 52-week peak+58.0%+75.7%
RSI (14)Momentum oscillator 0–10041.336.4
Avg Volume (50D)Average daily shares traded1.8M3.6M
HD leads this category, winning 2 of 2 comparable metrics.

Analyst Outlook

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

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

MetricTREX logoTREXTrex Company, Inc.HD logoHDThe Home Depot, I…
Analyst RatingConsensus buy/hold/sellHoldBuy
Price TargetConsensus 12-month target$44.50$408.08
# AnalystsCovering analysts3162
Dividend YieldAnnual dividend ÷ price+2.8%
Dividend StreakConsecutive years of raises216
Dividend / ShareAnnual DPS$9.18
Buyback YieldShare repurchases ÷ mkt cap+1.3%0.0%
HD leads this category, winning 1 of 1 comparable metric.
Key Takeaway

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

Best OverallThe Home Depot, Inc. (HD)Leads 4 of 6 categories
Loading custom metrics...

TREX vs HD: Frequently Asked Questions

10 questions · data-driven answers · updated daily

01

Is TREX or HD a better buy right now?

For growth investors, The Home Depot, Inc.

(HD) is the stronger pick with 3. 2% revenue growth year-over-year, versus 2. 0% for Trex Company, Inc. (TREX). Trex Company, Inc. (TREX) offers the better valuation at 22. 4x trailing P/E (24. 4x forward), making it the more compelling value choice. Analysts rate The Home Depot, Inc. (HD) a "Buy" — based on 62 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 HD?

On trailing P/E, Trex Company, Inc.

(TREX) is the cheapest at 22. 4x versus The Home Depot, Inc. at 22. 7x. On forward P/E, The Home Depot, Inc. is actually cheaper at 21. 5x — 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: The Home Depot, Inc. wins at 6. 02x versus Trex Company, Inc. 's 7. 30x.

03

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

Over the past 5 years, The Home Depot, Inc.

(HD) delivered a total return of +8. 0%, compared to -62. 4% for Trex Company, Inc. (TREX). Over 10 years, the gap is even starker: TREX returned +247. 6% versus HD's +185. 4%. 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 HD?

By beta (market sensitivity over 5 years), The Home Depot, Inc.

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

05

Which is growing faster — TREX or HD?

By revenue growth (latest reported year), The Home Depot, Inc.

(HD) is pulling ahead at 3. 2% versus 2. 0% for Trex Company, Inc. (TREX). On earnings-per-share growth, the picture is similar: The Home Depot, Inc. grew EPS -4. 6% year-over-year, compared to -14. 8% for Trex Company, 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 HD?

Trex Company, Inc.

(TREX) is the more profitable company, earning 16. 2% net margin versus 8. 6% for The Home Depot, 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 12. 7% for HD. 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 HD 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, The Home Depot, Inc. (HD) is the more undervalued stock at a PEG of 6. 02x versus Trex Company, Inc. 's 7. 30x. Both stocks trade at elevated growth-adjusted valuations, so expected growth needs to materialise. On forward earnings alone, The Home Depot, Inc. (HD) trades at 21. 5x forward P/E versus 24. 4x for Trex Company, Inc. — 2. 9x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for HD: 26. 3% to $408. 08.

08

Which pays a better dividend — TREX or HD?

In this comparison, HD (2.

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

09

Is TREX or HD better for a retirement portfolio?

For long-horizon retirement investors, The Home Depot, Inc.

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

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

HD 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

HD

Income & Dividend Stock

  • Sector: Consumer Cyclical
  • Market Cap > $100B
  • Net Margin > 5%
  • Dividend Yield > 1.1%
Run This Screen
Custom Screen

Beat Both

Find stocks that outperform TREX and HD on the metrics below

Revenue Growth>
%
(TREX: -3.9% · HD: -3.8%)
Net Margin>
%
(TREX: 16.2% · HD: 8.6%)
P/E Ratio<
x
(TREX: 22.4x · HD: 22.7x)

You Might Also Compare

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