CSX vs. WMT
CSX (CSX Corporation) and WMT (Walmart Inc.) are both stocks. CSX operates in Railroads (Industrials), while WMT operates in Discount Stores (Consumer Defensive). Over the past 10 years, CSX returned 20.06%/yr vs 19.77%/yr for WMT. At a 0.29 correlation, their price movements are largely independent.
Performance
CSX vs. WMT - Performance Comparison
Loading charts...
Returns By Period
In the year-to-date period, CSX achieves a 32.06% return, which is significantly higher than WMT's 9.07% return. Both investments have delivered pretty close results over the past 10 years, with CSX having a 20.06% annualized return and WMT not far behind at 19.77%.
CSX
- 1D
- 0.43%
- 1M
- 4.50%
- YTD
- 32.06%
- 6M
- 28.04%
- 1Y
- 50.19%
- 3Y*
- 14.99%
- 5Y*
- 9.45%
- 10Y*
- 20.06%
WMT
- 1D
- 0.45%
- 1M
- -7.92%
- YTD
- 9.07%
- 6M
- 4.13%
- 1Y
- 29.24%
- 3Y*
- 34.18%
- 5Y*
- 22.42%
- 10Y*
- 19.77%
CSX vs. WMT - Yearly Performance Comparison
| 2026 (YTD) | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | |
|---|---|---|---|---|---|---|---|---|---|---|
CSX CSX Corporation | 32.06% | 14.13% | -5.65% | 13.51% | -16.58% | 25.70% | 27.09% | 18.06% | 14.47% | 55.48% |
WMT Walmart Inc. | 9.07% | 24.49% | 73.99% | 12.88% | -0.46% | 1.97% | 23.32% | 30.16% | -3.43% | 46.56% |
Correlation
The correlation between CSX and WMT 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.20 |
Correlation (5Y) Calculated over the trailing 5-year period | 0.28 |
Correlation (10Y) Calculated over the trailing 10-year period | 0.25 |
Correlation (All Time) Calculated using the full available price history since Nov 3, 1980 | 0.29 |
Fundamentals
CSX:
$88.58B
WMT:
$968.20B
CSX:
$1.63
WMT:
$2.88
CSX:
29.10
WMT:
42.04
CSX:
6.27
WMT:
1.34
CSX:
6.52
WMT:
10.26
CSX:
$14.15B
WMT:
$725.31B
CSX:
$3.64B
WMT:
$181.16B
CSX:
$5.55B
WMT:
$44.32B
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
CSX vs. WMT — Risk / Return Rank
CSX
WMT
CSX vs. WMT - Risk-Adjusted Trends Comparison
This table presents a comparison of risk-adjusted performance metrics for CSX Corporation (CSX) and Walmart Inc. (WMT). 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.
| CSX | WMT | Difference | |
|---|---|---|---|
| Sharpe ratioReturn per unit of total volatility | +0.99 | ||
| Sortino ratioReturn per unit of downside risk | +1.24 | ||
| Omega ratioGain probability vs. loss probability | 1.39 | 1.23 | +0.15 |
| Calmar ratioReturn relative to maximum drawdown | 4.14 | 1.83 | +2.31 |
| Martin ratioReturn relative to average drawdown | 11.06 | 5.82 | +5.24 |
Loading charts...
Drawdowns
CSX vs. WMT - Drawdown Comparison
The maximum CSX drawdown since its inception was -69.19%, smaller than the maximum WMT drawdown of -77.14%. Use the drawdown chart below to compare losses from any high point for CSX and WMT.
Loading charts...
Drawdown Indicators
| CSX | WMT | Difference | |
|---|---|---|---|
Max DrawdownLargest peak-to-trough decline | -69.19% | -77.14% | +7.95% |
Max Drawdown (1Y)Largest decline over 1 year | -11.89% | -15.75% | +3.86% |
Max Drawdown (3Y)Largest decline over 3 years | -29.44% | -21.93% | -7.51% |
Max Drawdown (5Y)Largest decline over 5 years | -29.44% | -25.74% | -3.70% |
Max Drawdown (10Y)Largest decline over 10 years | -40.55% | -25.74% | -14.81% |
Current DrawdownCurrent decline from peak | 0.00% | -9.81% | +9.81% |
Average DrawdownAverage peak-to-trough decline | -15.91% | -14.63% | -1.28% |
Ulcer IndexDepth and duration of drawdowns from previous peaks | 4.44% | 4.94% | -0.50% |
Volatility
CSX vs. WMT - Volatility Comparison
The current volatility for CSX Corporation (CSX) is 6.54%, while Walmart Inc. (WMT) has a volatility of 9.86%. This indicates that CSX experiences smaller price fluctuations and is considered to be less risky than WMT based on this measure. The chart below showcases a comparison of their rolling one-month volatility.
Loading charts...
Volatility by Period
| CSX | WMT | Difference | |
|---|---|---|---|
Volatility (1M)Calculated over the trailing 1-month period | 6.54% | 9.86% | -3.32% |
Volatility (6M)Calculated over the trailing 6-month period | 16.14% | 18.49% | -2.35% |
Volatility (1Y)Calculated over the trailing 1-year period | 22.25% | 23.67% | -1.42% |
Volatility (5Y)Calculated over the trailing 5-year period, annualized | 23.48% | 21.68% | +1.80% |
Volatility (10Y)Calculated over the trailing 10-year period, annualized | 27.82% | 21.73% | +6.09% |
Dividends
CSX vs. WMT - Dividend Comparison
CSX's dividend yield for the trailing twelve months is around 1.14%, more than WMT's 0.80% yield.
| Position | TTM | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | 2016 | 2015 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
CSX CSX Corporation | 1.14% | 1.43% | 1.49% | 1.27% | 1.29% | 0.99% | 1.15% | 1.33% | 1.42% | 1.42% | 2.00% | 2.70% |
WMT Walmart Inc. | 0.80% | 0.84% | 0.92% | 1.45% | 1.58% | 1.52% | 1.50% | 1.78% | 2.23% | 2.07% | 2.89% | 3.20% |
Financials
CSX vs. WMT - Financials Comparison
This section allows you to compare key financial metrics between CSX Corporation and Walmart Inc.. 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
CSX vs. WMT - Profitability Comparison
CSX - Gross Margin
Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, CSX Corporation reported a gross profit of 0.00 and revenue of 3.48B. Therefore, the gross margin over that period was 0.0%.
WMT - Gross Margin
Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, Walmart Inc. reported a gross profit of 44.69B and revenue of 177.75B. Therefore, the gross margin over that period was 25.1%.
CSX - Operating Margin
Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, CSX Corporation reported an operating income of 1.25B and revenue of 3.48B, resulting in an operating margin of 36.0%.
WMT - Operating Margin
Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, Walmart Inc. reported an operating income of 7.49B and revenue of 177.75B, resulting in an operating margin of 4.2%.
CSX - Net Margin
Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, CSX Corporation reported a net income of 807.00M and revenue of 3.48B, resulting in a net margin of 23.2%.
WMT - Net Margin
Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, Walmart Inc. reported a net income of 5.65B and revenue of 177.75B, resulting in a net margin of 3.2%.
Frequently Asked Questions
CSX and WMT 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.
WMT has higher volatility (9.86%) compared to CSX (6.54%). In terms of maximum drawdown, CSX dropped -69.19% vs WMT's -77.14%.
CSX currently has the higher Sharpe Ratio (2.21 vs 1.22), 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 CSX and WMT
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