XLP vs. IEF
XLP (State Street Consumer Staples Select Sector SPDR ETF) and IEF (iShares 7-10 Year Treasury Bond ETF) are both exchange-traded funds - XLP is a Consumer Staples Equities fund tracking the Consumer Staples Select Sector Index, while IEF is a Government Bonds fund tracking the ICE U.S. Treasury 7-10 Year Bond Index. Both are passively managed. Over the past 10 years, XLP returned 7.60%/yr vs 0.59%/yr for IEF. At a correlation of -0.13, they often move in opposite directions. XLP charges 0.08%/yr vs 0.15%/yr for IEF.
Performance
XLP vs. IEF - Performance Comparison
Loading charts...
Returns By Period
In the year-to-date period, XLP achieves a 11.10% return, which is significantly higher than IEF's -0.47% return. Over the past 10 years, XLP has outperformed IEF with an annualized return of 7.60%, while IEF has yielded a comparatively lower 0.59% annualized return.
XLP
- 1D
- 0.65%
- 1M
- 1.39%
- YTD
- 11.10%
- 6M
- 9.54%
- 1Y
- 8.93%
- 3Y*
- 8.26%
- 5Y*
- 6.65%
- 10Y*
- 7.60%
IEF
- 1D
- -0.17%
- 1M
- 1.05%
- YTD
- -0.47%
- 6M
- -0.18%
- 1Y
- 3.78%
- 3Y*
- 2.86%
- 5Y*
- -1.24%
- 10Y*
- 0.59%
XLP vs. IEF - Yearly Performance Comparison
| 2026 (YTD) | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | |
|---|---|---|---|---|---|---|---|---|---|---|
XLP State Street Consumer Staples Select Sector SPDR ETF | 11.10% | 1.52% | 12.20% | -0.82% | -0.81% | 17.20% | 10.11% | 27.43% | -8.07% | 12.98% |
IEF iShares 7-10 Year Treasury Bond ETF | -0.47% | 8.03% | -0.63% | 3.64% | -15.15% | -3.33% | 10.01% | 8.03% | 0.99% | 2.55% |
Correlation
The correlation between XLP and IEF is 0.20, 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.20 |
Correlation (3Y) Calculated over the trailing 3-year period | 0.20 |
Correlation (5Y) Calculated over the trailing 5-year period | 0.17 |
Correlation (10Y) Calculated over the trailing 10-year period | 0.07 |
Correlation (All Time) Calculated using the full available price history since Jul 26, 2002 | -0.13 |
The correlation between XLP and IEF shifts across timeframes, from -0.13 (all time) to 0.20 (1 year), reflecting how their relationship changes across market environments.
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
XLP vs. IEF — Risk / Return Rank
XLP
IEF
XLP vs. IEF - Risk-Adjusted Trends Comparison
This table presents a comparison of risk-adjusted performance metrics for State Street Consumer Staples Select Sector SPDR ETF (XLP) and iShares 7-10 Year Treasury Bond ETF (IEF). 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.
Values are calculated on a 1-year rolling basis and updated daily. Risk-adjusted metrics are more stable over longer periods — use the period switch above to explore them.
| XLP | IEF | Difference | |
|---|---|---|---|
| Sharpe ratioReturn per unit of total volatility | -0.13 | ||
| Sortino ratioReturn per unit of downside risk | -0.17 | ||
| Omega ratioGain probability vs. loss probability | 1.11 | 1.12 | -0.02 |
| Calmar ratioReturn relative to maximum drawdown | 0.79 | 0.84 | -0.05 |
| Martin ratioReturn relative to average drawdown | 1.52 | 2.35 | -0.82 |
Loading charts...
Drawdowns
XLP vs. IEF - Drawdown Comparison
The maximum XLP drawdown since its inception was -35.90%, which is greater than IEF's maximum drawdown of -23.93%. Use the drawdown chart below to compare losses from any high point for XLP and IEF.
Loading charts...
Drawdown Indicators
| XLP | IEF | Difference | |
|---|---|---|---|
Max DrawdownLargest peak-to-trough decline | -35.90% | -23.93% | -11.97% |
Max Drawdown (1Y)Largest decline over 1 year | -9.69% | -4.07% | -5.62% |
Max Drawdown (3Y)Largest decline over 3 years | -12.39% | -7.74% | -4.65% |
Max Drawdown (5Y)Largest decline over 5 years | -16.30% | -21.40% | +5.10% |
Max Drawdown (10Y)Largest decline over 10 years | -24.51% | -23.93% | -0.58% |
Current DrawdownCurrent decline from peak | -4.12% | -11.18% | +7.06% |
Average DrawdownAverage peak-to-trough decline | -7.06% | -5.35% | -1.71% |
Ulcer IndexDepth and duration of drawdowns from previous peaks | 5.01% | 1.45% | +3.56% |
Volatility
XLP vs. IEF - Volatility Comparison
State Street Consumer Staples Select Sector SPDR ETF (XLP) has a higher volatility of 4.53% compared to iShares 7-10 Year Treasury Bond ETF (IEF) at 1.62%. This indicates that XLP's price experiences larger fluctuations and is considered to be riskier than IEF based on this measure. The chart below showcases a comparison of their rolling one-month volatility.
Loading charts...
Volatility by Period
| XLP | IEF | Difference | |
|---|---|---|---|
Volatility (1M)Calculated over the trailing 1-month period | 4.53% | 1.62% | +2.91% |
Volatility (6M)Calculated over the trailing 6-month period | 10.14% | 3.42% | +6.72% |
Volatility (1Y)Calculated over the trailing 1-year period | 12.90% | 4.72% | +8.18% |
Volatility (5Y)Calculated over the trailing 5-year period, annualized | 13.34% | 7.71% | +5.63% |
Volatility (10Y)Calculated over the trailing 10-year period, annualized | 14.75% | 6.63% | +8.12% |
XLP vs. IEF - Expense Ratio Comparison
XLP has a 0.08% expense ratio, which is lower than IEF's 0.15% expense ratio. Despite the difference, both funds are considered low-cost compared to the broader market, where average expense ratios usually range from 0.3% to 0.9%.
Dividends
XLP vs. IEF - Dividend Comparison
XLP's dividend yield for the trailing twelve months is around 2.53%, less than IEF's 3.89% yield.
| Position | TTM | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | 2016 | 2015 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
IEF iShares 7-10 Year Treasury Bond ETF | 3.89% | 3.77% | 3.62% | 2.91% | 1.96% | 0.83% | 1.08% | 2.08% | 2.24% | 1.82% | 1.81% | 1.90% |
XLP State Street Consumer Staples Select Sector SPDR ETF | 2.53% | 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
XLP and IEF have a correlation of 0.20, meaning they provide meaningful diversification benefit when combined. Depending on your allocation goals, holding both could reduce overall portfolio risk.
XLP has higher volatility (4.53%) compared to IEF (1.62%). In terms of maximum drawdown, XLP dropped -35.90% vs IEF's -23.93%.
On 10-year performance, XLP leads with 7.60% vs 0.59% for IEF. On fees, XLP is cheaper at 0.08% per year. On volatility, IEF has been the lower-risk option at 1.62%. The better choice depends on whether you care most about return, fees, risk, or income.
Over the 10-year period, XLP has performed better with a 7.60% return vs 0.59%. 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.15% for IEF.
IEF has the higher dividend yield at 3.89%, compared with 2.53% for XLP.
XLP is categorized as Consumer Staples Equities, while IEF is Government Bonds. XLP tracks Consumer Staples Select Sector Index, while IEF tracks ICE U.S. Treasury 7-10 Year Bond Index. They also come from different issuers: State Street and iShares. Their fees differ too: 0.08% for XLP and 0.15% for IEF.
IEF currently has the higher Sharpe Ratio (0.72 vs 0.59), 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 XLP and IEF
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