Compare Stocks

2 / 10
Try these comparisons:

Stock Comparison

ROCK vs TREX

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

Live fundamentals10-year financials5-year price chart
ROCK
Gibraltar Industries, Inc.

Construction

IndustrialsNASDAQ • US
Market Cap$1.12B
5Y Perf.-13.9%
TREX
Trex Company, Inc.

Construction

IndustrialsNYSE • US
Market Cap$4.25B
5Y Perf.-33.5%

ROCK vs TREX — Key Financials

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

Company Snapshot
ROCK logoROCK
TREX logoTREX
IndustryConstructionConstruction
Market Cap$1.12B$4.25B
Revenue (TTM)$1.14B$1.17B
Net Income (TTM)$98M$190M
Gross Margin26.9%39.2%
Operating Margin10.8%22.0%
Forward P/E9.5x24.4x
Total Debt$104M$229M
Cash & Equiv.$116M$4M

ROCK vs TREXLong-Term Stock Performance

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

ROCK
TREX
StockMay 20May 26Return
Gibraltar Industrie… (ROCK)10086.1-13.9%
Trex Company, Inc. (TREX)10066.5-33.5%

Price return only. Dividends and distributions are not included.

Quick Verdict: ROCK vs TREX

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

Bottom line: TREX leads in 5 of 7 categories, making it the strongest pick for growth and revenue expansion and profitability and margin quality. Gibraltar Industries, Inc. is the stronger pick specifically for valuation and capital efficiency. As sector peers, any of these can serve as alternatives in the same allocation.
ROCK
Gibraltar Industries, Inc.
The Defensive Pick

ROCK is the clearest fit if your priority is sleep-well-at-night and valuation efficiency.

  • Lower volatility, beta 1.59, Low D/E 10.9%, current ratio 1.72x
  • PEG 0.89 vs TREX's 7.30
  • Lower P/E (9.5x vs 24.4x), PEG 0.89 vs 7.30
Best for: sleep-well-at-night and valuation efficiency
TREX
Trex Company, Inc.
The Income Pick

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

  • Dividend streak 2 yrs, beta 1.47
  • Rev growth 2.0%, EPS growth -14.8%, 3Y rev CAGR 2.0%
  • 247.6% 10Y total return vs ROCK's 29.4%
Best for: income & stability and growth exposure
See the full category breakdown
CategoryWinnerWhy
GrowthTREX logoTREX2.0% revenue growth vs ROCK's -13.2%
ValueROCK logoROCKLower P/E (9.5x vs 24.4x), PEG 0.89 vs 7.30
Quality / MarginsTREX logoTREX16.2% margin vs ROCK's 8.6%
Stability / SafetyTREX logoTREXBeta 1.47 vs ROCK's 1.59
DividendsTieNeither stock pays a meaningful dividend
Momentum (1Y)TREX logoTREX-31.3% vs ROCK's -33.3%
Efficiency (ROA)TREX logoTREX12.4% ROA vs ROCK's 6.8%, ROIC 16.4% vs 10.4%

ROCK vs TREX — Revenue Breakdown by Segment

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

ROCKGibraltar Industries, Inc.
FY 2025
Residential
72.6%$824M
Agtech
19.3%$219M
Infrastructure
8.1%$92M
TREXTrex Company, Inc.

Segment breakdown not available.

ROCK vs TREX — Financial Metrics

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

BEST OVERALLTREXLAGGINGROCK

Income & Cash Flow (Last 12 Months)

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

TREX and ROCK operate at a comparable scale, with $1.2B and $1.1B in trailing revenue. TREX is the more profitable business, keeping 16.2% of every revenue dollar as net income compared to ROCK's 8.6%. On growth, TREX holds the edge at -3.9% YoY revenue growth, suggesting stronger near-term business momentum.

MetricROCK logoROCKGibraltar Industr…TREX logoTREXTrex Company, Inc.
RevenueTrailing 12 months$1.1B$1.2B
EBITDAEarnings before interest/tax$153M$321M
Net IncomeAfter-tax profit$98M$190M
Free Cash FlowCash after capex$121M$147M
Gross MarginGross profit ÷ Revenue+26.9%+39.2%
Operating MarginEBIT ÷ Revenue+10.8%+22.0%
Net MarginNet income ÷ Revenue+8.6%+16.2%
FCF MarginFCF ÷ Revenue+10.6%+12.5%
Rev. Growth (YoY)Latest quarter vs prior year-25.5%-3.9%
EPS Growth (YoY)Latest quarter vs prior year+2.1%-77.8%
TREX leads this category, winning 5 of 6 comparable metrics.

