Compare Stocks

2 / 10
Try these comparisons:

Stock Comparison

EC vs YPF

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

Live fundamentals10-year financials5-year price chart
EC
Ecopetrol S.A.

Oil & Gas Integrated

EnergyNYSE • CO
Market Cap$27.47B
5Y Perf.+28.3%
YPF
YPF Sociedad Anónima

Oil & Gas Integrated

EnergyNYSE • AR
Market Cap$16.94B
5Y Perf.+758.3%

EC vs YPF — Key Financials

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

Company Snapshot
EC logoEC
YPF logoYPF
IndustryOil & Gas IntegratedOil & Gas Integrated
Market Cap$27.47B$16.94B
Revenue (TTM)$119.34T$23.50T
Net Income (TTM)$8.99T$-1.20T
Gross Margin31.4%27.7%
Operating Margin22.3%8.9%
Forward P/E0.0x0.0x
Total Debt$109.08T$16.18T
Cash & Equiv.$10.68T$1.35T

EC vs YPFLong-Term Stock Performance

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

EC
YPF
StockMay 20May 26Return
Ecopetrol S.A. (EC)100128.3+28.3%
YPF Sociedad Anónima (YPF)100858.3+758.3%

Price return only. Dividends and distributions are not included.

Quick Verdict: EC vs YPF

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

Bottom line: EC leads in 6 of 7 categories, making it the strongest pick for valuation and capital efficiency and profitability and margin quality. YPF Sociedad Anónima is the stronger pick specifically for growth and revenue expansion. As sector peers, any of these can serve as alternatives in the same allocation.
EC
Ecopetrol S.A.
The Income Pick

EC carries the broadest edge in this set and is the clearest fit for income & stability and long-term compounding.

  • Dividend streak 0 yrs, beta 0.03, yield 10.8%
  • 175.3% 10Y total return vs YPF's 117.6%
  • Lower volatility, beta 0.03, Low D/E 100.0%, current ratio 1.55x
Best for: income & stability and long-term compounding
YPF
YPF Sociedad Anónima
The Growth Play

YPF is the clearest fit if your priority is growth exposure.

  • Rev growth 48.3%, EPS growth -149.6%, 3Y rev CAGR 119.0%
  • 48.3% revenue growth vs EC's -16.4%
Best for: growth exposure
See the full category breakdown
CategoryWinnerWhy
GrowthYPF logoYPF48.3% revenue growth vs EC's -16.4%
ValueEC logoECLower P/E (0.0x vs 0.0x)
Quality / MarginsEC logoEC7.5% margin vs YPF's -5.1%
Stability / SafetyEC logoECBeta 0.03 vs YPF's 0.51, lower leverage
DividendsEC logoEC10.8% yield; the other pay no meaningful dividend
Momentum (1Y)EC logoEC+84.5% vs YPF's +43.3%
Efficiency (ROA)EC logoEC3.1% ROA vs YPF's -3.1%, ROIC 8.8% vs 6.8%

EC vs YPF — Revenue Breakdown by Segment

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

ECEcopetrol S.A.
FY 2024
Crude oil
100.0%$48.81T
YPFYPF Sociedad Anónima
FY 2025
Diesel
82.0%$6.2B
Crude Oil
13.0%$975M
Fertilizers and Crop Protection Products
4.3%$326M
Liquefied Natural Gas Regasification
0.7%$51M

EC vs YPF — Financial Metrics

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

BEST OVERALLECLAGGINGYPF

Income & Cash Flow (Last 12 Months)

EC leads this category, winning 5 of 6 comparable metrics.

EC is the larger business by revenue, generating $119.34T annually — 5.1x YPF's $23.50T. EC is the more profitable business, keeping 7.5% of every revenue dollar as net income compared to YPF's -5.1%. On growth, YPF holds the edge at +36.1% YoY revenue growth, suggesting stronger near-term business momentum.

MetricEC logoECEcopetrol S.A.YPF logoYPFYPF Sociedad Anón…
RevenueTrailing 12 months$119.34T$23.50T
EBITDAEarnings before interest/tax$38.59T$6.01T
Net IncomeAfter-tax profit$8.99T-$1.20T
Free Cash FlowCash after capex$16.05T$16.3B
Gross MarginGross profit ÷ Revenue+31.4%+27.7%
Operating MarginEBIT ÷ Revenue+22.3%+8.9%
Net MarginNet income ÷ Revenue+7.5%-5.1%
FCF MarginFCF ÷ Revenue+13.5%+0.1%
Rev. Growth (YoY)Latest quarter vs prior year-18.2%+36.1%
EPS Growth (YoY)Latest quarter vs prior year-62.2%-2.2%
EC leads this category, winning 5 of 6 comparable metrics.

