Compare Stocks

2 / 10
Try these comparisons:

Stock Comparison

CSX vs CNI

Revenue, margins, valuation, and 5-year total return — side by side.

Live fundamentals10-year financials5-year price chart
CSX
CSX Corporation

Railroads

IndustrialsNASDAQ • US
Market Cap$82.61B
5Y Perf.+86.3%
CNI
Canadian National Railway Company

Railroads

IndustrialsNYSE • CA
Market Cap$67.77B
5Y Perf.+28.8%

CSX vs CNI — Key Financials

Market cap, revenue, margins, and valuation side-by-side.

Company Snapshot
CSX logoCSX
CNI logoCNI
IndustryRailroadsRailroads
Market Cap$82.61B$67.77B
Revenue (TTM)$14.15B$17.29B
Net Income (TTM)$3.05B$4.71B
Gross Margin37.5%44.2%
Operating Margin33.4%37.8%
Forward P/E23.4x13.8x
Total Debt$19.35B$21.82B
Cash & Equiv.$670M$363M

CSX vs CNILong-Term Stock Performance

Price return indexed to 100 at period start. Dividends excluded.

CSX
CNI
StockMay 20May 26Return
CSX Corporation (CSX)100186.3+86.3%
Canadian National R… (CNI)100128.8+28.8%

Price return only. Dividends and distributions are not included.

Quick Verdict: CSX vs CNI

Each card shows where this stock fits in a portfolio — not just who wins on paper.

Bottom line: CNI leads in 6 of 7 categories, making it the strongest pick for growth and revenue expansion and valuation and capital efficiency. CSX Corporation is the stronger pick specifically for recent price momentum and sentiment. As sector peers, any of these can serve as alternatives in the same allocation.
CSX
CSX Corporation
The Long-Run Compounder

CSX is the clearest fit if your priority is long-term compounding.

  • 459.3% 10Y total return vs CNI's 121.9%
  • +58.6% vs CNI's +13.7%
Best for: long-term compounding
CNI
Canadian National Railway Company
The Income Pick

CNI carries the broadest edge in this set and is the clearest fit for income & stability and growth exposure.

  • Dividend streak 12 yrs, beta 0.67, yield 2.3%
  • Rev growth 1.4%, EPS growth 7.8%, 3Y rev CAGR 0.4%
  • Lower volatility, beta 0.67, current ratio 0.67x
Best for: income & stability and growth exposure
See the full category breakdown
CategoryWinnerWhy
GrowthCNI logoCNI1.4% revenue growth vs CSX's -3.1%
ValueCNI logoCNILower P/E (13.8x vs 23.4x), PEG 1.60 vs 4.57
Quality / MarginsCNI logoCNI27.2% margin vs CSX's 21.6%
Stability / SafetyCNI logoCNIBeta 0.67 vs CSX's 0.77, lower leverage
DividendsCNI logoCNI2.3% yield, 12-year raise streak, vs CSX's 1.2%
Momentum (1Y)CSX logoCSX+58.6% vs CNI's +13.7%
Efficiency (ROA)CNI logoCNI8.1% ROA vs CSX's 7.0%, ROIC 11.6% vs 10.9%

CSX vs CNI — Revenue Breakdown by Segment

How each company's revenue is distributed across its business units

CSXCSX Corporation
FY 2025
Total Merchandise
64.6%$8.8B
Intermodal
15.4%$2.1B
Coal Services
14.0%$1.9B
Trucking
6.0%$816M
CNICanadian National Railway Company

Segment breakdown not available.

CSX vs CNI — Financial Metrics

Side-by-side numbers across 2 stocks — who leads on profitability, valuation, growth, and risk.

BEST OVERALLCNILAGGINGCSX

Income & Cash Flow (Last 12 Months)

Evenly matched — CSX and CNI each lead in 3 of 6 comparable metrics.

CNI and CSX operate at a comparable scale, with $17.3B and $14.2B in trailing revenue. CNI is the more profitable business, keeping 27.2% of every revenue dollar as net income compared to CSX's 21.6%.

