PairBook
HomeKMX › KMX vs TREX

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

Correlation (3Y)
0.52
moderate
Correlation (1Y)
0.57
last 12 months
Correlation (5Y)
0.52
long-run
Ann. covariance
983.2
%² · weekly, annualized

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 5000.941.48
Max drawdown (3Y)-65.4%-69.9%
Market cap$4.7B
P/E (trailing)38.927.4
Dividend yield0.00%0.00%
Sector / categoryUS ListedUS Listed
Lower P/E: TREX 27.4 vs 38.9Smaller drawdown: KMX -65.4% vs -69.9%Higher 5y return: KMX -50.5% vs -58.7%
-52%0%+3%2025-09-052026-08-27
Both assets over the last year, indexed to 100 at the starting week. KMX · TREX

Year-by-year returns

YearKMXTREX
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

JSON API · no key required
$ curl https://www.pairbook.io/api/v1/pairs/kmx-vs-trex.json

KMX vs TREX: 3-year weekly correlation 0.52KMX vs TREX0.52

Embed this badge (it refreshes with the data), with attribution:

[![KMX vs TREX correlation](https://www.pairbook.io/api/v1/badge/kmx-vs-trex.svg)](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