Valuation Metrics

EC leads this category, winning 3 of 5 comparable metrics.

On an enterprise value basis, EC's 5.1x EV/EBITDA is more attractive than YPF's 5.5x.

MetricEC logoECEcopetrol S.A.YPF logoYPFYPF Sociedad Anón…
Market CapShares × price$27.5B$16.9B
Enterprise ValueMkt cap + debt − cash$54.1B$27.6B
Trailing P/EPrice ÷ TTM EPS12.12x-19.69x
Forward P/EPrice ÷ next-FY EPS est.0.00x0.01x
PEG RatioP/E ÷ EPS growth rate0.32x
EV / EBITDAEnterprise value multiple5.09x5.48x
Price / SalesMarket cap ÷ Revenue0.91x0.89x
Price / BookPrice ÷ Book value/share0.93x1.47x
Price / FCFMarket cap ÷ FCF6.27x
EC leads this category, winning 3 of 5 comparable metrics.

Profitability & Efficiency

EC leads this category, winning 7 of 9 comparable metrics.

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

MetricEC logoECEcopetrol S.A.YPF logoYPFYPF Sociedad Anón…
ROE (TTM)Return on equity+8.5%-8.0%
ROA (TTM)Return on assets+3.1%-3.1%
ROICReturn on invested capital+8.8%+6.8%
ROCEReturn on capital employed+9.7%+8.9%
Piotroski ScoreFundamental quality 0–965
Debt / EquityFinancial leverage1.00x1.01x
Net DebtTotal debt minus cash$98.40T$14.83T
Cash & Equiv.Liquid assets$10.68T$1.35T
Total DebtShort + long-term debt$109.08T$16.18T
Interest CoverageEBIT ÷ Interest expense4.07x2.48x
EC leads this category, winning 7 of 9 comparable metrics.

Total Returns (Dividends Reinvested)

Evenly matched — EC and YPF each lead in 3 of 6 comparable metrics.

A $10,000 investment in YPF five years ago would be worth $114,748 today (with dividends reinvested), compared to $18,175 for EC. Over the past 12 months, EC leads with a +84.5% total return vs YPF's +43.3%. The 3-year compound annual growth rate (CAGR) favors YPF at 55.4% vs EC's 27.4% — a key indicator of consistent wealth creation.

MetricEC logoECEcopetrol S.A.YPF logoYPFYPF Sociedad Anón…
YTD ReturnYear-to-date+37.2%+19.2%
1-Year ReturnPast 12 months+84.5%+43.3%
3-Year ReturnCumulative with dividends+106.8%+275.5%
5-Year ReturnCumulative with dividends+81.8%+1047.5%
10-Year ReturnCumulative with dividends+175.3%+117.6%
CAGR (3Y)Annualised 3-year return+27.4%+55.4%
Evenly matched — EC and YPF each lead in 3 of 6 comparable metrics.

Risk & Volatility

Evenly matched — EC and YPF each lead in 1 of 2 comparable metrics.

EC is the less volatile stock with a 0.03 beta — it tends to amplify market swings less than YPF's 0.51 beta. A beta below 1.0 means the stock typically moves less than the S&P 500.

MetricEC logoECEcopetrol S.A.YPF logoYPFYPF Sociedad Anón…
Beta (5Y)Sensitivity to S&P 5000.03x0.51x
52-Week HighHighest price in past year$15.62$48.95
52-Week LowLowest price in past year$7.80$22.82
% of 52W HighCurrent price vs 52-week peak+85.5%+88.4%
RSI (14)Momentum oscillator 0–10053.155.3
Avg Volume (50D)Average daily shares traded3.3M2.5M
Evenly matched — EC and YPF each lead in 1 of 2 comparable metrics.

Analyst Outlook

YPF leads this category, winning 1 of 1 comparable metric.

Wall Street rates EC as "Hold" and YPF as "Buy". Consensus price targets imply 8.6% upside for YPF (target: $47) vs -22.5% for EC (target: $10). EC is the only dividend payer here at 10.76% yield — a key consideration for income-focused portfolios.

