Compare Stocks

2 / 10
Try these comparisons:

Stock Comparison

YPF vs EC

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

Live fundamentals10-year financials5-year price chart
YPF
YPF Sociedad Anónima

Oil & Gas Integrated

EnergyNYSE • AR
Market Cap$16.94B
5Y Perf.+758.3%
EC
Ecopetrol S.A.

Oil & Gas Integrated

EnergyNYSE • CO
Market Cap$27.47B
5Y Perf.+28.3%

YPF vs EC — Key Financials

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

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

YPF vs ECLong-Term Stock Performance

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

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

Price return only. Dividends and distributions are not included.

Quick Verdict: YPF vs EC

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.
YPF
YPF Sociedad Anónima
The Income Pick

YPF is the clearest fit if your priority is income & stability and growth exposure.

  • Dividend streak 1 yrs, beta 0.51
  • Rev growth 48.3%, EPS growth -149.6%, 3Y rev CAGR 119.0%
  • 48.3% revenue growth vs EC's -16.4%
Best for: income & stability and growth exposure
EC
Ecopetrol S.A.
The Long-Run Compounder

EC carries the broadest edge in this set and is the clearest fit for long-term compounding and sleep-well-at-night.

  • 175.3% 10Y total return vs YPF's 117.6%
  • Lower volatility, beta 0.03, Low D/E 100.0%, current ratio 1.55x
  • Beta 0.03, yield 10.8%, current ratio 1.55x
Best for: long-term compounding and sleep-well-at-night
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%

YPF vs EC — Revenue Breakdown by Segment

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

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
ECEcopetrol S.A.
FY 2024
Crude oil
100.0%$48.81T

YPF vs EC — 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.

MetricYPF logoYPFYPF Sociedad Anón…EC logoECEcopetrol S.A.
RevenueTrailing 12 months$23.50T$119.34T
EBITDAEarnings before interest/tax$6.01T$38.59T
Net IncomeAfter-tax profit-$1.20T$8.99T
Free Cash FlowCash after capex$16.3B$16.05T
Gross MarginGross profit ÷ Revenue+27.7%+31.4%
Operating MarginEBIT ÷ Revenue+8.9%+22.3%
Net MarginNet income ÷ Revenue-5.1%+7.5%
FCF MarginFCF ÷ Revenue+0.1%+13.5%
Rev. Growth (YoY)Latest quarter vs prior year+36.1%-18.2%
EPS Growth (YoY)Latest quarter vs prior year-2.2%-62.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.

MetricYPF logoYPFYPF Sociedad Anón…EC logoECEcopetrol S.A.
Market CapShares × price$16.9B$27.5B
Enterprise ValueMkt cap + debt − cash$27.6B$54.1B
Trailing P/EPrice ÷ TTM EPS-19.69x12.12x
Forward P/EPrice ÷ next-FY EPS est.0.01x0.00x
PEG RatioP/E ÷ EPS growth rate0.32x
EV / EBITDAEnterprise value multiple5.48x5.09x
Price / SalesMarket cap ÷ Revenue0.89x0.91x
Price / BookPrice ÷ Book value/share1.47x0.93x
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.

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

Total Returns (Dividends Reinvested)

Evenly matched — YPF and EC 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.

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

Risk & Volatility

Evenly matched — YPF and EC 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.

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

Analyst Outlook

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

Wall Street rates YPF as "Buy" and EC as "Hold". 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.

MetricYPF logoYPFYPF Sociedad Anón…EC logoECEcopetrol S.A.
Analyst RatingConsensus buy/hold/sellBuyHold
Price TargetConsensus 12-month target$47.00$10.35
# AnalystsCovering analysts1511
Dividend YieldAnnual dividend ÷ price+10.8%
Dividend StreakConsecutive years of raises10
Dividend / ShareAnnual DPS$5317.20
Buyback YieldShare repurchases ÷ mkt cap+0.1%+0.0%
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...

YPF vs EC: Frequently Asked Questions

10 questions · data-driven answers · updated daily

01

Is YPF or EC 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 — YPF or EC?

On forward P/E, Ecopetrol S.

A. is actually cheaper at 0. 0x.

03

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

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 — YPF or EC?

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 — YPF or EC?

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 — YPF or EC?

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 YPF or EC 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 — YPF or EC?

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 YPF or EC 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 YPF and EC?

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: YPF is a mid-cap high-growth stock; EC is a mid-cap deep-value 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

YPF

High-Growth Disruptor

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

EC

Income & Dividend Stock

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

Beat Both

Find stocks that outperform YPF and EC on the metrics below

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

You Might Also Compare

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