Valuation Metrics

ROCK leads this category, winning 7 of 7 comparable metrics.

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

MetricROCK logoROCKGibraltar Industr…TREX logoTREXTrex Company, Inc.
Market CapShares × price$1.1B$4.2B
Enterprise ValueMkt cap + debt − cash$1.1B$4.5B
Trailing P/EPrice ÷ TTM EPS11.66x22.42x
Forward P/EPrice ÷ next-FY EPS est.9.45x24.41x
PEG RatioP/E ÷ EPS growth rate1.10x6.70x
EV / EBITDAEnterprise value multiple7.29x13.94x
Price / SalesMarket cap ÷ Revenue0.99x3.62x
Price / BookPrice ÷ Book value/share1.20x4.13x
Price / FCFMarket cap ÷ FCF9.30x31.59x
ROCK leads this category, winning 7 of 7 comparable metrics.

Profitability & Efficiency

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

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

MetricROCK logoROCKGibraltar Industr…TREX logoTREXTrex Company, Inc.
ROE (TTM)Return on equity+9.9%+19.2%
ROA (TTM)Return on assets+6.8%+12.4%
ROICReturn on invested capital+10.4%+16.4%
ROCEReturn on capital employed+11.2%+23.2%
Piotroski ScoreFundamental quality 0–946
Debt / EquityFinancial leverage0.11x0.22x
Net DebtTotal debt minus cash-$12M$225M
Cash & Equiv.Liquid assets$116M$4M
Total DebtShort + long-term debt$104M$229M
Interest CoverageEBIT ÷ Interest expense176.46x3394.21x
TREX leads this category, winning 6 of 9 comparable metrics.

Total Returns (Dividends Reinvested)

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

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

MetricROCK logoROCKGibraltar Industr…TREX logoTREXTrex Company, Inc.
YTD ReturnYear-to-date-24.4%+11.4%
1-Year ReturnPast 12 months-33.3%-31.3%
3-Year ReturnCumulative with dividends-29.3%-29.1%
5-Year ReturnCumulative with dividends-54.2%-62.4%
10-Year ReturnCumulative with dividends+29.4%+247.6%
CAGR (3Y)Annualised 3-year return-10.9%-10.8%
TREX leads this category, winning 5 of 6 comparable metrics.

Risk & Volatility

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

TREX is the less volatile stock with a 1.47 beta — it tends to amplify market swings less than ROCK's 1.59 beta. A beta below 1.0 means the stock typically moves less than the S&P 500. TREX currently trades 58.0% from its 52-week high vs ROCK's 50.5% drawdown — a narrower gap to the peak suggests stronger recent price momentum.

MetricROCK logoROCKGibraltar Industr…TREX logoTREXTrex Company, Inc.
Beta (5Y)Sensitivity to S&P 5001.59x1.47x
52-Week HighHighest price in past year$75.08$68.78
52-Week LowLowest price in past year$36.71$29.77
% of 52W HighCurrent price vs 52-week peak+50.5%+58.0%
RSI (14)Momentum oscillator 0–10044.741.3
Avg Volume (50D)Average daily shares traded320K1.8M
TREX leads this category, winning 2 of 2 comparable metrics.

Analyst Outlook

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

Wall Street rates ROCK as "Buy" and TREX as "Hold".

MetricROCK logoROCKGibraltar Industr…TREX logoTREXTrex Company, Inc.
Analyst RatingConsensus buy/hold/sellBuyHold
Price TargetConsensus 12-month target$44.50
# AnalystsCovering analysts531
Dividend YieldAnnual dividend ÷ price
Dividend StreakConsecutive years of raises02
Dividend / ShareAnnual DPS
Buyback YieldShare repurchases ÷ mkt cap+5.7%+1.3%
TREX leads this category, winning 1 of 1 comparable metric.
Key Takeaway

TREX leads in 5 of 6 categories (Income & Cash Flow, Profitability & Efficiency). ROCK leads in 1 (Valuation Metrics).

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

