EC vs. WMB
EC (Ecopetrol S.A.) and WMB (The Williams Companies, Inc.) are both stocks. Both are in the Energy sector — EC in Oil & Gas Integrated, WMB in Oil & Gas Midstream. Over the past 10 years, EC returned 16.83%/yr vs 18.23%/yr for WMB. At a 0.44 correlation, their price movements are largely independent.
Performance
EC vs. WMB - Performance Comparison
Loading charts...
Returns By Period
In the year-to-date period, EC achieves a 63.21% return, which is significantly higher than WMB's 20.07% return. Over the past 10 years, EC has underperformed WMB with an annualized return of 16.83%, while WMB has yielded a comparatively higher 18.23% annualized return.
EC
- 1D
- -2.50%
- 1M
- 11.05%
- YTD
- 63.21%
- 6M
- 61.44%
- 1Y
- 100.00%
- 3Y*
- 40.47%
- 5Y*
- 21.16%
- 10Y*
- 16.83%
WMB
- 1D
- 0.49%
- 1M
- -4.97%
- YTD
- 20.07%
- 6M
- 18.23%
- 1Y
- 21.10%
- 3Y*
- 39.01%
- 5Y*
- 26.57%
- 10Y*
- 18.23%
EC vs. WMB - Yearly Performance Comparison
| 2026 (YTD) | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | |
|---|---|---|---|---|---|---|---|---|---|---|
EC Ecopetrol S.A. | 63.21% | 58.65% | -24.25% | 41.83% | -5.04% | 0.57% | -29.31% | 38.58% | 11.95% | 64.34% |
WMB The Williams Companies, Inc. | 20.07% | 14.91% | 62.35% | 11.86% | 32.83% | 38.36% | -8.20% | 14.18% | -23.88% | 2.02% |
Correlation
The correlation between EC and WMB is 0.14, which is low. Their price movements are largely independent, making them effective diversification partners.
| Correlation | |
|---|---|
Correlation (1Y) Calculated over the trailing 1-year period | 0.14 |
Correlation (3Y) Calculated over the trailing 3-year period | 0.30 |
Correlation (5Y) Calculated over the trailing 5-year period | 0.44 |
Correlation (10Y) Calculated over the trailing 10-year period | 0.46 |
Correlation (All Time) Calculated using the full available price history since Sep 19, 2008 | 0.44 |
Over the past year, the correlation between EC and WMB has dropped to 0.14 - well below their long-term average of 0.44, suggesting their price drivers have been diverging.
Fundamentals
EC:
$32.03B
WMB:
$87.64B
EC:
$4.26K
WMB:
$2.28
EC:
0.00
WMB:
31.37
EC:
0.00
WMB:
7.35
EC:
0.00
WMB:
6.76
EC:
$116.38T
WMB:
$11.92B
EC:
$37.91T
WMB:
$7.49B
EC:
$42.24T
WMB:
$6.88B
Compare stocks, funds, or ETFs
Search for stocks, ETFs, and funds for a quick comparison or use the comparison tool for more options.
Return for Risk
EC vs. WMB — Risk / Return Rank
EC
WMB
EC vs. WMB - Risk-Adjusted Trends Comparison
This table presents a comparison of risk-adjusted performance metrics for Ecopetrol S.A. (EC) and The Williams Companies, Inc. (WMB). Risk-adjusted metrics are performance indicators that assess an investment's returns in relation to its risk, enabling a more accurate comparison of different investment options.
| EC | WMB | Difference | |
|---|---|---|---|
| Sharpe ratioReturn per unit of total volatility | +1.77 | ||
| Sortino ratioReturn per unit of downside risk | +2.04 | ||
| Omega ratioGain probability vs. loss probability | 1.41 | 1.17 | +0.24 |
| Calmar ratioReturn relative to maximum drawdown | 7.62 | 1.71 | +5.91 |
| Martin ratioReturn relative to average drawdown | 17.65 | 3.76 | +13.89 |
Data is calculated on a 1-year rolling basis and updated daily. The trend shows the change in the indicator over the past month. | |||
Loading charts...
Sharpe Ratios by Period
| EC | WMB | Difference | |
|---|---|---|---|
Sharpe Ratio (1Y)Calculated over the trailing 1-year period | 2.69 | 0.92 | +1.77 |
Sharpe Ratio (5Y)Calculated over the trailing 5-year period | 0.56 | 1.13 | -0.57 |
Sharpe Ratio (10Y)Calculated over the trailing 10-year period | 0.41 | 0.59 | -0.18 |
Sharpe Ratio (All Time)Calculated using the full available price history | 0.15 | 0.23 | -0.09 |
Drawdowns
EC vs. WMB - Drawdown Comparison
The maximum EC drawdown since its inception was -90.16%, smaller than the maximum WMB drawdown of -98.03%. Use the drawdown chart below to compare losses from any high point for EC and WMB.
Loading charts...
Drawdown Indicators
| EC | WMB | Difference | |
|---|---|---|---|
Max DrawdownLargest peak-to-trough decline | -90.16% | -98.03% | +7.87% |
Max Drawdown (1Y)Largest decline over 1 year | -13.20% | -12.36% | -0.84% |
Max Drawdown (3Y)Largest decline over 3 years | -38.00% | -12.36% | -25.64% |
Max Drawdown (5Y)Largest decline over 5 years | -48.60% | -23.01% | -25.59% |
Max Drawdown (10Y)Largest decline over 10 years | -73.36% | -68.08% | -5.28% |
Current DrawdownCurrent decline from peak | -21.08% | -9.75% | -11.33% |
Average DrawdownAverage peak-to-trough decline | -51.23% | -27.08% | -24.15% |
Ulcer IndexDepth and duration of drawdowns from previous peaks | 5.68% | 5.63% | +0.05% |
Volatility
EC vs. WMB - Volatility Comparison
Ecopetrol S.A. (EC) has a higher volatility of 17.04% compared to The Williams Companies, Inc. (WMB) at 8.64%. This indicates that EC's price experiences larger fluctuations and is considered to be riskier than WMB based on this measure. The chart below showcases a comparison of their rolling one-month volatility.
Loading charts...
Volatility by Period
| EC | WMB | Difference | |
|---|---|---|---|
Volatility (1M)Calculated over the trailing 1-month period | 17.04% | 8.64% | +8.40% |
Volatility (6M)Calculated over the trailing 6-month period | 30.50% | 16.31% | +14.19% |
Volatility (1Y)Calculated over the trailing 1-year period | 37.38% | 23.06% | +14.32% |
Volatility (5Y)Calculated over the trailing 5-year period, annualized | 37.66% | 23.62% | +14.04% |
Volatility (10Y)Calculated over the trailing 10-year period, annualized | 40.81% | 31.01% | +9.80% |
Dividends
EC vs. WMB - Dividend Comparison
EC's dividend yield for the trailing twelve months is around 7.58%, more than WMB's 2.83% yield.
| Position | TTM | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | 2016 | 2015 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
EC Ecopetrol S.A. | 7.58% | 20.77% | 20.47% | 22.02% | 22.47% | 0.72% | 6.92% | 9.87% | 4.01% | 1.06% | 0.00% | 14.83% |
WMB The Williams Companies, Inc. | 2.83% | 3.33% | 3.51% | 5.14% | 5.17% | 6.30% | 7.98% | 6.41% | 6.17% | 3.94% | 5.39% | 9.53% |
Financials
EC vs. WMB - Financials Comparison
This section allows you to compare key financial metrics between Ecopetrol S.A. and The Williams Companies, Inc.. You can select fields from income statements, balance sheets, and cash flow statements to easily visualize and compare the financial health of both companies.
Total Revenue: Total amount of money received from sales and other business activities
EC vs. WMB - Profitability Comparison
EC - Gross Margin
Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, Ecopetrol S.A. reported a gross profit of 11.03T and revenue of 28.41T. Therefore, the gross margin over that period was 38.8%.
WMB - Gross Margin
Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, The Williams Companies, Inc. reported a gross profit of 2.49B and revenue of 3.03B. Therefore, the gross margin over that period was 82.1%.
EC - Operating Margin
Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, Ecopetrol S.A. reported an operating income of 8.50T and revenue of 28.41T, resulting in an operating margin of 29.9%.
WMB - Operating Margin
Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, The Williams Companies, Inc. reported an operating income of 1.32B and revenue of 3.03B, resulting in an operating margin of 43.6%.
EC - Net Margin
Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, Ecopetrol S.A. reported a net income of 2.87T and revenue of 28.41T, resulting in a net margin of 10.1%.
WMB - Net Margin
Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, The Williams Companies, Inc. reported a net income of 865.00M and revenue of 3.03B, resulting in a net margin of 28.6%.
Frequently Asked Questions
EC and WMB have a correlation of 0.14, meaning they provide meaningful diversification benefit when combined. Depending on your allocation goals, holding both could reduce overall portfolio risk.
EC has higher volatility (17.04%) compared to WMB (8.64%). In terms of maximum drawdown, EC dropped -90.16% vs WMB's -98.03%.
EC currently has the higher Sharpe Ratio (2.69 vs 0.92), meaning it's delivered slightly more return per unit of risk over the trailing 12 months. However, this ranking shifts over time - use the Risk/Return Score above for a more comprehensive view that combines Sharpe, Sortino, and other measures used by quantitative funds.
Find the right allocation for EC and WMB
Add both to a portfolio and optimize allocations for your target — whether that's maximizing returns, minimizing drawdowns, or balancing risk across holdings.
Open Portfolio Optimizer