MetricCSX logoCSXCSX CorporationCNI logoCNICanadian National…
RevenueTrailing 12 months$14.2B$17.3B
EBITDAEarnings before interest/tax$6.4B$8.5B
Net IncomeAfter-tax profit$3.0B$4.7B
Free Cash FlowCash after capex$4.1B$3.6B
Gross MarginGross profit ÷ Revenue+37.5%+44.2%
Operating MarginEBIT ÷ Revenue+33.4%+37.8%
Net MarginNet income ÷ Revenue+21.6%+27.2%
FCF MarginFCF ÷ Revenue+29.2%+20.7%
Rev. Growth (YoY)Latest quarter vs prior year+1.7%-0.3%
EPS Growth (YoY)Latest quarter vs prior year+26.5%+1.6%
Evenly matched — CSX and CNI each lead in 3 of 6 comparable metrics.

Valuation Metrics

CNI leads this category, winning 7 of 7 comparable metrics.

At 20.0x trailing earnings, CNI trades at a 31% valuation discount to CSX's 28.9x P/E. Adjusting for growth (PEG ratio), CNI offers better value at 2.32x vs CSX's 5.64x — a lower PEG means you pay less per unit of expected earnings growth.

MetricCSX logoCSXCSX CorporationCNI logoCNICanadian National…
Market CapShares × price$82.6B$67.8B
Enterprise ValueMkt cap + debt − cash$101.3B$83.5B
Trailing P/EPrice ÷ TTM EPS28.87x20.00x
Forward P/EPrice ÷ next-FY EPS est.23.39x13.83x
PEG RatioP/E ÷ EPS growth rate5.64x2.32x
EV / EBITDAEnterprise value multiple17.47x13.37x
Price / SalesMarket cap ÷ Revenue5.86x5.35x
Price / BookPrice ÷ Book value/share6.30x4.38x
Price / FCFMarket cap ÷ FCF48.28x27.29x
CNI leads this category, winning 7 of 7 comparable metrics.

Profitability & Efficiency

CNI leads this category, winning 6 of 9 comparable metrics.

CSX delivers a 23.5% return on equity — every $100 of shareholder capital generates $24 in annual profit, vs $22 for CNI. CNI carries lower financial leverage with a 1.01x debt-to-equity ratio, signaling a more conservative balance sheet compared to CSX's 1.47x. On the Piotroski fundamental quality scale (0–9), CNI scores 8/9 vs CSX's 5/9, reflecting strong financial health.

MetricCSX logoCSXCSX CorporationCNI logoCNICanadian National…
ROE (TTM)Return on equity+23.5%+21.9%
ROA (TTM)Return on assets+7.0%+8.1%
ROICReturn on invested capital+10.9%+11.6%
ROCEReturn on capital employed+11.3%+12.2%
Piotroski ScoreFundamental quality 0–958
Debt / EquityFinancial leverage1.47x1.01x
Net DebtTotal debt minus cash$18.7B$21.5B
Cash & Equiv.Liquid assets$670M$363M
Total DebtShort + long-term debt$19.4B$21.8B
Interest CoverageEBIT ÷ Interest expense5.66x7.85x
CNI leads this category, winning 6 of 9 comparable metrics.

Total Returns (Dividends Reinvested)

CSX leads this category, winning 6 of 6 comparable metrics.

A $10,000 investment in CSX five years ago would be worth $13,589 today (with dividends reinvested), compared to $10,909 for CNI. Over the past 12 months, CSX leads with a +58.6% total return vs CNI's +13.7%. The 3-year compound annual growth rate (CAGR) favors CSX at 12.9% vs CNI's -0.7% — a key indicator of consistent wealth creation.

MetricCSX logoCSXCSX CorporationCNI logoCNICanadian National…
YTD ReturnYear-to-date+23.0%+11.2%
1-Year ReturnPast 12 months+58.6%+13.7%
3-Year ReturnCumulative with dividends+44.1%-2.2%
5-Year ReturnCumulative with dividends+35.9%+9.1%
10-Year ReturnCumulative with dividends+459.3%+121.9%
CAGR (3Y)Annualised 3-year return+12.9%-0.7%
CSX leads this category, winning 6 of 6 comparable metrics.

