New: our quarterly report on the S&P 500, read from 500 companies’ own filings and calls. Read the Q3 2026 report

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

Ecopetrol S.A. and YPF Sociedad Anonima are both Oil & Gas Integrated companies. Ecopetrol S.A. is the larger, with a market value of $27.4B against $12.4B — 2.2× the size. YPF Sociedad Anonima trades at the lower P/E: 5.9× against 7.1×. YPF Sociedad Anonima grew revenue faster over the last twelve months: 21.4% against −73.4%. Ecopetrol S.A. has the higher net margin (12.8% vs 9.42%) and the lower return on invested capital (10.2% vs 15.4%). Across the 20 metrics below, YPF Sociedad Anonima leads on 16 and Ecopetrol S.A. on 4.

Valuation

Metric EC YPF Oil & Gas Integrated median
P/E 7.14 5.87 8.49
P/S 0.75 0.55 0.87
P/B 1.30 0.90 1.37
Price to free cash flow 5.64 2.74 6.68
EV/EBITDA 3.96 2.32 3.96
EV/Sales 1.60 0.87 1.16
Earnings yield 14.00% 17.04% 11.25%
Free cash flow yield 17.72% 36.54% 13.33%

Profitability

Metric EC YPF Oil & Gas Integrated median
Gross margin 38.20% 38.57% 38.88%
Operating margin 29.18% 22.96% 16.98%
Net margin 12.75% 9.42% 10.10%
Free cash flow margin 13.32% 20.25% 11.40%
Return on equity — 16.62% 16.62%
Return on assets 6.16% 6.69% 6.74%
Return on invested capital 10.16% 15.42% 11.99%

Growth

Metric EC YPF Oil & Gas Integrated median
Revenue growth (TTM) (73.38%) 21.40% 14.97%
EPS growth (last fiscal year) (24.10%) (135.23%) (14.54%)
Revenue growth, 5-year CAGR (18.18%) 14.19% 12.04%
Net income growth, 5-year CAGR 0.34% — 48.47%

Health

Metric EC YPF Oil & Gas Integrated median
Debt to equity 1.02 0.76 0.53
Current ratio 1.40 1.24 1.19
Net debt to EBITDA 2.26 1.95 0.80

Dividend

Metric EC YPF Oil & Gas Integrated median
Dividend yield 4.81% — 4.13%
Payout ratio 0.34 — 0.38

Size

Metric EC YPF Oil & Gas Integrated median
Market cap 27.40b 12.37b 48.85b

Compare with another peer

Any metric, up to five companies and an Excel export Powerpack