Compare StocksHD vs UNP

The Home Depot, Inc. (HD) vs Union Pacific Corporation (UNP): Which Is the Better Buy in 2026?

As of 2026-06-19, HD is overvalued at $334, with a DCF intrinsic value of $250 and a margin of safety of -34%. UNP is overvalued at $257, with an intrinsic value of $224 and a margin of safety of -14%. Of the two, UNP has the wider margin of safety.

HD
The Home Depot, Inc.
$334.28
VS
UNP
Union Pacific Corporation
$256.88

Rewards

HD
  • The Home Depot, Inc. has maintained ROIC above 15% for 4 consecutive years, indicating a durable competitive advantage.
  • The Home Depot, Inc. scores 87/100 on the Economic Moat Score (Wide Moat), with margin stability as the strongest competitive dimension.
  • Return on equity has consistently exceeded 20% over 4 years, indicating efficient use of shareholder capital.
UNP
  • Union Pacific Corporation has maintained ROIC above 10% for 4 consecutive years, suggesting solid business economics.
  • Union Pacific Corporation scores 80/100 on the Economic Moat Score (Wide Moat), with margin stability as the strongest competitive dimension.
  • Return on equity has consistently exceeded 20% over 4 years, indicating efficient use of shareholder capital.

Risks

HD
  • High leverage (4.48x net debt/equity) combined with thin interest coverage (-1.0x) poses financial risk.
  • 11 insider sales with no purchases over the past 12 months — a persistent pattern of insider selling.
UNP
  • Each dollar of retained earnings has produced only $0.15 of earning power — shareholders may have been better served by dividends.
  • PEG ratio of 3.27 indicates the stock is expensive relative to its expected growth — the market may be pricing in more growth than analysts project.
  • High leverage (1.57x net debt/equity) combined with thin interest coverage (-1.0x) poses financial risk.

Key Valuation Metrics

Learn more →
HD
UNP
Valuation
$10.13B
Free Cash Flow
$5.50B
3.04%
FCF Yield
3.61%
23.72
Trailing P/E
21.16
20.75
Forward P/E
18.75
Quality & Moat
20.22%
ROIC
15.46%
128.38%
ROE
40.69%
33.13%
Gross Margin
56.53%
1.90
PEG Ratio
3.27
Balance Sheet Safety
4.48
Net Debt / Equity
1.57
N/A
Interest Coverage
N/A
2.49
Net Debt / EBITDA
2.42
2.76%
Dividend Yield
2.12%
HD: 5Ties: 2UNP: 5
HDUNP

Historical Fundamentals

Learn more →
HD

Price ÷ Earnings Per Share — how many years of current earnings you're paying for at today's price. Lower P/E may indicate undervaluation. The dashed forward point is the forward P/E — today's price ÷ analyst consensus EPS.

UNP

Price ÷ Earnings Per Share — how many years of current earnings you're paying for at today's price. Lower P/E may indicate undervaluation. The dashed forward point is the forward P/E — today's price ÷ analyst consensus EPS.

Price ÷ Earnings Per Share — how many years of current earnings you're paying for at today's price. Lower P/E may indicate undervaluation. The dashed forward point is the forward P/E — today's price ÷ analyst consensus EPS.

$1 Retained Earnings Test

Learn more →
HD
$-1.09
created per $1 retained over 3 years
Market Cap Declined
Σ Retained
$17.64B
Δ Market Cap
$-19.32B
Buffett's "$1 Test": For every $1 of earnings retained, has management created at least $1 of market value?
> $1 created per $1 retained = Value Creator · < $1 created = Value Destroyer
UNP
$0.98
created per $1 retained over 3 years
Mediocre Allocator
Σ Retained
$10.64B
Δ Market Cap
+$10.42B
Buffett's "$1 Test": For every $1 of earnings retained, has management created at least $1 of market value?
> $1 created per $1 retained = Value Creator · < $1 created = Value Destroyer

Buffett's "$1 Test": For every $1 of earnings retained, has management created at least $1 of market value?
> $1 created per $1 retained = Value Creator · < $1 created = Value Destroyer

Discounted Cash Flow (DCF) Analysis

Learn more →
HD
33.5% Overvalued
Price is 33.5% above estimated fair value
Current Price: $334.28
Fair Value: $250.30
Strongly undervalued
Undervalued
Fairly valued
Overvalued
Strongly overvalued
UNP
14.5% Overvalued
Price is 14.5% above estimated fair value
Current Price: $256.88
Fair Value: $224.43
Strongly undervalued
Undervalued
Fairly valued
Overvalued
Strongly overvalued

Reverse DCF — Market-Implied Growth

Learn more →
HD

What growth rate is the market pricing in at $334?

+11.8%
Market-Implied Owner Earnings Growth
Standard FCF implies +16.8%

The market implies +11.8% Owner Earnings growth, above historical trends.

Standard FCF implies a demanding +16.8%, reflecting heavy growth investment.

UNP

