MetaCap

Ecopetrol S.A. (EC) vs YPF Sociedad Anonima (YPF)

Head-to-head comparison of performance, valuation, growth, profitability and dividends. Prices delayed 15 minutes; data as of Oct 7, 2026.

Summary

YPF Sociedad Anonima (YPF) has outperformed Ecopetrol S.A. (EC) over the past year, gaining 106.3% versus a gain of 84.0%. Over five years, YPF leads with a +980.3% price change compared with +6.0% for EC. Ecopetrol S.A. is the larger company by market cap ($34.19 billion vs $19.40 billion), about 1.8 times the size.

On valuation, Ecopetrol S.A. trades at a lower forward P/E (8.8x vs 9.0x for YPF Sociedad Anonima).

Summary generated from market data by MetaCap's automated system. Methodology

Relative performance

EC+83.96%YPF+106.25%
+147%+68%-12%
Oct 7, 20251 yearOct 7, 2026
EC+7.36%YPF+926.56%
+1115%+504%-108%
Oct 4, 20215 yearsOct 5, 2026

Percent change in share price from the first common trading day shown; excludes dividends.

Head-to-head

EC versus YPF key metrics
MetricECYPF
Share price$16.63$49.48
Market cap$34.19B$19.40B
1-day change-1.95%-3.28%
YTD return+65.97%+36.84%
1-year return+83.96%+106.25%
5-year return+5.99%+980.35%
P/E ratio (TTM)9.0426.04
Forward P/E8.829.02
EPS (TTM)$1.84$1.90
Dividend yield3.83%0.00%
Annual dividend$0.00$0.00
Revenue (latest FY)—$18.45B
Revenue growth (YoY)—-4.38%
Net income (latest FY)—$-826.00M
Gross margin—27.65%
Operating margin—9.43%
Net margin—-4.48%
52-week high$18.38$57.87
52-week low$8.57$23.37
Distance from 52-week high-9.52%-14.50%
Analyst consensusunderperformbuy
Avg. price target upside-14.01%+24.05%
Average volume1.88M1.22M
Shares outstanding2.06B392.02M
SectorEnergyEnergy
IndustryOil & Gas ProductionIntegrated oil Companies

Highlighted cells mark the higher value for growth, returns, margins and yield, and the lower value for P/E ratios. Highlighting is a mechanical comparison, not a recommendation.

Key differences

  • YPF has outperformed EC by 22.3 percentage points over the past year.
  • YPF Sociedad Anonima trades at a higher earnings multiple (26.0x vs 9.0x trailing P/E).
  • Ecopetrol S.A. offers a meaningfully higher dividend yield (3.83% vs 0.00%).

About Ecopetrol S.A.

EC stock →

Ecopetrol S.A. operates as an integrated energy company.

Energy · Oil & Gas Production

About YPF Sociedad Anonima

YPF stock →

YPF Sociedad Anónima, an energy company, engages in the oil and gas upstream and downstream activities in South America and Argentina. The company operates through the Upstream, Midstream and Downstream, LNG and Integrated Gas, and New Energies segments.

Energy · Integrated oil Companies

EC vs YPF FAQ

Which is bigger, Ecopetrol S.A. or YPF Sociedad Anonima?

Ecopetrol S.A. (EC) is larger, with a market capitalization of $34.19B compared with $19.40B for YPF Sociedad Anonima (YPF).

Which stock has performed better over the past year, EC or YPF?

YPF returned +106.25% over the past 12 months, compared with +83.96% for EC (price return, excluding dividends). Past performance does not predict future results.

Which has the lower P/E ratio, EC or YPF?

EC has the lower trailing P/E at 9.0, versus 26.0 for YPF. A lower P/E is not by itself a sign of a better investment; it can reflect slower expected growth or higher risk.

Which pays a higher dividend, Ecopetrol S.A. or YPF Sociedad Anonima?

Ecopetrol S.A. pays a dividend yielding 3.83%, while YPF Sociedad Anonima does not currently pay a regular dividend.

Are Ecopetrol S.A. and YPF Sociedad Anonima in the same industry?

Both are in the Energy sector, but in different industries: Oil & Gas Production for Ecopetrol S.A. and Integrated oil Companies for YPF Sociedad Anonima.

More comparisons