MetricEC logoECEcopetrol S.A.YPF logoYPFYPF Sociedad Anón…
Analyst RatingConsensus buy/hold/sellHoldBuy
Price TargetConsensus 12-month target$10.35$47.00
# AnalystsCovering analysts1115
Dividend YieldAnnual dividend ÷ price+10.8%
Dividend StreakConsecutive years of raises01
Dividend / ShareAnnual DPS$5317.20
Buyback YieldShare repurchases ÷ mkt cap+0.0%+0.1%
YPF leads this category, winning 1 of 1 comparable metric.
Key Takeaway

EC leads in 3 of 6 categories (Income & Cash Flow, Valuation Metrics). YPF leads in 1 (Analyst Outlook). 2 tied.

Best OverallEcopetrol S.A. (EC)Leads 3 of 6 categories
Loading custom metrics...

EC vs YPF: Frequently Asked Questions

10 questions · data-driven answers · updated daily

01

Is EC or YPF a better buy right now?

For growth investors, YPF Sociedad Anónima (YPF) is the stronger pick with 48.

3% revenue growth year-over-year, versus -16. 4% for Ecopetrol S. A. (EC). Ecopetrol S. A. (EC) offers the better valuation at 12. 1x trailing P/E (0. 0x forward), making it the more compelling value choice. Analysts rate YPF Sociedad Anónima (YPF) a "Buy" — based on 15 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 — EC or YPF?

On forward P/E, Ecopetrol S.

A. is actually cheaper at 0. 0x.

03

Which is the better long-term investment — EC or YPF?

Over the past 5 years, YPF Sociedad Anónima (YPF) delivered a total return of +1047%, compared to +81.

8% for Ecopetrol S. A. (EC). Over 10 years, the gap is even starker: EC returned +175. 3% versus YPF's +117. 6%. 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 — EC or YPF?

By beta (market sensitivity over 5 years), Ecopetrol S.

A. (EC) is the lower-risk stock at 0. 03β versus YPF Sociedad Anónima's 0. 51β — meaning YPF is approximately 1854% more volatile than EC relative to the S&P 500. On balance sheet safety, Ecopetrol S. A. (EC) carries a lower debt/equity ratio of 100% versus 101% for YPF Sociedad Anónima — giving it more financial flexibility in a downturn.

05

Which is growing faster — EC or YPF?

By revenue growth (latest reported year), YPF Sociedad Anónima (YPF) is pulling ahead at 48.

3% versus -16. 4% for Ecopetrol S. A. (EC). On earnings-per-share growth, the picture is similar: Ecopetrol S. A. grew EPS -39. 5% year-over-year, compared to -149. 6% for YPF Sociedad Anónima. Over a 3-year CAGR, YPF leads at 119. 0% 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 — EC or YPF?

Ecopetrol S.

A. (EC) is the more profitable company, earning 7. 5% net margin versus -4. 5% for YPF Sociedad Anónima — meaning it keeps 7. 5% of every revenue dollar as bottom-line profit. Operating margin tells a similar story: EC leads at 22. 3% versus 8. 9% for YPF. At the gross margin level — before operating expenses — EC leads at 31. 4%, 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 EC or YPF more undervalued right now?

On forward earnings alone, Ecopetrol S.

A. (EC) trades at 0. 0x forward P/E versus 0. 0x for YPF Sociedad Anónima — 0. 0x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for YPF: 8. 6% to $47. 00.

08

Which pays a better dividend — EC or YPF?

In this comparison, EC (10.

8% yield) pays a dividend. YPF does not pay a meaningful dividend and should not be held primarily for income.

09

Is EC or YPF better for a retirement portfolio?

For long-horizon retirement investors, Ecopetrol S.

A. (EC) is the stronger choice — it scores higher on the combination of lower volatility, dividend reliability, and long-term compounding (low volatility (β 0. 03), 10. 8% yield, +175. 3% 10Y return). Both have compounded well over 10 years (EC: +175. 3%, YPF: +117. 6%), 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 EC and YPF?

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

In terms of investment character: EC is a mid-cap deep-value stock; YPF is a mid-cap high-growth stock. EC pays a dividend while YPF does not, making them suitable for different income and tax situations. 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

EC

Income & Dividend Stock

  • Sector: Energy
  • Market Cap > $100B
  • Net Margin > 5%
  • Dividend Yield > 4.3%
Run This Screen
Stocks Like

YPF

High-Growth Disruptor

  • Sector: Energy
  • Market Cap > $100B
  • Revenue Growth > 18%
  • Gross Margin > 16%
Run This Screen
Custom Screen

Beat Both

Find stocks that outperform EC and YPF on the metrics below

Revenue Growth>
%
(EC: -18.2% · YPF: 36.1%)

You Might Also Compare

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