What growth rate is the market pricing in at $257?

+11.1%
Market-Implied Owner Earnings Growth
Standard FCF implies +14.6%

The market implies +11.1% Owner Earnings growth, above historical trends.

Standard FCF implies a demanding +14.6%, reflecting heavy growth investment.

Economic Moat Score

Learn more →
HD
87/100
Wide Moat
70+ Wide · 40-69 Narrow · <40 None

Wide moat with strength across all dimensions. Margin Stability is the standout factor.

Composite score measuring competitive advantage durability across four dimensions: returns above cost of capital, pricing power stability, revenue predictability, and capital efficiency. Based on 4 years of fundamental data.
UNP
80/100
Wide Moat
70+ Wide · 40-69 Narrow · <40 None

Wide moat driven primarily by margin stability. Reinvestment Efficiency is the area most vulnerable to competitive pressure.

Composite score measuring competitive advantage durability across four dimensions: returns above cost of capital, pricing power stability, revenue predictability, and capital efficiency. Based on 4 years of fundamental data.

Forensic Accounting

Learn more →
HD
-2.40
Unlikely Manipulator
Above -1.78 = likely manipulator · -2.22 to -1.78 = grey zone

M-Score Trend

Beneish's 8-variable model estimates the probability of earnings manipulation. An M-Score above -1.78 signals elevated risk — companies in this range have historically been 3-5× more likely to be manipulating earnings. Scores between -2.22 and -1.78 fall in a grey zone warranting further investigation.
UNP
-2.61
Unlikely Manipulator
Above -1.78 = likely manipulator · -2.22 to -1.78 = grey zone

M-Score Trend

Beneish's 8-variable model estimates the probability of earnings manipulation. An M-Score above -1.78 signals elevated risk — companies in this range have historically been 3-5× more likely to be manipulating earnings. Scores between -2.22 and -1.78 fall in a grey zone warranting further investigation.

Beneish's 8-variable model estimates the probability of earnings manipulation. An M-Score above -1.78 signals elevated risk — companies in this range have historically been 3-5× more likely to be manipulating earnings. Scores between -2.22 and -1.78 fall in a grey zone warranting further investigation.

Ownership Breakdown

Learn more →
HD
Insiders 0.1%Institutions 76.1%Retail & Other 23.8%
No. of Institutional Holders5,106
High insider ownership aligns management incentives with shareholders — a key signal in Buffett-style analysis. Institutional concentration can indicate smart-money conviction but also crowding risk.
UNP
Insiders 0.1%Institutions 90.8%Retail & Other 9.1%
No. of Institutional Holders3,486
High insider ownership aligns management incentives with shareholders — a key signal in Buffett-style analysis. Institutional concentration can indicate smart-money conviction but also crowding risk.

High insider ownership aligns management incentives with shareholders. Institutional concentration can indicate smart-money conviction but also crowding risk.

Insider Buying Activity

Learn more →
HD
0
Buys (3M)
0
Buys (12M)
BRENNEMAN GREGORY D
Director
$999,767
@ $346.66 · 2025-03-14
Open market purchases · includes direct & indirect ownership · excludes option exercises
UNP
0
Buys (3M)
0
Buys (12M)
No open market insider purchases found.
Open market purchases · includes direct & indirect ownership · excludes option exercises

Open market purchases · includes direct & indirect ownership · excludes option exercises.

Insider Selling Activity

