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. EC 13.50 +1.28%
- YPF Sociedad Anonima YPF 31.87 +1.34%
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
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
Health
Dividend
Size
Any metric, up to five companies and an Excel export Powerpack