ROCK vs TREX: Frequently Asked Questions

10 questions · data-driven answers · updated daily

01

Is ROCK or TREX a better buy right now?

For growth investors, Trex Company, Inc.

(TREX) is the stronger pick with 2. 0% revenue growth year-over-year, versus -13. 2% for Gibraltar Industries, Inc. (ROCK). Gibraltar Industries, Inc. (ROCK) offers the better valuation at 11. 7x trailing P/E (9. 5x forward), making it the more compelling value choice. Analysts rate Gibraltar Industries, Inc. (ROCK) a "Buy" — based on 5 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 — ROCK or TREX?

On trailing P/E, Gibraltar Industries, Inc.

(ROCK) is the cheapest at 11. 7x versus Trex Company, Inc. at 22. 4x. On forward P/E, Gibraltar Industries, Inc. is actually cheaper at 9. 5x. The PEG ratio (P/E divided by earnings growth rate) is the most growth-adjusted single valuation metric: Gibraltar Industries, Inc. wins at 0. 89x versus Trex Company, Inc. 's 7. 30x — a PEG below 1. 0 traditionally signals the market is underpricing earnings growth.

03

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

Over the past 5 years, Gibraltar Industries, Inc.

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

By beta (market sensitivity over 5 years), Trex Company, Inc.

(TREX) is the lower-risk stock at 1. 47β versus Gibraltar Industries, Inc. 's 1. 59β — meaning ROCK is approximately 8% more volatile than TREX relative to the S&P 500. On balance sheet safety, Gibraltar Industries, Inc. (ROCK) carries a lower debt/equity ratio of 11% versus 22% for Trex Company, Inc. — giving it more financial flexibility in a downturn.

05

Which is growing faster — ROCK or TREX?

By revenue growth (latest reported year), Trex Company, Inc.

(TREX) is pulling ahead at 2. 0% versus -13. 2% for Gibraltar Industries, Inc. (ROCK). On earnings-per-share growth, the picture is similar: Trex Company, Inc. grew EPS -14. 8% year-over-year, compared to -27. 1% for Gibraltar Industries, 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 — ROCK or TREX?

Trex Company, Inc.

(TREX) is the more profitable company, earning 16. 2% net margin versus 8. 6% for Gibraltar Industries, 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 10. 8% for ROCK. 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 ROCK or TREX 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, Gibraltar Industries, Inc. (ROCK) is the more undervalued stock at a PEG of 0. 89x versus Trex Company, Inc. 's 7. 30x. A PEG below 1. 0 is traditionally considered the threshold for growth-adjusted undervaluation. On forward earnings alone, Gibraltar Industries, Inc. (ROCK) trades at 9. 5x forward P/E versus 24. 4x for Trex Company, Inc. — 15. 0x cheaper on a one-year earnings basis.

08

Which pays a better dividend — ROCK or TREX?

None of the stocks in this comparison currently pay a material dividend.

All are effectively zero-yield and should be held for capital appreciation rather than income.

09

Is ROCK or TREX better for a retirement portfolio?

For long-horizon retirement investors, Trex Company, Inc.

(TREX) is the stronger choice — it scores higher on the combination of lower volatility, dividend reliability, and long-term compounding (+247. 6% 10Y return). Gibraltar Industries, Inc. (ROCK) carries a higher beta of 1. 59 — meaning larger drawdowns in market downturns, which matters significantly when you cannot wait years for a recovery. Both have compounded well over 10 years (TREX: +247. 6%, ROCK: +29. 4%), 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 ROCK and TREX?

Both stocks operate in the Industrials sector, making this a peer-level intra-sector comparison — the same macro tailwinds and headwinds will affect both.

In terms of investment character: ROCK is a small-cap deep-value stock; TREX is a small-cap quality compounder stock. 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

ROCK

Quality Business

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

TREX

Quality Business

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

Beat Both

Find stocks that outperform ROCK and TREX on the metrics below

Revenue Growth>
%
(ROCK: -25.5% · TREX: -3.9%)
Net Margin>
%
(ROCK: 8.6% · TREX: 16.2%)
P/E Ratio<
x
(ROCK: 11.7x · TREX: 22.4x)

You Might Also Compare

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