Risk & Volatility

CNI leads this category, winning 2 of 2 comparable metrics.

CNI is the less volatile stock with a 0.67 beta — it tends to amplify market swings less than CSX's 0.77 beta. A beta below 1.0 means the stock typically moves less than the S&P 500.

MetricCSX logoCSXCSX CorporationCNI logoCNICanadian National…
Beta (5Y)Sensitivity to S&P 5000.77x0.67x
52-Week HighHighest price in past year$46.55$115.80
52-Week LowLowest price in past year$28.13$90.74
% of 52W HighCurrent price vs 52-week peak+95.5%+95.7%
RSI (14)Momentum oscillator 0–10065.155.7
Avg Volume (50D)Average daily shares traded12.1M1.5M
CNI leads this category, winning 2 of 2 comparable metrics.

Analyst Outlook

Evenly matched — CSX and CNI each lead in 1 of 2 comparable metrics.

Wall Street rates CSX as "Buy" and CNI as "Hold". Consensus price targets imply -3.1% upside for CSX (target: $43) vs -9.2% for CNI (target: $101). For income investors, CNI offers the higher dividend yield at 2.34% vs CSX's 1.17%.

MetricCSX logoCSXCSX CorporationCNI logoCNICanadian National…
Analyst RatingConsensus buy/hold/sellBuyHold
Price TargetConsensus 12-month target$43.08$100.67
# AnalystsCovering analysts4651
Dividend YieldAnnual dividend ÷ price+1.2%+2.3%
Dividend StreakConsecutive years of raises2112
Dividend / ShareAnnual DPS$0.52$3.54
Buyback YieldShare repurchases ÷ mkt cap+1.7%+2.3%
Evenly matched — CSX and CNI each lead in 1 of 2 comparable metrics.
Key Takeaway

CNI leads in 3 of 6 categories (Valuation Metrics, Profitability & Efficiency). CSX leads in 1 (Total Returns). 2 tied.

Best OverallCanadian National Railway C… (CNI)Leads 3 of 6 categories
Loading custom metrics...

CSX vs CNI: Frequently Asked Questions

10 questions · data-driven answers · updated daily

01

Is CSX or CNI a better buy right now?

For growth investors, Canadian National Railway Company (CNI) is the stronger pick with 1.

4% revenue growth year-over-year, versus -3. 1% for CSX Corporation (CSX). Canadian National Railway Company (CNI) offers the better valuation at 20. 0x trailing P/E (13. 8x forward), making it the more compelling value choice. Analysts rate CSX Corporation (CSX) a "Buy" — based on 46 analyst ratings — the highest consensus in this comparison. The "better buy" depends entirely on your goals: growth investors should weight revenue trajectory, value investors should weight P/E and PEG, and income investors should weight dividend yield and streak.

02

Which has the better valuation — CSX or CNI?

On trailing P/E, Canadian National Railway Company (CNI) is the cheapest at 20.

0x versus CSX Corporation at 28. 9x. On forward P/E, Canadian National Railway Company is actually cheaper at 13. 8x. The PEG ratio (P/E divided by earnings growth rate) is the most growth-adjusted single valuation metric: Canadian National Railway Company wins at 1. 60x versus CSX Corporation's 4. 57x — a reasonable growth-adjusted valuation.

03

Which is the better long-term investment — CSX or CNI?

Over the past 5 years, CSX Corporation (CSX) delivered a total return of +35.

9%, compared to +9. 1% for Canadian National Railway Company (CNI). Over 10 years, the gap is even starker: CSX returned +459. 3% versus CNI's +121. 9%. Past returns do not guarantee future results, and the stock with the higher historical return may already have its best growth priced in.

04

Which is safer — CSX or CNI?

By beta (market sensitivity over 5 years), Canadian National Railway Company (CNI) is the lower-risk stock at 0.

