MSFT vs. XLK
MSFT (Microsoft Corporation) is a stock, while XLK (State Street Technology Select Sector SPDR ETF) is Technology Equities fund tracking the S&P Technology Select Sector Daily Capped 35/20 Index. Over the past 10 years, MSFT returned 23.18%/yr vs 23.89%/yr for XLK. A 0.75 correlation means they provide meaningful diversification when combined.
Performance
MSFT vs. XLK - Performance Comparison
Loading charts...
Returns By Period
In the year-to-date period, MSFT achieves a -16.45% return, which is significantly lower than XLK's 22.34% return. Both investments have delivered pretty close results over the past 10 years, with MSFT having a 23.18% annualized return and XLK not far ahead at 23.89%.
MSFT
- 1D
- 2.15%
- 1M
- 6.03%
- 6M
- -12.13%
- YTD
- -16.45%
- 1Y
- -20.50%
- 3Y*
- 6.20%
- 5Y*
- 8.30%
- 10Y*
- 23.18%
- ALL TIME*
- 24.73%
XLK
- 1D
- 0.07%
- 1M
- -8.11%
- 6M
- 20.96%
- YTD
- 22.34%
- 1Y
- 35.41%
- 3Y*
- 26.73%
- 5Y*
- 19.16%
- 10Y*
- 23.89%
- ALL TIME*
- 10.23%
MSFT vs. XLK - Yearly Performance Comparison
| 2026 (YTD) | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | |
|---|---|---|---|---|---|---|---|---|---|---|
MSFT Microsoft Corporation | -16.45% | 15.58% | 12.93% | 58.19% | -28.02% | 52.48% | 42.53% | 57.56% | 20.80% | 40.73% |
XLK State Street Technology Select Sector SPDR ETF | 22.34% | 24.61% | 21.63% | 56.02% | -27.73% | 34.74% | 43.62% | 49.86% | -1.68% | 34.26% |
Correlation
The correlation between MSFT and XLK is 0.38, 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.38 |
Correlation (3Y) Calculated over the trailing 3-year period | 0.62 |
Correlation (5Y) Calculated over the trailing 5-year period | 0.76 |
Correlation (10Y) Calculated over the trailing 10-year period | 0.80 |
Correlation (All Time) Calculated using the full available price history since Dec 22, 1998 | 0.75 |
Over the past year, the correlation between MSFT and XLK has dropped to 0.38 - well below their long-term average of 0.75, suggesting their price drivers have been diverging.
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
MSFT vs. XLK — Risk / Return Rank
MSFT
XLK
MSFT vs. XLK - Risk-Adjusted Trends Comparison
This table presents a comparison of risk-adjusted performance metrics for Microsoft Corporation (MSFT) and State Street Technology Select Sector SPDR ETF (XLK). 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.
| MSFT | XLK | Difference | |
|---|---|---|---|
| Sharpe ratioReturn per unit of total volatility | -2.20 | ||
| Sortino ratioReturn per unit of downside risk | -2.86 | ||
| Omega ratioGain probability vs. loss probability | 0.88 | 1.25 | -0.36 |
| Calmar ratioReturn relative to maximum drawdown | -0.60 | 2.23 | -2.83 |
| Martin ratioReturn relative to average drawdown | -1.10 | 6.53 | -7.63 |
Loading charts...
Drawdowns
MSFT vs. XLK - Drawdown Comparison
The maximum MSFT drawdown since its inception was -69.38%, smaller than the maximum XLK drawdown of -82.05%. Use the drawdown chart below to compare losses from any high point for MSFT and XLK.
Loading charts...
Drawdown Indicators
| MSFT | XLK | Difference | |
|---|---|---|---|
Max DrawdownLargest peak-to-trough decline | -69.38% | -82.05% | +12.67% |
Max Drawdown (1Y)Largest decline over 1 year | -34.50% | -15.92% | -18.58% |
Max Drawdown (3Y)Largest decline over 3 years | -34.50% | -25.66% | -8.84% |
Max Drawdown (5Y)Largest decline over 5 years | -37.15% | -33.56% | -3.59% |
Max Drawdown (10Y)Largest decline over 10 years | -37.15% | -33.56% | -3.59% |
Current DrawdownCurrent decline from peak | -25.32% | -11.25% | -14.07% |
Average DrawdownAverage peak-to-trough decline | -21.80% | -34.83% | +13.03% |
Ulcer IndexDepth and duration of drawdowns from previous peaks | 18.74% | 5.43% | +13.31% |
Volatility
MSFT vs. XLK - Volatility Comparison
Microsoft Corporation (MSFT) has a higher volatility of 10.25% compared to State Street Technology Select Sector SPDR ETF (XLK) at 9.59%. This indicates that MSFT's price experiences larger fluctuations and is considered to be riskier than XLK based on this measure. The chart below showcases a comparison of their rolling one-month volatility.
Loading charts...
Volatility by Period
| MSFT | XLK | Difference | |
|---|---|---|---|
Volatility (1M)Calculated over the trailing 1-month period | 10.25% | 9.59% | +0.66% |
Volatility (6M)Calculated over the trailing 6-month period | 24.51% | 20.94% | +3.57% |
Volatility (1Y)Calculated over the trailing 1-year period | 27.52% | 24.61% | +2.91% |
Volatility (5Y)Calculated over the trailing 5-year period, annualized | 27.07% | 25.57% | +1.50% |
Volatility (10Y)Calculated over the trailing 10-year period, annualized | 27.15% | 24.81% | +2.34% |
Dividends
MSFT vs. XLK - Dividend Comparison
MSFT's dividend yield for the trailing twelve months is around 0.88%, more than XLK's 0.45% yield.
| Position | TTM | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | 2016 | 2015 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
MSFT Microsoft Corporation | 0.88% | 0.70% | 0.73% | 0.74% | 1.06% | 0.68% | 0.94% | 1.20% | 1.69% | 1.86% | 2.37% | 2.33% |
XLK State Street Technology Select Sector SPDR ETF | 0.45% | 0.54% | 0.66% | 0.76% | 1.04% | 0.65% | 0.92% | 1.16% | 1.60% | 1.37% | 1.74% | 1.79% |
Frequently Asked Questions
MSFT and XLK have a correlation of 0.38, meaning they provide meaningful diversification benefit when combined. Depending on your allocation goals, holding both could reduce overall portfolio risk.
MSFT has higher volatility (10.25%) compared to XLK (9.59%). In terms of maximum drawdown, MSFT dropped -69.38% vs XLK's -82.05%.
XLK currently has the higher Sharpe Ratio (1.45 vs -0.75), 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 MSFT and XLK
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