Sector Rotation: XLY vs XLP

Sector rotation is the observable pattern of capital flowing between cyclical (growth-sensitive) and defensive (recession-resistant) sectors as the economic cycle evolves. The ratio of Consumer Discretionary (XLY) to Consumer Staples (XLP) is one of the cleanest expressions of this rotation, serving as a real-time barometer for whether investors are positioned for growth or bracing for contraction.

Live reading
Sector Rotation (XLY/XLP)
Cyclical vs defensive leadership
NEUTRAL
weight 1.5×

Loading live reading…

XLY: Consumer Discretionary

The Consumer Discretionary Select Sector SPDR Fund (XLY) tracks companies that sell non-essential goods and services: things people want but do not strictly need. This includes retailers, restaurants, hotels, automakers, apparel companies, and entertainment firms.

Key XLY holdings include: Amazon, Tesla, Home Depot, McDonald's, Nike, Starbucks, Booking Holdings, Lowe's, TJX Companies.

These companies thrive when consumer confidence is high and discretionary spending is robust.

Consumer Discretionary is one of the most economically sensitive sectors. When the economy is expanding and consumers feel confident about their jobs and incomes, they spend more on discretionary items. When recession fears mount, discretionary spending is the first to be cut as households prioritize essentials.

XLP: Consumer Staples

The Consumer Staples Select Sector SPDR Fund (XLP) tracks companies that produce essential goods: food, beverages, household products, tobacco, and personal care items. These are products that consumers purchase regardless of economic conditions.

Key XLP holdings include: Procter & Gamble, Costco, Walmart, Coca-Cola, PepsiCo, Philip Morris, Colgate-Palmolive, Mondelez, Altria.

These companies offer stable revenue streams that hold up during economic downturns.

Consumer Staples is a classic defensive sector. Its earnings are relatively immune to economic cycles because people still buy toothpaste, groceries, and cleaning products in a recession. During risk-off periods, investors rotate into staples for their stability, predictable dividends, and lower volatility.

The XLY/XLP Ratio as a Risk Barometer

By dividing the price of XLY by the price of XLP, you create a ratio that captures the relative performance of cyclical versus defensive consumer sectors. This ratio effectively strips out broad market movements and isolates the rotational preference:

XLY/XLP Ratio = XLY Price ÷ XLP Price

Rising ratio = capital rotating into cyclicals (risk-on). Falling ratio = capital rotating into defensives (risk-off).

Ratio Rising

Investors are confident about economic growth. Discretionary spending stocks outperform staples. Risk appetite is expanding. Typically coincides with equity market advances.

Ratio Falling

Investors are rotating defensively. Staples outperform discretionary stocks. Risk appetite is contracting. Often precedes or accompanies broader market weakness.

Historical Correlation with the S&P 500

The XLY/XLP ratio has a strong positive correlation with the S&P 500 index. When the broad market is rallying, the ratio tends to rise as cyclical stocks outperform. When the market is falling, the ratio declines as investors seek the relative safety of staples.

2008–2009: The ratio plunged as discretionary spending collapsed during the financial crisis while staples held relatively steady. The ratio's recovery in mid-2009 confirmed the market bottom before many other indicators.
2020: A sharp drop in the ratio during the March COVID sell-off, followed by one of the fastest recoveries in history as stimulus fueled a consumer spending boom in discretionary categories.
2022: The ratio declined steadily through the first half of the year as inflation fears and Fed tightening shifted investor preference toward defensive positioning.

Importantly, the XLY/XLP ratio can sometimes lead the broader market. Institutional investors often rotate sector allocation before making changes to overall equity exposure. A deteriorating XLY/XLP ratio during an otherwise rising S&P 500 can be an early warning sign that smart money is getting defensive.

How the Alphameter Uses Sector Rotation

Sector rotation carries a 15% weight in the Alphameter composite score. The methodology:

Step 1: Fetch daily closing prices for XLY and XLP ETFs.

Step 2: Compute the XLY/XLP ratio and its 20-day rate of change.

Step 3: Normalize the rate of change against historical ranges. A sharply rising ratio maps to positive scores (risk-on), a sharply falling ratio maps to negative scores (risk-off).

Step 4: Multiply by the 0.15 weight and add to the composite.

The sector rotation signal is particularly valuable because it comes directly from equity market behavior. While other Alphameter indicators (VIX, AUD/JPY, Copper/Gold) originate in derivatives, FX, and commodity markets, the XLY/XLP ratio captures what equity investors are actually doing with their sector allocations. This diversity of signal sources strengthens the composite.

Beyond XLY/XLP: The Broader Rotation Framework

The XLY/XLP pair is one instance of the broader sector rotation framework. Other rotation pairs that macro analysts watch include:

  • Industrials (XLI) vs. Utilities (XLU) — Manufacturing growth vs. defensive yield
  • Financials (XLF) vs. Utilities (XLU) — Rate-sensitive growth vs. bond proxy stability
  • Tech (XLK) vs. Healthcare (XLV) — High-beta innovation vs. defensive earnings
  • Small Caps (IWM) vs. Large Caps (SPY) — Risk appetite breadth across market capitalization

The Alphameter uses XLY/XLP specifically because Consumer Discretionary and Consumer Staples are the purest cyclical/defensive pair: they serve the same end customer (consumers) but reflect fundamentally different spending behaviors in different economic environments.

Data Source

FRED Series: SP500 (S&P 500 Index, used as benchmark context)

XLY and XLP ETF price data is sourced from market data providers for the ratio calculation.

View S&P 500 on FRED →
TradingView Supercharts screenshot
SponsoredTradingView
Chart XLY/XLP on TradingView

Follow live price action with pro-grade charts, alerts, and custom indicators. Free tier available.

View on TradingView

The information provided on Alphamancy is for educational and informational purposes only and does not constitute financial, investment, or trading advice. Sector rotation patterns are historical observations and may not repeat in future market conditions. Individual sector performance depends on numerous factors beyond broad economic cycles, including company-specific events, regulatory changes, and technological disruption. Past performance and historical correlations are not indicative of future results. Always conduct your own research and consult with a qualified financial advisor before making investment decisions.