TREX vs. NVDA
TREX (Trex Company, Inc.) and NVDA (NVIDIA Corporation) are both stocks. TREX operates in Building Products & Equipment (Industrials), while NVDA operates in Semiconductors (Technology). Over the past 10 years, TREX returned 14.44%/yr vs 69.46%/yr for NVDA. At a 0.29 correlation, their price movements are largely independent.
Performance
TREX vs. NVDA - Performance Comparison
Loading charts...
Returns By Period
The year-to-date returns for both investments are quite close, with TREX having a 18.56% return and NVDA slightly higher at 19.48%. Over the past 10 years, TREX has underperformed NVDA with an annualized return of 14.44%, while NVDA has yielded a comparatively higher 69.46% annualized return.
TREX
- 1D
- 0.07%
- 1M
- 7.22%
- YTD
- 18.56%
- 6M
- 19.34%
- 1Y
- -22.36%
- 3Y*
- -9.38%
- 5Y*
- -15.17%
- 10Y*
- 14.44%
NVDA
- 1D
- -0.69%
- 1M
- 12.28%
- YTD
- 19.48%
- 6M
- 22.81%
- 1Y
- 62.23%
- 3Y*
- 78.33%
- 5Y*
- 67.45%
- 10Y*
- 69.46%
TREX vs. NVDA - Yearly Performance Comparison
| 2026 (YTD) | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | |
|---|---|---|---|---|---|---|---|---|---|---|
TREX Trex Company, Inc. | 18.56% | -49.18% | -16.62% | 95.58% | -68.65% | 61.29% | 86.29% | 51.42% | 9.53% | 68.31% |
NVDA NVIDIA Corporation | 19.48% | 38.92% | 171.25% | 239.02% | -50.26% | 125.48% | 122.30% | 76.94% | -30.82% | 81.99% |
Correlation
The correlation between TREX and NVDA is 0.16, which is low. Their price movements are largely independent, making them effective diversification partners.
| Correlation | |
|---|---|
Correlation (1Y) Calculated over the trailing 1-year period | 0.16 |
Correlation (3Y) Calculated over the trailing 3-year period | 0.24 |
Correlation (5Y) Calculated over the trailing 5-year period | 0.41 |
Correlation (10Y) Calculated over the trailing 10-year period | 0.38 |
Correlation (All Time) Calculated using the full available price history since Apr 9, 1999 | 0.29 |
The correlation between TREX and NVDA shifts across timeframes, from 0.16 (1 year) to 0.41 (5 years), reflecting how their relationship changes across market environments.
Fundamentals
TREX:
$4.37B
NVDA:
$5.43T
TREX:
$1.80
NVDA:
$6.53
TREX:
23.16
NVDA:
34.15
TREX:
63.65
NVDA:
0.19
TREX:
3.76
NVDA:
21.50
TREX:
4.39
NVDA:
27.80
TREX:
$1.18B
NVDA:
$253.49B
TREX:
$461.26M
NVDA:
$187.95B
TREX:
$308.51M
NVDA:
$192.76B
Compare stocks, funds, or ETFs
Search for stocks, ETFs, and funds for a quick comparison or use the comparison tool for more options.
Return for Risk
TREX vs. NVDA — Risk / Return Rank
TREX
NVDA
TREX vs. NVDA - Risk-Adjusted Trends Comparison
This table presents a comparison of risk-adjusted performance metrics for Trex Company, Inc. (TREX) and NVIDIA Corporation (NVDA). Risk-adjusted metrics are performance indicators that assess an investment's returns in relation to its risk, enabling a more accurate comparison of different investment options.
| TREX | NVDA | Difference | |
|---|---|---|---|
Sharpe ratioReturn per unit of total volatility | -0.45 | 1.84 | -2.29 |
Sortino ratioReturn per unit of downside risk | -0.29 | 2.47 | -2.76 |
Omega ratioGain probability vs. loss probability | 0.96 | 1.30 | -0.34 |
Calmar ratioReturn relative to maximum drawdown | -0.46 | 3.21 | -3.67 |
Martin ratioReturn relative to average drawdown | -0.73 | 7.92 | -8.65 |
Data is calculated on a 1-year rolling basis and updated daily. The trend shows the change in the indicator over the past month. | |||
Loading charts...
Sharpe Ratios by Period
| TREX | NVDA | Difference | |
|---|---|---|---|
Sharpe Ratio (1Y)Calculated over the trailing 1-year period | -0.45 | 1.84 | -2.29 |
Sharpe Ratio (5Y)Calculated over the trailing 5-year period | -0.32 | 1.31 | -1.64 |
Sharpe Ratio (10Y)Calculated over the trailing 10-year period | 0.31 | 1.40 | -1.09 |
Sharpe Ratio (All Time)Calculated using the full available price history | 0.25 | 0.63 | -0.38 |
Drawdowns
TREX vs. NVDA - Drawdown Comparison
The maximum TREX drawdown since its inception was -90.53%, roughly equal to the maximum NVDA drawdown of -89.72%. Use the drawdown chart below to compare losses from any high point for TREX and NVDA.
Loading charts...
Drawdown Indicators
| TREX | NVDA | Difference | |
|---|---|---|---|
Max DrawdownLargest peak-to-trough decline | -90.53% | -89.72% | -0.81% |
Max Drawdown (1Y)Largest decline over 1 year | -56.01% | -20.21% | -35.80% |
Max Drawdown (3Y)Largest decline over 3 years | -69.90% | -36.88% | -33.02% |
Max Drawdown (5Y)Largest decline over 5 years | -78.58% | -66.34% | -12.24% |
Max Drawdown (10Y)Largest decline over 10 years | -78.58% | -66.34% | -12.24% |
Current DrawdownCurrent decline from peak | -70.44% | -5.48% | -64.96% |
Average DrawdownAverage peak-to-trough decline | -38.73% | -36.21% | -2.52% |
Ulcer IndexDepth and duration of drawdowns from previous peaks | 34.95% | 8.20% | +26.75% |
Volatility
TREX vs. NVDA - Volatility Comparison
Trex Company, Inc. (TREX) has a higher volatility of 14.37% compared to NVIDIA Corporation (NVDA) at 11.79%. This indicates that TREX's price experiences larger fluctuations and is considered to be riskier than NVDA based on this measure. The chart below showcases a comparison of their rolling one-month volatility.
Loading charts...
Volatility by Period
| TREX | NVDA | Difference | |
|---|---|---|---|
Volatility (1M)Calculated over the trailing 1-month period | 14.37% | 11.79% | +2.58% |
Volatility (6M)Calculated over the trailing 6-month period | 25.83% | 25.29% | +0.54% |
Volatility (1Y)Calculated over the trailing 1-year period | 50.09% | 34.03% | +16.06% |
Volatility (5Y)Calculated over the trailing 5-year period, annualized | 47.05% | 51.66% | -4.61% |
Volatility (10Y)Calculated over the trailing 10-year period, annualized | 46.33% | 49.80% | -3.47% |
Dividends
TREX vs. NVDA - Dividend Comparison
TREX has not paid dividends to shareholders, while NVDA's dividend yield for the trailing twelve months is around 0.02%.
| Position | TTM | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | 2016 | 2015 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
NVDA NVIDIA Corporation | 0.02% | 0.02% | 0.03% | 0.03% | 0.11% | 0.05% | 0.12% | 0.27% | 0.46% | 0.29% | 0.45% | 1.20% |
TREX Trex Company, Inc. | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% |
Financials
TREX vs. NVDA - Financials Comparison
This section allows you to compare key financial metrics between Trex Company, Inc. and NVIDIA Corporation. You can select fields from income statements, balance sheets, and cash flow statements to easily visualize and compare the financial health of both companies.
Total Revenue: Total amount of money received from sales and other business activities
TREX vs. NVDA - Profitability Comparison
TREX - Gross Margin
Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, Trex Company, Inc. reported a gross profit of 139.02M and revenue of 343.40M. Therefore, the gross margin over that period was 40.5%.
NVDA - Gross Margin
Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, NVIDIA Corporation reported a gross profit of 61.16B and revenue of 81.62B. Therefore, the gross margin over that period was 74.9%.
TREX - Operating Margin
Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, Trex Company, Inc. reported an operating income of 83.51M and revenue of 343.40M, resulting in an operating margin of 24.3%.
NVDA - Operating Margin
Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, NVIDIA Corporation reported an operating income of 53.54B and revenue of 81.62B, resulting in an operating margin of 65.6%.
TREX - Net Margin
Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, Trex Company, Inc. reported a net income of 61.40M and revenue of 343.40M, resulting in a net margin of 17.9%.
NVDA - Net Margin
Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, NVIDIA Corporation reported a net income of 58.32B and revenue of 81.62B, resulting in a net margin of 71.5%.
Frequently Asked Questions
TREX and NVDA have a correlation of 0.16, meaning they provide meaningful diversification benefit when combined. Depending on your allocation goals, holding both could reduce overall portfolio risk.
TREX has higher volatility (14.37%) compared to NVDA (11.79%). In terms of maximum drawdown, TREX dropped -90.53% vs NVDA's -89.72%.
NVDA currently has the higher Sharpe Ratio (1.84 vs -0.45), meaning it's delivered slightly more return per unit of risk over the trailing 12 months. However, this ranking shifts over time - use the Risk/Return Score above for a more comprehensive view that combines Sharpe, Sortino, and other measures used by quantitative funds.
Find the right allocation for TREX and NVDA
Add both to a portfolio and optimize allocations for your target — whether that's maximizing returns, minimizing drawdowns, or balancing risk across holdings.
Open Portfolio Optimizer