67β versus CSX Corporation's 0. 77β — meaning CSX is approximately 15% more volatile than CNI relative to the S&P 500. On balance sheet safety, Canadian National Railway Company (CNI) carries a lower debt/equity ratio of 101% versus 147% for CSX Corporation — giving it more financial flexibility in a downturn.

05

Which is growing faster — CSX or CNI?

By revenue growth (latest reported year), Canadian National Railway Company (CNI) is pulling ahead at 1.

4% versus -3. 1% for CSX Corporation (CSX). On earnings-per-share growth, the picture is similar: Canadian National Railway Company grew EPS 7. 8% year-over-year, compared to -14. 0% for CSX Corporation. Over a 3-year CAGR, CNI leads at 0. 4% annualised revenue growth. Higher growth typically commands a higher valuation multiple — check whether the premium P/E or P/S is justified by the growth rate using the PEG ratio.

06

Which has better profit margins — CSX or CNI?

Canadian National Railway Company (CNI) is the more profitable company, earning 27.

3% net margin versus 20. 5% for CSX Corporation — meaning it keeps 27. 3% of every revenue dollar as bottom-line profit. Operating margin tells a similar story: CNI leads at 38. 1% versus 32. 1% for CSX. At the gross margin level — before operating expenses — CNI leads at 44. 9%, reflecting greater pricing power or product mix advantage. Stronger margins indicate durable pricing power, lower cost of revenue, or higher mix of software/services. They are one of the clearest signs of business quality.

07

Is CSX or CNI more undervalued right now?

The PEG ratio (forward P/E divided by expected earnings growth rate) is the most precise measure of undervaluation relative to growth potential.

By this metric, Canadian National Railway Company (CNI) is the more undervalued stock at a PEG of 1. 60x versus CSX Corporation's 4. 57x. Both stocks trade at elevated growth-adjusted valuations, so expected growth needs to materialise. On forward earnings alone, Canadian National Railway Company (CNI) trades at 13. 8x forward P/E versus 23. 4x for CSX Corporation — 9. 6x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for CSX: -3. 1% to $43. 08.

08

Which pays a better dividend — CSX or CNI?

All stocks in this comparison pay dividends.

Canadian National Railway Company (CNI) offers the highest yield at 2. 3%, versus 1. 2% for CSX Corporation (CSX).

09

Is CSX or CNI better for a retirement portfolio?

For long-horizon retirement investors, CSX Corporation (CSX) is the stronger choice — it scores higher on the combination of lower volatility, dividend reliability, and long-term compounding (low volatility (β 0.

77), 1. 2% yield, +459. 3% 10Y return). Both have compounded well over 10 years (CSX: +459. 3%, CNI: +121. 9%), confirming both are viable long-term holds — but the lower-volatility option typically results in less emotional selling during corrections. Retirement portfolios generally favour predictability over maximum returns. Consult a financial advisor before making allocation decisions.

10

What are the main differences between CSX and CNI?

Both stocks operate in the Industrials sector, making this a peer-level intra-sector comparison — the same macro tailwinds and headwinds will affect both.

These fundamental differences mean investors should not choose between them on a single metric — the "better stock" depends entirely on which of these characteristics aligns with your investment strategy.

Find Stocks Like These

Explore pre-built screens for each stock's profile, or build a custom screen to find stocks that outperform both.

Stocks Like

CSX

Quality Mega-Cap Compounder

  • Sector: Industrials
  • Market Cap > $100B
  • Net Margin > 12%
  • Dividend Yield > 0.5%
Run This Screen
Stocks Like

CNI

Dividend Mega-Cap Quality

  • Sector: Industrials
  • Market Cap > $100B
  • Net Margin > 16%
  • Dividend Yield > 0.9%
Run This Screen
Custom Screen

Beat Both

Find stocks that outperform CSX and CNI on the metrics below

Revenue Growth>
%
(CSX: 1.7% · CNI: -0.3%)
Net Margin>
%
(CSX: 21.6% · CNI: 27.2%)
P/E Ratio<
x
(CSX: 28.9x · CNI: 20.0x)

You Might Also Compare

Based on how these companies actually compete and overlap — not just which sector they're filed under.