Construction
Compare Stocks
2 / 10Stock Comparison
TREX vs HD
Revenue, margins, valuation, and 5-year total return — side by side.
Home Improvement
TREX vs HD — Key Financials
Market cap, revenue, margins, and valuation side-by-side.
| Company Snapshot | ||
|---|---|---|
| Industry | Construction | Home Improvement |
| Market Cap | $4.25B | $321.11B |
| Revenue (TTM) | $1.17B | $164.68B |
| Net Income (TTM) | $190M | $14.16B |
| Gross Margin | 39.2% | 33.3% |
| Operating Margin | 22.0% | 12.7% |
| Forward P/E | 24.4x | 21.5x |
| Total Debt | $229M | $19.01B |
| Cash & Equiv. | $4M | $1.39B |
TREX vs HD — Long-Term Stock Performance
Price return indexed to 100 at period start. Dividends excluded.
| Stock | May 20 | May 26 | Return |
|---|---|---|---|
| Trex Company, Inc. (TREX) | 100 | 66.5 | -33.5% |
| The Home Depot, Inc. (HD) | 100 | 130.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.
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%
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
See the full category breakdown
| Category | Winner | Why |
|---|---|---|
| Growth | 3.2% revenue growth vs TREX's 2.0% | |
| Value | Lower P/E (21.5x vs 24.4x), PEG 6.02 vs 7.30 | |
| Quality / Margins | 16.2% margin vs HD's 8.6% | |
| Stability / Safety | Beta 0.84 vs TREX's 1.47 | |
| Dividends | 2.8% yield; 16-year raise streak; the other pay no meaningful dividend | |
| Momentum (1Y) | -7.5% vs TREX's -31.3% | |
| Efficiency (ROA) | 13.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
Segment breakdown not available.
TREX vs HD — Financial Metrics
Side-by-side numbers across 2 stocks — who leads on profitability, valuation, growth, and risk.
Income & Cash Flow (Last 12 Months)
TREX leads this category, winning 4 of 6 comparable metrics.
Income & Cash Flow (Last 12 Months)
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%.
| Metric | ||
|---|---|---|
| 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% |
Valuation Metrics
HD leads this category, winning 4 of 7 comparable metrics.
Valuation 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.
| Metric | ||
|---|---|---|
| Market CapShares × price | $4.2B | $321.1B |
| Enterprise ValueMkt cap + debt − cash | $4.5B | $338.7B |
| Trailing P/EPrice ÷ TTM EPS | 22.42x | 22.70x |
| Forward P/EPrice ÷ next-FY EPS est. | 24.41x | 21.50x |
| PEG RatioP/E ÷ EPS growth rate | 6.70x | 6.36x |
| EV / EBITDAEnterprise value multiple | 13.94x | 14.02x |
| Price / SalesMarket cap ÷ Revenue | 3.62x | 1.95x |
| Price / BookPrice ÷ Book value/share | 4.13x | 25.14x |
| Price / FCFMarket cap ÷ FCF | 31.59x | 25.39x |
Profitability & Efficiency
TREX leads this category, winning 5 of 9 comparable metrics.
Profitability & Efficiency
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.
| Metric | ||
|---|---|---|
| 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–9 | 6 | 4 |
| Debt / EquityFinancial leverage | 0.22x | 1.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 expense | 3394.21x | 8.71x |
Total Returns (Dividends Reinvested)
HD leads this category, winning 4 of 6 comparable metrics.
Total Returns (Dividends Reinvested)
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.
| Metric | ||
|---|---|---|
| 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% |
Risk & Volatility
HD leads this category, winning 2 of 2 comparable metrics.
Risk & Volatility
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.
| Metric | ||
|---|---|---|
| Beta (5Y)Sensitivity to S&P 500 | 1.47x | 0.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–100 | 41.3 | 36.4 |
| Avg Volume (50D)Average daily shares traded | 1.8M | 3.6M |
Analyst Outlook
HD leads this category, winning 1 of 1 comparable metric.
Analyst Outlook
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.
| Metric | ||
|---|---|---|
| Analyst RatingConsensus buy/hold/sell | Hold | Buy |
| Price TargetConsensus 12-month target | $44.50 | $408.08 |
| # AnalystsCovering analysts | 31 | 62 |
| Dividend YieldAnnual dividend ÷ price | — | +2.8% |
| Dividend StreakConsecutive years of raises | 2 | 16 |
| Dividend / ShareAnnual DPS | — | $9.18 |
| Buyback YieldShare repurchases ÷ mkt cap | +1.3% | 0.0% |
HD leads in 4 of 6 categories (Valuation Metrics, Total Returns). TREX leads in 2 (Income & Cash Flow, Profitability & Efficiency).
TREX vs HD: Frequently Asked Questions
10 questions · data-driven answers · updated daily
01Is 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.
02Which 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.
03Which 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.
04Which 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.
05Which 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.
06Which 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.
07Is 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.
08Which 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.
09Is 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.
10What 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.
You Might Also Compare
Based on how these companies actually compete and overlap — not just which sector they're filed under.