New: our quarterly report on the S&P 500, read from 500 companies’ own filings and calls. Read the Q3 2026 report

Builders FirstSource, Inc. (BLDR) vs Trex Company, Inc. (TREX)

Builders FirstSource, Inc. and Trex Company, Inc. are both Building Products & Equipment companies. Builders FirstSource, Inc. is the larger, with a market value of $6.6B against $5.4B — 1.2× the size. Trex Company, Inc. trades at the lower P/E: 31.9× against 167×. Trex Company, Inc. grew revenue faster over the last twelve months: 8.58% against −8.25%. Trex Company, Inc. has the higher net margin (13.9% vs 0.28%) and the higher return on invested capital (13.1% vs 2.21%). Across the 22 metrics below, Trex Company, Inc. leads on 13 and Builders FirstSource, Inc. on 9.

Valuation

Metric BLDR TREX Building Products & Equipment median
P/E 167.38 31.85 26.74
P/S 0.46 4.35 2.02
P/B 1.63 5.52 2.97
Price to free cash flow 25.63 28.80 19.58
EV/EBITDA 12.41 17.80 14.03
EV/Sales 0.78 4.48 2.16
Earnings yield 0.60% 3.14% 2.12%
Free cash flow yield 3.90% 3.47% 3.49%

Profitability

Metric BLDR TREX Building Products & Equipment median
Gross margin 28.48% 37.09% 29.81%
Operating margin 2.13% 19.17% 7.18%
Net margin 0.28% 13.89% 3.85%
Free cash flow margin 1.81% 15.10% 7.39%
Return on equity 0.97% 17.35% 6.20%
Return on assets 0.36% 11.79% 2.57%
Return on invested capital 2.21% 13.05% 6.79%

Growth

Metric BLDR TREX Building Products & Equipment median
Revenue growth (TTM) (8.25%) 8.58% 3.96%
EPS growth (last fiscal year) (57.06%) (19.55%) (22.45%)
Revenue growth, 5-year CAGR 12.16% 5.92% 5.37%
Net income growth, 5-year CAGR 6.78% 1.63% 9.27%

Health

Metric BLDR TREX Building Products & Equipment median
Debt to equity 1.13 0.17 0.51
Current ratio 1.85 1.23 1.83
Net debt to EBITDA 3.09 0.40 0.98

Dividend

Metric BLDR TREX Building Products & Equipment median
Dividend yield — — 1.32%
Payout ratio — — 0.28

Size

Metric BLDR TREX Building Products & Equipment median
Market cap 6.57b 5.40b 1.35b

Compare with another peer

Any metric, up to five companies and an Excel export Powerpack