Learn more →
HD
0
Sells (3M)
11
Sells (12M)
Total value (12M): $23.56M
MCPHAIL RICHARD V
Chief Financial Officer
$940,670
@ $368.89 · 2026-03-04
DEATON JOHN A.
Officer
$661,617
@ $369.00 · 2026-03-04
ROSEBOROUGH TERESA WYNN
General Counsel
$1.00M
@ $348.52 · 2025-12-26
BROWN ANGIE
Chief Technology Officer
$695,948
@ $357.63 · 2025-12-12
BASTEK WILLIAM D
Officer
$974,445
@ $423.12 · 2025-09-12
ROSEBOROUGH TERESA WYNN
General Counsel
$2.27M
@ $413.23 · 2025-08-22
BASTEK WILLIAM D
Officer
$1.55M
@ $410.23 · 2025-08-22
DECKER EDWARD P.
Chief Executive Officer
$13.07M
@ $397.22 · 2025-08-21
BROWN ANGIE
Chief Technology Officer
$404,070
@ $404.07 · 2025-08-20
MCPHAIL RICHARD V
Chief Financial Officer
$1.36M
@ $403.66 · 2025-08-20
PADILLA HECTOR A
Officer
$640,609
@ $404.17 · 2025-08-20
DEATON JOHN A.
Officer
$3.29M
@ $369.99 · 2025-06-03
ROSEBOROUGH TERESA WYNN
General Counsel
$2.00M
@ $369.28 · 2025-05-28
SIDDIQUI FAHIM
Chief Technology Officer
$954,564
@ $367.14 · 2025-05-22
BASTEK WILLIAM D
Officer
$1.24M
@ $416.61 · 2024-11-22
HOURIGAN TIMOTHY A
Officer
$6.55M
@ $409.52 · 2024-11-18
ROSEBOROUGH TERESA WYNN
General Counsel
$9.03M
@ $408.91 · 2024-11-14
PADILLA HECTOR A
Officer
$1.48M
@ $408.96 · 2024-11-14
CAMPBELL ANN-MARIE
Officer
$12.24M
@ $408.40 · 2024-11-14
MCPHAIL RICHARD V
Chief Financial Officer
$2.65M
@ $408.45 · 2024-11-13
SCARDINO KIMBERLY R.
Officer
$617,100
@ $363.00 · 2024-08-19
ROSEBOROUGH TERESA WYNN
General Counsel
$1.87M
@ $359.32 · 2024-08-15
Direct ownership only · excludes indirect, option exercises, planned (10b5-1) sales & derivatives
UNP
3
Sells (3M)
4
Sells (12M)
Total value (12M): $9.25M
GEHRINGER ERIC J.
Officer
$789,504
@ $263.96 · 2026-06-03
ROCKER KENYATTA G.
Officer
$7.44M
@ $271.76 · 2026-04-24
HAMANN JENNIFER L
Chief Financial Officer
$549,400
@ $274.70 · 2026-04-24
GEHRINGER ERIC J.
Officer
$469,625
@ $234.93 · 2026-03-20
RICHARDSON CRAIG V
Officer
$1.64M
@ $252.00 · 2025-01-27
WHITED ELIZABETH F.
President
$1.88M
@ $250.00 · 2025-01-24
WHITED ELIZABETH F.
President
$875,905
@ $246.59 · 2024-07-30
Direct ownership only · excludes indirect, option exercises, planned (10b5-1) sales & derivatives

Direct ownership only · excludes indirect, option exercises, planned (10b5-1) sales & derivatives.

🎭 Mr. Market's Mood

Learn more →
HD
FearGreed
😐Neutral(51/100)

"Market is pricing this stock without strong emotion in either direction"

Composite sentiment score based on 6 market signals. Inspired by Buffett's "Mr. Market" allegory — fear = potential opportunity, greed = potential risk. Must be used alongside fundamental analysis, not in isolation.
UNP
FearGreed
😐Neutral(54/100)

"Market is pricing this stock without strong emotion in either direction"

Composite sentiment score based on 6 market signals. Inspired by Buffett's "Mr. Market" allegory — fear = potential opportunity, greed = potential risk. Must be used alongside fundamental analysis, not in isolation.

Composite sentiment score based on market signals. Inspired by Buffett’s "Mr. Market" allegory — fear = potential opportunity, greed = potential risk. Must be used alongside fundamental analysis, not in isolation.

⚖️ Buffett Signal

Learn more →
HD
Awaiting DCF Data

The Buffett Signal cross-references market sentiment with DCF valuation. Configure the DCF Analysis above to generate a signal.

DCF Margin of Safety: N/AMr. Market's Mood: Neutral (51)
UNP
Awaiting DCF Data

The Buffett Signal cross-references market sentiment with DCF valuation. Configure the DCF Analysis above to generate a signal.

DCF Margin of Safety: N/AMr. Market's Mood: Neutral (54)
View HD Full AnalysisView UNP Full Analysis

Frequently Asked Questions: HD vs UNP

Is The Home Depot, Inc. or Union Pacific Corporation more undervalued in 2026?

Based on our discounted cash flow model, UNP trades at a -14.5% margin of safety (intrinsic value $224 vs. price $257), compared to HD's -33.5% margin of safety (intrinsic $250 vs. $334).

Which stock has a wider economic moat, The Home Depot, Inc. or Union Pacific Corporation?

HD scores 87/100 (Wide moat), while UNP scores 80/100 (Wide moat). The moat score measures competitive advantage durability across ROIC consistency, margin stability, revenue predictability, and reinvestment efficiency.

Which company has better free cash flow, The Home Depot, Inc. or Union Pacific Corporation?

Union Pacific Corporation (UNP) generates a 3.6% free cash flow yield, compared to The Home Depot, Inc.'s 3.0%. A higher FCF yield means the business converts more of its market value into cash that can be returned to shareholders or reinvested.

Which stock has higher return on invested capital, The Home Depot, Inc. or Union Pacific Corporation?

HD earns 20.2% ROIC versus UNP's 15.5%. A higher ROIC means the company generates more profit per dollar of capital employed, a hallmark of durable competitive advantage in Buffett-style analysis.

Which dividend is safer, The Home Depot, Inc.'s or Union Pacific Corporation's?

UNP's dividend earns a safety score of 94/100 (Very Safe), compared to HD's 69/100 (Safe). UNP has raised its dividend for 3 consecutive years.

HD vs UNP: Which Is the Better Buy in 2026? | SafetyMargin.io