HDB vs. MSFT
HDB (HDFC Bank Limited) and MSFT (Microsoft Corporation) are both stocks. HDB operates in Banks - Regional (Financial Services), while MSFT operates in Software - Infrastructure (Technology). Over the past 10 years, HDB returned 5.53%/yr vs 24.60%/yr for MSFT. At a 0.30 correlation, their price movements are largely independent.
Performance
HDB vs. MSFT - Performance Comparison
Loading charts...
Returns By Period
In the year-to-date period, HDB achieves a -32.29% return, which is significantly lower than MSFT's -16.97% return. Over the past 10 years, HDB has underperformed MSFT with an annualized return of 5.53%, while MSFT has yielded a comparatively higher 24.60% annualized return.
HDB
- 1D
- 2.36%
- 1M
- 1.19%
- YTD
- -32.29%
- 6M
- -31.26%
- 1Y
- -31.53%
- 3Y*
- -7.62%
- 5Y*
- -6.14%
- 10Y*
- 5.53%
MSFT
- 1D
- 2.31%
- 1M
- -5.05%
- YTD
- -16.97%
- 6M
- -15.43%
- 1Y
- -15.16%
- 3Y*
- 6.13%
- 5Y*
- 10.11%
- 10Y*
- 24.60%
HDB vs. MSFT - Yearly Performance Comparison
| 2026 (YTD) | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | |
|---|---|---|---|---|---|---|---|---|---|---|
HDB HDFC Bank Limited | -32.29% | 17.07% | -2.54% | 0.16% | 7.39% | -9.29% | 14.03% | 22.58% | 2.44% | 68.50% |
MSFT Microsoft Corporation | -16.97% | 15.58% | 12.93% | 58.19% | -28.02% | 52.48% | 42.53% | 57.56% | 20.80% | 40.73% |
Correlation
The correlation between HDB and MSFT is 0.21, 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.21 |
Correlation (3Y) Calculated over the trailing 3-year period | 0.17 |
Correlation (5Y) Calculated over the trailing 5-year period | 0.29 |
Correlation (10Y) Calculated over the trailing 10-year period | 0.27 |
Correlation (All Time) Calculated using the full available price history since Jul 20, 2001 | 0.30 |
The correlation between HDB and MSFT shifts across timeframes, from 0.17 (3 years) to 0.30 (all time), reflecting how their relationship changes across market environments.
Fundamentals
HDB:
$42.45B
MSFT:
$2.98T
HDB:
₹179.48
MSFT:
$16.79
HDB:
13.11
MSFT:
23.81
HDB:
0.20
MSFT:
1.67
HDB:
2.01
MSFT:
9.37
HDB:
0.70
MSFT:
7.18
HDB:
₹5.00T
MSFT:
$318.27B
HDB:
₹2.86T
MSFT:
$217.41B
HDB:
₹1.03T
MSFT:
$200.96B
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
HDB vs. MSFT — Risk / Return Rank
HDB
MSFT
HDB vs. MSFT - Risk-Adjusted Trends Comparison
This table presents a comparison of risk-adjusted performance metrics for HDFC Bank Limited (HDB) and Microsoft Corporation (MSFT). 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.
| HDB | MSFT | Difference | |
|---|---|---|---|
| Sharpe ratioReturn per unit of total volatility | -0.69 | ||
| Sortino ratioReturn per unit of downside risk | -1.21 | ||
| Omega ratioGain probability vs. loss probability | 0.77 | 0.91 | -0.14 |
| Calmar ratioReturn relative to maximum drawdown | -0.77 | -0.45 | -0.32 |
| Martin ratioReturn relative to average drawdown | -1.56 | -0.92 | -0.64 |
Loading charts...
Drawdowns
HDB vs. MSFT - Drawdown Comparison
The maximum HDB drawdown since its inception was -67.93%, roughly equal to the maximum MSFT drawdown of -69.38%. Use the drawdown chart below to compare losses from any high point for HDB and MSFT.
Loading charts...
Drawdown Indicators
| HDB | MSFT | Difference | |
|---|---|---|---|
Max DrawdownLargest peak-to-trough decline | -67.93% | -69.38% | +1.45% |
Max Drawdown (1Y)Largest decline over 1 year | -40.98% | -33.91% | -7.07% |
Max Drawdown (3Y)Largest decline over 3 years | -40.98% | -33.91% | -7.07% |
Max Drawdown (5Y)Largest decline over 5 years | -40.98% | -37.15% | -3.83% |
Max Drawdown (10Y)Largest decline over 10 years | -54.28% | -37.15% | -17.13% |
Current DrawdownCurrent decline from peak | -36.54% | -25.79% | -10.75% |
Average DrawdownAverage peak-to-trough decline | -13.80% | -21.78% | +7.98% |
Ulcer IndexDepth and duration of drawdowns from previous peaks | 20.22% | 16.56% | +3.66% |
Volatility
HDB vs. MSFT - Volatility Comparison
The current volatility for HDFC Bank Limited (HDB) is 7.71%, while Microsoft Corporation (MSFT) has a volatility of 10.74%. This indicates that HDB experiences smaller price fluctuations and is considered to be less risky than MSFT based on this measure. The chart below showcases a comparison of their rolling one-month volatility.
Loading charts...
Volatility by Period
| HDB | MSFT | Difference | |
|---|---|---|---|
Volatility (1M)Calculated over the trailing 1-month period | 7.71% | 10.74% | -3.03% |
Volatility (6M)Calculated over the trailing 6-month period | 21.21% | 22.41% | -1.20% |
Volatility (1Y)Calculated over the trailing 1-year period | 24.63% | 25.54% | -0.91% |
Volatility (5Y)Calculated over the trailing 5-year period, annualized | 26.87% | 26.68% | +0.19% |
Volatility (10Y)Calculated over the trailing 10-year period, annualized | 29.08% | 27.07% | +2.01% |
Dividends
HDB vs. MSFT - Dividend Comparison
HDB's dividend yield for the trailing twelve months is around 3.43%, more than MSFT's 0.89% yield.
| Position | TTM | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | 2016 | 2015 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
HDB HDFC Bank Limited | 3.43% | 2.32% | 2.19% | 2.06% | 1.70% | 0.81% | 0.00% | 0.17% | 0.55% | 0.49% | 0.66% | 0.58% |
MSFT Microsoft Corporation | 0.89% | 0.70% | 0.73% | 0.74% | 1.06% | 0.68% | 0.94% | 1.20% | 1.69% | 1.86% | 2.37% | 2.33% |
Financials
HDB vs. MSFT - Financials Comparison
This section allows you to compare key financial metrics between HDFC Bank Limited and Microsoft Corporation. You can select fields from income statements, balance sheets, and cash flow statements to easily visualize and compare the financial health of both companies.
Total Revenue: Total amount of money received from sales and other business activities
HDB vs. MSFT - Profitability Comparison
HDB - Gross Margin
Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, HDFC Bank Limited reported a gross profit of 693.21B and revenue of 1.19T. Therefore, the gross margin over that period was 58.4%.
MSFT - Gross Margin
Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, Microsoft Corporation reported a gross profit of 56.06B and revenue of 82.89B. Therefore, the gross margin over that period was 67.6%.
HDB - Operating Margin
Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, HDFC Bank Limited reported an operating income of 281.02B and revenue of 1.19T, resulting in an operating margin of 23.7%.
MSFT - Operating Margin
Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, Microsoft Corporation reported an operating income of 38.40B and revenue of 82.89B, resulting in an operating margin of 46.3%.
HDB - Net Margin
Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, HDFC Bank Limited reported a net income of 206.67B and revenue of 1.19T, resulting in a net margin of 17.4%.
MSFT - Net Margin
Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, Microsoft Corporation reported a net income of 31.78B and revenue of 82.89B, resulting in a net margin of 38.3%.
Frequently Asked Questions
HDB and MSFT have a correlation of 0.21, 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.74%) compared to HDB (7.71%). In terms of maximum drawdown, HDB dropped -67.93% vs MSFT's -69.38%.
MSFT currently has the higher Sharpe Ratio (-0.60 vs -1.29), 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 HDB and MSFT
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