Compare StocksUNP vs XOM

Union Pacific Corporation (UNP) vs ExxonMobil Holdings Corporation (XOM): Which Is the Better Buy in 2026?

As of 2026-08-03, UNP is overvalued at $292, with a DCF intrinsic value of $215 and a margin of safety of -36%. XOM is undervalued at $155, with an intrinsic value of $459379071521 and a margin of safety of 100%. Of the two, XOM has the wider margin of safety.

UNP
Union Pacific Corporation
$292.13
VS
XOM
ExxonMobil Holdings Corporation
$155.44

Rewards

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.
XOM

    Risks

    UNP
    • Each dollar of retained earnings has produced only $0.15 of earning power — shareholders may have been better served by dividends.
    • FCF yield of 2.7% is below 3%, meaning the market is pricing in substantial future growth to justify the current price.
    • PEG ratio of 3.23 indicates the stock is expensive relative to its expected growth — the market may be pricing in more growth than analysts project.
    XOM
    • ROIC has declined by 12.0 percentage points over the past 4 years, which may signal competitive erosion.
    • Buybacks have been poorly timed — 3 out of 4 years involved repurchases at relatively expensive valuations.
    • Trailing P/E of 26.2x is 104% above the historical average of 12.8x — the stock trades at a premium to its own history.

    Key Valuation Metrics

    Learn more →
    UNP
    XOM
    Valuation
    $4.72B
    Free Cash Flow
    $20.67B
    2.72%
    FCF Yield
    N/A
    23.64
    Trailing P/E
    26.17
    20.69
    Forward P/E
    14.69
    Quality & Moat
    15.87%
    ROIC
    14.66%
    39.70%
    ROE
    12.58%
    56.28%
    Gross Margin
    29.77%
    3.23
    PEG Ratio
    1.32
    Balance Sheet Safety
    1.41
    Net Debt / Equity
    0.12
    N/A
    Interest Coverage
    N/A
    2.26
    Net Debt / EBITDA
    0.47
    1.94%
    Dividend Yield
    2.65%
    UNP: 4Ties: 1XOM: 6
    UNPXOM

    Historical Fundamentals

    Learn more →
    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.

    XOM

    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 →
    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
    XOM
    $0.00
    created per $1 retained over 3 years
    Value Destroyer
    Σ Retained
    $49.66B
    Δ Market Cap
    +$10.04
    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 →
    UNP
    35.6% Overvalued
    Price is 35.6% above estimated fair value
    Current Price: $292.13
    Fair Value: $215.49
    Strongly undervalued
    Undervalued
    Fairly valued
    Overvalued
    Strongly overvalued
    XOM
    100.0% Margin of Safety
    Price is 100.0% below estimated fair value
    Current Price: $155.44
    Fair Value: $459379071520.71
    Strongly undervalued
    Undervalued
    Fairly valued
    Overvalued
    Strongly overvalued

    Reverse DCF — Market-Implied Growth

    Learn more →
    UNP

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

    +12.5%
    Market-Implied Owner Earnings Growth
    Standard FCF implies +18.1%

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

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

    XOM

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

    -30.0%
    Market-Implied FCF Growth Rate

    Market below historical growth — potential opportunity.

    Economic Moat Score

    Learn more →
    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.
    XOM
    48/100
    Narrow Moat
    70+ Wide · 40-69 Narrow · <40 None

    Narrow moat with reinvestment efficiency as the key competitive advantage. Improving margin stability would strengthen the moat.

    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 →
    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.
    XOM
    -2.74
    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 →
    UNP
    Insiders 0.1%Institutions 90.8%Retail & Other 9.2%
    No. of Institutional Holders3,523
    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.
    XOM
    Insiders 0.1%Institutions 68.8%Retail & Other 31.2%
    No. of Institutional Holders5,341
    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 →
    UNP
    0
    Buys (3M)
    0
    Buys (12M)
    No open market insider purchases found.
    Open market purchases · includes direct & indirect ownership · excludes option exercises
    XOM
    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 →
    UNP
    1
    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
    Direct ownership only · excludes indirect, option exercises, planned (10b5-1) sales & derivatives
    XOM
    0
    Sells (3M)
    0
    Sells (12M)
    No open market insider sales found.
    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 →
    UNP
    FearGreed
    😐Neutral(59/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.
    XOM
    FearGreed
    😏Greed(65/100)

    "Market is optimistic — be cautious and ensure you have a margin of safety"

    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 →
    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 (59)
    XOM
    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: Greed (65)
    View UNP Full AnalysisView XOM Full Analysis

    Frequently Asked Questions: UNP vs XOM

    Is Union Pacific Corporation or ExxonMobil Holdings Corporation more undervalued in 2026?

    Based on our discounted cash flow model, XOM trades at a 100.0% margin of safety (intrinsic value $459379071521 vs. price $155), compared to UNP's -35.6% margin of safety (intrinsic $215 vs. $292).

    Which stock has a wider economic moat, Union Pacific Corporation or ExxonMobil Holdings Corporation?

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

    Is ExxonMobil Holdings Corporation in financial distress?

    XOM's Altman Z-Score of 2.5 places it in the Grey zone, signaling elevated bankruptcy risk. UNP scores 3.8 (Safe zone). The Altman Z-Score is a five-factor model that predicts insolvency within two years; scores below 1.81 indicate significant distress.

    Which stock has higher return on invested capital, Union Pacific Corporation or ExxonMobil Holdings Corporation?

    UNP earns 15.9% ROIC versus XOM's 14.7%. 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, Union Pacific Corporation's or ExxonMobil Holdings Corporation's?

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

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