PairBook
HomeCOST › COST vs XLP

COST vs XLP: Correlation

Costco (COST) and Consumer Staples Select Sector SPDR Fund (XLP) show a moderate relationship: their 3-year correlation of weekly returns is 0.53.

Data as of 2026-08-27 · refreshed every trading day · weekly returns · methodology

Correlation (3Y)
0.53
moderate
Correlation (1Y)
0.67
last 12 months
Correlation (5Y)
0.62
long-run
Ann. covariance
116.2
%² · weekly, annualized

How correlated are COST and XLP?

Over the past 3 years, COST and XLP moved with a correlation of 0.53, which is moderate. Lately the two have moved closer together, with the 1-year correlation at 0.67 versus 0.53 over 3 years. Over 5 years the correlation is 0.62, and the annualized covariance of weekly returns is 116.2 %².

XLP is one of the assets that tracks COST most closely: it ranks #2 out of the 33 assets we track against COST. The trailing year gives XLP the advantage: -1.0% versus +8.3%, a 9.3-point spread. Across three years, the rolling one-year figure varied moderately, from 0.28 to 0.69. One caveat on sizing: COST is 1.8 times as volatile as the other leg, so an equal-dollar split is far from equal-risk.

+1.0+0.50-0.5-1.020232026-08-27
Rolling one-year correlation of weekly returns over the past three years.
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.

COST vs XLP: side by side

COST (Costco)XLP (Consumer Staples Select Sector SPDR Fund)
1-year return-1.0%+8.3%
5-year return+116.3%+34.7%
Volatility (ann.)19.8%11.1%
Beta vs S&P 5000.450.23
Max drawdown (3Y)-20.7%-9.7%
Market cap$414.5B
P/E (trailing)48.1
Dividend yield0.56%2.58%
Expense ratio0.08%
Assets under management$14.6B
Sector / categoryConsumer StaplesSector ETF
Higher yield: XLP 2.58% vs 0.56%Smaller drawdown: XLP -9.7% vs -20.7%Higher 5y return: COST +116.3% vs +34.7%

On the fund side, XLP sits in the Consumer Defensive category at State Street Investment Management, with $14.6B under management, 35 holdings, a 0.08% expense ratio, a 2.58% trailing dividend yield.

-11%0%+13%2025-09-052026-08-27
Twelve months of weekly closes, each series rebased to 100. COST · XLP

Year-by-year returns

YearCOSTXLP
2022-19.0%-0.8%
2023+49.0%-0.8%
2024+39.6%+12.2%
2025-5.4%+1.5%
2026+8.9%+10.9%

Calendar-year price returns; the current year is year-to-date as of the data date above.

Fund exposure

A structural note: 8.92% of XLP is COST itself, so the fund partly moves with the stock by construction.

Are COST and XLP good diversifiers for each other?

To a limited degree. At 0.53 the two still catch most of the same waves, so the pair smooths returns a little without insulating either from a shared selloff.

FAQ

What is the correlation between COST and XLP?

Using weekly returns as of 2026-08-27: 0.53 over 3 years, with 0.67 over the last year and 0.62 over 5 years.

Is XLP a good diversifier for COST?

To a limited degree. At 0.53 the two still catch most of the same waves, so the pair smooths returns a little without insulating either from a shared selloff.

What does a correlation of 0.53 mean?

On the −1 to +1 scale, 0.53 describes how much the two returns move together: +1 is lockstep, 0 is independence, negative values mean opposite directions. It says nothing about which performed better.

Use this data

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

COST vs XLP: 3-year weekly correlation 0.53COST vs XLP0.53

Markdown for the live badge, attribution link included:

[![COST vs XLP correlation](https://www.pairbook.io/api/v1/badge/cost-vs-xlp.svg)](https://www.pairbook.io/pair/cost-vs-xlp/)

The core API is free. Terms and every endpoint in the API documentation.

Related comparisons

Hubs: COST correlations · XLP correlations