GDX vs. XLP
GDX (VanEck Gold Miners ETF) and XLP (State Street Consumer Staples Select Sector SPDR ETF) are both exchange-traded funds - GDX is a Gold fund tracking the NYSE MarketVector Global Gold Miners Index, while XLP is a Consumer Staples Equities fund tracking the Consumer Staples Select Sector Index. Both are passively managed. Over the past 10 years, GDX returned 12.82%/yr vs 7.21%/yr for XLP. At a 0.15 correlation, their price movements are largely independent. GDX charges 0.51%/yr vs 0.08%/yr for XLP.
Performance
GDX vs. XLP - Performance Comparison
Loading charts...
Returns By Period
In the year-to-date period, GDX achieves a -8.28% return, which is significantly lower than XLP's 7.54% return. Over the past 10 years, GDX has outperformed XLP with an annualized return of 12.82%, while XLP has yielded a comparatively lower 7.21% annualized return.
GDX
- 1D
- -0.22%
- 1M
- -16.83%
- YTD
- -8.28%
- 6M
- 0.10%
- 1Y
- 53.51%
- 3Y*
- 37.89%
- 5Y*
- 17.28%
- 10Y*
- 12.82%
XLP
- 1D
- -0.44%
- 1M
- -1.32%
- YTD
- 7.54%
- 6M
- 8.22%
- 1Y
- 4.50%
- 3Y*
- 7.23%
- 5Y*
- 6.10%
- 10Y*
- 7.21%
GDX vs. XLP - Yearly Performance Comparison
| 2026 (YTD) | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | |
|---|---|---|---|---|---|---|---|---|---|---|
GDX VanEck Gold Miners ETF | -8.28% | 154.77% | 10.63% | 9.98% | -9.01% | -9.52% | 23.66% | 39.84% | -8.77% | 11.99% |
XLP State Street Consumer Staples Select Sector SPDR ETF | 7.54% | 1.52% | 12.20% | -0.82% | -0.81% | 17.20% | 10.11% | 27.43% | -8.07% | 12.98% |
Correlation
The correlation between GDX and XLP is 0.08, meaning there is essentially no relationship between their price movements. Each responds to its own set of market drivers, making them strong candidates for combining in a diversified portfolio.
| Correlation | |
|---|---|
Correlation (1Y) Calculated over the trailing 1-year period | 0.08 |
Correlation (3Y) Calculated over the trailing 3-year period | 0.14 |
Correlation (5Y) Calculated over the trailing 5-year period | 0.20 |
Correlation (10Y) Calculated over the trailing 10-year period | 0.16 |
Correlation (All Time) Calculated using the full available price history since May 23, 2006 | 0.15 |
The correlation between GDX and XLP shifts across timeframes, from 0.08 (1 year) to 0.20 (5 years), reflecting how their relationship changes across market environments.
GDX vs. XLP - Sectors Allocation Comparison
Sectors
GDX
XLP
Basic Materials
-
Communication Services
-
-
Consumer Cyclical
-
Consumer Defensive
-
Energy
-
-
Financial Services
-
-
Healthcare
-
-
Industrials
-
-
Real Estate
-
-
Technology
-
-
Utilities
-
-
Basic Materials
GDX
XLP
-
Communication Services
GDX
-
XLP
-
Consumer Cyclical
GDX
-
XLP
Consumer Defensive
GDX
-
XLP
Energy
GDX
-
XLP
-
Financial Services
GDX
-
XLP
-
Healthcare
GDX
-
XLP
-
Industrials
GDX
-
XLP
-
Real Estate
GDX
-
XLP
-
Technology
GDX
-
XLP
-
Utilities
GDX
-
XLP
-
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
GDX vs. XLP — Risk / Return Rank
GDX
XLP
GDX vs. XLP - Risk-Adjusted Trends Comparison
This table presents a comparison of risk-adjusted performance metrics for VanEck Gold Miners ETF (GDX) and State Street Consumer Staples Select Sector SPDR ETF (XLP). 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.
| GDX | XLP | Difference | |
|---|---|---|---|
| Sharpe ratioReturn per unit of total volatility | +0.81 | ||
| Sortino ratioReturn per unit of downside risk | +0.98 | ||
| Omega ratioGain probability vs. loss probability | 1.22 | 1.07 | +0.15 |
| Calmar ratioReturn relative to maximum drawdown | 1.68 | 0.47 | +1.21 |
| Martin ratioReturn relative to average drawdown | 4.32 | 0.91 | +3.41 |
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
| GDX | XLP | Difference | |
|---|---|---|---|
Sharpe Ratio (1Y)Calculated over the trailing 1-year period | 1.16 | 0.36 | +0.81 |
Sharpe Ratio (5Y)Calculated over the trailing 5-year period | 0.47 | 0.46 | +0.01 |
Sharpe Ratio (10Y)Calculated over the trailing 10-year period | 0.35 | 0.49 | -0.15 |
Sharpe Ratio (All Time)Calculated using the full available price history | 0.12 | 0.44 | -0.32 |
Drawdowns
GDX vs. XLP - Drawdown Comparison
The maximum GDX drawdown since its inception was -80.34%, which is greater than XLP's maximum drawdown of -35.90%. Use the drawdown chart below to compare losses from any high point for GDX and XLP.
Loading charts...
Drawdown Indicators
| GDX | XLP | Difference | |
|---|---|---|---|
Max DrawdownLargest peak-to-trough decline | -80.34% | -35.90% | -44.44% |
Max Drawdown (1Y)Largest decline over 1 year | -32.09% | -9.69% | -22.40% |
Max Drawdown (3Y)Largest decline over 3 years | -32.09% | -12.39% | -19.70% |
Max Drawdown (5Y)Largest decline over 5 years | -46.51% | -16.30% | -30.21% |
Max Drawdown (10Y)Largest decline over 10 years | -49.79% | -24.51% | -25.28% |
Current DrawdownCurrent decline from peak | -32.09% | -7.19% | -24.90% |
Average DrawdownAverage peak-to-trough decline | -40.43% | -7.06% | -33.37% |
Ulcer IndexDepth and duration of drawdowns from previous peaks | 12.42% | 4.97% | +7.45% |
Volatility
GDX vs. XLP - Volatility Comparison
VanEck Gold Miners ETF (GDX) has a higher volatility of 16.05% compared to State Street Consumer Staples Select Sector SPDR ETF (XLP) at 4.30%. This indicates that GDX's price experiences larger fluctuations and is considered to be riskier than XLP based on this measure. The chart below showcases a comparison of their rolling one-month volatility.
Loading charts...
Volatility by Period
| GDX | XLP | Difference | |
|---|---|---|---|
Volatility (1M)Calculated over the trailing 1-month period | 16.05% | 4.30% | +11.75% |
Volatility (6M)Calculated over the trailing 6-month period | 38.61% | 9.97% | +28.64% |
Volatility (1Y)Calculated over the trailing 1-year period | 46.36% | 12.75% | +33.61% |
Volatility (5Y)Calculated over the trailing 5-year period, annualized | 36.61% | 13.31% | +23.30% |
Volatility (10Y)Calculated over the trailing 10-year period, annualized | 37.27% | 14.74% | +22.53% |
GDX vs. XLP - Expense Ratio Comparison
GDX has a 0.51% expense ratio, which is higher than XLP's 0.08% expense ratio.
Dividends
GDX vs. XLP - Dividend Comparison
GDX's dividend yield for the trailing twelve months is around 0.80%, less than XLP's 2.62% yield.
| Position | TTM | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | 2016 | 2015 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
GDX VanEck Gold Miners ETF | 0.80% | 0.74% | 1.19% | 1.61% | 1.66% | 1.67% | 0.53% | 0.67% | 0.50% | 0.76% | 0.26% | 0.85% |
XLP State Street Consumer Staples Select Sector SPDR ETF | 2.62% | 2.75% | 2.77% | 2.63% | 2.47% | 2.28% | 2.50% | 2.57% | 3.04% | 2.62% | 2.53% | 2.52% |
Frequently Asked Questions
GDX and XLP have a correlation of 0.08, meaning they provide meaningful diversification benefit when combined. Depending on your allocation goals, holding both could reduce overall portfolio risk.
GDX has higher volatility (16.05%) compared to XLP (4.30%). In terms of maximum drawdown, GDX dropped -80.34% vs XLP's -35.90%.
On 10-year performance, GDX leads with 12.82% vs 7.21% for XLP. On fees, XLP is cheaper at 0.08% per year. On volatility, XLP has been the lower-risk option at 4.30%. The better choice depends on whether you care most about return, fees, risk, or income.
Over the 10-year period, GDX has performed better with a 12.82% return vs 7.21%. Past performance does not guarantee future results, so compare this with risk, fees, and fund exposure.
XLP is cheaper with a 0.08% expense ratio, compared with 0.51% for GDX.
XLP has the higher dividend yield at 2.62%, compared with 0.80% for GDX.
GDX is categorized as Gold, while XLP is Consumer Staples Equities. GDX tracks NYSE MarketVector Global Gold Miners Index, while XLP tracks Consumer Staples Select Sector Index. They also come from different issuers: VanEck and State Street. Their fees differ too: 0.51% for GDX and 0.08% for XLP.
GDX currently has the higher Sharpe Ratio (1.16 vs 0.36), 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 GDX and XLP
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