KMX vs TREX: Correlation
Measured on weekly returns over the past three years, CarMax Inc (KMX) and Trex Company, Inc. (TREX) carry a correlation of 0.52, a moderate link.
Data as of 2026-08-27 · refreshed every trading day · weekly returns · methodology
How correlated are KMX and TREX?
Across a 3-year window, the weekly returns of KMX and TREX correlate at 0.52, moderate. Little has changed lately, as the 1-year reading of 0.57 lands near the 3-year figure. Stretching to 5 years gives 0.52, with an annualized covariance of 983.2 %².
In KMX's tracked universe of 11 assets, TREX sits right near the top at #2. The last year tells two different stories: KMX led by 28.2 percentage points, +0.9% for KMX against -27.3% for TREX.
How is this computed?
Pearson correlation on weekly returns: ρ(A,B) = cov(rA, rB) / (σA · σB), over windows of 52, 156 and 260 weeks. Covariance is annualized (×52) and expressed in %². Full definitions on the methodology page.
KMX vs TREX: side by side
| KMX (CarMax Inc) | TREX (Trex Company, Inc.) | |
|---|---|---|
| 1-year return | +0.9% | -27.3% |
| 5-year return | -50.5% | -58.7% |
| Volatility (ann.) | 41.9% | 45.3% |
| Beta vs S&P 500 | 0.94 | 1.48 |
| Max drawdown (3Y) | -65.4% | -69.9% |
| Market cap | – | $4.7B |
| P/E (trailing) | 38.9 | 27.4 |
| Dividend yield | 0.00% | 0.00% |
| Sector / category | US Listed | US Listed |
Year-by-year returns
| Year | KMX | TREX |
|---|---|---|
| 2022 | -53.2% | -68.7% |
| 2023 | +26.0% | +95.6% |
| 2024 | +6.5% | -16.6% |
| 2025 | -52.7% | -49.2% |
| 2026 | +62.1% | +31.3% |
Calendar-year price returns; the current year is year-to-date as of the data date above.
Are KMX and TREX good diversifiers for each other?
Only partially. A correlation of 0.52 means KMX and TREX share most of their swings. Pairing them dampens volatility somewhat, but it will not protect against a common drawdown.
FAQ
What is the correlation between KMX and TREX?
The KMX/TREX correlation stands at 0.52 on a 3-year window (1 year: 0.57, 5 years: 0.52), computed from weekly returns as of 2026-08-27.
Is TREX a good diversifier for KMX?
Only partially. A correlation of 0.52 means KMX and TREX share most of their swings. Pairing them dampens volatility somewhat, but it will not protect against a common drawdown.
What does a correlation of 0.52 mean?
A reading of 0.52 sits on a scale from −1 (opposite moves) through 0 (unrelated) to +1 (identical moves). Correlation captures direction, not magnitude or performance.
Use this data
$ curl https://www.pairbook.io/api/v1/pairs/kmx-vs-trex.json
Embed this badge (it refreshes with the data), with attribution:
[](https://www.pairbook.io/pair/kmx-vs-trex/)
No key needed, free to use. Full endpoint list in the API documentation.
Related comparisons
Hubs: KMX correlations · TREX correlations